Home / AS & A Level Mathematics 9709 / Logarithmic and exponential functions
Cambridge International AS & A Level Mathematics 9709 · Pure Mathematics 2

Logarithmic and exponential functions

Logarithms as the inverse of indices and the laws of logarithms; the functions ex and lnx and their graphs; solving equations and inequalities with the unknown in an index; and using logarithms to turn y=kxn and y=k(ax) into straight lines, to find the constants from a graph.

2.2Paper 2: Pure Mathematics 2Free lesson
What the syllabus says

2.2 (Paper 2)

  • understand the relationship between logarithms and indices, and use the laws of logarithms (excluding change of base)
  • understand the definition and properties of ex and lnx, including their relationship as inverse functions and their graphs
  • use logarithms to solve equations and inequalities in which the unknown appears in indices
  • use logarithms to transform a given relationship to linear form, and hence determine unknown constants by considering the gradient and/or intercept.

Notes and examples

  • Including knowledge of the graph of y=ekx for both positive and negative values of k.
  • e.g. 2x<5, 3×23x−1<5, 3x+1=42x−1.
  • e.g. y=kxn gives lny=lnk+nlnx which is linear in lnx and lny. y=k(ax) gives lny=lnk+xlna which is linear in x and lny.

Quoted from the Cambridge International AS and A Level Mathematics 9709 syllabus (2026-2027 and 2028-2030 editions, which share this content).

Logarithms and indices Paper 2

A logarithm answers the question "what power?". For a base a>0 with a≠1,
logax=y⟺ay=x
So log232=5 because 25=32, log100.001=−3 because 10−3=0.001, and log93=12 because 912=3.

Because ay is always positive, logax is only defined for x>0. Two values come straight from the definition: loga1=0 (since a0=1) and logaa=1. Applying the power and then the logarithm undoes itself: loga(ax)=x and alogax=x.

Logarithms to base 10 are written lgx on some papers, and logarithms to base e are written lnx (see below).

To find a logarithm without a calculator, write both numbers as powers of the same base: log84 asks for y with 8y=4, that is 23y=22, so y=23.

Check yourself Paper 2

Find the exact value of log279.

Answer it in the portal, where your answer is checked as you type →

The laws of logarithms Paper 2

The index laws am×an=am+n, am÷an=am−n and (am)k=amk turn into three laws of logarithms:

  • loga(xy)=logax+logay;
  • loga(xy)=logax−logay;
  • loga(xk)=klogax.

Why the first law works. Let logax=m and logay=n, so x=am and y=an. Then xy=am+n, so loga(xy)=m+n. The other two follow in the same way.

Two consequences are used often: loga(1x)=−logax, and logax=12logax.

There are no laws for loga(x+y) or for logaxlogay: these do not simplify. All the logarithms in a law must have the same base (changing the base is not required in this paper).

Solving a logarithmic equation. Use the laws to collect each side into a single logarithm, then remove the logarithms: logaf(x)=logag(x) gives f(x)=g(x), and logaf(x)=c gives f(x)=ac. Finally, check every answer in the original equation: a value that makes any logarithm's argument zero or negative must be rejected.

Worked example 1 Paper 2

(a) Express 2log36−log34 as a single logarithm and hence find its exact value. (b) Solve log2(x+6)−log2x=3.

  1. (a) Power law: 2log36=log336.

  2. Quotient law: log336−log34=log39, and log39=2 because 32=9.

  3. (b) Quotient law: log2(x+6x)=3.

  4. Remove the logarithm: x+6x=23=8, so x+6=8x and x=67.

  5. Check: x=67 makes both x and x+6 positive, so it is valid.

Answer: (a) log39=2 (b) x=67

Worked example 2 Paper 2

Solve the equation log2x+log2(x−2)=3.

  1. Product law: log2[x(x−2)]=3, so x(x−2)=23=8.

  2. x2−2x−8=0, so (x−4)(x+2)=0 and x=4 or x=−2.

  3. x=−2 would need log2(−2), which is not defined, so reject it.

  4. The only solution is x=4. Check: log24+log22=2+1=3.

Answer: x=4

Check yourself Paper 2

Given that loga2=p and loga3=q, express loga12 in terms of p and q.

Answer it in the portal, where your answer is checked as you type →

The exponential function Paper 2

The number e=2.71828… is a special base: the curve y=ex has gradient 1 where it crosses the y-axis, and in fact its gradient at every point equals its height. You will use that in differentiation; here the important facts are about its graph.

y=ex is called the exponential function. Its graph:

  • passes through (0,1), since e0=1;
  • is always above the x-axis: ex>0 for every x, so ex=−2 has no solution;
  • increases everywhere, more and more steeply;
  • approaches the x-axis as x→−∞, so y=0 is an asymptote.

The graph of y=ekx. For k>0 it has the same shape as ex, rising more steeply when k is larger: this models growth. For k<0 it is the reflection of a growth curve in the y-axis: it falls from left to right towards the asymptote y=0, modelling decay. Every one of these curves passes through (0,1).

A curve such as y=4−3e−2x is a transformation of one of these: as x→∞, e−2x→0 and y→4, so its asymptote is y=4, and it crosses the y-axis at 4−3=1.

xy−3−2−1123123456780y = e^xy = e^2xy = e^-x(0, 1)

ekx with k>0 is a growth curve, steeper for larger k; with k<0 it is a decay curve. All pass through (0,1) with the asymptote y=0.

The natural logarithm Paper 2

The logarithm to base e is the natural logarithm, written lnx:
lnx=y⟺ey=x
So lnx and ex are inverse functions: each undoes the other, ln(ex)=x for all x and elnx=x for x>0. As with any inverse pair, the graph of y=lnx is the reflection of y=ex in the line y=x. So it:

  • passes through (1,0), since ln1=0, and lne=1;
  • exists only for x>0, with the y-axis as an asymptote;
  • increases everywhere, but more and more slowly.

The laws of logarithms hold for ln exactly as for any base. They give the standard method for an equation in e: isolate the exponential, then take ln of both sides. For ln of an expression, isolate the logarithm and then take e to the power of both sides.

An equation such as 3e2x−10ex+3=0 is a quadratic in disguise: since e2x=(ex)2, put u=ex. Any negative value of u is rejected, because ex>0.

xy−3−2−112345−3−2−1123450y = e^xy = ln xy = x(0, 1)(1, 0)

y=lnx is the reflection of y=ex in y=x: the asymptote y=0 of one becomes the asymptote x=0 of the other.

Worked example 3 Paper 2

(a) Solve e2x−1=5, giving x correct to 3 significant figures. (b) Solve ln(3x+2)=2, giving the exact value of x. (c) Solve 3e2x−10ex+3=0, giving exact answers.

  1. (a) Take ln of both sides: 2x−1=ln5, so x=1+ln52=1.30 (3 s.f.).

  2. (b) Take e to the power of each side: 3x+2=e2, so x=e2−23.

  3. (c) Put u=ex: 3u2−10u+3=0, so (3u−1)(u−3)=0 and u=13 or u=3.

  4. ex=3 gives x=ln3; ex=13 gives x=ln13=−ln3.

Answer: (a) 1.30 (b) e2−23 (c) x=±ln3

Check yourself Paper 2

Solve the equation e3x=7, giving x correct to 3 significant figures.

Answer it in the portal, where your answer is checked as you type →

Equations with the unknown in the index Paper 2

When the unknown is in an index and the bases cannot be matched, take logarithms of both sides (any base will do; ln is usual) and use the power law to bring the index down. The equation becomes linear in x.

For 32x=4x+1:

  1. take ln: 2xln3=(x+1)ln4;
  2. expand and collect the x terms: x(2ln3−ln4)=ln4;
  3. divide: x=ln42ln3−ln4=ln4ln94=1.71 (3 s.f.).

Keep the logarithms exact until the last line, and only then use the calculator. Do not "cancel" logarithms: ln4ln2.25 is not ln42.25.

Inequalities with the unknown in the index Paper 2

Logarithms keep the order of positive numbers (ln is an increasing function), so taking ln of both sides of an inequality between positive quantities keeps the inequality sign. The danger comes next: when you divide by a logarithm, check its sign. ln0.8, and the logarithm of any number between 0 and 1, is negative, and dividing by a negative number reverses the inequality.

For 2x<5: xln2<ln5, and ln2>0, so x<ln5ln2.

For 0.8n<0.03: nln0.8<ln0.03. Since ln0.8<0, dividing reverses the sign: n>ln0.03ln0.8=15.7. If n must be a whole number, the smallest is 16: round up, because 15 does not satisfy the inequality.

These are the calculations behind compound interest, depreciation and decay: "after how many years is the value first above (or below) a target?"

Worked example 4 Paper 2

(a) Solve the inequality 5×23x−1<60, giving the boundary correct to 3 significant figures. (b) Find the smallest integer n for which 0.8n<0.03.

  1. (a) Divide by 5: 23x−1<12.

  2. Take ln: (3x−1)ln2<ln12. Since ln2>0, 3x−1<ln12ln2=3.585.

  3. So 3x<4.585 and x<1.53 (3 s.f.).

  4. (b) nln0.8<ln0.03. ln0.8 is negative, so dividing reverses the sign: n>ln0.03ln0.8=15.71.

  5. The smallest integer is n=16. Check: 0.815=0.035 is not below 0.03, but 0.816=0.028 is.

Answer: (a) x<1.53 (b) n=16

Check yourself Paper 2

A savings account pays 6% interest a year, so a deposit is multiplied by 1.06 each year. Find the smallest whole number of years n for which 1.06n>3.

Answer it in the portal, where your answer is checked as you type →

Reducing a relationship to linear form Paper 2

Experimental data often follow y=kxn or y=k(ax) with unknown constants. A curve is hard to read constants from, but a straight line is easy: its gradient and intercept can be measured. Logarithms turn both relationships into straight lines of the form Y=mX+c.

Power law, y=kxn. Take ln of both sides:
lny=lnk+nlnx
This is linear in lnx and lny: plot Y=lny against X=lnx. The gradient is n and the Y-intercept is lnk.

Exponential law, y=k(ax). Take ln:
lny=lnk+xlna
This is linear in x and lny: plot lny against x itself. The gradient is lna and the intercept is lnk.

To recover the constants, remember which are logarithms: if the intercept is c, then k=ec, and if the gradient of the exponential plot is m, then a=em. The gradient of the power-law plot is n itself.

Base 10 works in the same way (lgy=lgk+nlgx, and then k=10c); use whichever base the question uses, and do not mix them.

The gradient comes from two points on the line, m=Y2−Y1X2−X1, and the intercept from c=Y1−mX1 when the line does not reach the axis on the diagram.

Worked example 5 Paper 2

The variables x and y satisfy y=kxn. The graph of lny against lnx is a straight line through the points (1.2,3.9) and (2.0,5.1). (a) Find n. (b) Find k, correct to 3 significant figures. (c) Find y when x=2.

  1. Taking logarithms, lny=lnk+nlnx, so the gradient is n and the intercept is lnk.

  2. (a) n=5.1−3.92.0−1.2=1.20.8=1.5.

  3. (b) lnk=3.9−1.5×1.2=2.1, so k=e2.1=8.17 (3 s.f.).

  4. (c) y=e2.1×21.5=23.1 (3 s.f.). Using the unrounded k keeps the answer accurate.

Answer: (a) n=1.5 (b) k=8.17 (c) y=23.1

xy0.511.522.51234560(1.2, 3.9)(2.0, 5.1)

Horizontal axis lnx, vertical axis lny. The gradient is n and the intercept, 2.1, is lnk.

Key points

  • logax=y⟺ay=x, for a>0, a≠1 and x>0.

  • loga(xy)=logax+logay, logaxy=logax−logay, logaxk=klogax.

  • ln and ex are inverse functions; their graphs are reflections in y=x.

  • ex>0 always; y=ekx passes through (0,1), with growth for k>0 and decay for k<0.

  • Unknown in an index: take ln of both sides and bring the index down.

  • Dividing an inequality by the logarithm of a number between 0 and 1 reverses the sign.

  • y=kxn: plot lny against lnx, gradient n, intercept lnk. y=k(ax): plot lny against x, gradient lna, intercept lnk.

Where marks are lost

  • Writing log(x+6)=logx+log6, or lnalnb=lna−lnb: neither is a law.

  • Keeping a solution that makes the argument of a logarithm zero or negative.

  • Keeping ex=−2 or 2x=−3 as if it gave a value of x.

  • Forgetting to reverse the inequality after dividing by ln0.8 or another negative logarithm.

  • Rounding down when asked for the smallest whole number that satisfies an inequality.

  • Giving the intercept lnk as the value of k, or the gradient lna as the value of a.

  • Rounding ln values early, so the final answer is wrong in the third significant figure.

Related AS & A Level Mathematics 9709 lessons

All AS & A Level Mathematics 9709 lessons →

An original lesson written to the Cambridge International AS & A Level Mathematics 9709 syllabus (2026 to 2027 and 2028 to 2030). The worked examples and questions are our own, not Cambridge questions. Back to every AS & A Level Mathematics 9709 lesson.