Logarithms or logs are a part of mathematics. They are related to exponential functions. A logarithm tells what exponent (or power) is needed to make a certain number, so logarithms are the inverse (opposite) of exponentiation. Historically, they were useful in multiplying or dividing large numbers.

An example of a logarithm is . In this logarithm, the base is 2, the argument is 8 and the answer is 3. In this case, the exponentiation function would be:

The most common types of logarithms are common logarithms, where the base is 10, binary logarithms, where the base is 2, and natural logarithms, where the base is e ≈ 2.71828.