Exponential and Logarithmic Graphs

A2 · P3 · 16 min

Exponential graphs are recognised by a horizontal asymptote on one side and a curve that steepens without limit on the other; logarithmic graphs are their mirror images, with a vertical asymptote and slow, unbounded growth. P3 questions ask you to sketch them with their key features, to read off ranges, to find where they meet other curves, and, very often, to sketch two graphs on the same axes to show how many roots an equation has before solving it numerically. Every sketch comes down to three facts: where the asymptote is, where the curve crosses the axes, and which way it goes.

The basic exponential shapes

Start from y=exy = e^x: through (0,1)(0, 1), always positive, increasing, with the xx-axis as an asymptote on the left. Everything else is a transformation of it.

y = e^x y = e^(-x) y = e^(2x) y = e^(x/2)
  • y=e−xy = e^{-x} is the reflection of y=exy = e^x in the yy-axis: decreasing, asymptote y=0y = 0 on the right.
  • y=ekxy = e^{kx} for k>0k > 0 is a stretch of y=exy = e^x parallel to the xx-axis with scale factor 1k\tfrac{1}{k}. The larger kk, the steeper the curve; all pass through (0,1)(0, 1).
  • y=axy = a^x with a>1a > 1 has the same shape as exe^x, because ax=exln⁡aa^x = e^{x\ln a} with ln⁡a>0\ln a > 0. With 0<a<10 < a < 1, ln⁡a<0\ln a < 0, so it has the shape of e−xe^{-x}. For example, (12)x=2−x\left(\tfrac{1}{2}\right)^x = 2^{-x}.
Features of y = e^x
  • Domain: all real xx. Range: y>0y > 0.
  • yy-intercept (0,1)(0, 1); no xx-intercept.
  • Horizontal asymptote y=0y = 0, approached as x→−∞x \to -\infty.
  • Increasing everywhere, with gradient equal to its height.

Transformations of exponentials

Most exam curves have the form y=Aekx+cy = Ae^{kx} + c, possibly with xx replaced by x−px - p. Use the transformations from P1 (transformations of graphs):

ChangeEffect on y=exy = e^x
y=ex+cy = e^x + ctranslation (0c)\begin{pmatrix} 0 \\ c \end{pmatrix}; asymptote becomes y=cy = c
y=ex−py = e^{x - p}translation (p0)\begin{pmatrix} p \\ 0 \end{pmatrix}; asymptote unchanged
y=Aexy = Ae^x, A>0A > 0stretch parallel to the yy-axis, factor AA
y=−exy = -e^xreflection in the xx-axis; curve now below its asymptote
y=ekxy = e^{kx}stretch parallel to the xx-axis, factor 1k\tfrac{1}{k}
y=e−xy = e^{-x}reflection in the yy-axis

Note that ex−p=e−pexe^{x - p} = e^{-p}e^x, so a horizontal translation of an exponential is the same as a vertical stretch. Either description is correct.

Sketching y = Ae^{kx} + c
  1. Asymptote: y=cy = c. Draw it as a dashed line and label its equation.
  2. yy-intercept: put x=0x = 0, giving y=A+cy = A + c.
  3. xx-intercept: solve Aekx+c=0Ae^{kx} + c = 0, i.e. ekx=−cAe^{kx} = -\tfrac{c}{A}. This has a solution only if −cA>0-\tfrac{c}{A} > 0; then x=1kln⁡(−cA)x = \tfrac{1}{k}\ln\left(-\tfrac{c}{A}\right).
  4. Which side of the asymptote: if A>0A > 0 the curve is above y=cy = c; if A<0A < 0 it is below.
  5. Which end approaches the asymptote: if k>0k > 0, the left end (x→−∞x \to -\infty); if k<0k < 0, the right end.
  6. Draw a smooth curve through the intercepts, approaching but never touching the asymptote.
y = 3e^(-x) - 6 y = -6 (0, -3) (-ln 2, 0)

The curve y=3e−x−6y = 3e^{-x} - 6 with its asymptote y=−6y = -6. It crosses the axes at (−ln⁡2,0)(-\ln 2, 0) and (0,−3)(0, -3).

Ranges from the asymptote

Because an exponential never reaches its asymptote, the range of y=Aekx+cy = Ae^{kx} + c over all real xx is y>cy > c (if A>0A > 0) or y<cy < c (if A<0A < 0). On a restricted domain such as x≥0x \ge 0, the endpoint is included: for f(x)=3−2e−xf(x) = 3 - 2e^{-x} with x≥0x \ge 0, f(0)=1f(0) = 1 and f(x)→3f(x) \to 3, so the range is 1≤f(x)<31 \le f(x) < 3.

Logarithmic graphs

y=ln⁡xy = \ln x is the reflection of y=exy = e^x in y=xy = x. Its features are the exponential's features with xx and yy swapped.

Features of y = ln x
  • Domain: x>0x > 0. Range: all real yy.
  • xx-intercept (1,0)(1, 0); no yy-intercept.
  • Vertical asymptote x=0x = 0: as x→0+x \to 0^+, ln⁡x→−∞\ln x \to -\infty.
  • Increasing everywhere, but ever more slowly (gradient 1x\tfrac{1}{x}).
y = ln x y = ln(x + 3) y = -ln x

The three curves are y=ln⁡xy = \ln x (through (1,0)(1, 0)), y=ln⁡(x+3)y = \ln(x + 3) (asymptote x=−3x = -3, through (−2,0)(-2, 0)) and y=−ln⁡xy = -\ln x (the reflection of ln⁡x\ln x in the xx-axis).

For a log graph the asymptote is where the argument becomes zero:

  • y=ln⁡(x−a)y = \ln(x - a): asymptote x=ax = a, domain x>ax > a, xx-intercept at x=a+1x = a + 1.
  • y=ln⁡(ax+b)y = \ln(ax + b) with a>0a > 0: asymptote x=−bax = -\tfrac{b}{a}, domain x>−bax > -\tfrac{b}{a}.
  • y=ln⁡(b−x)y = \ln(b - x): domain x<bx < b, a decreasing curve with asymptote x=bx = b.
  • y=ln⁡(kx)=ln⁡k+ln⁡xy = \ln(kx) = \ln k + \ln x: the graph of ln⁡x\ln x translated by ln⁡k\ln k upwards. (It is also a stretch parallel to the xx-axis with factor 1k\tfrac{1}{k}; the two descriptions give the same curve.)
  • y=ln⁡(x2)=2ln⁡xy = \ln(x^2) = 2\ln x only for x>0x > 0. For all x≠0x \ne 0, ln⁡(x2)=2ln⁡∣x∣\ln(x^2) = 2\ln|x|, a curve symmetric in the yy-axis.
Sketching a log graph
  1. Domain and asymptote: solve "argument >0> 0"; the boundary is the vertical asymptote.
  2. xx-intercept: solve ln⁡(…)=\ln(\ldots) = the value that makes y=0y = 0; for y=ln⁡(stuff)y = \ln(\text{stuff}), solve stuff =1= 1.
  3. yy-intercept: put x=0x = 0, if 00 is in the domain.
  4. Direction: increasing if the argument increases with xx; decreasing if it decreases; reflected if there is a minus sign in front.

Exponential and log graphs as inverses

If ff is built from an exponential, f−1f^{-1} is built from a logarithm, and the graph of y=f−1(x)y = f^{-1}(x) is the reflection of y=f(x)y = f(x) in y=xy = x. Horizontal asymptotes of ff become vertical asymptotes of f−1f^{-1}, intercepts swap axes, and the domain and range swap.

Graphs that count roots

A very common P3 question has the form: "By sketching a suitable pair of graphs, show that the equation g(x)=h(x)g(x) = h(x) has exactly nn real roots." Each root is an xx-coordinate where the curves y=g(x)y = g(x) and y=h(x)y = h(x) cross. You do not need to find the roots; you need sketches clear enough to show every crossing and to make it obvious there are no others. This is the first step of locating roots before solving numerically.

Showing the number of roots
  1. Split the equation into two parts whose graphs you know, y=g(x)y = g(x) and y=h(x)y = h(x). Choose functions you can sketch accurately: exponentials, logs, lines, quadratics, 1x\frac{1}{x}, trigonometric curves.
  2. Sketch both on one diagram, with intercepts and asymptotes labelled.
  3. Count the crossings and state the conclusion: "the graphs meet at exactly two points, so the equation has exactly two real roots."
  4. If asked, confirm a location with a sign change.

Worked examples

Sketching a shifted exponential

Sketch the curve y=3e−x−6y = 3e^{-x} - 6, stating the equation of the asymptote and the exact coordinates of the points where the curve crosses the axes.

Solution

Asymptote: as x→∞x \to \infty, e−x→0e^{-x} \to 0, so y→−6y \to -6. The asymptote is y=−6y = -6.

yy-intercept: y=3−6=−3y = 3 - 6 = -3, so (0,−3)(0, -3).

xx-intercept: 3e−x=6⇒e−x=2⇒−x=ln⁡2⇒x=−ln⁡23e^{-x} = 6 \Rightarrow e^{-x} = 2 \Rightarrow -x = \ln 2 \Rightarrow x = -\ln 2. So (−ln⁡2,0)(-\ln 2, 0).

Shape: A=3>0A = 3 > 0 so the curve is above its asymptote; the −x-x means it decreases, rising steeply to the left and flattening onto y=−6y = -6 to the right. (See the graph above.)

A sequence of transformations

Describe a sequence of transformations that maps y=exy = e^x onto y=4−e2xy = 4 - e^{2x}. Sketch the curve, giving the asymptote and the exact intercepts.

Solution

One correct sequence:

  1. a stretch parallel to the xx-axis, scale factor 12\tfrac{1}{2} (giving y=e2xy = e^{2x});
  2. a reflection in the xx-axis (giving y=−e2xy = -e^{2x});
  3. a translation (04)\begin{pmatrix} 0 \\ 4 \end{pmatrix} (giving y=4−e2xy = 4 - e^{2x}).

Asymptote y=4y = 4, approached as x→−∞x \to -\infty; the curve lies below it.

yy-intercept: 4−1=34 - 1 = 3. xx-intercept: e2x=4⇒2x=ln⁡4⇒x=12ln⁡4=ln⁡2e^{2x} = 4 \Rightarrow 2x = \ln 4 \Rightarrow x = \tfrac{1}{2}\ln 4 = \ln 2.

y = 4 - e^(2x) y = 4 (ln 2, 0) (0, 3)
A logarithmic curve

Sketch y=1+ln⁡(x−2)y = 1 + \ln(x - 2), stating its domain, its asymptote and the exact coordinates of any intercepts.

Solution

Domain: x−2>0x - 2 > 0, so x>2x > 2. Asymptote x=2x = 2, with y→−∞y \to -\infty as x→2+x \to 2^+.

xx-intercept: ln⁡(x−2)=−1⇒x−2=e−1⇒x=2+e−1\ln(x - 2) = -1 \Rightarrow x - 2 = e^{-1} \Rightarrow x = 2 + e^{-1}, so (2+1e,0)\left(2 + \tfrac{1}{e}, 0\right).

yy-intercept: none, because x=0x = 0 is not in the domain.

The curve is y=ln⁡xy = \ln x translated by (21)\begin{pmatrix} 2 \\ 1 \end{pmatrix}: it rises from the asymptote, crosses the axis at x≈2.37x \approx 2.37, and keeps increasing slowly.

y = 1 + ln(x - 2) (2, -4) -- (2, 4)
Range, inverse and both graphs

The function ff is defined by f(x)=3−2e−xf(x) = 3 - 2e^{-x} for x≥0x \ge 0.

(a) Find the range of ff.

(b) Find f−1(x)f^{-1}(x) and state its domain.

(c) Sketch y=f(x)y = f(x) and y=f−1(x)y = f^{-1}(x) on the same diagram, showing how they are related.

Solution

(a) f(0)=3−2=1f(0) = 3 - 2 = 1. As xx increases, e−xe^{-x} decreases to 00, so f(x)f(x) increases towards 33 but never reaches it. Range: 1≤f(x)<31 \le f(x) < 3.

(b) y=3−2e−x⇒e−x=3−y2⇒x=−ln⁡(3−y2)=ln⁡(23−y)y = 3 - 2e^{-x} \Rightarrow e^{-x} = \dfrac{3 - y}{2} \Rightarrow x = -\ln\left(\dfrac{3 - y}{2}\right) = \ln\left(\dfrac{2}{3 - y}\right).

So f−1(x)=ln⁡(23−x)f^{-1}(x) = \ln\left(\dfrac{2}{3 - x}\right), with domain 1≤x<31 \le x < 3.

(c) y=f(x)y = f(x) starts at (0,1)(0, 1) and rises towards the asymptote y=3y = 3. y=f−1(x)y = f^{-1}(x) is its reflection in y=xy = x: it starts at (1,0)(1, 0) and rises steeply towards the vertical asymptote x=3x = 3.

y = 3 - 2e^(-x) y = ln(2 / (3 - x)) y = x
Exam-hard: showing the number of roots

(a) By sketching a suitable pair of graphs, show that the equation e−x=4−x2e^{-x} = 4 - x^2 has exactly two real roots.

(b) Show by calculation that the positive root lies between 1.91.9 and 22, and that the negative root lies between −2-2 and −1-1.

Solution

(a) Sketch y=e−xy = e^{-x} (decreasing, through (0,1)(0, 1), asymptote y=0y = 0 to the right) and y=4−x2y = 4 - x^2 (a parabola, maximum (0,4)(0, 4), crossing the xx-axis at ±2\pm 2).

y = e^(-x) y = 4 - x^2

For ∣x∣>2|x| > 2 the parabola is negative, while e−xe^{-x} is always positive, so the graphs cannot meet there. Between −2-2 and 22 the exponential starts above the parabola at x=−2x = -2 (e2≈7.4>0e^2 \approx 7.4 > 0), is below it at x=0x = 0 (1<41 < 4), and is above it again at x=2x = 2 (e−2>0e^{-2} > 0). The curves cross once on each side of the yy-axis: exactly two points, so exactly two real roots.

(b) Let f(x)=4−x2−e−xf(x) = 4 - x^2 - e^{-x}.

f(1.9)=4−3.61−e−1.9=0.240>0f(1.9) = 4 - 3.61 - e^{-1.9} = 0.240 > 0 and f(2)=−e−2=−0.135<0f(2) = -e^{-2} = -0.135 < 0. Sign change and ff is continuous, so a root lies between 1.91.9 and 22.

f(−2)=−e2=−7.39<0f(-2) = -e^{2} = -7.39 < 0 and f(−1)=3−e=0.282>0f(-1) = 3 - e = 0.282 > 0. Sign change, so a root lies between −2-2 and −1-1.

Common mistakes
  • Letting the curve touch or cross its asymptote. An exponential approaches y=cy = c but never reaches it. Examiners penalise sketches where the curve meets the asymptote or turns away from it.
  • Asymptote on the wrong side. y=e−xy = e^{-x} approaches y=0y = 0 as x→+∞x \to +\infty, not −∞-\infty. Check by substituting a large positive xx.
  • Decimal intercepts. Mark (−ln⁡2,0)(-\ln 2, 0), not (−0.69,0)(-0.69, 0), unless a decimal is asked for.
  • A yy-intercept outside the domain. y=ln⁡(x−2)y = \ln(x - 2) has no yy-intercept; do not write ln⁡(−2)\ln(-2).
  • Including the asymptote value in a range. The range of 3−2e−x3 - 2e^{-x} is y<3y < 3, not y≤3y \le 3.
  • Counting roots from a careless sketch. If the two curves are close, say why they cannot meet again (one is negative, one is always positive; one is increasing, the other decreasing).
Exam tip
  • "Sketch" means a clear shape with the key features labelled: asymptotes (with their equations), intercepts (with exact coordinates), and the correct behaviour at both ends. It does not need to be to scale.
  • For "show that the equation has exactly nn roots", the mark scheme typically gives one mark per correct graph and one for the conclusion stated in words. Write the conclusion.
  • When asked to "describe a sequence of transformations", name each one fully: "stretch parallel to the xx-axis, scale factor 12\tfrac{1}{2}", "translation (04)\begin{pmatrix} 0 \\ 4 \end{pmatrix}". The order matters when stretches and translations act in the same direction.
  • If a question asks for a range, look at the asymptote first, then at the endpoint of any restricted domain.
Summary
  • y=exy = e^x: through (0,1)(0, 1), asymptote y=0y = 0 on the left, range y>0y > 0. y=e−xy = e^{-x}: its mirror image in the yy-axis.
  • ax=exln⁡aa^x = e^{x\ln a}: increasing if a>1a > 1, decreasing if 0<a<10 < a < 1.
  • For y=Aekx+cy = Ae^{kx} + c: asymptote y=cy = c, yy-intercept A+cA + c, xx-intercept from ekx=−cAe^{kx} = -\tfrac{c}{A} (only if this is positive).
  • y=ln⁡xy = \ln x: through (1,0)(1, 0), asymptote x=0x = 0, domain x>0x > 0. For y=ln⁡(ax+b)y = \ln(ax + b), the asymptote is where ax+b=0ax + b = 0.
  • Inverse functions reflect in y=xy = x: horizontal asymptotes become vertical ones.
  • To count roots of g(x)=h(x)g(x) = h(x), sketch both and count crossings; justify that there are no more.

Practice

Question
  1. Sketch y=2ex+1y = 2e^x + 1, stating the equation of the asymptote and the yy-intercept.
  2. Sketch y=e2x−4y = e^{2x} - 4, giving the exact coordinates of the points where it crosses the axes.
  3. Find the exact coordinates of the point where y=2xy = 2^x meets y=8×2−xy = 8 \times 2^{-x}.
  4. Sketch y=1−ln⁡xy = 1 - \ln x and find the exact coordinates of the point where it crosses the xx-axis.
  5. Sketch y=ln⁡(3−x)y = \ln(3 - x), stating its domain, its asymptote and its intercepts.
  6. Give two different single transformations that each map y=ln⁡xy = \ln x onto y=ln⁡(2x)y = \ln(2x).
  7. By sketching suitable graphs, show that the equation ex=3−xe^x = 3 - x has exactly one real root, and show that it lies between 00 and 11.
  8. Find the exact coordinates of the point of intersection of y=e2xy = e^{2x} and y=3ex+4y = 3e^x + 4, explaining why there is only one.
  9. The function ff is defined by f(x)=5−4e−x/2f(x) = 5 - 4e^{-x/2} for x≥0x \ge 0. (a) State the range of ff. (b) Find f−1(x)f^{-1}(x) and state its domain. (c) The curve y=5−4e−x/2y = 5 - 4e^{-x/2} for all real xx crosses the xx-axis at PP. Find the exact xx-coordinate of PP and explain why PP is not on the graph of y=f(x)y = f(x).
Answers
  1. Asymptote y=1y = 1 (approached as x→−∞x \to -\infty); yy-intercept 2+1=32 + 1 = 3; increasing, always above y=1y = 1, so no xx-intercept.

  2. Asymptote y=−4y = -4. yy-intercept 1−4=−31 - 4 = -3, so (0,−3)(0, -3). xx-intercept: e2x=4⇒x=12ln⁡4=ln⁡2e^{2x} = 4 \Rightarrow x = \tfrac{1}{2}\ln 4 = \ln 2, so (ln⁡2,0)(\ln 2, 0).

  3. 2x=8×2−x⇒22x=8=23⇒x=322^x = 8 \times 2^{-x} \Rightarrow 2^{2x} = 8 = 2^3 \Rightarrow x = \tfrac{3}{2}. Then y=23/2=22y = 2^{3/2} = 2\sqrt{2}. Point (32,22)\left(\tfrac{3}{2}, 2\sqrt{2}\right).

  4. Reflect y=ln⁡xy = \ln x in the xx-axis, then translate up by 11: a decreasing curve with asymptote x=0x = 0 (y→+∞y \to +\infty as x→0+x \to 0^+). It crosses the axis where ln⁡x=1\ln x = 1, at (e,0)(e, 0).

  5. Domain x<3x < 3; asymptote x=3x = 3, with y→−∞y \to -\infty as x→3−x \to 3^-. xx-intercept: 3−x=1⇒(2,0)3 - x = 1 \Rightarrow (2, 0). yy-intercept: (0,ln⁡3)(0, \ln 3). The curve decreases as xx increases (it is y=ln⁡xy = \ln x reflected in the yy-axis then translated 33 to the right).

  6. ln⁡(2x)=ln⁡2+ln⁡x\ln(2x) = \ln 2 + \ln x, so a translation (0ln⁡2)\begin{pmatrix} 0 \\ \ln 2 \end{pmatrix}. Alternatively, replacing xx by 2x2x is a stretch parallel to the xx-axis with scale factor 12\tfrac{1}{2}.

  7. y=exy = e^x is increasing everywhere and y=3−xy = 3 - x is decreasing everywhere, so they can cross at most once; they do cross (the exponential is below the line at x=0x = 0 and above it at x=1x = 1), so exactly one root. With f(x)=ex+x−3f(x) = e^x + x - 3: f(0)=−2<0f(0) = -2 < 0 and f(1)=e−2=0.718>0f(1) = e - 2 = 0.718 > 0. Sign change, ff continuous, so the root lies between 00 and 11.

  8. e2x−3ex−4=0⇒(ex−4)(ex+1)=0e^{2x} - 3e^x - 4 = 0 \Rightarrow (e^x - 4)(e^x + 1) = 0. ex=−1e^x = -1 is impossible, so there is only one intersection: ex=4e^x = 4, x=ln⁡4x = \ln 4 (=2ln⁡2= 2\ln 2), and y=e2x=16y = e^{2x} = 16. Point (ln⁡4,16)(\ln 4, 16).

  9. (a) f(0)=1f(0) = 1 and f(x)→5f(x) \to 5 as x→∞x \to \infty, so 1≤f(x)<51 \le f(x) < 5. (b) e−x/2=5−y4⇒−x2=ln⁡5−y4⇒x=2ln⁡45−ye^{-x/2} = \dfrac{5 - y}{4} \Rightarrow -\tfrac{x}{2} = \ln\dfrac{5 - y}{4} \Rightarrow x = 2\ln\dfrac{4}{5 - y}. So f−1(x)=2ln⁡(45−x)f^{-1}(x) = 2\ln\left(\dfrac{4}{5 - x}\right) with domain 1≤x<51 \le x < 5. (c) 5=4e−x/2⇒e−x/2=54⇒x=−2ln⁡545 = 4e^{-x/2} \Rightarrow e^{-x/2} = \tfrac{5}{4} \Rightarrow x = -2\ln\tfrac{5}{4} (≈−0.446\approx -0.446). This is negative, so it is outside the domain x≥0x \ge 0 of ff; indeed the range of ff shows f(x)≥1f(x) \ge 1, so ff never takes the value 00.

How well do you know this?

Builds on

Where this leads

Console

Search notes, courses and tools, or run an action