Mathematics/Lessons/Exponentials & Logarithms/Solving Equations Using Logarithms
Pure · Exponentials & Logarithms · Year 1

Solving Equations Using Logarithms

Four recurring situations, one underlying strategy: use a logarithm (or an exponential) to free the unknown, then always check the answer is actually valid.

10 min read 4 worked examples

Four situations, one strategy

Every equation involving logs or exponentials in this course reduces to one of four patterns: the unknown sits alone in an exponent ($a^x = b$), the unknown appears twice in a way that hides a quadratic ($e^{2x} - 5e^x + 6 = 0$), several logs need combining before they can be removed, or the same unknown appears on both sides with different bases. In every case the strategy is the same: use logs (or $e$) to strip away whichever operation is trapping the unknown, then check the result actually makes sense — a solution that makes a logarithm's argument zero or negative must be rejected, however cleanly it fell out of the algebra.

Type 1 — a^x = b

Take logs of both sides, then use the power law to bring the exponent down to a multiplier:

$a^{x} = b \;\;\Longrightarrow\;\; \log a^{x} = \log b \;\;\Longrightarrow\;\; x\log a = \log b \;\;\Longrightarrow\;\; x = \dfrac{\log b}{\log a}.$

Any base of log works, as long as you use the same base on both sides — the answer comes out identical either way.

Worked example 1

a^x = b, with a linear exponent
Solve $7^{2x-1} = 50$, giving your answer to 3 significant figures.
MethodTake logs, bring the exponent down, then solve for x
1
Take logs of both sides: $\log 7^{2x-1} = \log 50$.
Same operation to both sides.
2
Power law: $(2x-1)\log 7 = \log 50$.
The whole exponent comes down.
3
Divide: $2x - 1 = \dfrac{\log 50}{\log 7} = \dfrac{1.699}{0.845} \approx 2.010$.
Isolate the bracket.
4
$2x = 3.010$, so $x \approx 1.51$ (3 s.f.).
Solve the resulting linear equation.
▪ solved
Examiner's eye

When the exponent is a bracket like $2x-1$ rather than just $x$, the whole bracket comes down together — don't split $2x-1$ apart before taking logs. Once you have $2x-1 = (\text{number})$, finish it as an ordinary linear equation.

Type 2 — a quadratic in aˣ or eˣ

If the unknown appears as both $e^x$ and $e^{2x}$ (or $a^x$ and $a^{2x}$), the equation is a quadratic in disguise, because $e^{2x} = (e^x)^2$. Substitute $y = e^x$, solve the ordinary quadratic in $y$, then undo the substitution with $\ln$.

The check you must not skip

$e^x$ (and $a^x$ for $a>0$) is always positive, whatever $x$ is. So after solving the quadratic in $y$, reject any root with $y \le 0$ before taking logs — that branch has no solution in $x$ at all.

Worked example 2

A quadratic equation in eˣ · substitute before solving
Solve $e^{2x} - 5e^{x} + 6 = 0$, giving your answer(s) exactly in terms of $\ln$.
MethodSubstitute y = eˣ, factorise, then take ln to finish
1
Let $y = e^x$, so $e^{2x} = (e^x)^2 = y^2$. The equation becomes $y^2 - 5y + 6 = 0$.
A standard quadratic in y.
2
Factorise: $(y-2)(y-3)=0$, so $y=2$ or $y=3$.
Two solutions for y.
3
Both are positive, so both survive the $y > 0$ check. Undo the substitution: $e^x = 2$ or $e^x = 3$.
Replace y with eˣ.
4
Take $\ln$ of both sides of each: $x = \ln 2$ or $x = \ln 3$.
ln undoes eˣ directly.
▪ solved
If a root had been negative

Had the quadratic factorised as, say, $(y-2)(y+1)=0$, the root $y=-1$ would be discarded immediately — $e^x=-1$ has no solution, since $e^x$ is never negative. You'd report only the surviving positive root. Always run this check before converting back with a log.

Type 3 — combining logs, then removing them

When several logs of the same base appear, use the laws to compress each side into a single log, then use the fact that $\log_a$ is one-to-one: if $\log_a P = \log_a Q$, then $P = Q$. This turns a log equation into an ordinary algebraic one.

Why you must check the domain afterwards

Combining logs and comparing arguments can introduce extraneous roots — solutions of the simplified equation that don't satisfy the original, because they'd make some log's argument zero or negative. Every solution must be substituted back to confirm every log in the original equation stays defined. This domain check is not optional extra rigour; it's part of the method.

Worked example 3

Combine, compare, then check the domain
Solve $\log_2(x+3) + \log_2(x-1) = \log_2(x+9)$.
MethodProduct law on the left, then equate arguments
1
Product law: $\log_2\big[(x+3)(x-1)\big] = \log_2(x+9)$.
Combine the left into one log.
2
Same base on both sides, so the arguments are equal: $(x+3)(x-1) = x+9$.
$\log_2$ is one-to-one.
3
Expand and rearrange: $x^2 + 2x - 3 = x + 9 \;\Rightarrow\; x^2 + x - 12 = 0$.
A quadratic in x.
4
Factorise: $(x+4)(x-3) = 0$, so $x = -4$ or $x = 3$.
Two candidate solutions.
5
Domain check: every log needs $x+3>0$, $x-1>0$ and $x+9>0$, i.e. $x>1$. Only $x=3$ satisfies this — $x=-4$ is rejected.
$x=-4$ makes $x-1$ and $x+3$ negative.
6
Solution: $x = 3$.
The only value that keeps every log defined.
▪ solved
Examiner's eye

$x=-4$ is a perfectly correct root of the quadratic — the algebra isn't wrong. It's rejected because it fails the original equation's requirements, not the simplified one. Markschemes award a method mark for finding both roots and a separate mark for correctly discarding the invalid one, so always show the domain check explicitly rather than silently dropping a root.

Type 4 — the same unknown, different bases

When $x$ appears in the exponent on both sides but the bases don't match — like $5^{x+2} = 3^{2x}$ — there's no way to compare exponents directly. Take logs of both sides anyway, apply the power law to each side separately, then collect every $x$-term on one side.

Worked example 4

Different bases on each side
Solve $5^{x+2} = 3^{2x}$, giving your answer to 3 significant figures.
MethodTake logs, expand both sides, collect the x terms
1
Take logs of both sides: $\log 5^{x+2} = \log 3^{2x}$.
Same operation to both sides.
2
Power law on each side: $(x+2)\log 5 = 2x\log 3$.
Each exponent comes down separately.
3
Expand: $x\log 5 + 2\log 5 = 2x\log 3$.
Multiply out the bracket.
4
Collect x terms on one side: $2\log 5 = 2x\log 3 - x\log 5 = x(2\log 3 - \log 5)$.
Factor x out.
5
Divide: $x = \dfrac{2\log 5}{2\log 3 - \log 5} = \dfrac{1.398}{0.255} \approx 5.48$ (3 s.f.).
Isolate x.
▪ solved
The key insight

Treat $\log 5$ and $\log 3$ as ordinary numbers throughout — don't try to evaluate them until the very last step. Collecting the $x$-terms works exactly like solving $5x + 10 = 6x$ for $x$; the logs are just constants riding along until you factorise $x$ out.

Common mistake

Don't combine logs of different bases with the product or quotient law — $\log_2 x + \log_3 y$ cannot be simplified that way. And when equating arguments after combining logs (Type 3), remember the domain check applies to the original equation's logs, not the simplified algebraic one — an extraneous root can look perfectly valid once the logs are gone.

Check yourself

Solve $\log_2 x + \log_2(x-2) = 3$, checking your answer against the domain of the original equation.
(Hint: combine into a single log, equate arguments, then check both roots against $x>2$.)

Method
1
Product law: $\log_2[x(x-2)] = 3$.
Combine into one log.
2
Convert to index form: $x(x-2) = 2^3 = 8$.
$\log_2 N = 3 \iff N = 2^3$.
3
Expand: $x^2 - 2x - 8 = 0$, factorise: $(x-4)(x+2)=0$, so $x=4$ or $x=-2$.
Two candidate roots.
4
Domain needs $x>0$ and $x-2>0$, i.e. $x>2$. Only $x=4$ satisfies this.
$x=-2$ fails both conditions.
5
Solution: $x = 4$.
The only valid root.
▪ solved

The quadratic always hands you two roots; the domain of the original logs is what decides which (if either) survive. Never skip that final check.