A logarithmic equation has the unknown inside a logarithm, or in the base of one. Solving it uses two tools: the laws, to collect everything into a single logarithm, and the definition, to remove the logarithm altogether. There is one extra step that ordinary equations do not need: every answer must be checked, because a logarithm only exists for a positive number and an allowed base. Answers that fail the check are thrown away.
Remove the logarithm using the definition:
log a N = x ⟹ N = a x \log_a N = x \implies N = a^x log a N = x ⟹ N = a x
Two special cases come up again and again: log a N = 0 \log_a N = 0 log a N = 0 means N = 1 N = 1 N = 1 , and log a N = 1 \log_a N = 1 log a N = 1 means N = a N = a N = a .
Remove logarithms from both sides (Law 12): log a m = log a n ⟹ m = n \log_a m = \log_a n \implies m = n log a m = log a n ⟹ m = n .
Collect logarithms first: log a m + log a n = log a m n \log_a m + \log_a n = \log_a mn log a m + log a n = log a mn and log a m − log a n = log a m n \displaystyle \log_a m - \log_a n = \log_a \frac{m}{n} log a m − log a n = log a n m .
Check every answer in the original equation. Each number inside a logarithm must be positive, and each base must be positive and not 1.
Example 1#
If log 5 ( 2 x + 3 ) = 0 \log_5(2x + 3) = 0 log 5 ( 2 x + 3 ) = 0 , find x x x .
A logarithm is 0 only when the number is 1, so 2 x + 3 = 1 2x + 3 = 1 2 x + 3 = 1 . Then 2 x = − 2 2x = -2 2 x = − 2 and x = − 1 x = -1 x = − 1 . Check: 2 ( − 1 ) + 3 = 1 2(-1) + 3 = 1 2 ( − 1 ) + 3 = 1 , which is positive. So x = − 1 x = -1 x = − 1 .
Example 2#
If log 5 ( 2 x − 3 ) = 1 \log_5(2x - 3) = 1 log 5 ( 2 x − 3 ) = 1 , find x x x .
A logarithm is 1 only when the number equals the base, so 2 x − 3 = 5 2x - 3 = 5 2 x − 3 = 5 . Then 2 x = 8 2x = 8 2 x = 8 and x = 4 x = 4 x = 4 . Check: 2 ( 4 ) − 3 = 5 > 0 2(4) - 3 = 5 > 0 2 ( 4 ) − 3 = 5 > 0 .
Example 3#
If log 2 ( x 2 + 5 x + 8 ) = 1 \log_2(x^2 + 5x + 8) = 1 log 2 ( x 2 + 5 x + 8 ) = 1 , find x x x .
The number must equal the base: x 2 + 5 x + 8 = 2 x^2 + 5x + 8 = 2 x 2 + 5 x + 8 = 2 , so x 2 + 5 x + 6 = 0 x^2 + 5x + 6 = 0 x 2 + 5 x + 6 = 0 . Split the middle term:
x 2 + 2 x + 3 x + 6 = 0 x ( x + 2 ) + 3 ( x + 2 ) = 0 ( x + 2 ) ( x + 3 ) = 0 \begin{aligned} x^2 + 2x + 3x + 6 &= 0 \\ x(x + 2) + 3(x + 2) &= 0 \\ (x + 2)(x + 3) &= 0 \end{aligned} x 2 + 2 x + 3 x + 6 x ( x + 2 ) + 3 ( x + 2 ) ( x + 2 ) ( x + 3 ) = 0 = 0 = 0
So x = − 2 x = -2 x = − 2 or x = − 3 x = -3 x = − 3 . Check both: for x = − 2 x = -2 x = − 2 , 4 − 10 + 8 = 2 4 - 10 + 8 = 2 4 − 10 + 8 = 2 ; for x = − 3 x = -3 x = − 3 , 9 − 15 + 8 = 2 9 - 15 + 8 = 2 9 − 15 + 8 = 2 . Both make the number 2, which is positive, so both answers stand. A negative value of x x x is perfectly fine; it is the number inside the logarithm that must be positive.
Example 4#
If log 2 x + log 2 ( x + 1 ) = 1 \log_2 x + \log_2(x + 1) = 1 log 2 x + log 2 ( x + 1 ) = 1 , find x x x .
Combine with the product law: log 2 x ( x + 1 ) = 1 \log_2 x(x + 1) = 1 log 2 x ( x + 1 ) = 1 , that is log 2 ( x 2 + x ) = 1 \log_2(x^2 + x) = 1 log 2 ( x 2 + x ) = 1 . So
x 2 + x = 2 x 2 + x − 2 = 0 x 2 + 2 x − x − 2 = 0 x ( x + 2 ) − 1 ( x + 2 ) = 0 ( x − 1 ) ( x + 2 ) = 0 \begin{aligned} x^2 + x &= 2 \\ x^2 + x - 2 &= 0 \\ x^2 + 2x - x - 2 &= 0 \\ x(x + 2) - 1(x + 2) &= 0 \\ (x - 1)(x + 2) &= 0 \end{aligned} x 2 + x x 2 + x − 2 x 2 + 2 x − x − 2 x ( x + 2 ) − 1 ( x + 2 ) ( x − 1 ) ( x + 2 ) = 2 = 0 = 0 = 0 = 0
So x = 1 x = 1 x = 1 or x = − 2 x = -2 x = − 2 . Now check. If x = − 2 x = -2 x = − 2 , the original equation contains log 2 ( − 2 ) \log_2(-2) log 2 ( − 2 ) , which is not defined. So x = − 2 x = -2 x = − 2 is rejected. For x = 1 x = 1 x = 1 : log 2 1 + log 2 2 = 0 + 1 = 1 \log_2 1 + \log_2 2 = 0 + 1 = 1 log 2 1 + log 2 2 = 0 + 1 = 1 . The answer is x = 1 x = 1 x = 1 .
Example 5#
If log 10 ( x − 9 ) + log 10 x = 1 \log_{10}(x - 9) + \log_{10} x = 1 log 10 ( x − 9 ) + log 10 x = 1 , find x x x .
log 10 x ( x − 9 ) = 1 x 2 − 9 x = 10 x 2 − 9 x − 10 = 0 x 2 − 10 x + x − 10 = 0 ( x − 10 ) ( x + 1 ) = 0 \begin{aligned} \log_{10} x(x - 9) &= 1 \\ x^2 - 9x &= 10 \\ x^2 - 9x - 10 &= 0 \\ x^2 - 10x + x - 10 &= 0 \\ (x - 10)(x + 1) &= 0 \end{aligned} log 10 x ( x − 9 ) x 2 − 9 x x 2 − 9 x − 10 x 2 − 10 x + x − 10 ( x − 10 ) ( x + 1 ) = 1 = 10 = 0 = 0 = 0
So x = 10 x = 10 x = 10 or x = − 1 x = -1 x = − 1 . For x = − 1 x = -1 x = − 1 , log 10 ( − 1 ) \log_{10}(-1) log 10 ( − 1 ) is not defined, so it is rejected. The answer is x = 10 x = 10 x = 10 . Check: log 10 1 + log 10 10 = 0 + 1 = 1 \log_{10} 1 + \log_{10} 10 = 0 + 1 = 1 log 10 1 + log 10 10 = 0 + 1 = 1 .
Example 6#
If log 2 x − log 2 ( x + 1 ) = 5 \log_2 x - \log_2(x + 1) = 5 log 2 x − log 2 ( x + 1 ) = 5 , find x x x .
Use the quotient law: log 2 x x + 1 = 5 \displaystyle \log_2 \frac{x}{x + 1} = 5 log 2 x + 1 x = 5 , so x x + 1 = 2 5 = 32 \displaystyle \frac{x}{x + 1} = 2^5 = 32 x + 1 x = 2 5 = 32 . Then
x = 32 x + 32 ⟹ − 31 x = 32 ⟹ x = − 32 31 \displaystyle x = 32x + 32 \implies -31x = 32 \implies x = -\frac{32}{31} x = 32 x + 32 ⟹ − 31 x = 32 ⟹ x = − 31 32
But for this value log 2 x = log 2 ( − 32 31 ) \displaystyle \log_2 x = \log_2\left(-\frac{32}{31}\right) log 2 x = log 2 ( − 31 32 ) is not defined. So the equation has no real solution . This makes sense: for positive x x x , the fraction x x + 1 \displaystyle \frac{x}{x+1} x + 1 x is always less than 1, so its logarithm to the base 2 is negative and can never be 5.
Example 7#
If log 2 ( x 2 + x + 1 ) + log 2 ( x − 1 ) = 3 \log_2(x^2 + x + 1) + \log_2(x - 1) = 3 log 2 ( x 2 + x + 1 ) + log 2 ( x − 1 ) = 3 , find x x x .
Combine: log 2 ( x 2 + x + 1 ) ( x − 1 ) = 3 \log_2 (x^2 + x + 1)(x - 1) = 3 log 2 ( x 2 + x + 1 ) ( x − 1 ) = 3 . The identity ( a − b ) ( a 2 + a b + b 2 ) = a 3 − b 3 (a - b)(a^2 + ab + b^2) = a^3 - b^3 ( a − b ) ( a 2 + ab + b 2 ) = a 3 − b 3 gives ( x − 1 ) ( x 2 + x + 1 ) = x 3 − 1 (x - 1)(x^2 + x + 1) = x^3 - 1 ( x − 1 ) ( x 2 + x + 1 ) = x 3 − 1 . So
x 3 − 1 = 2 3 = 8 ⟹ x 3 = 9 ⟹ x = 9 3 x^3 - 1 = 2^3 = 8 \implies x^3 = 9 \implies x = \sqrt[3]{9} x 3 − 1 = 2 3 = 8 ⟹ x 3 = 9 ⟹ x = 3 9
Check: 9 3 \sqrt[3]{9} 3 9 is about 2.08, so x − 1 > 0 x - 1 > 0 x − 1 > 0 and x 2 + x + 1 > 0 x^2 + x + 1 > 0 x 2 + x + 1 > 0 . The answer is x = 9 3 x = \sqrt[3]{9} x = 3 9 .
Example 8#
Solve log 2 ( 3 x − 2 ) = log 1 / 2 x \log_2(3x - 2) = \log_{1/2} x log 2 ( 3 x − 2 ) = log 1/2 x .
Make the bases the same. Since 1 2 = 2 − 1 \displaystyle \frac{1}{2} = 2^{-1} 2 1 = 2 − 1 , Law 5 gives log 2 − 1 x = 1 − 1 log 2 x = log 2 x − 1 \displaystyle \log_{2^{-1}} x = \frac{1}{-1} \log_2 x = \log_2 x^{-1} log 2 − 1 x = − 1 1 log 2 x = log 2 x − 1 . So
log 2 ( 3 x − 2 ) = log 2 x − 1 3 x − 2 = 1 x 3 x 2 − 2 x − 1 = 0 3 x 2 − 3 x + x − 1 = 0 3 x ( x − 1 ) + 1 ( x − 1 ) = 0 ( 3 x + 1 ) ( x − 1 ) = 0 \displaystyle \begin{aligned} \log_2(3x - 2) &= \log_2 x^{-1} \\ 3x - 2 &= \frac{1}{x} \\ 3x^2 - 2x - 1 &= 0 \\ 3x^2 - 3x + x - 1 &= 0 \\ 3x(x - 1) + 1(x - 1) &= 0 \\ (3x + 1)(x - 1) &= 0 \end{aligned} log 2 ( 3 x − 2 ) 3 x − 2 3 x 2 − 2 x − 1 3 x 2 − 3 x + x − 1 3 x ( x − 1 ) + 1 ( x − 1 ) ( 3 x + 1 ) ( x − 1 ) = log 2 x − 1 = x 1 = 0 = 0 = 0 = 0
So x = 1 x = 1 x = 1 or x = − 1 3 \displaystyle x = -\frac{1}{3} x = − 3 1 . For x = − 1 3 \displaystyle x = -\frac{1}{3} x = − 3 1 , log 1 / 2 x \log_{1/2} x log 1/2 x is not defined. The answer is x = 1 x = 1 x = 1 . Check: log 2 1 = 0 \log_2 1 = 0 log 2 1 = 0 and log 1 / 2 1 = 0 \log_{1/2} 1 = 0 log 1/2 1 = 0 .
Example 9#
If log 2 log 3 log 5 x = 0 \log_2 \log_3 \log_5 x = 0 log 2 log 3 log 5 x = 0 , find x x x .
Peel off one logarithm at a time. A logarithm is 0 only when its number is 1, so log 3 log 5 x = 1 \log_3 \log_5 x = 1 log 3 log 5 x = 1 . A logarithm is 1 only when its number equals the base, so log 5 x = 3 \log_5 x = 3 log 5 x = 3 . Finally x = 5 3 = 125 x = 5^3 = 125 x = 5 3 = 125 .
Check from the inside: log 5 125 = 3 \log_5 125 = 3 log 5 125 = 3 , log 3 3 = 1 \log_3 3 = 1 log 3 3 = 1 , log 2 1 = 0 \log_2 1 = 0 log 2 1 = 0 .
When the unknown is in the base#
The same definition works. Remember that the base must be positive and not 1.
Example 10#
If log x 4 = − 1 3 \displaystyle \log_x 4 = -\frac{1}{3} log x 4 = − 3 1 , find x x x .
In exponential form, 4 = x − 1 / 3 4 = x^{-1/3} 4 = x − 1/3 . Raise both sides to the power − 3 -3 − 3 : 4 − 3 = x 4^{-3} = x 4 − 3 = x , so x = 1 4 3 = 1 64 \displaystyle x = \frac{1}{4^3} = \frac{1}{64} x = 4 3 1 = 64 1 . This is a positive base other than 1, so it is accepted.
Example 11#
If log 1 / x 4 = − 2 \log_{1/x} 4 = -2 log 1/ x 4 = − 2 , find x x x .
In exponential form, 4 = ( 1 x ) − 2 = ( x − 1 ) − 2 = x 2 \displaystyle 4 = \left(\frac{1}{x}\right)^{-2} = (x^{-1})^{-2} = x^2 4 = ( x 1 ) − 2 = ( x − 1 ) − 2 = x 2 . So x = 2 x = 2 x = 2 or x = − 2 x = -2 x = − 2 . If x = − 2 x = -2 x = − 2 , the base 1 x = − 1 2 \displaystyle \frac{1}{x} = -\frac{1}{2} x 1 = − 2 1 is negative, which is not allowed. So x = 2 x = 2 x = 2 .
Example 12#
If log 5 x 3 = log 5 27 \log_5 \sqrt[3]{x} = \log_5 27 log 5 3 x = log 5 27 , find x x x .
By Law 12, x 3 = 27 \sqrt[3]{x} = 27 3 x = 27 . Cube both sides: x = 27 3 = ( 3 3 ) 3 = 3 9 = 19683 x = 27^3 = (3^3)^3 = 3^9 = 19683 x = 2 7 3 = ( 3 3 ) 3 = 3 9 = 19683 .
Practice#
If log 3 ( 4 x − 7 ) = 0 \log_3(4x - 7) = 0 log 3 ( 4 x − 7 ) = 0 , find x x x .
If log 11 ( 2 x + 1 ) = 1 \log_{11}(2x + 1) = 1 log 11 ( 2 x + 1 ) = 1 , find x x x .
If log 6 ( x 2 − 5 x + 12 ) = 1 \log_6(x^2 - 5x + 12) = 1 log 6 ( x 2 − 5 x + 12 ) = 1 , find x x x .
If log 5 x = log 5 ( 3 − x ) \log_5 x = \log_5(3 - x) log 5 x = log 5 ( 3 − x ) , find x x x .
If log 5 x − 1 x − 2 = 1 \displaystyle \log_5 \frac{x - 1}{x - 2} = 1 log 5 x − 2 x − 1 = 1 , find x x x .
If log 10 x + log 10 ( x − 3 ) = 1 \log_{10} x + \log_{10}(x - 3) = 1 log 10 x + log 10 ( x − 3 ) = 1 , find x x x .
If log 3 x − log 3 ( x − 2 ) = 1 \log_3 x - \log_3(x - 2) = 1 log 3 x − log 3 ( x − 2 ) = 1 , find x x x .
If log x 9 = − 2 3 \displaystyle \log_x 9 = -\frac{2}{3} log x 9 = − 3 2 , find x x x .
If log 2 log 4 x = 1 \log_2 \log_4 x = 1 log 2 log 4 x = 1 , find x x x .
Solve log 3 ( x + 6 ) = log 1 / 3 1 x \displaystyle \log_3(x + 6) = \log_{1/3} \frac{1}{x} log 3 ( x + 6 ) = log 1/3 x 1 .
Answers#
Show answers
4 x − 7 = 1 4x - 7 = 1 4 x − 7 = 1 , so x = 2 x = 2 x = 2 .
2 x + 1 = 11 2x + 1 = 11 2 x + 1 = 11 , so x = 5 x = 5 x = 5 .
x 2 − 5 x + 12 = 6 x^2 - 5x + 12 = 6 x 2 − 5 x + 12 = 6 , so x 2 − 5 x + 6 = 0 x^2 - 5x + 6 = 0 x 2 − 5 x + 6 = 0 and ( x − 2 ) ( x − 3 ) = 0 (x - 2)(x - 3) = 0 ( x − 2 ) ( x − 3 ) = 0 . Both x = 2 x = 2 x = 2 and x = 3 x = 3 x = 3 make the number 6, so both stand.
x = 3 − x x = 3 - x x = 3 − x , so x = 3 2 \displaystyle x = \frac{3}{2} x = 2 3 . Both x x x and 3 − x 3 - x 3 − x are then positive.
x − 1 = 5 ( x − 2 ) x - 1 = 5(x - 2) x − 1 = 5 ( x − 2 ) , so x − 1 = 5 x − 10 x - 1 = 5x - 10 x − 1 = 5 x − 10 , 4 x = 9 4x = 9 4 x = 9 and x = 9 4 \displaystyle x = \frac{9}{4} x = 4 9 . Check: 9 / 4 − 1 9 / 4 − 2 = 5 / 4 1 / 4 = 5 \displaystyle \frac{9/4 - 1}{9/4 - 2} = \frac{5/4}{1/4} = 5 9/4 − 2 9/4 − 1 = 1/4 5/4 = 5 , which is positive.
x 2 − 3 x = 10 x^2 - 3x = 10 x 2 − 3 x = 10 , so ( x − 5 ) ( x + 2 ) = 0 (x - 5)(x + 2) = 0 ( x − 5 ) ( x + 2 ) = 0 . Reject x = − 2 x = -2 x = − 2 . Answer: x = 5 x = 5 x = 5 .
x x − 2 = 3 \displaystyle \frac{x}{x - 2} = 3 x − 2 x = 3 , so x = 3 x − 6 x = 3x - 6 x = 3 x − 6 and x = 3 x = 3 x = 3 . Check: log 3 3 − log 3 1 = 1 \log_3 3 - \log_3 1 = 1 log 3 3 − log 3 1 = 1 .
9 = x − 2 / 3 9 = x^{-2/3} 9 = x − 2/3 , so x = 9 − 3 / 2 = 1 27 \displaystyle x = 9^{-3/2} = \frac{1}{27} x = 9 − 3/2 = 27 1 .
log 4 x = 2 \log_4 x = 2 log 4 x = 2 , so x = 16 x = 16 x = 16 .
log 1 / 3 1 x = log 3 x \displaystyle \log_{1/3} \frac{1}{x} = \log_3 x log 1/3 x 1 = log 3 x , so x + 6 = x x + 6 = x x + 6 = x , which is impossible. There is no solution.