Skip to content

Exponentials and Logarithms -- Diagnostic Tests

Mathematics is the language of patterns and logic — a tool for describing relationships and solving problems.

Exponentials and Logarithms — Diagnostic Tests

Section titled “Exponentials and Logarithms — Diagnostic 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

Section titled “UT-1: ln⁡(ab)=bln⁡a\ln(a^b) = b\ln aln(ab)=blna vs (ln⁡a)b(\ln a)^b(lna)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 xxGiving 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)^bAnd requires analytical comparison of transcendental expressions.]

Solution:

(a) Consider f(x)=lnxxf(x) = \frac{\ln x}{x}. Its derivative is:

f"(x)=1xlnx1x2=1lnxx2f"(x) = \frac{1 \cdot x - \ln x \cdot 1}{x^2} = \frac{1 - \ln x}{x^2}

f(x)=0f'(x) = 0 when lnx=1\ln x = 1I.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 = eMeaning f(e)f(π)f(e) \geq f(\pi):

lneelnππ    1elnππ    πelnπ\frac{\ln e}{e} \geq \frac{\ln \pi}{\pi} \implies \frac{1}{e} \geq \frac{\ln \pi}{\pi} \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 2So 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 0So 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=W(2ln2)2ln2x = -\frac{W(-2\ln 2)}{2\ln 2} 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 = 2And 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) = 1$$g(1) = 1$$g(2) = 0$$g(3) = -1$$g(4) = 0$$g(5) = 7. Since g(x)=2x(ln2)22g''(x) = 2^x(\ln 2)^2 - 2And 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 = 4There are no further roots beyond x=4x = 4.


Question:

(a) Solve e2x5ex+6=0e^{2x} - 5e^x + 6 = 0Giving 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 = 0Substitutes u=exu = e^xAnd gets u25u+5=0u^2 - 5u + 5 = 0. Find the values of uuAnd 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=5±25202=5±52u^2 - 5u + 5 = 0 \implies u = \frac{5 \pm \sqrt{25 - 20}}{2} = \frac{5 \pm \sqrt{5}}{2}

Both roots are positive: 5521.382>0\frac{5 - \sqrt{5}}{2} \approx 1.382 \gt 0 and 5+523.618>0\frac{5 + \sqrt{5}}{2} \approx 3.618 \gt 0.

x=ln ⁣(5+52)orx=ln ⁣(552)x = \ln\!\left(\frac{5 + \sqrt{5}}{2}\right) \quad \text{or} \quad x = \ln\!\left(\frac{5 - \sqrt{5}}{2}\right)

(c) The student obtains u=5±52u = \frac{5 \pm \sqrt{5}}{2}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 = 0Then u=1u = -1 or u=4u = 4And u=1u = -1 would give ex=1e^x = -1Which has no real solution. This is a common trap: the substitution u=exu = e^x implicitly constrains u>0u \gt 0And students who forget this constraint accept spurious solutions.


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

Section titled “UT-3: Domain Difference Between ln⁡(x2)\ln(x^2)ln(x2) and 2ln⁡x2\ln x2lnx”

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 xAnd the consequences for function properties like evenness.]

Solution:

(a) f(x)=ln(x2)f(x) = \ln(x^2): we need x2>0x^2 \gt 0I.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 aValid 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 0I.e. For all x0x \geq 0. Since g(x)g(-x) is not even defined on the same domain as g(x)$$g 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 -1Which 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 -1Losing 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.


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)

Section titled “IT-1: Integrating eaxsin⁡(bx)e^{ax}\sin(bx)eaxsin(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 0π2e3xsin(2x)dx\int_0^{\frac{\pi}{2}} e^{3x}\sin(2x)\, dxGiving 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 = e^{3x}$$\frac{dv}{dx} = \sin(2x).

First application: du = 3e^{3x}\, dx$$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) 0π2e3xsin(2x)dx=[e3x13(3sin(2x)2cos(2x))]0π2\int_0^{\frac{\pi}{2}} e^{3x}\sin(2x)\, dx = \left[\frac{e^{3x}}{13}(3\sin(2x) - 2\cos(2x))\right]_0^{\frac{\pi}{2}}

At x=π2x = \frac{\pi}{2}: 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))=2(e3π/2+1)13= \frac{1}{13}(2e^{3\pi/2} - (-2)) = \frac{2(e^{3\pi/2} + 1)}{13}


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

Section titled “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=33+1=34\frac{dy}{dx} = \frac{\sqrt{3}}{3+1} = \frac{\sqrt{3}}{4}.

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

Equation of tangent: yln2=34(x3)y - \ln 2 = \frac{\sqrt{3}}{4}(x - \sqrt{3}).

y=34x34+ln2y = \frac{\sqrt{3}}{4}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=(x2+1)x2x(x2+1)2=1x2(x2+1)2\frac{d^2y}{dx^2} = \frac{(x^2+1) - x \cdot 2x}{(x^2+1)^2} = \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 xxStationary 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 = 0So 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)

Section titled “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 - 1So x=lny+12x = \frac{\ln y + 1}{2}.

f1(x)=lnx+12f^{-1}(x) = \frac{\ln x + 1}{2}

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 lnx+12\frac{\ln x + 1}{2} takes all real values as xx ranges over (0,)(0, \infty)Matching the domain of ff).

(b) (f1f)(x)=f1(f(x))=ln(e2x1)+12=2x1+12=x(f^{-1} \circ f)(x) = f^{-1}(f(x)) = \frac{\ln(e^{2x-1}) + 1}{2} = \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))=e2lnx+121=elnx+11=elnx=x(f \circ f^{-1})(x) = f(f^{-1}(x)) = e^{2 \cdot \frac{\ln x + 1}{2} - 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 - 1So x2=ey+1x^2 = e^y + 1.

Since x>1x \gt 1We 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.

  • Pure Mathematics: Pure maths covers algebra, calculus, and functions
  • Mechanics: Mechanics applies maths to physical problems
  • Statistics: Statistics develops data analysis methods