Logarithms and the Laws of Logarithms

A2 · P3 · 10 min

A logarithm answers the question "what power?". log⁡28=3\log_2 8 = 3 because 23=82^3 = 8. Every law of logarithms is a law of indices in disguise, and once you see that, the laws stop being things to memorise and become things you can rebuild in seconds. Logarithms are used throughout P3: to solve equations with the unknown in a power, to turn curved data into straight lines, and in every integral that produces ln⁡\ln.

Logarithms are powers

Definition

For a base b>0b > 0 with b≠1b \ne 1, and x>0x > 0,

log⁡bx=y  ⟺  by=x.\log_b x = y \iff b^y = x.

log⁡bx\log_b x is the power to which bb must be raised to give xx.

Read it aloud as "log base bb of xx is the power you put on bb to get xx". Some values to make it concrete:

Index formLog form
25=322^5 = 32log⁡232=5\log_2 32 = 5
10−2=0.0110^{-2} = 0.01log⁡100.01=−2\log_{10} 0.01 = -2
91/2=39^{1/2} = 3log⁡93=12\log_9 3 = \tfrac{1}{2}
50=15^0 = 1log⁡51=0\log_5 1 = 0
e1=ee^1 = eln⁡e=1\ln e = 1

Two bases have their own notation:

  • lg⁡x\lg x or log⁡x\log x means log⁡10x\log_{10} x (the common logarithm).
  • ln⁡x\ln x means log⁡ex\log_e x (the natural logarithm), where e≈2.71828e \approx 2.71828; see the exponential function and natural logarithm.

Since byb^y is always positive, you can only take the logarithm of a positive number. log⁡20\log_2 0 and log⁡2(−4)\log_2(-4) do not exist. This restriction matters every time you solve a log equation.

Key result

Immediate consequences of the definition, for b>0b > 0, b≠1b \ne 1:

log⁡b1=0,log⁡bb=1,log⁡b(bk)=k,blog⁡bx=x  (x>0).\log_b 1 = 0, \qquad \log_b b = 1, \qquad \log_b(b^k) = k, \qquad b^{\log_b x} = x \ \ (x > 0).

The last two say that "log⁡b\log_b" and "bb to the power" undo each other: they are inverse functions.

Evaluating logarithms

Find the exact values of (a) log⁡3181\log_3 \tfrac{1}{81}, (b) log⁡82\log_8 2, (c) log⁡48\log_4 8.

Solution

Write each number as a power of the base.

(a) 181=3−4\tfrac{1}{81} = 3^{-4}, so log⁡3181=−4\log_3 \tfrac{1}{81} = -4.

(b) 2=81/32 = 8^{1/3}, since 83=2\sqrt[3]{8} = 2. So log⁡82=13\log_8 2 = \tfrac{1}{3}.

(c) 8=238 = 2^3 and 4=224 = 2^2, so 8=43/28 = 4^{3/2} (as 43/2=(4)3=84^{3/2} = (\sqrt{4})^3 = 8). So log⁡48=32\log_4 8 = \tfrac{3}{2}.

The three laws

Key result

For p>0p > 0, q>0q > 0, any real kk, and a fixed base bb:

log⁡b(pq)=log⁡bp+log⁡bq\log_b(pq) = \log_b p + \log_b qlog⁡b(pq)=log⁡bp−log⁡bq\log_b\left(\frac{p}{q}\right) = \log_b p - \log_b qlog⁡b(pk)=klog⁡bp\log_b(p^k) = k\log_b p

Special cases: log⁡b(1q)=−log⁡bq\log_b\left(\dfrac{1}{q}\right) = -\log_b q and log⁡bp=12log⁡bp\log_b \sqrt{p} = \tfrac{1}{2}\log_b p.

The laws come from the laws of indices

Let log⁡bp=m\log_b p = m and log⁡bq=n\log_b q = n, so p=bmp = b^m and q=bnq = b^n.

Multiplication: pq=bmbn=bm+npq = b^m b^n = b^{m + n}, so log⁡b(pq)=m+n=log⁡bp+log⁡bq\log_b(pq) = m + n = \log_b p + \log_b q.

Division: pq=bm−n\dfrac{p}{q} = b^{m - n}, so log⁡bpq=m−n\log_b\dfrac{p}{q} = m - n.

Powers: pk=(bm)k=bkmp^k = (b^m)^k = b^{km}, so log⁡b(pk)=km=klog⁡bp\log_b(p^k) = km = k\log_b p.

So "multiplying numbers adds their logs" because "multiplying powers adds the indices". This is exactly why logs were invented: they turn multiplication into addition.

Watch out

The laws do not say anything about the log of a sum. log⁡(p+q)\log(p + q) is not log⁡p+log⁡q\log p + \log q, and it cannot be simplified. Similarly (log⁡p)2≠2log⁡p(\log p)^2 \ne 2\log p and log⁡plog⁡q≠log⁡pq\dfrac{\log p}{\log q} \ne \log\dfrac{p}{q}.

Tip

The syllabus excludes the change-of-base formula log⁡bx=ln⁡xln⁡b\log_b x = \dfrac{\ln x}{\ln b}, so you will not be asked to use or prove it. It is still a handy way to check an answer on a calculator.

Simplifying and combining

To write several logs as one, first move every coefficient inside as a power (the power law), then combine with the product and quotient laws.

Combining into a single logarithm

Express 2ln⁡3−ln⁡6+12ln⁡162\ln 3 - \ln 6 + \tfrac{1}{2}\ln 16 as a single logarithm in its simplest form.

Solution

Powers first: 2ln⁡3=ln⁡92\ln 3 = \ln 9 and 12ln⁡16=ln⁡161/2=ln⁡4\tfrac{1}{2}\ln 16 = \ln 16^{1/2} = \ln 4.

ln⁡9−ln⁡6+ln⁡4=ln⁡9×46=ln⁡6.\ln 9 - \ln 6 + \ln 4 = \ln\frac{9 \times 4}{6} = \ln 6.
Expressing in terms of given logs

Given that ln⁡x=p\ln x = p and ln⁡y=q\ln y = q, express ln⁡(x3ye2)\ln\left(\dfrac{x^3\sqrt{y}}{e^2}\right) in terms of pp and qq.

Solutionln⁡(x3ye2)=ln⁡(x3)+ln⁡(y1/2)−ln⁡(e2)=3ln⁡x+12ln⁡y−2=3p+12q−2.\ln\left(\frac{x^3\sqrt{y}}{e^2}\right) = \ln(x^3) + \ln(y^{1/2}) - \ln(e^2) = 3\ln x + \tfrac{1}{2}\ln y - 2 = 3p + \tfrac{1}{2}q - 2.

(Using ln⁡(e2)=2\ln(e^2) = 2.)

Solving equations involving logarithms

There are two standard moves:

  • Combine the logs on each side into a single log, then
  • Undo the log by raising the base to each side: log⁡b(…)=c⇒(…)=bc\log_b(\ldots) = c \Rightarrow (\ldots) = b^c, or, if both sides are single logs to the same base, log⁡bA=log⁡bB⇒A=B\log_b A = \log_b B \Rightarrow A = B.

Then solve the resulting ordinary equation, and check every solution in the original equation, because each log needs a positive argument.

Solving a logarithmic equation
  1. Note the domain: every expression inside a log must be positive.
  2. Use the laws to combine the logs into one log on each side (move numbers like 1=log⁡bb1 = \log_b b or 2=log⁡bb22 = \log_b b^2 into log form if needed).
  3. Remove the logs: log⁡bA=c⇒A=bc\log_b A = c \Rightarrow A = b^c, or log⁡bA=log⁡bB⇒A=B\log_b A = \log_b B \Rightarrow A = B.
  4. Solve the resulting algebraic equation.
  5. Reject any solution that makes an argument of a log zero or negative.
Two logs equal to a number

Solve log⁡2(x+3)+log⁡2x=2\log_2(x + 3) + \log_2 x = 2.

Solution

Domain: x+3>0x + 3 > 0 and x>0x > 0, so x>0x > 0.

log⁡2(x(x+3))=2⇒x2+3x=22=4⇒x2+3x−4=0⇒(x+4)(x−1)=0.\log_2\big(x(x + 3)\big) = 2 \quad\Rightarrow\quad x^2 + 3x = 2^2 = 4 \quad\Rightarrow\quad x^2 + 3x - 4 = 0 \quad\Rightarrow\quad (x + 4)(x - 1) = 0.

x=−4x = -4 is outside the domain (log⁡2(−4)\log_2(-4) is undefined), so reject it. The solution is x=1x = 1.

Check: log⁡24+log⁡21=2+0=2\log_2 4 + \log_2 1 = 2 + 0 = 2.

Logs on both sides

Solve 2log⁡3x−log⁡3(x−2)=22\log_3 x - \log_3(x - 2) = 2.

Solution

Domain: x>2x > 2.

log⁡3x2x−2=2⇒x2x−2=9⇒x2=9x−18⇒x2−9x+18=0.\log_3\frac{x^2}{x - 2} = 2 \quad\Rightarrow\quad \frac{x^2}{x - 2} = 9 \quad\Rightarrow\quad x^2 = 9x - 18 \quad\Rightarrow\quad x^2 - 9x + 18 = 0.

(x−3)(x−6)=0(x - 3)(x - 6) = 0, so x=3x = 3 or x=6x = 6. Both are greater than 22, so both are valid.

Check x=3x = 3: 2log⁡33−log⁡31=2−0=22\log_3 3 - \log_3 1 = 2 - 0 = 2. Check x=6x = 6: log⁡336−log⁡34=log⁡39=2\log_3 36 - \log_3 4 = \log_3 9 = 2.

An equation with no solution

Solve ln⁡(2x−1)=1+ln⁡x\ln(2x - 1) = 1 + \ln x.

Solution

Domain: x>12x > \tfrac{1}{2}.

Write 1=ln⁡e1 = \ln e: ln⁡(2x−1)=ln⁡e+ln⁡x=ln⁡(ex)\ln(2x - 1) = \ln e + \ln x = \ln(ex). So

2x−1=ex⇒x(2−e)=1⇒x=12−e≈−1.39.2x - 1 = ex \quad\Rightarrow\quad x(2 - e) = 1 \quad\Rightarrow\quad x = \frac{1}{2 - e} \approx -1.39.

This is not greater than 12\tfrac{1}{2} (it is negative, so ln⁡x\ln x does not even exist). The equation has no solution.

Watch out

"Undoing" the log must be done to the whole side. From ln⁡(2x−1)=1+ln⁡x\ln(2x - 1) = 1 + \ln x you cannot write 2x−1=e+x2x - 1 = e + x. First combine the right-hand side into a single log, ln⁡(ex)\ln(ex), and only then remove the logs.

Rearranging relationships

Questions often give a relationship between xx and yy in log form and ask for yy in terms of xx with no logs. Combine into a single log on each side, then remove the logs.

Removing logs from a relationship

Given that ln⁡(y+1)−ln⁡y=2ln⁡x+ln⁡3\ln(y + 1) - \ln y = 2\ln x + \ln 3, express yy in terms of xx.

Solutionln⁡y+1y=ln⁡(3x2)⇒y+1y=3x2⇒y+1=3x2y.\ln\frac{y + 1}{y} = \ln(3x^2) \quad\Rightarrow\quad \frac{y + 1}{y} = 3x^2 \quad\Rightarrow\quad y + 1 = 3x^2y.

Collect the yy terms: 1=y(3x2−1)1 = y(3x^2 - 1), so

y=13x2−1.y = \frac{1}{3x^2 - 1}.

Common mistakes

Watch out

Splitting a log of a sum. ln⁡(x+3)≠ln⁡x+ln⁡3\ln(x + 3) \ne \ln x + \ln 3. Only products, quotients and powers can be split.

Watch out

Applying the power law to only part of a term. log⁡(2x)3=3log⁡(2x)\log(2x)^3 = 3\log(2x), but log⁡(2x3)=log⁡2+3log⁡x\log(2x^3) = \log 2 + 3\log x. Brackets decide what the power applies to.

Watch out

Keeping solutions outside the domain. Every argument of every log in the original equation must be positive. Check each solution and reject with a reason, for example "x=−4x = -4 rejected since log⁡2(−4)\log_2(-4) is undefined".

Watch out

Treating ln⁡\ln as a number that can be cancelled. ln⁡8ln⁡2\dfrac{\ln 8}{\ln 2} is 33 (because ln⁡8=3ln⁡2\ln 8 = 3\ln 2), not ln⁡4\ln 4.

Exam tip
  • "Exact value" means leave answers like ln⁡6\ln 6, 12−e\tfrac{1}{2 - e} or ln⁡12ln⁡(16/3)\dfrac{\ln 12}{\ln(16/3)}; do not convert to decimals.
  • Show the combination step explicitly, such as log⁡2(x(x+3))=2\log_2\big(x(x + 3)\big) = 2, then the line without logs. Examiners award a method mark for each.
  • When rejecting a root, state the reason. A bare "x=1x = 1" after finding x=−4x = -4 and x=1x = 1 often loses the final mark.
  • ln⁡\ln and lg⁡\lg are both on your calculator; check numerical answers by substituting back.

Summary

Summary
  • log⁡bx=y  ⟺  by=x\log_b x = y \iff b^y = x; logs exist only for positive xx.
  • log⁡b1=0\log_b 1 = 0, log⁡bb=1\log_b b = 1, log⁡bbk=k\log_b b^k = k, blog⁡bx=xb^{\log_b x} = x.
  • log⁡(pq)=log⁡p+log⁡q\log(pq) = \log p + \log q, log⁡pq=log⁡p−log⁡q\log\dfrac{p}{q} = \log p - \log q, log⁡pk=klog⁡p\log p^k = k\log p; these come from the laws of indices.
  • There is no law for log⁡(p+q)\log(p + q).
  • To solve: combine to a single log on each side, remove the logs, solve, reject anything outside the domain.
  • ln⁡\ln is log⁡e\log_e, lg⁡\lg is log⁡10\log_{10}; change of base is not examined.

Practice

Question
  1. Find the exact values of log⁡5125\log_5 125, log⁡2116\log_2 \tfrac{1}{16}, log⁡927\log_9 27 and log⁡1/28\log_{1/2} 8.
  2. Show that 3lg⁡2+lg⁡5−lg⁡4=13\lg 2 + \lg 5 - \lg 4 = 1.
  3. Given ln⁡x=p\ln x = p and ln⁡y=q\ln y = q, express ln⁡(ex2y)\ln\left(\dfrac{ex^2}{\sqrt{y}}\right) in terms of pp and qq.
  4. Simplify log⁡354−log⁡32\log_3 54 - \log_3 2.
  5. Solve log⁡2(x+1)−log⁡2(x−2)=2\log_2(x + 1) - \log_2(x - 2) = 2.
  6. Solve lg⁡x+lg⁡(x−3)=1\lg x + \lg(x - 3) = 1.
  7. Solve ln⁡(x+2)=2ln⁡x+ln⁡2\ln(x + 2) = 2\ln x + \ln 2, giving your answer in exact form.
  8. Express yy in terms of xx, without logarithms: (a) ln⁡y=2+3ln⁡x\ln y = 2 + 3\ln x; (b) log⁡2y=3−log⁡2x\log_2 y = 3 - \log_2 x.
  9. Given that 2ln⁡(x−y)=ln⁡x+ln⁡y2\ln(x - y) = \ln x + \ln y, where x>y>0x > y > 0, show that x2−3xy+y2=0x^2 - 3xy + y^2 = 0, and hence find the exact value of xy\dfrac{x}{y}.
Answers
  1. 125=53125 = 5^3, so 33. 116=2−4\tfrac{1}{16} = 2^{-4}, so −4-4. 27=93/227 = 9^{3/2}, so 32\tfrac{3}{2}. 8=(12)−38 = \left(\tfrac{1}{2}\right)^{-3}, so −3-3.

  2. lg⁡8+lg⁡5−lg⁡4=lg⁡8×54=lg⁡10=1\lg 8 + \lg 5 - \lg 4 = \lg\dfrac{8 \times 5}{4} = \lg 10 = 1.

  3. ln⁡e+2ln⁡x−12ln⁡y=1+2p−12q\ln e + 2\ln x - \tfrac{1}{2}\ln y = 1 + 2p - \tfrac{1}{2}q.

  4. log⁡3542=log⁡327=3\log_3 \tfrac{54}{2} = \log_3 27 = 3.

  5. Domain x>2x > 2. log⁡2x+1x−2=2⇒x+1x−2=4⇒x+1=4x−8⇒x=3\log_2\dfrac{x + 1}{x - 2} = 2 \Rightarrow \dfrac{x + 1}{x - 2} = 4 \Rightarrow x + 1 = 4x - 8 \Rightarrow x = 3. Valid.

  6. Domain x>3x > 3. lg⁡(x(x−3))=1⇒x2−3x=10⇒(x−5)(x+2)=0\lg\big(x(x - 3)\big) = 1 \Rightarrow x^2 - 3x = 10 \Rightarrow (x - 5)(x + 2) = 0. Reject x=−2x = -2; x=5x = 5.

  7. Domain x>0x > 0. ln⁡(x+2)=ln⁡(2x2)⇒2x2−x−2=0⇒x=1±174\ln(x + 2) = \ln(2x^2) \Rightarrow 2x^2 - x - 2 = 0 \Rightarrow x = \dfrac{1 \pm \sqrt{17}}{4}. The negative root is rejected, so x=1+174x = \dfrac{1 + \sqrt{17}}{4} (≈1.28\approx 1.28).

  8. (a) ln⁡y=ln⁡e2+ln⁡x3=ln⁡(e2x3)\ln y = \ln e^2 + \ln x^3 = \ln(e^2x^3), so y=e2x3y = e^2x^3. (b) log⁡2y+log⁡2x=3⇒xy=8⇒y=8x\log_2 y + \log_2 x = 3 \Rightarrow xy = 8 \Rightarrow y = \dfrac{8}{x}.

  9. ln⁡(x−y)2=ln⁡(xy)⇒(x−y)2=xy⇒x2−2xy+y2=xy⇒x2−3xy+y2=0\ln(x - y)^2 = \ln(xy) \Rightarrow (x - y)^2 = xy \Rightarrow x^2 - 2xy + y^2 = xy \Rightarrow x^2 - 3xy + y^2 = 0. Divide by y2y^2 and let t=xyt = \tfrac{x}{y}: t2−3t+1=0t^2 - 3t + 1 = 0, so t=3±52t = \dfrac{3 \pm \sqrt{5}}{2}. Since x>yx > y, t>1t > 1, so xy=3+52\dfrac{x}{y} = \dfrac{3 + \sqrt{5}}{2}. (The other root, 3−52≈0.38\tfrac{3 - \sqrt{5}}{2} \approx 0.38, would give x<yx < y, making ln⁡(x−y)\ln(x - y) undefined.)

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action