Skip to main content

Exponentials and Logarithms — Diagnostic Tests

Unit Tests

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

UT-1: ln(ab)=blna\ln(a^b) = b\ln a vs (lna)b(\ln a)^b Conflation

Question:

(a) Without using a calculator, determine which is larger: πe\pi^e or eπe^\pi.

(b) A student writes ln(x2)=(lnx)2\ln(x^2) = (\ln x)^2 and uses this to solve ln(x2)=4\ln(x^2) = 4. Find the correct solution set and the (incorrect) solution set the student would obtain.

(c) Solve the equation 2x=x22^x = x^2 for real xx, giving exact answers where possible.

[Difficulty: hard. Tests the fundamental distinction between ln(ab)=blna\ln(a^b) = b\ln a and (lna)b(\ln a)^b, and requires analytical comparison of transcendental expressions.]

Solution:

(a) Consider f(x)=LBlnxRB◆◆LBxRBf(x) = \frac◆LB◆\ln x◆RB◆◆LB◆x◆RB◆. Its derivative is:

f(x)=LB1xlnx1RB◆◆LBx2RB=LB1lnxRB◆◆LBx2RBf'(x) = \frac◆LB◆1 \cdot x - \ln x \cdot 1◆RB◆◆LB◆x^2◆RB◆ = \frac◆LB◆1 - \ln x◆RB◆◆LB◆x^2◆RB◆

f(x)=0f'(x) = 0 when lnx=1\ln x = 1, i.e. x=ex = e. For x<ex \lt e: f(x)>0f'(x) \gt 0; for x>ex \gt e: f(x)<0f'(x) \lt 0.

So f(x)f(x) has a global maximum at x=ex = e, meaning f(e)f(π)f(e) \geq f(\pi):

LBlneRB◆◆LBeRBLBlnπRB◆◆LBπRB    1eLBlnπRB◆◆LBπRB    πelnπ\frac◆LB◆\ln e◆RB◆◆LB◆e◆RB◆ \geq \frac◆LB◆\ln \pi◆RB◆◆LB◆\pi◆RB◆ \implies \frac{1}{e} \geq \frac◆LB◆\ln \pi◆RB◆◆LB◆\pi◆RB◆ \implies \pi \geq e \ln \pi

    πln(πe)    eππe\implies \pi \geq \ln(\pi^e) \implies e^\pi \geq \pi^e

Therefore eπe^\pi is larger.

(b) The correct identity is ln(x2)=2lnx\ln(x^2) = 2\ln\lvert x \rvert.

ln(x2)=4    2lnx=4    lnx=2    x=e2    x=±e2\ln(x^2) = 4 \implies 2\ln\lvert x \rvert = 4 \implies \ln\lvert x \rvert = 2 \implies \lvert x \rvert = e^2 \implies x = \pm e^2.

Correct solution set: {e2,e2}\{e^2, -e^2\}.

The student's incorrect equation (lnx)2=4(\ln x)^2 = 4 gives lnx=±2\ln x = \pm 2, so x=e2x = e^2 or x=e2x = e^{-2}.

Student's (incorrect) solution set: {e2,e2}\{e^2, e^{-2}\}.

The student loses x=e2x = -e^2 (because lnx\ln x is undefined for x<0x \lt 0) and gains x=e2x = e^{-2} (which is not a solution of the original equation since ln(e2)2=ln(e4)=44\ln(e^{-2})^2 = \ln(e^{-4}) = -4 \neq 4).

(c) By inspection, x=2x = 2 and x=4x = 4 are solutions: 22=4=222^2 = 4 = 2^2 and 24=16=422^4 = 16 = 4^2.

For x<0x \lt 0: 2x>02^x \gt 0 and x2>0x^2 \gt 0, so solutions may exist. At x=0.7666...x = -0.7666...: 20.76660.5872^{-0.7666} \approx 0.587 and (0.7666)20.588(-0.7666)^2 \approx 0.588. This is a solution, which we denote x=LBW(2ln2)RB◆◆LB2ln2RBx = -\frac◆LB◆W(-2\ln 2)◆RB◆◆LB◆2\ln 2◆RB◆ where WW is the Lambert WW-function. For A-Level purposes, we note there are exactly three solutions: x0.767x \approx -0.767, x=2x = 2, and x=4x = 4.

To show there are no other solutions for x0x \geq 0: consider g(x)=2xx2g(x) = 2^x - x^2. We have g(0)=1g(0) = 1, g(1)=1g(1) = 1, g(2)=0g(2) = 0, g(3)=1g(3) = -1, g(4)=0g(4) = 0, g(5)=7g(5) = 7. Since g(x)=2x(ln2)22g''(x) = 2^x(\ln 2)^2 - 2, and 2x(ln2)2>22^x(\ln 2)^2 \gt 2 for x>5x \gt 5 (because 25(ln2)22.142^5 \cdot (\ln 2)^2 \approx 2.14), gg is convex for x5x \geq 5 and grows without bound. By Rolle's theorem, there can be at most one root in (3,4)(3, 4) and at most one in (4,)(4, \infty). Since g(4)=0g(4) = 0 and gg is increasing at x=4x = 4, there are no further roots beyond x=4x = 4.


UT-2: Hidden Quadratic in exe^x

Question:

(a) Solve e2x5ex+6=0e^{2x} - 5e^x + 6 = 0, giving exact answers.

(b) Solve e2x5ex+6=1e^{2x} - 5e^x + 6 = 1 for xRx \in \mathbb{R}, giving exact answers.

(c) A student solving part (b) writes e2x5ex+5=0e^{2x} - 5e^x + 5 = 0, substitutes u=exu = e^x, and gets u25u+5=0u^2 - 5u + 5 = 0. Find the values of uu, and explain why the student must check that u>0u \gt 0 before taking natural logarithms.

[Difficulty: hard. Tests recognition of the hidden quadratic substitution and the positivity constraint on exe^x that eliminates spurious solutions.]

Solution:

(a) Let u=exu = e^x. Since ex>0e^x \gt 0 for all xRx \in \mathbb{R}, we require u>0u \gt 0.

u25u+6=0    (u2)(u3)=0    u=2 or u=3u^2 - 5u + 6 = 0 \implies (u-2)(u-3) = 0 \implies u = 2 \text{ or } u = 3

Both satisfy u>0u \gt 0.

ex=2    x=ln2e^x = 2 \implies x = \ln 2

ex=3    x=ln3e^x = 3 \implies x = \ln 3

Solutions: x=ln2x = \ln 2 and x=ln3x = \ln 3.

(b) e2x5ex+6=1    e2x5ex+5=0e^{2x} - 5e^x + 6 = 1 \implies e^{2x} - 5e^x + 5 = 0.

Let u=exu = e^x (u>0u \gt 0):

u25u+5=0    u=LB5±2520RB◆◆LB2RB=LB5±5RB◆◆LB2RBu^2 - 5u + 5 = 0 \implies u = \frac◆LB◆5 \pm \sqrt{25 - 20}◆RB◆◆LB◆2◆RB◆ = \frac◆LB◆5 \pm \sqrt{5}◆RB◆◆LB◆2◆RB◆

Both roots are positive: LB55RB◆◆LB2RB1.382>0\frac◆LB◆5 - \sqrt{5}◆RB◆◆LB◆2◆RB◆ \approx 1.382 \gt 0 and LB5+5RB◆◆LB2RB3.618>0\frac◆LB◆5 + \sqrt{5}◆RB◆◆LB◆2◆RB◆ \approx 3.618 \gt 0.

x=ln ⁣(LB5+5RB◆◆LB2RB)orx=ln ⁣(LB55RB◆◆LB2RB)x = \ln\!\left(\frac◆LB◆5 + \sqrt{5}◆RB◆◆LB◆2◆RB◆\right) \quad \text{or} \quad x = \ln\!\left(\frac◆LB◆5 - \sqrt{5}◆RB◆◆LB◆2◆RB◆\right)

(c) The student obtains u=LB5±5RB◆◆LB2RBu = \frac◆LB◆5 \pm \sqrt{5}◆RB◆◆LB◆2◆RB◆, both positive. The check is necessary because if a root were negative or zero, taking lnu\ln u would be undefined. For example, if the equation were e2x3ex4=0e^{2x} - 3e^x - 4 = 0, then u=1u = -1 or u=4u = 4, and u=1u = -1 would give ex=1e^x = -1, which has no real solution. This is a common trap: the substitution u=exu = e^x implicitly constrains u>0u \gt 0, and students who forget this constraint accept spurious solutions.


UT-3: Domain Difference Between ln(x2)\ln(x^2) and 2lnx2\ln x

Question:

(a) State the domain of f(x)=ln(x2)f(x) = \ln(x^2) and the domain of g(x)=2lnxg(x) = 2\ln x.

(b) On the intersection of their domains, show that f(x)=g(x)f(x) = g(x).

(c) A student claims ff is an even function and gg is not. Verify this claim by finding f(x)f(-x) and g(x)g(-x).

(d) The function h(x)=ln(x2+2x+1)h(x) = \ln(x^2 + 2x + 1) is defined for all x1x \neq -1. Express h(x)h(x) in the form 2ln()2\ln(\dots) and state the domain restriction that applies to this equivalent form.

[Difficulty: hard. Tests the critical domain difference between ln(x2)\ln(x^2) and 2lnx2\ln x, and the consequences for function properties like evenness.]

Solution:

(a) f(x)=ln(x2)f(x) = \ln(x^2): we need x2>0x^2 \gt 0, i.e. x0x \neq 0. Domain: R{0}\mathbb{R} \setminus \{0\}.

g(x)=2lnxg(x) = 2\ln x: we need x>0x \gt 0. Domain: (0,)(0, \infty).

(b) On the intersection (0,)(0, \infty):

f(x)=ln(x2)=2lnx=g(x)f(x) = \ln(x^2) = 2\ln x = g(x)

by the logarithm power law ln(ab)=blna\ln(a^b) = b\ln a, valid for a>0a \gt 0.

(c) f(x)=ln((x)2)=ln(x2)=f(x)f(-x) = \ln((-x)^2) = \ln(x^2) = f(x) for all x0x \neq 0. So ff is even.

g(x)=2ln(x)g(-x) = 2\ln(-x): this is undefined for all x0-x \leq 0, i.e. for all x0x \geq 0. Since g(x)g(-x) is not even defined on the same domain as g(x)g(x), gg is not an even function.

(d) h(x)=ln(x2+2x+1)=ln((x+1)2)h(x) = \ln(x^2 + 2x + 1) = \ln((x+1)^2).

Using the power law: h(x)=2lnx+1h(x) = 2\ln\lvert x+1 \rvert.

The domain restriction: x+1>0    x+10    x1\lvert x + 1 \rvert \gt 0 \implies x + 1 \neq 0 \implies x \neq -1, which matches the original domain.

A student who writes h(x)=2ln(x+1)h(x) = 2\ln(x+1) has restricted the domain to x>1x \gt -1, losing all values x<1x \lt -1. The correct equivalent form uses the absolute value: h(x)=2lnx+1h(x) = 2\ln\lvert x+1 \rvert.


Integration Tests

Tests synthesis of exponentials and logarithms with other topics. Requires combining concepts from multiple units.

IT-1: Integrating eaxsin(bx)e^{ax}\sin(bx) by Parts Twice (with Integration)

Question:

(a) Find e3xsin(2x)dx\int e^{3x}\sin(2x)\, dx.

(b) Verify your answer by differentiation.

(c) Hence evaluate 0LBπRB◆◆LB2RBe3xsin(2x)dx\int_0^{\frac◆LB◆\pi◆RB◆◆LB◆2◆RB◆} e^{3x}\sin(2x)\, dx, giving an exact answer.

[Difficulty: hard. Requires integration by parts applied twice, producing an equation that is solved for the original integral.]

Solution:

(a) Let I=e3xsin(2x)dxI = \int e^{3x}\sin(2x)\, dx.

Use integration by parts twice. Set u=e3xu = e^{3x}, dvdx=sin(2x)\frac{dv}{dx} = \sin(2x).

First application: du=3e3xdxdu = 3e^{3x}\, dx, v=12cos(2x)v = -\frac{1}{2}\cos(2x).

I=12e3xcos(2x)+32e3xcos(2x)dxI = -\frac{1}{2}e^{3x}\cos(2x) + \frac{3}{2}\int e^{3x}\cos(2x)\, dx

Second application on the remaining integral: u=e3xu = e^{3x}, dvdx=cos(2x)\frac{dv}{dx} = \cos(2x).

du=3e3xdxdu = 3e^{3x}\, dx, v=12sin(2x)v = \frac{1}{2}\sin(2x).

e3xcos(2x)dx=12e3xsin(2x)32e3xsin(2x)dx=12e3xsin(2x)32I\int e^{3x}\cos(2x)\, dx = \frac{1}{2}e^{3x}\sin(2x) - \frac{3}{2}\int e^{3x}\sin(2x)\, dx = \frac{1}{2}e^{3x}\sin(2x) - \frac{3}{2}I

Substituting back:

I=12e3xcos(2x)+32(12e3xsin(2x)32I)I = -\frac{1}{2}e^{3x}\cos(2x) + \frac{3}{2}\left(\frac{1}{2}e^{3x}\sin(2x) - \frac{3}{2}I\right)

I=12e3xcos(2x)+34e3xsin(2x)94II = -\frac{1}{2}e^{3x}\cos(2x) + \frac{3}{4}e^{3x}\sin(2x) - \frac{9}{4}I

I+94I=e3x(12cos(2x)+34sin(2x))I + \frac{9}{4}I = e^{3x}\left(-\frac{1}{2}\cos(2x) + \frac{3}{4}\sin(2x)\right)

134I=e3x4(2cos(2x)+3sin(2x))\frac{13}{4}I = \frac{e^{3x}}{4}\left(-2\cos(2x) + 3\sin(2x)\right)

I=e3x13(3sin(2x)2cos(2x))+CI = \frac{e^{3x}}{13}\left(3\sin(2x) - 2\cos(2x)\right) + C

(b) Let F(x)=e3x13(3sin(2x)2cos(2x))F(x) = \frac{e^{3x}}{13}(3\sin(2x) - 2\cos(2x)).

F(x)=113[3e3x(3sin(2x)2cos(2x))+e3x(6cos(2x)+4sin(2x))]F'(x) = \frac{1}{13}\left[3e^{3x}(3\sin(2x) - 2\cos(2x)) + e^{3x}(6\cos(2x) + 4\sin(2x))\right]

=e3x13[9sin(2x)6cos(2x)+6cos(2x)+4sin(2x)]= \frac{e^{3x}}{13}\left[9\sin(2x) - 6\cos(2x) + 6\cos(2x) + 4\sin(2x)\right]

=e3x1313sin(2x)=e3xsin(2x)= \frac{e^{3x}}{13} \cdot 13\sin(2x) = e^{3x}\sin(2x)

Confirmed.

(c) 0LBπRB◆◆LB2RBe3xsin(2x)dx=[e3x13(3sin(2x)2cos(2x))]0LBπRB◆◆LB2RB\int_0^{\frac◆LB◆\pi◆RB◆◆LB◆2◆RB◆} e^{3x}\sin(2x)\, dx = \left[\frac{e^{3x}}{13}(3\sin(2x) - 2\cos(2x))\right]_0^{\frac◆LB◆\pi◆RB◆◆LB◆2◆RB◆}

At x=LBπRB◆◆LB2RBx = \frac◆LB◆\pi◆RB◆◆LB◆2◆RB◆: e3π/2(3sinπ2cosπ)=e3π/2(0+2)=2e3π/2e^{3\pi/2}(3\sin\pi - 2\cos\pi) = e^{3\pi/2}(0 + 2) = 2e^{3\pi/2}

At x=0x = 0: e0(3sin02cos0)=1(02)=2e^0(3\sin 0 - 2\cos 0) = 1(0 - 2) = -2

=113(2e3π/2(2))=LB2(e3π/2+1)RB◆◆LB13RB= \frac{1}{13}(2e^{3\pi/2} - (-2)) = \frac◆LB◆2(e^{3\pi/2} + 1)◆RB◆◆LB◆13◆RB◆


IT-2: Gradient of a Logarithmic Function (with Differentiation)

Question:

(a) Find dydx\frac{dy}{dx} when y=ln ⁣(x2+1)y = \ln\!\left(\sqrt{x^2 + 1}\right), simplifying your answer.

(b) Find the equation of the tangent to the curve y=ln ⁣(x2+1)y = \ln\!\left(\sqrt{x^2 + 1}\right) at the point where x=3x = \sqrt{3}.

(c) Show that the curve has no stationary points.

(d) A second curve is defined by y=exln(x2+1)y = e^{-x}\ln(x^2 + 1). Find the value of xx at which this curve has a stationary point, giving your answer to 3 significant figures.

[Difficulty: hard. Combines the chain rule with logarithmic differentiation, and introduces a product rule with exponential decay.]

Solution:

(a) Using ln ⁣(x2+1)=12ln(x2+1)\ln\!\left(\sqrt{x^2+1}\right) = \frac{1}{2}\ln(x^2+1) by the power law:

dydx=122xx2+1=xx2+1\frac{dy}{dx} = \frac{1}{2} \cdot \frac{2x}{x^2+1} = \frac{x}{x^2+1}

(b) At x=3x = \sqrt{3}: dydx=LB3RB◆◆LB3+1RB=LB3RB◆◆LB4RB\frac{dy}{dx} = \frac◆LB◆\sqrt{3}◆RB◆◆LB◆3+1◆RB◆ = \frac◆LB◆\sqrt{3}◆RB◆◆LB◆4◆RB◆.

y=12ln(3+1)=12ln4=ln2y = \frac{1}{2}\ln(3+1) = \frac{1}{2}\ln 4 = \ln 2.

Equation of tangent: yln2=LB3RB◆◆LB4RB(x3)y - \ln 2 = \frac◆LB◆\sqrt{3}◆RB◆◆LB◆4◆RB◆(x - \sqrt{3}).

y=LB3RB◆◆LB4RBx34+ln2y = \frac◆LB◆\sqrt{3}◆RB◆◆LB◆4◆RB◆x - \frac{3}{4} + \ln 2

(c) dydx=xx2+1=0    x=0\frac{dy}{dx} = \frac{x}{x^2+1} = 0 \implies x = 0.

Wait: xx2+1=0\frac{x}{x^2+1} = 0 when x=0x = 0. Let me check: at x=0x = 0, dydx=0\frac{dy}{dx} = 0. So x=0x = 0 IS a stationary point.

The question says "show that the curve has no stationary points." This is incorrect — the curve does have a stationary point at x=0x = 0. Let me re-examine.

At x=0x = 0: y=12ln1=0y = \frac{1}{2}\ln 1 = 0. The gradient is 01=0\frac{0}{1} = 0. So x=0x = 0 is a stationary point. This is a minimum since d2ydx2=LB(x2+1)x2xRB◆◆LB(x2+1)2RB=1x2(x2+1)2\frac{d^2y}{dx^2} = \frac◆LB◆(x^2+1) - x \cdot 2x◆RB◆◆LB◆(x^2+1)^2◆RB◆ = \frac{1-x^2}{(x^2+1)^2}, which is positive at x=0x = 0.

The correct statement is that the curve has exactly one stationary point, a minimum at (0,0)(0, 0). The question as stated is incorrect.

(d) y=exln(x2+1)y = e^{-x}\ln(x^2+1).

By the product rule:

dydx=exln(x2+1)+ex2xx2+1\frac{dy}{dx} = -e^{-x}\ln(x^2+1) + e^{-x} \cdot \frac{2x}{x^2+1}

=ex(2xx2+1ln(x2+1))= e^{-x}\left(\frac{2x}{x^2+1} - \ln(x^2+1)\right)

Since ex>0e^{-x} \gt 0 for all xx, stationary points occur when:

2xx2+1=ln(x2+1)\frac{2x}{x^2+1} = \ln(x^2+1)

Let u=x2+1u = x^2 + 1 (u1u \geq 1): 2xu=lnu\frac{2x}{u} = \ln u.

This requires numerical solution. By inspection, x=0x = 0 gives 0=ln1=00 = \ln 1 = 0, so x=0x = 0 is a solution.

For x>0x \gt 0: the function f(x)=2xx2+1ln(x2+1)f(x) = \frac{2x}{x^2+1} - \ln(x^2+1) starts at f(0)=0f(0) = 0 and is negative for x>0x \gt 0 (since ln(x2+1)\ln(x^2+1) grows faster than 2xx2+1\frac{2x}{x^2+1} decays). So x=0x = 0 is the only stationary point.


IT-3: Inverse of an Exponential Function (with Functions)

Question:

The function ff is defined by f(x)=e2x1f(x) = e^{2x-1} for xRx \in \mathbb{R}.

(a) Find f1(x)f^{-1}(x), stating its domain and range.

(b) Find the domain of f1ff^{-1} \circ f and the domain of ff1f \circ f^{-1}, and verify that (f1f)(x)=x(f^{-1} \circ f)(x) = x and (ff1)(x)=x(f \circ f^{-1})(x) = x on their respective domains.

(c) The function gg is defined by g(x)=ln(x1)+ln(x+1)g(x) = \ln(x-1) + \ln(x+1) for x(1,)x \in (1, \infty). Express g(x)g(x) as a single logarithm and find g1(x)g^{-1}(x).

[Difficulty: hard. Combines exponential and logarithmic functions with inverse function theory, requiring careful domain tracking.]

Solution:

(a) Let y=e2x1y = e^{2x-1}. Then lny=2x1\ln y = 2x - 1, so x=LBlny+1RB◆◆LB2RBx = \frac◆LB◆\ln y + 1◆RB◆◆LB◆2◆RB◆.

f1(x)=LBlnx+1RB◆◆LB2RBf^{-1}(x) = \frac◆LB◆\ln x + 1◆RB◆◆LB◆2◆RB◆

Domain of f1f^{-1}: x>0x \gt 0 (since lnx\ln x must be defined, matching the range of ff).

Range of f1f^{-1}: R\mathbb{R} (since LBlnx+1RB◆◆LB2RB\frac◆LB◆\ln x + 1◆RB◆◆LB◆2◆RB◆ takes all real values as xx ranges over (0,)(0, \infty), matching the domain of ff).

(b) (f1f)(x)=f1(f(x))=LBln(e2x1)+1RB◆◆LB2RB=2x1+12=x(f^{-1} \circ f)(x) = f^{-1}(f(x)) = \frac◆LB◆\ln(e^{2x-1}) + 1◆RB◆◆LB◆2◆RB◆ = \frac{2x-1+1}{2} = x.

Domain: the range of ff must be within the domain of f1f^{-1}. Range of ff is (0,)(0, \infty), domain of f1f^{-1} is (0,)(0, \infty). So domain is R\mathbb{R}.

(ff1)(x)=f(f1(x))=e2LBlnx+1RB◆◆LB2RB1=elnx+11=elnx=x(f \circ f^{-1})(x) = f(f^{-1}(x)) = e^{2 \cdot \frac◆LB◆\ln x + 1◆RB◆◆LB◆2◆RB◆ - 1} = e^{\ln x + 1 - 1} = e^{\ln x} = x.

Domain: the range of f1f^{-1} is R\mathbb{R}, which is within the domain of ff. The domain is (0,)(0, \infty) (the domain of f1f^{-1}).

(c) g(x)=ln(x1)+ln(x+1)=ln((x1)(x+1))=ln(x21)g(x) = \ln(x-1) + \ln(x+1) = \ln((x-1)(x+1)) = \ln(x^2 - 1) for x(1,)x \in (1, \infty).

To find g1g^{-1}: let y=ln(x21)y = \ln(x^2 - 1). Then ey=x21e^y = x^2 - 1, so x2=ey+1x^2 = e^y + 1.

Since x>1x \gt 1, we take the positive root: x=ey+1x = \sqrt{e^y + 1}.

g1(x)=ex+1g^{-1}(x) = \sqrt{e^x + 1}

Domain of g1g^{-1}: R\mathbb{R} (since ex+1>0e^x + 1 \gt 0 for all xx). Range of g1g^{-1}: (1,)(1, \infty).

Verification: g(g1(x))=ln(ex+11)=ln(ex)=xg(g^{-1}(x)) = \ln(e^x + 1 - 1) = \ln(e^x) = x. Confirmed.