Worked Example · Logarithmic and Exponential Functions · Paper 1 · 5 marks

A Hidden Quadratic in Logarithms

Rig, founder of IGCSE Add Math Malaysia

Written by Rig, our founder

8 years teaching IGCSE & SPM maths · Updated 19 August 2026

An equation with (logx)2(\log x)^2 in it is a quadratic in disguise. Substitute u=log3xu = \log_3 x, solve the quadratic, then convert back. Watch the power law: log3x2=2log3x\log_3 x^2 = 2\log_3 x, not (log3x)2(\log_3 x)^2.

Solve (log3x)2log3x2=3(\log_3 x)^2 - \log_3 x^2 = 3. [5]

The working

Step 1, apply the power law to the second term: log3x2=2log3x,so the equation is (log3x)22log3x=3.(M1)\log_3 x^2 = 2\log_3 x, \quad \text{so the equation is } (\log_3 x)^2 - 2\log_3 x = 3. \quad \text{(M1)}

Step 2, substitute u=log3xu = \log_3 x: u22u=3    u22u3=0(M1)u^2 - 2u = 3 \implies u^2 - 2u - 3 = 0 \quad \text{(M1)}

Step 3, factorise and solve for uu: (u3)(u+1)=0    u=3 or u=1(A1)(u - 3)(u + 1) = 0 \implies u = 3 \ \text{or} \ u = -1 \quad \text{(A1)}

Step 4, convert back using u=log3xx=3uu = \log_3 x \Leftrightarrow x = 3^u: x=33=27orx=31=13(A1, A1)x = 3^3 = 27 \qquad \text{or} \qquad x = 3^{-1} = \tfrac{1}{3} \quad \text{(A1, A1)}

Where the marks are won and lost

  • Distinguish log3x2=2log3x\log_3 x^2 = 2\log_3 x from (log3x)2=u2(\log_3 x)^2 = u^2. Confusing them wrecks the quadratic.
  • After solving for uu, convert both values back to xx. A negative u=1u = -1 is fine and gives x=13x = \frac13 (still positive, so valid).
  • Bring the equation to u22u3=0u^2 - 2u - 3 = 0 before factorising.

Common mistakes

  • Treating log3x2\log_3 x^2 as (log3x)2(\log_3 x)^2 and getting the wrong equation.
  • Rejecting u=1u = -1 as “impossible” (it gives a valid x=13x = \frac13; it’s xx that must be positive, not uu).
  • Forgetting to convert uu back to xx.

Topic home: Logarithmic & Exponential Functions pillar. More: Worked examples.

Common questions

How do you solve an equation with (log x)² in it?
Substitute a single letter for the logarithm to turn it into an ordinary quadratic. Letting u = log₃x, the term (log₃x)² becomes u² and log₃x² becomes 2u by the power law, so the whole equation reads u² − 2u = 3, a standard quadratic. Solve for u, then convert each value back with the definition of a log. The trap is the power law: log₃x² is 2·log₃x, which is quite different from (log₃x)², so distinguishing the two before substituting is essential.

Keep going

See the teaching work on your own child. Then decide.

Every student starts with a 1-hour trial class taught by the vetted tutor your child would actually have. Real teaching, a diagnostic on real exam questions, and a straight answer on the gap to target. One hour at your tutor's rate (RM80–90/hr), no package and no deposit, and you decide afterwards whether to book a weekly slot. Online anywhere in Malaysia.