Exponents, logarithms and exponential equations

IB Math AA · Number and Algebra

The laws of exponents and logarithms

For $a>0$, $a\neq 1$, the statement $\log_a x=y$ means exactly $a^{y}=x$. Since $a^{y}>0$ for every real $y$, the domain of $\log_a$ is $x>0$.

$$\log_a(xy)=\log_ax+\log_ay,\qquad \log_a\!\left(\frac{x}{y}\right)=\log_ax-\log_ay,\qquad \log_a\left(x^{m}\right)=m\log_ax$$

Three special values follow directly from the definition: $\log_a1=0$, $\log_aa=1$, and $\log_a\left(a^{k}\right)=k$.

Change of base

$$\log_ax=\frac{\log_bx}{\log_ba}\qquad\text{hence}\qquad \log_ab=\frac{1}{\log_ba}$$

Solving exponential equations

If the two sides cannot be written with the same base, take logarithms of both sides and use the power law to bring the unknown down from the exponent:

$$a^{f(x)}=b^{g(x)}\;\Longrightarrow\;f(x)\ln a=g(x)\ln b$$

An equation of the form $a^{2x}+pa^{x}+q=0$ is a disguised quadratic: put $t=a^{x}$ with $t>0$, solve for $t$, then return to $x$. Any root $t\le 0$ must be discarded, because $a^{x}$ is never zero or negative.

(0,1) (1,2) (2,4) (1,0) (2,1) (4,2) (8,3) y = 2^x y = log₂ x y = x O x y 4 8
This figure answers the question "why must solutions be rejected". The orange curve is $y=\log_2x$, the image of the blue curve $y=2^x$ in the dashed line $y=x$. Reading the figure shows two things that algebra often forgets: the orange curve does not exist to the left of the y-axis — the domain is $x>0$ — and it crosses the x-axis at exactly one point $(1,0)$, so $\log_2x$ is negative when $0\lt x<1$. From the figure you can read $\log_28=3$ and $\log_24=2$ without pressing a key. The key point for the exam room: when combining $\log x+\log(x-2)$ into $\log\left(x(x-2)\right)$, the domain $x>2$ is widened to $x<0$ or $x>2$; the negative solution produced there is a solution of the combined equation, not of the original equation.

Worked example: logarithmic equation with an extraneous solution

Solve the equation $\log_2x+\log_2(x-2)=3$.

Solution

Step 0 — state the conditions before transforming. We need $x>0$ and $x-2>0$, i.e. $x>2$. Writing this line right at the start is the only sure way not to forget it.

Step 1 — combine the logarithms and then drop the $\log$.

$$\log_2\left(x(x-2)\right)=3\;\Longrightarrow\;x(x-2)=2^{3}=8$$$$x^{2}-2x-8=0\;\Longrightarrow\;(x-4)(x+2)=0\;\Longrightarrow\;x=4\ \text{or}\ x=-2$$

Step 2 — compare with the condition. $x=-2$ does not satisfy $x>2$ so it is rejected. The only solution is $x=4$.

Something worth understanding, not just remembering: $x=-2$ really does satisfy $x(x-2)=8$, but it does not satisfy the original equation because $\log_2(-2)$ does not exist. The combining step widened the domain, and the extra solution came from that very widening.

Worked example: exponential equation with different bases

Solve the equation $3^{2x+1}=5^{\,x-2}$, giving the answer in exact form in terms of $\ln$ and then rounding to three decimal places.

Solution

Take $\ln$ of both sides and bring the exponents down.

$$(2x+1)\ln 3=(x-2)\ln 5$$$$2x\ln 3+\ln 3=x\ln 5-2\ln 5$$

Collect $x$ on one side.

$$x\left(2\ln 3-\ln 5\right)=-\ln 3-2\ln 5$$$$x=\frac{-\left(\ln 3+2\ln 5\right)}{2\ln 3-\ln 5}=\frac{-\ln 75}{\ln\left(\frac95\right)}\approx -7.345$$

Check by order of magnitude. With $x\approx-7.345$, $2x+1\approx-13.69$ so the left side is $3^{-13.69}\approx 2.9\times10^{-7}$; the right side is $5^{-9.345}\approx 2.9\times10^{-7}$. The two sides match.

Two places where it often goes wrong: forgetting to multiply $\ln 3$ into both $2x$ and $1$, and getting the sign wrong when moving $-2\ln 5$ to the other side. Both give a perfectly ordinary-looking number, so the order-of-magnitude check above is the only safety net.

Common mistake

Wrongly rejecting — or wrongly keeping — a solution after combining logarithms. The mechanism is that the step $\log x+\log(x-2)=\log\left(x(x-2)\right)$ is not an equivalent transformation: the left side requires $x>2$, the right side only requires $x(x-2)>0$, i.e. $x<0$ or $x>2$. The domain has just been widened, and every solution falling in the newly widened part is extraneous. There is also a trap the other way: students are so afraid of negative solutions that they reject negative solutions even in equations where the unknown does not sit under a $\log$ (for example $\log_2\left(x^{2}\right)=4$ has both solutions $x=\pm4$, because $x^2>0$ for both). A concise rule: the condition is placed on the expression under the $\log$, not on the unknown.

Key takeaway

Write the domain condition before transforming, rather than checking afterwards — checking afterwards makes it a habit to submit both solutions. For exponential equations, everything reduces to one sentence: take $\ln$ to bring the unknown down from the exponent, or set $t=a^{x}>0$ if you see $a^{2x}$.

← Arithmetic and geometric sequences and series · All IB Math AA lessons · Practice IB Math AA questions (free, instant scoring) · The binomial theorem, counting and rational indices →