Skip to main content
Examonaut

Topic 6 · Lesson 2 of 4

Logarithms and solving exponential equations

Logarithms: the inverse of exponentials

A logarithm answers the question "what power?". log⁡28\log_2 8 asks "2 to what power gives 8?", and the answer is 3. In general

log⁡ax=y⟺ay=x\log_a x = y \quad \Longleftrightarrow \quad a^y = x

where the base aa is positive and not 1, and x>0x > 0. So log⁡101000=3\log_{10} 1000 = 3, log⁡319=−2\log_3 \frac{1}{9} = -2 and log⁡a1=0\log_a 1 = 0 for every base. You can't take the log of zero or a negative number, because no power of a positive base gives one.

The logarithm to base ee is the natural logarithm, written ln⁡x\ln x. So ln⁡x=y\ln x = y means ey=xe^y = x. Because ln⁡\ln and exe^x undo each other, ln⁡(ex)=x\ln(e^x) = x and eln⁡x=xe^{\ln x} = x. As with any pair of inverse functions, their graphs are reflections of each other in the line y=xy = x, shown below on equal scales. The graph of ln⁡x\ln x passes through (1,0)(1, 0), exists only for x>0x > 0, has the yy-axis as an asymptote, and grows very slowly.

xy−2−11234−2−11234Oy = eˣy = ln xy = x

The laws of logarithms

Logarithms are powers, so the laws of logarithms are just the laws of indices in disguise. Let log⁡ax=p\log_a x = p and log⁡ay=q\log_a y = q, so x=apx = a^p and y=aqy = a^q. Then xy=ap+qxy = a^{p+q}, so log⁡a(xy)=p+q\log_a(xy) = p + q. The same reasoning with division and powers gives all three laws:

log⁡a(xy)=log⁡ax+log⁡ay,log⁡a(xy)=log⁡ax−log⁡ay,log⁡a(xk)=klog⁡ax\log_a(xy) = \log_a x + \log_a y, \qquad \log_a\left(\frac{x}{y}\right) = \log_a x - \log_a y, \qquad \log_a(x^k) = k\log_a x

The third law works for any kk: with k=−1k = -1, log⁡a1x=−log⁡ax\log_a\frac{1}{x} = -\log_a x, and with k=12k = \frac{1}{2}, log⁡ax=12log⁡ax\log_a\sqrt{x} = \frac{1}{2}\log_a x. Two special values are useful: log⁡aa=1\log_a a = 1 and log⁡a1=0\log_a 1 = 0.

There is no law for the log of a sum: log⁡(x+y)\log(x + y) cannot be split. This is the most common error in the topic.

Worked example

Using the laws

a) Write 2log⁡36−log⁡342\log_3 6 - \log_3 4 as a single number. b) Express ln⁡(x3y)\ln\left(\frac{x^3}{\sqrt{y}}\right) in terms of ln⁡x\ln x and ln⁡y\ln y.

Show solution
  1. a) Move the coefficient inside: 2log⁡36=log⁡3362\log_3 6 = \log_3 36. Then subtract: log⁡3364=log⁡39=2\log_3 \frac{36}{4} = \log_3 9 = 2, since 32=93^2 = 9.
  2. b) Split the division: ln⁡x3−ln⁡y12\ln x^3 - \ln y^{\frac{1}{2}}. Bring the powers down: 3ln⁡x−12ln⁡y3\ln x - \frac{1}{2}\ln y.

Solving exponential equations

To solve ax=ba^x = b, where xx is in the power, take logarithms of both sides so the power law brings xx down:

ax=b  ⇒  xln⁡a=ln⁡b  ⇒  x=ln⁡bln⁡aa^x = b \;\Rightarrow\; x\ln a = \ln b \;\Rightarrow\; x = \frac{\ln b}{\ln a}

Any base of logarithm works (your calculator also has log⁡a\log_a directly). For example, 5x=205^x = 20 gives x=ln⁡20ln⁡5=1.86x = \frac{\ln 20}{\ln 5} = 1.86. The same idea gives the change of base formula, log⁡ax=log⁡bxlog⁡ba\log_a x = \frac{\log_b x}{\log_b a}.

How to solve equations with exponentials or logs

  1. Step 1: If an exponential is alone on one side, take logs of both sides.
  2. Step 2: If you see a2xa^{2x} and axa^x together, it is a quadratic in disguise: a2x=(ax)2a^{2x} = (a^x)^2, so substitute u=axu = a^x.
  3. Step 3: If the equation has several logs, use the laws to combine them into a single log on each side, then remove the logs (log⁡aP=log⁡aQ\log_a P = \log_a Q means P=QP = Q; log⁡aP=c\log_a P = c means P=acP = a^c).
  4. Step 4: Check every answer in the original equation: logs of negative numbers are undefined, and axa^x can never be negative.

Worked example

A hidden quadraticexam standard

Solve 22x−5×2x+4=02^{2x} - 5 \times 2^x + 4 = 0.

Show solution
  1. 22x=(2x)22^{2x} = (2^x)^2, so let u=2xu = 2^x: u2−5u+4=0u^2 - 5u + 4 = 0.
  2. (u−1)(u−4)=0(u - 1)(u - 4) = 0, so u=1u = 1 or u=4u = 4.
  3. 2x=12^x = 1 gives x=0x = 0; 2x=42^x = 4 gives x=2x = 2.

The same method solves e2x−4ex+3=0e^{2x} - 4e^x + 3 = 0: ex=1e^x = 1 or 33, so x=0x = 0 or x=ln⁡3x = \ln 3. If a value of uu came out negative, it would be rejected, since ex>0e^x > 0.

Worked example

Log equations with a rejected roottop grade

a) Solve ln⁡(x+3)+ln⁡(x−1)=ln⁡5\ln(x + 3) + \ln(x - 1) = \ln 5. b) Solve log⁡2x+log⁡2(x−2)=3\log_2 x + \log_2(x - 2) = 3.

Show solution
  1. a) Combine the left side: ln⁡[(x+3)(x−1)]=ln⁡5\ln[(x + 3)(x - 1)] = \ln 5, so (x+3)(x−1)=5(x + 3)(x - 1) = 5.
  2. Expand: x2+2x−8=0x^2 + 2x - 8 = 0, so (x+4)(x−2)=0(x + 4)(x - 2) = 0, giving x=−4x = -4 or x=2x = 2.
  3. Check: x=−4x = -4 makes ln⁡(x+3)=ln⁡(−1)\ln(x + 3) = \ln(-1), undefined, so reject it. The answer is x=2x = 2.
  4. b) Combine: log⁡2[x(x−2)]=3\log_2[x(x - 2)] = 3, so x(x−2)=23=8x(x - 2) = 2^3 = 8.
  5. x2−2x−8=0x^2 - 2x - 8 = 0, (x−4)(x+2)=0(x - 4)(x + 2) = 0. Reject x=−2x = -2 (we need x>2x > 2), so x=4x = 4.

Worked example

Unknowns in two powerstop grade

Solve 32x+1=5x3^{2x + 1} = 5^{x}, giving xx to 3 significant figures.

Show solution
  1. Different bases, so take ln of both sides: (2x+1)ln⁡3=xln⁡5(2x + 1)\ln 3 = x\ln 5.
  2. Expand and collect the xx terms: 2xln⁡3−xln⁡5=−ln⁡32x\ln 3 - x\ln 5 = -\ln 3, so x(2ln⁡3−ln⁡5)=−ln⁡3x(2\ln 3 - \ln 5) = -\ln 3.
  3. x=−ln⁡32ln⁡3−ln⁡5=−1.09860.5878=−1.87x = \frac{-\ln 3}{2\ln 3 - \ln 5} = \frac{-1.0986}{0.5878} = -1.87 (3 s.f.).

Practise this topic

Both are part of Premium.