← Daruma EducationHome

Laws of Logarithms

Logarithms (or logs) were invented back in 1614 by John Napier to save astronomers time when calculating. His goal was to turn long multiplications into simple additions, centuries before we all had a calculator in our pocket, but logarithms are still useful in many fields.

Logarithms all start with a key definition, and really this is the only bit we need to memorise, as everything that follows is just a different way of seeing what we already know.

Building New Knowledge

The Crucial Definition

Definition: A logarithm always represents an index\textcolor{orange}{\text{index}}: the index\textcolor{orange}{\text{index}} we raise some base number\textcolor{blue}{\text{base number}} to, to equal a target number\textcolor{red}{\text{target number}}. We say “log base a\textcolor{blue}{a} of b\textcolor{red}{b} equals c\textcolor{orange}{c}”.

log⁡ab=c  ⟺  ac=b\log_{\textcolor{blue}{a}} \textcolor{red}{b} = \textcolor{orange}{c} \iff \textcolor{blue}{a}^{\textcolor{orange}{c}} = \textcolor{red}{b}

Not all numbers work in this definition. Which logs can’t we resolve?

Key Example:

log⁡28=3  ⟺  23=8\log_{\textcolor{blue}{2}} \textcolor{red}{8} = \textcolor{orange}{3} \iff \textcolor{blue}{2}^{\textcolor{orange}{3}} = \textcolor{red}{8}

Consider: What do log⁡416\log_4 16 and log⁡313\log_3 \dfrac{1}{3} equal?

Answers log⁡416=2  ⟺  42=16\log_{\textcolor{blue}{4}} \textcolor{red}{16} = \textcolor{orange}{2} \iff \textcolor{blue}{4}^{\textcolor{orange}{2}} = \textcolor{red}{16} log⁡313=−1  ⟺  3−1=13\log_{\textcolor{blue}{3}} \textcolor{red}{\frac{1}{3}} = \textcolor{orange}{-1} \iff \textcolor{blue}{3}^{\textcolor{orange}{-1}} = \textcolor{red}{\frac{1}{3}}
How I remember it

If, when you see a log, you’re struggling to think of it in index form, I read the log form in a known order, a\textcolor{blue}{a}, b\textcolor{red}{b}, c\textcolor{orange}{c}. Then I know that when I convert it into index form, I just switch b\textcolor{red}{b} and c\textcolor{orange}{c}. So I remember: “log base a\textcolor{blue}{a} of b\textcolor{red}{b} equals c\textcolor{orange}{c} means a\textcolor{blue}{a} to the power of c\textcolor{orange}{c} equals b\textcolor{red}{b}.”

The base\textcolor{blue}{\text{base}} a\textcolor{blue}{a} stays on the bottom in both forms; only the target\textcolor{red}{\text{target}} b\textcolor{red}{b} and the index\textcolor{orange}{\text{index}} c\textcolor{orange}{c} switch. We also call the bottom number the base in both an index (5.1.1) and a log, which reminds us they’re the same number.

Which numbers have Logs?

Consider: What question are the logs below asking? Which of them have real number answers?

Answers
  • They are all asking which index you need to raise the base 2 to in order to hit the target
  • log⁡2(−8)\log_2 (-8) doesn’t exist: 22 to any index is positive.
  • log⁡20.001≈−9.97\log_2 0.001 \approx -9.97, because 2−10=11024≈0.000982^{-10} = \dfrac{1}{1024} \approx 0.00098 is just under 0.0010.001. A tiny target needs a large negative index.
  • log⁡21 000 000≈19.93\log_2 1\,000\,000 \approx 19.93, because 220=1 048 5762^{20} = 1\,048\,576 is just over a million.
  • log⁡20\log_2 0 doesn’t exist either: the more negative the index, the closer 22 to that index gets to 00, but it never reaches it.
The graph of y = 2 to the x. It rises steeply on the right and flattens towards the x-axis on the left without touching it. A dashed line at y = -8 never meets the curve, and the curve never touches y = 0, so log base 2 of -8 and log base 2 of 0 do not exist. Arrows show that (-9.97, 0.001) is far off to the left and (19.93, 1,000,000) is far off the top.
What if the base is 1?

11 to any index is 11, so log⁡110\log_1 10 has no answer, and log⁡11\log_1 1 could be any number at all. Hence log base 1 is not of interest to us.

What about a negative base?

With base −2-2, the answers flip between positive and negative: (−2)2=4(-2)^2 = 4, but (−2)3=−8(-2)^3 = -8. So log⁡−24=2\log_{-2} 4 = 2 works, but log⁡−28\log_{-2} 8 has no answer.

Many fractional indices fail too: (−2)12=−2(-2)^{\frac{1}{2}} = \sqrt{-2} isn’t a real number (5.1.9).

So the graph of y=(−2)xy = (-2)^x isn’t a smooth curve at all. It’s separate points, jumping between y=2xy = 2^x and y=−2xy = -2^x:

Separate points for y = (-2) to the x at whole-number x from -3 to 4, jumping between the dashed curves y = 2 to the x and y = -2 to the x. A hollow circle at (3, 8) marks a target that no index reaches.

So we only ever use a positive base (other than 11). Then every positive target has exactly one log, the graph is a smooth curve, and every law we build next works.

Conclusion: Hence, our full definition, of a log needs these conditions:

log⁡ab=c  ⟺  ac=bfor a>0,  a≠1,  b>0\log_{\textcolor{blue}{a}} \textcolor{red}{b} = \textcolor{orange}{c} \iff \textcolor{blue}{a}^{\textcolor{orange}{c}} = \textcolor{red}{b} \qquad \text{for } \textcolor{blue}{a} > 0, \; \textcolor{blue}{a} \neq 1, \; \textcolor{red}{b} > 0

Note: If no base is written, log⁡\log means base 1010, so log⁡100=2  ⟺  102=100\log 100 = 2 \iff 10^{2} = 100.

Now using our new definition, we can convert between logs and indices and see what happens to our previous rules.

First, we know some identities about indices, which give us some easy first results for logs.

Log of the Base

We know any number to the power of 1 is itself, which has an analogous version in logs.

Key Example: log⁡77=1  ⟺  71=7\log_{7} 7 = 1 \iff 7^{1} = 7

Any base to the index 11 is just the base (5.1.1).

Conclusion:

log⁡aa=1for a>0,  a≠1\log_a a = 1 \qquad \text{for } a > 0, \; a \neq 1

Log of One

We know any number to the power of 0 is 1, which tells us another identity in logs.

Key Example: log⁡51=0  ⟺  50=1\log_{5} 1 = 0 \iff 5^{0} = 1

Any base to the index 00 is 11 (5.1.6).

Conclusion:

log⁡a1=0for a>0,  a≠1\log_a 1 = 0 \qquad \text{for } a > 0, \; a \neq 1

Multiplication Law

Key Example: Compare log⁡2(8×4)\log_2 (8 \times 4) with log⁡28+log⁡24\log_2 8 + \log_2 4:

log⁡2(8×4)=log⁡232=5log⁡28+log⁡24=3+2=5\begin{aligned} \log_2 (8 \times 4) &= \log_2 32 = 5 \\ \log_2 8 + \log_2 4 &= 3 + 2 = 5 \end{aligned}

Note: What is happening here? 8×4=23×22=23+28 \times 4 = 2^3 \times 2^2 = 2^{3+2} by 5.1.4. Multiplying the numbers adds their indices, and logs are indices.

General Proof: To show this works for any xx and yy, we go into index form, use a rule of indices, and convert back:

log⁡ax=m,log⁡ay=n(1)x=am,y=an(2)xy=am×an=am+n(3)log⁡a(xy)=m+n(4)log⁡a(xy)=log⁡ax+log⁡ay(5)\begin{aligned} \log_a x &= m, \quad \log_a y = n && (1) \\[8pt] x &= a^m, \quad y = a^n && (2) \\[8pt] xy &= a^m \times a^n = a^{m+n} && (3) \\[8pt] \log_a (xy) &= m + n && (4) \\[8pt] \log_a (xy) &= \log_a x + \log_a y && (5) \end{aligned}

Annotations:
(1) Name two logs, where x,y>0x, y > 0 and m,n∈Rm, n \in \mathbb{R}.
(2) Log form to index form by definition, 6.1.1.
(3) If Add the indices, 5.1.4.
(4) Line (3) gives us an expression that matches one side of our log definition xy=am+nxy = a^{m+n} as xyxy and m+nm + n are just new numbers. Hence, we can convert Index form to log form by definition, 6.1.1, which applies as xy>0xy > 0 and m+n∈Rm + n \in \mathbb{R}.
(5) Convert mm and nn back into our starting definitions from (1).

Conclusion:

log⁡a(xy)=log⁡ax+log⁡ayfor a>0,  a≠1,  x,y>0\log_a (xy) = \log_a x + \log_a y \qquad \text{for } a > 0, \; a \neq 1, \; x, y > 0
How to remember this

I always remember that a log represents an index. So when I see two logs added together, I think: we’ve got two indices added together. Where have I seen that? Oh, when two indices of the same base are multiplied.

Historical Use

This law is why logs were invented. To multiply two big numbers, an astronomer looked up both their logs in a printed table, added the logs, then looked up which number had that new total as its log. One addition and three look-ups replaced a long and tedious multiplication.

Consider: What is log⁡2(1024×4096)\log_2 (1024 \times 4096)?

Answer

log⁡21024+log⁡24096=10+12=22\log_2 1024 + \log_2 4096 = 10 + 12 = 22

In index form: 1024×4096=210×212=2221024 \times 4096 = 2^{10} \times 2^{12} = 2^{22}

Division Law

Key Example: Compare log⁡2(324)\log_2 \left(\dfrac{32}{4}\right) with log⁡232−log⁡24\log_2 32 - \log_2 4:

log⁡2(324)=log⁡28=3log⁡232−log⁡24=5−2=3\begin{aligned} \log_2 \left(\frac{32}{4}\right) &= \log_2 8 = 3 \\ \log_2 32 - \log_2 4 &= 5 - 2 = 3 \end{aligned}

General Proof: The same steps as the Multiplication Law, but dividing:

log⁡ax=m,log⁡ay=n(1)x=am,y=an(2)xy=aman=am−n(3)log⁡a(xy)=m−n(4)log⁡a(xy)=log⁡ax−log⁡ay(5)\begin{aligned} \log_a x &= m, \quad \log_a y = n && (1) \\[8pt] x &= a^m, \quad y = a^n && (2) \\[8pt] \frac{x}{y} &= \frac{a^m}{a^n} = a^{m-n} && (3) \\[8pt] \log_a \left(\frac{x}{y}\right) &= m - n && (4) \\[8pt] \log_a \left(\frac{x}{y}\right) &= \log_a x - \log_a y && (5) \end{aligned}

(1) Name two logs, where x,y>0x, y > 0 and m,n∈Rm, n \in \mathbb{R}.
(2) Log form to index form by definition, 6.1.1.
(3) Subtract the indices, 5.1.5.
(4) Index form to log form by definition, 6.1.1, which applies as xy>0\dfrac{x}{y} > 0 and m−n∈Rm - n \in \mathbb{R}.
(5) Convert mm and nn back into our starting definitions from (1).

Conclusion:

log⁡a(xy)=log⁡ax−log⁡ayfor a>0,  a≠1,  x,y>0\log_a \left(\frac{x}{y}\right) = \log_a x - \log_a y \qquad \text{for } a > 0, \; a \neq 1, \; x, y > 0

Consider: What is log⁡2(4096256)\log_2 \left(\dfrac{4096}{256}\right)?

Answer

log⁡24096−log⁡2256=12−8=4\log_2 4096 - \log_2 256 = 12 - 8 = 4.

In index form: 4096256=21228=24\dfrac{4096}{256} = \dfrac{2^{12}}{2^8} = 2^4

Power Law

Key Example: Compare log⁡2(43)\log_2 \left(4^3\right) with 3log⁡243 \log_2 4:

log⁡2(43)=log⁡264=63log⁡24=3×2=6\begin{aligned} \log_2 \left(4^3\right) &= \log_2 64 = 6 \\ 3 \log_2 4 &= 3 \times 2 = 6 \end{aligned}

General Proof: This time there’s only one log to name:

log⁡ax=m(1)x=am(2)xk=(am)k=amk(3)log⁡a(xk)=mk(4)log⁡a(xk)=klog⁡ax(5)\begin{aligned} \log_a x &= m && (1) \\[8pt] x &= a^m && (2) \\[8pt] x^k &= \left(a^m\right)^k = a^{mk} && (3) \\[8pt] \log_a \left(x^k\right) &= mk && (4) \\[8pt] \log_a \left(x^k\right) &= k \log_a x && (5) \end{aligned}

(1) Name a log, where x>0x > 0 and m,k∈Rm, k \in \mathbb{R}.
(2) Log form to index form by definition, 6.1.1.
(3) Multiply the indices, 5.1.8.
(4) Index form to log form by definition, 6.1.1, which applies as xk>0x^k > 0 and mk∈Rmk \in \mathbb{R}.
(5) Convert mm back into our starting definition from (1).

Conclusion:

log⁡a(xk)=klog⁡axfor a>0,  a≠1,  x>0,  k∈R\log_a \left(x^k\right) = k \log_a x \qquad \text{for } a > 0, \; a \neq 1, \; x > 0, \; k \in \mathbb{R}

Consider: What is log⁡2(3210)\log_2 \left(32^{10}\right)?

Answer

log⁡2(3210)=10log⁡232=10×5=50\log_2 \left(32^{10}\right) = 10 \log_2 32 = 10 \times 5 = 50

In index form: 3210=(25)10=25032^{10} = \left(2^5\right)^{10} = 2^{50}

Change of Base

Key Example: Compare log⁡84\log_8 4 with log⁡24log⁡28\dfrac{\log_2 4}{\log_2 8}:

log⁡84=23, because 823=(83)2=22=4log⁡24log⁡28=23\begin{aligned} \log_8 4 &= \frac{2}{3}, \text{ because } 8^{\frac{2}{3}} = \left(\sqrt[3]{8}\right)^2 = 2^2 = 4 \\ \frac{\log_2 4}{\log_2 8} &= \frac{2}{3} \end{aligned}

Note: What is happening here? 8=238 = 2^3, so 2=8132 = 8^{\frac{1}{3}} and 4=22=8234 = 2^2 = 8^{\frac{2}{3}} by 5.1.8. In base 22, the indices of 44 and 88 are 22 and 33, and the index in base 88 is the first divided by the second.

General Proof: We name two logs, one in each base, and use the second to write aa as a power of bb:

log⁡ax=m,log⁡ba=p(1)x=am,a=bp(2)x=(bp)m=bpm(3)log⁡bx=pm(4)log⁡bx=log⁡ba×log⁡ax(5)log⁡ax=log⁡bxlog⁡ba(6)\begin{aligned} \log_a x &= m, \quad \log_b a = p && (1) \\[8pt] x &= a^m, \quad a = b^p && (2) \\[8pt] x &= \left(b^p\right)^m = b^{pm} && (3) \\[8pt] \log_b x &= pm && (4) \\[8pt] \log_b x &= \log_b a \times \log_a x && (5) \\[8pt] \log_a x &= \frac{\log_b x}{\log_b a} && (6) \end{aligned}

(1) Name two logs, where x>0x > 0, b>0b > 0, b≠1b \neq 1 and m,p∈Rm, p \in \mathbb{R}.
(2) Log form to index form by definition, 6.1.1.
(3) Multiply the indices, 5.1.8.
(4) Index form to log form by definition, 6.1.1, which applies as x>0x > 0 and pm∈Rpm \in \mathbb{R}.
(5) Convert mm and pp back into our starting definitions from (1).
(6) Divide by log⁡ba\log_b a, which isn’t 00 as a≠1a \neq 1, 6.1.3.

Conclusion:

log⁡ax=log⁡bxlog⁡bafor a,b>0,  a,b≠1,  x>0\log_a x = \frac{\log_b x}{\log_b a} \qquad \text{for } a, b > 0, \; a, b \neq 1, \; x > 0

Consider: What is log⁡927\log_9 27?

Answer

log⁡327log⁡39=32\dfrac{\log_3 27}{\log_3 9} = \dfrac{3}{2}

In index form: 932=(32)32=33=279^{\frac{3}{2}} = \left(3^2\right)^{\frac{3}{2}} = 3^3 = 27

Taking Logs of Both Sides

If two positive numbers are equal, their logs (in the same base) are equal, because a log gives exactly one answer. It works backwards too: equal logs come from equal numbers.

Key Example: From xy=am+nxy = a^{m+n}, take log⁡a\log_a of both sides:

log⁡a(xy)=log⁡a(am+n)=m+n\log_a (xy) = \log_a \left(a^{m+n}\right) = m + n

The last step reads off the index, as in the Consider above.

Conclusion:

p=q  ⟺  log⁡ap=log⁡aqfor p,q>0p = q \iff \log_a p = \log_a q \qquad \text{for } p, q > 0

Notes:

  • You can’t take logs if either side could be 00 or negative.
  • Take the log of the whole side, never term by term: p=q+rp = q + r gives log⁡ap=log⁡a(q+r)\log_a p = \log_a (q + r), not log⁡aq+log⁡ar\log_a q + \log_a r.

Other Examples to Deepen Understanding

The Multiplication Law's Key Example again

With the Power Law, we can work out both sides of the Key Example (6.1.4) by writing 88 and 44 as powers of 22:

log⁡2(8×4)=log⁡2(23×22)(1)=log⁡2(25)(2)=5log⁡22(3)=5(4)\begin{aligned} \log_2 (8 \times 4) &= \log_2 \left(2^3 \times 2^2\right) && (1) \\[8pt] &= \log_2 \left(2^5\right) && (2) \\[8pt] &= 5 \log_2 2 && (3) \\[8pt] &= 5 && (4) \end{aligned}

(1) 88 and 44 as powers of 22.
(2) Add the indices, 5.1.4.
(3) Bring the index down, 6.1.6.
(4) log⁡22=1\log_2 2 = 1, 6.1.2.

log⁡28+log⁡24=log⁡2(23)+log⁡2(22)(1)=3log⁡22+2log⁡22(2)=3+2=5(3)\begin{aligned} \log_2 8 + \log_2 4 &= \log_2 \left(2^3\right) + \log_2 \left(2^2\right) && (1) \\[8pt] &= 3 \log_2 2 + 2 \log_2 2 && (2) \\[8pt] &= 3 + 2 = 5 && (3) \end{aligned}

(1) 88 and 44 as powers of 22.
(2) Bring the indices down, 6.1.6.
(3) log⁡22=1\log_2 2 = 1, 6.1.2.

Both sides come down to the same 3+23 + 2: adding the logs is adding the indices.

The Power Law from the Multiplication Law

Each time we multiply by one more xx, the Multiplication Law (6.1.4) adds one more log⁡ax\log_a x:

log⁡a(x2)=log⁡a(x×x)=log⁡ax+log⁡ax=2log⁡axlog⁡a(x3)=log⁡a(x2×x)=2log⁡ax+log⁡ax=3log⁡axlog⁡a(x4)=log⁡a(x3×x)=3log⁡ax+log⁡ax=4log⁡ax\begin{aligned} \log_a \left(x^2\right) &= \log_a (x \times x) = \log_a x + \log_a x = 2 \log_a x \\ \log_a \left(x^3\right) &= \log_a \left(x^2 \times x\right) = 2 \log_a x + \log_a x = 3 \log_a x \\ \log_a \left(x^4\right) &= \log_a \left(x^3 \times x\right) = 3 \log_a x + \log_a x = 4 \log_a x \end{aligned}

and so on, for any whole number. It reaches fractions too: if y=x13y = x^{\frac{1}{3}}, then y3=xy^3 = x, so 3log⁡ay=log⁡ax3 \log_a y = \log_a x, which gives log⁡a(x13)=13log⁡ax\log_a \left(x^{\frac{1}{3}}\right) = \dfrac{1}{3} \log_a x.

The Division Law from the Multiplication Law

Dividing by yy undoes multiplying by yy, so x=xy×yx = \dfrac{x}{y} \times y:

log⁡ax=log⁡a(xy×y)=log⁡a(xy)+log⁡ay(1)log⁡a(xy)=log⁡ax−log⁡ay(2)\begin{aligned} \log_a x &= \log_a \left(\frac{x}{y} \times y\right) \\[8pt] &= \log_a \left(\frac{x}{y}\right) + \log_a y && (1) \\[8pt] \log_a \left(\frac{x}{y}\right) &= \log_a x - \log_a y && (2) \end{aligned}

(1) Multiplication Law, 6.1.4.
(2) Take log⁡ay\log_a y from both sides.

Change of Base by taking logs of both sides log⁡ax=m(1)am=x(2)log⁡b(am)=log⁡bx(3)mlog⁡ba=log⁡bx(4)m=log⁡bxlog⁡ba(5)log⁡ax=log⁡bxlog⁡ba(6)\begin{aligned} \log_a x &= m && (1) \\[8pt] a^m &= x && (2) \\[8pt] \log_b \left(a^m\right) &= \log_b x && (3) \\[8pt] m \log_b a &= \log_b x && (4) \\[8pt] m &= \frac{\log_b x}{\log_b a} && (5) \\[8pt] \log_a x &= \frac{\log_b x}{\log_b a} && (6) \end{aligned}

(1) Name a log.
(2) Log form to index form by definition, 6.1.1.
(3) Take log⁡b\log_b of both sides, 6.1.8.
(4) Power Law, 6.1.6.
(5) Divide by log⁡ba\log_b a, which isn’t 00 as a≠1a \neq 1, 6.1.3.
(6) Convert mm back into our starting definition from (1).

Logs that cancel like fractions

Change of Base (6.1.7) lets us chain logs together, and the middle base cancels:

log⁡ab×log⁡bc=log⁡ab×log⁡aclog⁡ab=log⁡ac\log_a b \times \log_b c = \log_a b \times \frac{\log_a c}{\log_a b} = \log_a c

It looks like ba×cb=ca\dfrac{b}{a} \times \dfrac{c}{b} = \dfrac{c}{a}. With c=ac = a, we get log⁡ab×log⁡ba=log⁡aa=1\log_a b \times \log_b a = \log_a a = 1, so swapping the base and the target flips the log: log⁡28=3\log_2 8 = 3 and log⁡82=13\log_8 2 = \dfrac{1}{3}.

Logs count repeated multiplication

log⁡2x\log_2 x counts how many times we double, starting from 11, to reach xx: log⁡28=3\log_2 8 = 3, because 1→2→4→81 \to 2 \to 4 \to 8 is three doublings. To reach 8×4=328 \times 4 = 32, we double three times to reach 88, then twice more to multiply by 44: 3+2=53 + 2 = 5 doublings. That’s the Multiplication Law. A negative log counts halvings instead: log⁡214=−2\log_2 \dfrac{1}{4} = -2.

How many digits?

Any number from 10001000 to 99999999 has a base-1010 log from 33 up to (but not including) 44. So a whole number’s digit count is the whole-number part of its log, plus one.

With the Power Law (6.1.6), we can count the digits of 21002^{100} without working it out: log⁡(2100)=100log⁡2≈30.1\log \left(2^{100}\right) = 100 \log 2 \approx 30.1, so 21002^{100} has 3131 digits.

Logs and indices undo each other

Taking log⁡a\log_a undoes raising aa to an index, and raising aa to an index undoes taking log⁡a\log_a:

log⁡a(ak)=kandalog⁡ax=x\log_a \left(a^k\right) = k \qquad \text{and} \qquad a^{\log_a x} = x

The second says: raise aa to the index that turns aa into xx, and you get xx. For example, 2log⁡25=52^{\log_2 5} = 5.

Summary

This is everything you need to make sure you know (and ideally understand).

SectionLawIn symbolsComes from
6.1.1The Definitionlog⁡ab=c  ⟺  ac=b\log_a b = c \iff a^c = b for a>0,  a≠1,  b>0a > 0, \; a \neq 1, \; b > 05.1.1
6.1.2Log of the Baselog⁡aa=1\log_a a = 15.1.1
6.1.3Log of Onelog⁡a1=0\log_a 1 = 05.1.6
6.1.4Multiplication Lawlog⁡a(xy)=log⁡ax+log⁡ay\log_a (xy) = \log_a x + \log_a y5.1.4
6.1.5Division Lawlog⁡a(xy)=log⁡ax−log⁡ay\log_a \left(\dfrac{x}{y}\right) = \log_a x - \log_a y5.1.5
6.1.6Power Lawlog⁡a(xk)=klog⁡ax\log_a \left(x^k\right) = k \log_a x5.1.8
6.1.7Change of Baselog⁡ax=log⁡bxlog⁡ba\log_a x = \dfrac{\log_b x}{\log_b a}5.1.8
6.1.8Taking Logs of Both Sidesp=q  ⟺  log⁡ap=log⁡aqp = q \iff \log_a p = \log_a q6.1.1

Applying to Questions

Every law in the summary is a tool you might need. Just be careful with:

Combining Logs

Questions often ask us to write an expression as a single log, or to split one log into several. Use the Power Law first, to move any number in front into a power, then the Multiplication and Division Laws.

Key Example 1: Write 2log⁡36−log⁡342\log_3 6 - \log_3 4 as a single logarithm, and simplify.

2log⁡36−log⁡34=log⁡3(62)−log⁡34=log⁡3(364)=log⁡39=2\begin{aligned} 2\log_3 6 - \log_3 4 &= \log_3 \left(6^2\right) - \log_3 4 \\ &= \log_3 \left(\frac{36}{4}\right) \\ &= \log_3 9 \\ &= 2 \end{aligned}

Key Example 2: Given that p=log⁡5xp = \log_5 x, express log⁡5(25x3)\log_5 \left(25x^3\right) in terms of pp.

log⁡5(25x3)=log⁡525+log⁡5(x3)=2+3log⁡5x=2+3p\begin{aligned} \log_5 \left(25x^3\right) &= \log_5 25 + \log_5 \left(x^3\right) \\ &= 2 + 3\log_5 x \\ &= 2 + 3p \end{aligned}

Note: We split the product with the 6.1.4, then brought the power down with the 6.1.6.

Key Question 1: Given that q=log⁡3xq = \log_3 x, express log⁡3(9x2)\log_3 \left(\dfrac{9}{x^2}\right) in terms of qq.

Worked solution log⁡3(9x2)=log⁡39−log⁡3(x2)=2−2log⁡3x=2−2q\begin{aligned} \log_3 \left(\frac{9}{x^2}\right) &= \log_3 9 - \log_3 \left(x^2\right) \\ &= 2 - 2\log_3 x \\ &= 2 - 2q \end{aligned}

Key Question 2: Given that a=log⁡2xa = \log_2 x and b=log⁡2(x+8)b = \log_2 (x + 8), express in terms of aa and/or bb:
(a) log⁡2x\log_2 \sqrt{x}
(b) log⁡2(x2+8x)\log_2 \left(x^2 + 8x\right)
(c) log⁡2(8+64x)\log_2 \left(8 + \dfrac{64}{x}\right), giving your answer in simplest form. (June 2023, Paper 1, Q6)

Worked solution

(a) Write the root as a power, then use the Power Law:

log⁡2x=log⁡2(x12)=12log⁡2x=12a\log_2 \sqrt{x} = \log_2 \left(x^{\frac{1}{2}}\right) = \frac{1}{2}\log_2 x = \frac{1}{2}a

(b) Factorise, then use the Multiplication Law:

log⁡2(x2+8x)=log⁡2(x(x+8))=log⁡2x+log⁡2(x+8)=a+b\log_2 \left(x^2 + 8x\right) = \log_2 \big(x(x + 8)\big) = \log_2 x + \log_2 (x + 8) = a + b

(c) Write it as a single fraction and factorise:

log⁡2(8+64x)=log⁡2(8(x+8)x)=log⁡28+log⁡2(x+8)−log⁡2x=3+b−a\begin{aligned} \log_2 \left(8 + \frac{64}{x}\right) &= \log_2 \left(\frac{8(x + 8)}{x}\right) \\ &= \log_2 8 + \log_2 (x + 8) - \log_2 x \\ &= 3 + b - a \end{aligned}

Solving Log Equations

To solve an equation with logs, combine them into a single log, then use the definition to swap the log for a power.

Key Example 1: Solve log⁡2(x+6)−log⁡2x=2\log_2 (x + 6) - \log_2 x = 2.

log⁡2(x+6x)=2⇒x+6x=22x+6=4xx=2\begin{aligned} \log_2 \left(\frac{x + 6}{x}\right) &= 2 \\ \Rightarrow \quad \frac{x + 6}{x} &= 2^2 \\ x + 6 &= 4x \\ x &= 2 \end{aligned}

Note: The second line uses the definition (6.1.1): log⁡2(something)=2\log_2 (\text{something}) = 2 means 22=something2^2 = \text{something}.

Consider: Check the answer. Is log⁡28−log⁡22\log_2 8 - \log_2 2 really 22?

Answer

log⁡28−log⁡22=3−1=2\log_2 8 - \log_2 2 = 3 - 1 = 2

Key Example 2: Solve log⁡4(3x−2)=2+log⁡4(x−2)\log_4 (3x - 2) = 2 + \log_4 (x - 2).

log⁡4(3x−2)−log⁡4(x−2)=2log⁡4(3x−2x−2)=2⇒3x−2x−2=423x−2=16x−3230=13xx=3013\begin{aligned} \log_4 (3x - 2) - \log_4 (x - 2) &= 2 \\ \log_4 \left(\frac{3x - 2}{x - 2}\right) &= 2 \\ \Rightarrow \quad \frac{3x - 2}{x - 2} &= 4^2 \\ 3x - 2 &= 16x - 32 \\ 30 &= 13x \\ x &= \frac{30}{13} \end{aligned}

Note: First, gather the logs on one side and the numbers on the other.

Key Question 1: Solve log⁡5(2x+3)−log⁡5(x−1)=1\log_5 (2x + 3) - \log_5 (x - 1) = 1.

Worked solution log⁡5(2x+3x−1)=1⇒2x+3x−1=512x+3=5x−58=3xx=83\begin{aligned} \log_5 \left(\frac{2x + 3}{x - 1}\right) &= 1 \\ \Rightarrow \quad \frac{2x + 3}{x - 1} &= 5^1 \\ 2x + 3 &= 5x - 5 \\ 8 &= 3x \\ x &= \frac{8}{3} \end{aligned}

Key Question 2: Using the laws of logarithms, solve the equation log⁡3(12y+5)−log⁡3(1−3y)=2\log_3 (12y + 5) - \log_3 (1 - 3y) = 2. (November 2021, Paper 2, Q3)

Worked solution log⁡3(12y+51−3y)=2⇒12y+51−3y=3212y+5=9−27y39y=4y=439\begin{aligned} \log_3 \left(\frac{12y + 5}{1 - 3y}\right) &= 2 \\ \Rightarrow \quad \frac{12y + 5}{1 - 3y} &= 3^2 \\ 12y + 5 &= 9 - 27y \\ 39y &= 4 \\ y &= \frac{4}{39} \end{aligned}

Log Equations that Become Quadratics

Sometimes combining the logs leaves a quadratic. Solve it as usual, then check every answer: the log of a negative number or 00 isn’t defined, so some roots won’t be solutions.

Key Example 1: Solve log⁡3x+log⁡3(x+6)=3\log_3 x + \log_3 (x + 6) = 3.

log⁡3(x(x+6))=3⇒x2+6x=33x2+6x−27=0(x+9)(x−3)=0\begin{aligned} \log_3 \big(x(x + 6)\big) &= 3 \\ \Rightarrow \quad x^2 + 6x &= 3^3 \\ x^2 + 6x - 27 &= 0 \\ (x + 9)(x - 3) &= 0 \end{aligned}

So x=3x = 3 or x=−9x = -9. But log⁡3(−9)\log_3 (-9) isn’t defined, so the only solution is x=3x = 3.

Key Example 2: Solve 2log⁡2x=log⁡2(x+6)2\log_2 x = \log_2 (x + 6).

log⁡2(x2)=log⁡2(x+6)⇒x2=x+6x2−x−6=0(x−3)(x+2)=0\begin{aligned} \log_2 \left(x^2\right) &= \log_2 (x + 6) \\ \Rightarrow \quad x^2 &= x + 6 \\ x^2 - x - 6 &= 0 \\ (x - 3)(x + 2) &= 0 \end{aligned}

So x=3x = 3 or x=−2x = -2. But log⁡2(−2)\log_2 (-2) isn’t defined, so the only solution is x=3x = 3.

Note: The second line uses 6.1.8 backwards: equal logs in the same base come from equal numbers.

Key Question 1: Solve log⁡2(x+4)+log⁡2x=5\log_2 (x + 4) + \log_2 x = 5.

Worked solution log⁡2(x(x+4))=5⇒x2+4x=25x2+4x−32=0(x+8)(x−4)=0\begin{aligned} \log_2 \big(x(x + 4)\big) &= 5 \\ \Rightarrow \quad x^2 + 4x &= 2^5 \\ x^2 + 4x - 32 &= 0 \\ (x + 8)(x - 4) &= 0 \end{aligned}

So x=4x = 4 or x=−8x = -8. But log⁡2(−8)\log_2 (-8) isn’t defined, so the only solution is x=4x = 4.

Key Question 2: Given that

log⁡2(x+3)+log⁡2(x+10)=2+2log⁡2x\log_2 (x + 3) + \log_2 (x + 10) = 2 + 2\log_2 x

(a) show that 3x2−13x−30=03x^2 - 13x - 30 = 0
(b) (i) write down the roots of the equation 3x2−13x−30=03x^2 - 13x - 30 = 0
(ii) hence state which of the roots in part (b)(i) is not a solution of the equation above, giving a reason for your answer. (June 2023, Paper 2, Q3)

Worked solution

(a) Write the 22 as log⁡24\log_2 4, then combine each side into a single log:

log⁡2((x+3)(x+10))=log⁡24+log⁡2(x2)log⁡2(x2+13x+30)=log⁡2(4x2)⇒x2+13x+30=4x20=3x2−13x−30\begin{aligned} \log_2 \big((x + 3)(x + 10)\big) &= \log_2 4 + \log_2 \left(x^2\right) \\ \log_2 \left(x^2 + 13x + 30\right) &= \log_2 \left(4x^2\right) \\ \Rightarrow \quad x^2 + 13x + 30 &= 4x^2 \\ 0 &= 3x^2 - 13x - 30 \end{aligned}

(b) (i) Factorise:

3x2−13x−30=(3x+5)(x−6)=0⇒x=6   or   x=−533x^2 - 13x - 30 = (3x + 5)(x - 6) = 0 \quad \Rightarrow \quad x = 6 \;\text{ or }\; x = -\frac{5}{3}

(ii) x=−53x = -\dfrac{5}{3} is not a solution, because log⁡2x\log_2 x isn’t defined for a negative xx.

Solving Exponential Equations

In 5.3.4, we could only solve equations like 4x=8x−14^x = 8^{x-1} when both sides were powers of the same number. Logs finish the job: now we can solve 2x=52^x = 5.

Key Example 1: Solve 2x=52^x = 5, giving your answer to 3 significant figures.

2x=5⇒x=log⁡25=log⁡105log⁡102=2.32  (3 s.f.)\begin{aligned} 2^x &= 5 \\ \Rightarrow \quad x &= \log_2 5 \\ &= \frac{\log_{10} 5}{\log_{10} 2} \\ &= 2.32 \; (\text{3 s.f.}) \end{aligned}

Note: The second line is the definition (6.1.1), and the third is 6.1.7, for calculators without a log⁡a\log_a button.

Key Example 2: Solve 23x−1=32^{3x - 1} = 3, giving your answer in exact form.

23x−1=3⇒3x−1=log⁡23x=1+log⁡233\begin{aligned} 2^{3x - 1} &= 3 \\ \Rightarrow \quad 3x - 1 &= \log_2 3 \\ x &= \frac{1 + \log_2 3}{3} \end{aligned}

Note: “Exact” means leave the log in the answer, rather than a rounded decimal.

Key Question 1: Solve 52x+1=125^{2x + 1} = 12, giving your answer to 3 significant figures.

Worked solution 52x+1=12⇒2x+1=log⁡512=log⁡1012log⁡105=1.5439…2x=0.5439…x=0.272  (3 s.f.)\begin{aligned} 5^{2x + 1} &= 12 \\ \Rightarrow \quad 2x + 1 &= \log_5 12 = \frac{\log_{10} 12}{\log_{10} 5} = 1.5439\ldots \\ 2x &= 0.5439\ldots \\ x &= 0.272 \; (\text{3 s.f.}) \end{aligned}

Key Question 2: The curve with equation y=3×2xy = 3 \times 2^x meets the curve with equation y=15−2x+1y = 15 - 2^{x+1} at the point PP. Find, using algebra, the exact xx coordinate of PP. (October 2020, Paper 2, Q5)

Worked solution

At PP the two yy values are equal. Write 2x+12^{x+1} as 2×2x2 \times 2^x, using 5.1.4:

3×2x=15−2×2x5×2x=152x=3⇒x=log⁡23\begin{aligned} 3 \times 2^x &= 15 - 2 \times 2^x \\ 5 \times 2^x &= 15 \\ 2^x &= 3 \\ \Rightarrow \quad x &= \log_2 3 \end{aligned}