Skip to main content

Logarithms — Diagnostic Tests

Unit Tests

Tests edge cases, boundary conditions, and common misconceptions for logarithms.

UT-1: Log Does Not Distribute Over Addition

Question:

Which of the following statements are true? Justify your answer.

(i)  log(ab)=loga+logb(ii)  log(a+b)=loga+logb\text{(i)}\; \log(ab) = \log a + \log b \qquad \text{(ii)}\; \log(a + b) = \log a + \log b

Solution:

(i) True. This is the product law of logarithms: log(ab)=loga+logb\log(ab) = \log a + \log b.

(ii) False in general. Counterexample: let a=b=1a = b = 1 with base 10.

log(1+1)=log20.301\log(1 + 1) = \log 2 \approx 0.301.

log1+log1=0+0=0\log 1 + \log 1 = 0 + 0 = 0.

0.30100.301 \neq 0.

The logarithm function does NOT distribute over addition. log(a+b)loga+logb\log(a + b) \neq \log a + \log b.


UT-2: Domain Restrictions

Question:

Solve log3(x2)+log3(x+1)=1\log_3(x - 2) + \log_3(x + 1) = 1.

Solution:

Domain: x2>0x - 2 > 0 and x+1>0x + 1 > 0, so x>2x > 2.

Using the product law:

log3[(x2)(x+1)]=1\log_3[(x-2)(x+1)] = 1

(x2)(x+1)=3(x-2)(x+1) = 3

x2x2=3x^2 - x - 2 = 3

x2x5=0x^2 - x - 5 = 0

x=1±1+202=1±212x = \frac{1 \pm \sqrt{1 + 20}}{2} = \frac{1 \pm \sqrt{21}}{2}

x=1+2122.79x = \dfrac{1 + \sqrt{21}}{2} \approx 2.79 (valid since >2> 2).

x=12121.79x = \dfrac{1 - \sqrt{21}}{2} \approx -1.79 (rejected: not in domain).

Solution: x=1+212x = \dfrac{1 + \sqrt{21}}{2}.

A common mistake is forgetting to check the domain and accepting both roots.


UT-3: Change of Base Formula

Question:

Given that log23=a\log_2 3 = a and log25=b\log_2 5 = b, express log154\log_{15} 4 in terms of aa and bb.

Solution:

log154=log24log215=2log2(3×5)=2log23+log25=2a+b\log_{15} 4 = \frac{\log_2 4}{\log_2 15} = \frac{2}{\log_2(3 \times 5)} = \frac{2}{\log_2 3 + \log_2 5} = \frac{2}{a + b}


UT-4: Logarithmic Equation with Hidden Quadratic

Question:

Solve (log2x)23log2x4=0(\log_2 x)^2 - 3\log_2 x - 4 = 0.

Solution:

Let u=log2xu = \log_2 x (domain: x>0x > 0).

u23u4=0u^2 - 3u - 4 = 0

(u4)(u+1)=0(u - 4)(u + 1) = 0

u=4oru=1u = 4 \quad \text{or} \quad u = -1

log2x=4    x=16\log_2 x = 4 \implies x = 16.

log2x=1    x=12\log_2 x = -1 \implies x = \dfrac{1}{2}.

Both satisfy x>0x > 0.

Solution: x=16x = 16 or x=12x = \dfrac{1}{2}.


UT-5: Logarithm with Different Bases

Question:

Solve 2logx4log4x=12\log_x 4 - \log_4 x = 1.

Solution:

Using change of base: logx4=log44log4x=1log4x\log_x 4 = \dfrac{\log_4 4}{\log_4 x} = \dfrac{1}{\log_4 x}.

Let u=log4xu = \log_4 x (domain: x>0x > 0, x1x \neq 1, so u0u \neq 0).

2uu=1\frac{2}{u} - u = 1

2u2=u2 - u^2 = u

u2+u2=0u^2 + u - 2 = 0

(u+2)(u1)=0(u + 2)(u - 1) = 0

u=2u = -2 or u=1u = 1.

u=2u = -2: log4x=2    x=42=116\log_4 x = -2 \implies x = 4^{-2} = \dfrac{1}{16}.

u=1u = 1: log4x=1    x=4\log_4 x = 1 \implies x = 4.

Solution: x=116x = \dfrac{1}{16} or x=4x = 4.


Integration Tests

Tests synthesis of logarithms with other topics.

IT-1: Logarithms and Exponentials (with Sequences and Series)

Question:

Solve 32x43x+3=03^{2x} - 4 \cdot 3^x + 3 = 0.

Solution:

Let u=3xu = 3^x (u>0u > 0).

u24u+3=0u^2 - 4u + 3 = 0

(u1)(u3)=0(u - 1)(u - 3) = 0

u=1u = 1 or u=3u = 3.

3x=1    x=03^x = 1 \implies x = 0.

3x=3    x=13^x = 3 \implies x = 1.

Solution: x=0x = 0 or x=1x = 1.


IT-2: Logarithms and Inequalities (with Inequalities)

Question:

Solve log3(x+4)>log3(8x)\log_3(x + 4) > \log_3(8 - x).

Solution:

Since log3\log_3 is increasing, we can compare arguments directly:

x+4>8xx + 4 > 8 - x

2x>4    x>22x > 4 \implies x > 2

Domain: x+4>0x + 4 > 0 and 8x>08 - x > 0, giving 4<x<8-4 < x < 8.

Combining: 2<x<82 < x < 8.

Solution: x(2,  8)x \in (2,\; 8).


IT-3: Logarithms and Functions (with Functions)

Question:

Let f(x)=log3(2x1)f(x) = \log_3(2x - 1). Find f1(x)f^{-1}(x) and its domain and range.

Solution:

y=log3(2x1)    3y=2x1    x=3y+12y = \log_3(2x - 1) \implies 3^y = 2x - 1 \implies x = \dfrac{3^y + 1}{2}.

f1(x)=3x+12f^{-1}(x) = \dfrac{3^x + 1}{2}.

Domain of ff: 2x1>0    x>122x - 1 > 0 \implies x > \dfrac{1}{2}.

Range of ff: {R}\mathbb{'\{'}R{'\}'} (since 3y>03^y > 0).

Domain of f1f^{-1} = Range of ff = {R}\mathbb{'\{'}R{'\}'}.

Range of f1f^{-1} = Domain of ff = (12,  )\left(\dfrac{1}{2},\; \infty\right).


Worked Examples

WE-1: Solving Logarithmic Equations with Multiple Logs

Question:

Solve log2(x+4)+log2(x2)=3\log_2(x + 4) + \log_2(x - 2) = 3.

Solution:

Domain: x+4>0x + 4 > 0 and x2>0x - 2 > 0, so x>2x > 2.

Using the product law:

log2[(x+4)(x2)]=3\log_2[(x+4)(x-2)] = 3

(x+4)(x2)=23=8(x+4)(x-2) = 2^3 = 8

x2+2x8=8x^2 + 2x - 8 = 8

x2+2x16=0x^2 + 2x - 16 = 0

x=2±4+642=2±682=1±17x = \frac{-2 \pm \sqrt{4 + 64}}{2} = \frac{-2 \pm \sqrt{68}}{2} = -1 \pm \sqrt{17}

x=1+173.12x = -1 + \sqrt{17} \approx 3.12 (valid, >2> 2).

x=1175.12x = -1 - \sqrt{17} \approx -5.12 (rejected, not in domain).

Solution: x=1+17x = -1 + \sqrt{17}.


WE-2: Exponential Growth and Decay

Question:

A population of bacteria doubles every 3 hours. If the initial population is 500, find:

(a) The population after 12 hours. (b) The time for the population to reach 32000.

Solution:

P(t)=P02t/3P(t) = P_0 \cdot 2^{t/3} where P0=500P_0 = 500.

(a) P(12)=500212/3=50024=500×16=8000P(12) = 500 \cdot 2^{12/3} = 500 \cdot 2^4 = 500 \times 16 = 8000.

(b) 5002t/3=32000500 \cdot 2^{t/3} = 32000.

2t/3=64=262^{t/3} = 64 = 2^6.

t3=6    t=18\dfrac{t}{3} = 6 \implies t = 18 hours.


WE-3: Logarithmic Scale Comparison

Question:

An earthquake has a magnitude of 7.2 on the Richter scale. How many times more powerful is it than an earthquake of magnitude 5.2?

Solution:

The Richter scale is logarithmic: each increase of 1 unit represents a 10-fold increase in amplitude.

Difference in magnitude: 7.25.2=27.2 - 5.2 = 2.

The earthquake is 102=10010^2 = 100 times more powerful.


WE-4: Comparing Logarithmic Expressions

Question:

Given that log32=a\log_3 2 = a, express log316log34\log_3 16 - \log_3 4 in terms of aa.

Solution:

log316=log324=4log32=4a\log_3 16 = \log_3 2^4 = 4\log_3 2 = 4a

log34=log322=2log32=2a\log_3 4 = \log_3 2^2 = 2\log_3 2 = 2a

log316log34=4a2a=2a\log_3 16 - \log_3 4 = 4a - 2a = 2a

Alternatively: log316log34=log3164=log34=2a\log_3 16 - \log_3 4 = \log_3 \dfrac{16}{4} = \log_3 4 = 2a.


WE-5: Logarithmic Inequality with Base Less Than 1

Question:

Solve log0.5(2x1)>log0.5(x+2)\log_{0.5}(2x - 1) > \log_{0.5}(x + 2).

Solution:

Domain: 2x1>02x - 1 > 0 and x+2>0x + 2 > 0, giving x>12x > \dfrac{1}{2} and x>2x > -2, so x>12x > \dfrac{1}{2}.

Since the base 0.50.5 is between 0 and 1, the logarithmic function is decreasing. Therefore the inequality reverses:

2x1<x+22x - 1 < x + 2

x<3x < 3

Combining with the domain: 12<x<3\dfrac{1}{2} < x < 3.

Solution: x(12,  3)x \in \left(\dfrac{1}{2},\; 3\right).

DSE Exam Technique: Always check whether the logarithmic base is greater than or less than 1. This determines whether the function is increasing or decreasing, which affects the inequality direction. This is a frequent trap in DSE Paper 2.


WE-6: Change of Base with Non-Standard Bases

Question:

Given log45=a\log_4 5 = a, find log810\log_8 10 in terms of aa.

Solution:

log810=log410log48\log_8 10 = \frac{\log_4 10}{\log_4 8}

log410=log4(2×5)=log42+log45=12+a\log_4 10 = \log_4(2 \times 5) = \log_4 2 + \log_4 5 = \dfrac{1}{2} + a.

log48=log4(4×2)=1+12=32\log_4 8 = \log_4(4 \times 2) = 1 + \dfrac{1}{2} = \dfrac{3}{2}.

log810=12+a32=1+2a3\log_8 10 = \frac{\frac{1}{2} + a}{\frac{3}{2}} = \frac{1 + 2a}{3}


WE-7: Solving System of Logarithmic Equations

Question:

Solve the simultaneous equations:

log2x+log2y=5\log_2 x + \log_2 y = 5 log2(xy)=1\log_2(x - y) = 1

Solution:

From equation 1: log2(xy)=5    xy=32\log_2(xy) = 5 \implies xy = 32. ... (1)

From equation 2: xy=2x - y = 2. ... (2)

From (2): x=y+2x = y + 2. Substituting into (1):

(y+2)y=32    y2+2y32=0(y + 2)y = 32 \implies y^2 + 2y - 32 = 0.

y=2±4+1282=2±1322=1±33y = \frac{-2 \pm \sqrt{4 + 128}}{2} = \frac{-2 \pm \sqrt{132}}{2} = -1 \pm \sqrt{33}

Since y>0y > 0: y=1+33y = -1 + \sqrt{33}.

x=y+2=1+33x = y + 2 = 1 + \sqrt{33}.

Check domain: x>0x > 0, y>0y > 0, xy>0x - y > 0. All satisfied.


WE-8: Exponential Equation with Different Bases

Question:

Solve 5x+1=22x15^{x+1} = 2^{2x-1}.

Solution:

Take logarithms of both sides (any base, say base 10 or natural log):

(x+1)ln5=(2x1)ln2(x+1)\ln 5 = (2x - 1)\ln 2

xln5+ln5=2xln2ln2x\ln 5 + \ln 5 = 2x\ln 2 - \ln 2

xln52xln2=ln2ln5x\ln 5 - 2x\ln 2 = -\ln 2 - \ln 5

x(ln52ln2)=(ln2+ln5)x(\ln 5 - 2\ln 2) = -(\ln 2 + \ln 5)

x=(ln2+ln5)ln52ln2=(ln10)ln5ln4=ln10ln(5/4)=ln10ln(4/5)x = \frac{-(\ln 2 + \ln 5)}{\ln 5 - 2\ln 2} = \frac{-(\ln 10)}{\ln 5 - \ln 4} = \frac{-\ln 10}{\ln(5/4)} = \frac{\ln 10}{\ln(4/5)}

x=ln10ln(4/5)2.3030.22310.33x = \frac{\ln 10}{\ln(4/5)} \approx \frac{2.303}{-0.223} \approx -10.33


Common Pitfalls

  1. Forgetting domain restrictions in logarithmic equations. The argument of a logarithm must be strictly positive. After solving a logarithmic equation, always check that each solution satisfies the domain conditions. Solutions that make any log argument zero or negative must be rejected.

  2. Not reversing the inequality for bases between 0 and 1. If logbA>logbB\log_b A > \log_b B and 0<b<10 < b < 1, then A<BA < B (not A>BA > B). This is because the log function is decreasing when the base is between 0 and 1.

  3. Incorrectly applying the power law. log(ab)=bloga\log(a^b) = b \log a, but (loga)bbloga(\log a)^b \neq b \log a. The power law applies to the argument, not to the logarithm itself.

  4. Assuming loga+logb=log(a+b)\log a + \log b = \log(a + b). This is false. The correct law is loga+logb=log(ab)\log a + \log b = \log(ab). This is one of the most common algebraic errors in logarithms.

  5. Using the wrong base in change of base formula. The change of base formula is logab=logcblogca\log_a b = \dfrac{\log_c b}{\log_c a} for any valid base cc. Swapping the numerator and denominator is a frequent error.


DSE Exam-Style Questions

DSE-1

(a) Solve log3(x23x+2)=1\log_3(x^2 - 3x + 2) = 1. (3 marks) (b) Solve log3(x23x+2)=0\log_3(x^2 - 3x + 2) = 0. (2 marks) (c) Hence solve log3(x23x+2)1\log_3(x^2 - 3x + 2) \leq 1. (3 marks)

Solution:

(a) x23x+2=31=3x^2 - 3x + 2 = 3^1 = 3.

x23x1=0x^2 - 3x - 1 = 0.

x=3±9+42=3±132x = \dfrac{3 \pm \sqrt{9 + 4}}{2} = \dfrac{3 \pm \sqrt{13}}{2}.

Domain check: x23x+2>0    (x1)(x2)>0    x<1x^2 - 3x + 2 > 0 \implies (x-1)(x-2) > 0 \implies x < 1 or x>2x > 2.

3+1323.30>2\dfrac{3 + \sqrt{13}}{2} \approx 3.30 > 2 (valid). 31320.30<1\dfrac{3 - \sqrt{13}}{2} \approx -0.30 < 1 (valid).

(b) x23x+2=30=1x^2 - 3x + 2 = 3^0 = 1.

x23x+1=0x^2 - 3x + 1 = 0.

x=3±52x = \dfrac{3 \pm \sqrt{5}}{2}.

Domain check: both values satisfy the domain. 3+522.62>2\dfrac{3+\sqrt{5}}{2} \approx 2.62 > 2 and 3520.38<1\dfrac{3-\sqrt{5}}{2} \approx 0.38 < 1.

(c) log3(x23x+2)1    0<x23x+23\log_3(x^2 - 3x + 2) \leq 1 \implies 0 < x^2 - 3x + 2 \leq 3.

x23x+2>0x^2 - 3x + 2 > 0: x<1x < 1 or x>2x > 2.

x23x+23    x23x10x^2 - 3x + 2 \leq 3 \implies x^2 - 3x - 1 \leq 0: 3132x3+132\dfrac{3-\sqrt{13}}{2} \leq x \leq \dfrac{3+\sqrt{13}}{2}.

Combining: 3132x<1\dfrac{3-\sqrt{13}}{2} \leq x < 1 or 2<x3+1322 < x \leq \dfrac{3+\sqrt{13}}{2}.


DSE-2

Let f(x)=2log3(x1)log3(x21)f(x) = 2\log_3(x - 1) - \log_3(x^2 - 1).

(a) Find the domain of ff. (2 marks) (b) Simplify f(x)f(x). (3 marks) (c) Solve f(x)=1f(x) = 1. (3 marks)

Solution:

(a) x1>0x - 1 > 0 and x21>0x^2 - 1 > 0: x>1x > 1.

(b) f(x)=log3(x1)2log3(x21)=log3(x1)2(x1)(x+1)=log3x1x+1f(x) = \log_3(x - 1)^2 - \log_3(x^2 - 1) = \log_3 \dfrac{(x-1)^2}{(x-1)(x+1)} = \log_3 \dfrac{x - 1}{x + 1} (for x>1x > 1).

(c) log3x1x+1=1    x1x+1=3    x1=3x+3    2x=4    x=2\log_3 \dfrac{x - 1}{x + 1} = 1 \implies \dfrac{x - 1}{x + 1} = 3 \implies x - 1 = 3x + 3 \implies -2x = 4 \implies x = -2.

But x>1x > 1, so x=2x = -2 is rejected. No solution.


DSE-3

The number of bacteria in a culture is given by N=1000×20.1tN = 1000 \times 2^{0.1t}, where tt is the time in hours.

(a) Find the initial number of bacteria. (1 mark) (b) Find the number of bacteria after 10 hours, giving your answer in exact form. (2 marks) (c) Find the time when the number of bacteria first exceeds 50000. (3 marks)

Solution:

(a) t=0t = 0: N=1000×20=1000N = 1000 \times 2^0 = 1000.

(b) t=10t = 10: N=1000×21=2000N = 1000 \times 2^1 = 2000.

(c) 1000×20.1t>500001000 \times 2^{0.1t} > 50000.

20.1t>502^{0.1t} > 50.

0.1tlog2>log500.1t \log 2 > \log 50.

t>log500.1log2=10log50log2=10(log100log2)log2=10(2log2)log210×1.6990.30156.4t > \dfrac{\log 50}{0.1 \log 2} = \dfrac{10 \log 50}{\log 2} = \dfrac{10(\log 100 - \log 2)}{\log 2} = \dfrac{10(2 - \log 2)}{\log 2} \approx \dfrac{10 \times 1.699}{0.301} \approx 56.4 hours.


DSE-4

If loga2=p\log_a 2 = p and loga5=q\log_a 5 = q, express the following in terms of pp and qq:

(a) loga10\log_a 10 (1 mark) (b) loga0.04\log_a 0.04 (2 marks) (c) loga250\log_a 250 (2 marks) (d) log2a\log_2 a (2 marks)

Solution:

(a) loga10=loga(2×5)=loga2+loga5=p+q\log_a 10 = \log_a(2 \times 5) = \log_a 2 + \log_a 5 = p + q.

(b) loga0.04=loga(4100)=loga4loga100=2loga22loga10=2p2(p+q)=2q\log_a 0.04 = \log_a\left(\dfrac{4}{100}\right) = \log_a 4 - \log_a 100 = 2\log_a 2 - 2\log_a 10 = 2p - 2(p + q) = -2q.

(c) loga250=loga(125×2)=loga125+loga2=3loga5+p=3q+p\log_a 250 = \log_a(125 \times 2) = \log_a 125 + \log_a 2 = 3\log_a 5 + p = 3q + p.

(d) log2a=1loga2=1p\log_2 a = \dfrac{1}{\log_a 2} = \dfrac{1}{p}.


DSE-5

Solve the inequality log2(x+3)+log2(x1)3\log_2(x + 3) + \log_2(x - 1) \leq 3.

Solution:

Domain: x+3>0x + 3 > 0 and x1>0x - 1 > 0, so x>1x > 1.

log2[(x+3)(x1)]3\log_2[(x+3)(x-1)] \leq 3

(x+3)(x1)8(x+3)(x-1) \leq 8

x2+2x38x^2 + 2x - 3 \leq 8

x2+2x110x^2 + 2x - 11 \leq 0

x=2±4+442=2±482=1±23x = \frac{-2 \pm \sqrt{4 + 44}}{2} = \frac{-2 \pm \sqrt{48}}{2} = -1 \pm 2\sqrt{3}

Solution of quadratic: 123x1+23-1 - 2\sqrt{3} \leq x \leq -1 + 2\sqrt{3}.

Since 1+232.46-1 + 2\sqrt{3} \approx 2.46 and we need x>1x > 1:

1<x1+231 < x \leq -1 + 2\sqrt{3}, i.e. x(1,  1+23]x \in (1,\; -1 + 2\sqrt{3}].