A logarithm is just a way of asking an exponential question in reverse.
Instead of wondering “What is 2 to the power of 3?”, you ask “2 raised to what power gives me 8?”
That’s the idea behind a logarithm: it tells you the exponent.
In math language, if , then . So when you see something like , that’s because .
Logarithms and exponentials work as opposites. For example, , and . On a graph, they’re reflections of each other across the line .
Logarithms come with a few rules: the base has to be positive, it can’t equal 1, and the input must be greater than zero. These conditions come from how exponential functions behave.
If the base is negative, then raising it to real exponents gives unpredictable results. If the base is 1, then is always just 1, no matter what is. And if you try to take the log of zero or a negative number, there’s no real exponent that makes a positive base equal those values. That’s why only makes sense when is positive and , with .
There are two types of logarithms you’ll run into most often.
The common logarithm is written . Since our number system is base 10, this version is useful in science and engineering. For example, because .
The natural logarithm is written , which is shorthand for , where . This number shows up in many systems that involve continuous growth or change over time.
If you invested $1 at 100% annual interest, compounded constantly, you would end up with exactly dollars after one year.
Natural logs appear in models of population growth, radioactive decay, and many other areas where the rate of change depends on the current amount.
The rules for working with logs come from the properties of exponents.
When you multiply two values inside a logarithm, the result equals the sum of the individual logs:
.
If you divide one value by another inside a log, the result becomes a subtraction:
.
When you raise a value inside the log to a power, that exponent can move in front:
.
If you need to switch between different bases, you can use the change of base formula:
. This is especially helpful when your calculator only supports and .
There are also a few important values to remember. , since . , because . And if you take the log of a power, such as , you get as the result.
The graph of a logarithmic function only exists for positive -values. The domain is , while the range covers all real numbers. It passes through the point , because the log of 1 is always zero. There’s also a vertical asymptote at , which means the graph approaches the y-axis but never touches it.
The base determines the shape. If the base is greater than 1, the graph rises slowly as increases. If the base is between 0 and 1, the graph falls instead. Either way, near , the curve becomes very steep.
You can shift or stretch the graph using the general form
. These transformations work the same way as with other parent functions.
To solve a log equation with a single logarithm, you can rewrite it in exponential form. For example, becomes , so .
When you see two or more logs on the same side with the same base, combine them before solving.
For example:
becomes
, so , and then you solve the quadratic.
If there are logs on both sides of the equation with the same base, you can just set the inputs equal to each other.
For example:
leads to .
For exponential equations, logs are useful for bringing the exponent down.
Consider . You can apply a natural log to both sides:
, then isolate .
After solving, always plug your solutions back in to check. If any input to a log becomes zero or negative, that solution must be rejected.
Logarithms appear in many real-world settings that involve rapid changes in size, scale, or intensity.
In chemistry, the pH scale measures acidity using a logarithmic formula:
. Each unit change reflects a tenfold difference in hydrogen ion concentration.
The Richter scale for earthquakes is also logarithmic. A magnitude 6 earthquake is ten times stronger than a magnitude 5.
Decibels work in the same way. The formula
shows how sound intensity scales by powers of 10.
You’ll also use logs in radioactive decay problems, half-life calculations, and continuously compounding interest, like in the formula
, where natural logs help you solve for time or rate.
Here are some open-ended questions to help you think more deeply about this material and connect it to related ideas.
Subscribe now to keep reading and get access to the full archive.