Canceling out logs means using exponents to undo them

A logarithm and an exponent are inverse operations — they undo each other. If you have a logarithm on one side of an equation, you can cancel it by raising both sides to a power. The base of the logarithm becomes the base of the exponent, and the result is that the log disappears, leaving you with what was inside it.

The most common scenario is working with natural logarithms (written as ln) or logarithms with base 10 (written as log). When you raise e to the power of both sides of an equation containing ln, the natural log cancels. When you raise 10 to the power of both sides of an equation containing log, the base-10 log cancels. The same principle works for any base.

Key Takeaways

  • To cancel a logarithm, raise both sides of the equation to a power using the same base as the log.
  • For natural logs (ln), raise both sides as powers of e; for base-10 logs, raise both sides as powers of 10.
  • The exponent and logarithm cancel because they are inverse operations, leaving only the argument of the log.
  • You must apply the exponent to the entire side of the equation, not just part of it, or the math breaks.

Canceling natural logarithms with e

If your equation contains ln (natural logarithm), you cancel it by raising both sides as powers of e, which is approximately 2.718. When you do this, e raised to the power of ln(x) equals x — the log disappears and you are left with what was inside it.

For example, if you have ln(x) = 5, you raise both sides as powers of e: e^ln(x) = e^5. The left side simplifies to x, so x = e^5, which is approximately 148.4. The natural log is gone, and you have solved for x.

This works the same way if the natural log is part of a larger expression. If you have ln(x) + 3 = 7, you first isolate the log by subtracting 3 from both sides to get ln(x) = 4, then raise both sides as powers of e to get x = e^4.

Canceling base-10 logarithms with powers of 10

Base-10 logarithms (written as log without a base shown) cancel when you raise both sides as powers of 10. Just as with natural logs, 10 raised to the power of log(x) equals x.

If you have log(x) = 2, you raise both sides as powers of 10: 10^log(x) = 10^2. The left side becomes x, so x = 100. The logarithm is canceled and you have your answer.

The same isolation rule applies here. If log(x) - 1 = 3, add 1 to both sides first to get log(x) = 4, then raise both sides as powers of 10 to get x = 10^4 = 10,000.

Canceling logarithms with other bases

Logarithms can have any base, not just e or 10. If you see log₂(x) (logarithm with base 2), you cancel it by raising both sides as powers of 2. If you see log₅(x), you raise both sides as powers of 5. The base of the log and the base of the exponent must match.

For log₂(x) = 6, raise both sides as powers of 2: 2^log₂(x) = 2^6, which gives x = 64. For log₅(x) = 2, raise both sides as powers of 5: 5^log₅(x) = 5^2, which gives x = 25.

When you see a logarithm written without a base in a science or engineering context, it is usually base 10. In pure mathematics or computer science, it is often base 2 or base e. Check your textbook or problem context to be sure which base applies.

Applying the exponent to both sides correctly

The most common mistake is raising only part of one side to the power instead of the entire side. If you have ln(x) + 2 = 5 and you raise only ln(x) as a power of e, you get the wrong answer. You must first isolate the logarithm by subtracting 2 from both sides to get ln(x) = 3, then raise both complete sides as powers of e.

Similarly, if you have 2 · ln(x) = 8, you cannot just raise both sides as powers of e directly. First divide both sides by 2 to get ln(x) = 4, then raise both sides as powers of e to get x = e^4. The order of operations matters: isolate the log first, then cancel it.

When you raise both sides to a power, every term on each side is affected. If you have ln(x) = 2 + 3, you must raise both sides as powers of e to get x = e^(2+3) = e^5, not x = e^2 + e^3. Parentheses and order of operations apply to exponents just as they do to other operations.

Canceling logs when they appear on both sides

If a logarithm appears on both sides of an equation, you can cancel it directly without raising to a power. If you have ln(x) = ln(y), you know that x = y because the logarithm function is one-to-one — each input produces a unique output.

This shortcut saves time. Instead of raising both sides as powers of e (which would give x = e^ln(y) = y anyway), you can simply drop the logs and set the arguments equal. This works for any base: if log₂(a) = log₂(b), then a = b.

Be careful: this only works when the bases are the same and the logs are on opposite sides of the equation. If you have ln(x) = log(y), you cannot drop the logs because they have different bases. You would need to convert one to match the other or use the exponent method.

Frequently Asked Questions

What if the logarithm has a coefficient in front of it?

If you have 3 · ln(x) = 9, divide both sides by 3 first to get ln(x) = 3, then raise both sides as powers of e to get x = e^3. You must isolate the logarithm before you can cancel it. Raising both sides as powers of e when the coefficient is still there will not work correctly.

Can you cancel a logarithm if it is inside another function?

Not directly. If you have sin(ln(x)) = 0.5, you first solve for ln(x) by taking the inverse sine of both sides, which gives ln(x) = arcsin(0.5). Only then do you raise both sides as powers of e to cancel the logarithm. Work from the outside function inward.

What does it mean if I get a negative number after canceling the log?

Logarithms are only defined for positive numbers, so if you solve an equation and get a negative or zero result, that answer is not valid. For example, if ln(x) = -5, then x = e^-5, which is approximately 0.0067 — a small positive number. If your work leads to x = -3, that solution must be rejected because you cannot take the logarithm of a negative number.

Do I need to cancel logs, or can I just leave them in the answer?

It depends on what the problem asks for. If you are solving for x and the answer should be a number, you must cancel the log. If you are simplifying an expression or the problem says to leave the answer in logarithmic form, you can stop before canceling. Always check the instructions.