AS & A Level Maths · Area 2 · Pure Mathematics 3

Logarithmic and Exponential Functions

This topic is about the two functions that undo each other: the exponential ex and the natural logarithm lnx. You need the laws of logarithms, the shape of the graphs, a routine for solving equations where the unknown is in the index, and the trick that turns a relationship such as y=kxn into a straight line so that its constants can be read off a graph.

Not started

Syllabus coverage

  • 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, and know the graph of y=ekx for positive and negative values of k
  • Use logarithms to solve equations and inequalities in which the unknown appears in an index
  • Use logarithms to transform a relationship to linear form, and determine unknown constants from the gradient and the intercept of the resulting straight line

Part of the AS & A Level Maths syllabus 9709.

Exponential growth and decay against linear change0123456789100100200300400500600time in periodsvalueboth curves start at 100growth: value multiplied by 1.2 each perioddecay: value multiplied by 0.8 each periodadding a fixed amounteach periodLinear change is a straight line; exponential change curves away from it.
The two shapes every exponential curve has. For k>0 the graph of y=ekx climbs away from the x-axis; for k<0 it falls towards it. The straight line shows how differently exponential change behaves from a fixed change.

A logarithm is an index written the other way round

The definition is the whole topic: logax=n means exactly the same thing as an=x. The number a is the base, and it must be positive and not equal to 1; x must be positive, because no power of a positive base is negative or zero. So log28=3 because 23=8, and log5125=−2 because 5−2=125.

Two bases are used throughout Paper 3. Base 10 gives the common logarithm, written logx with no base shown, and it is the one on a calculator button. Base e gives the natural logarithm, written lnx, and it is the one the rest of the course is built on. Nothing else needs a base of its own.

Four consequences of the definition are used constantly and are worth knowing cold: loga1=0 because a0=1; logaa=1; logaak=k because the two operations cancel; and alogax=x. The last two are the same statement seen from each side, and they are what make logarithms and exponentials inverse functions.

Logarithms turn multiplication into addition, which is why they were invented and why they still solve equations that nothing else can touch. A question that says 'solve', where the unknown is in the air, is almost always a question about taking logarithms of both sides.

  • logax=n⇔an=x - learn this as one two-way statement
  • loga1=0 and logaa=1 for every valid base
  • logaak=k, so log227=7 without any calculation
  • You cannot take the logarithm of 0 or of a negative number
  • log319=−2, not −12: the answer is the index, not the value of the fraction
The answer to a logarithm is an index. If a question asks for log232 the answer is 5, and writing 25 is answering a different question - it is the working, not the answer.

The laws of logarithms

Three laws cover everything Paper 3 asks. The product law: logaxy=logax+logay. The quotient law: logaxy=logax−logay. The power law: logaxk=klogax. All three come from the index laws, and all three need the same base on every logarithm before they can be used.

They are used in both directions. Combining several logarithms into one is what lets you solve an equation: log2x+log2(x+2)=3 becomes log2[x(x+2)]=3, and then the definition turns it into x(x+2)=23=8, so x2+2x−8=0, giving x=2 or x=−4. The solution x=−4 must be rejected, because log2(−4) does not exist - a logarithm question that produces two roots almost always wants one of them thrown away with a reason.

Splitting a single logarithm into several is what the later topics need. The power law is how a logarithm of a power is written, and it is the step that makes an equation with the unknown in the index solvable at all. You will use it again in differentiation and integration, where lnx and ex are the functions that behave most simply.

Change of base is deliberately excluded at 9709, so you will never need to convert a logarithm from one base to another by formula. If an equation involves base 10 and base e together, take logarithms in whichever base you like on both sides and carry the base through to the end.

LawStatementExample
Productlogaxy=logax+logaylog24+log28=log232=5
Quotientlogaxy=logax−logaylog318−log32=log39=2
Powerlogaxk=klogaxlog525x=2x
Special valuesloga1=0, logaa=1ln1=0, lne=1
Cancellingalogax=x, logaak=keln7=7, lne4=4
loga(x+y) is not logax+logay. The product law is about the logarithm of a product; there is no law at all for the logarithm of a sum, and inventing one is the single commonest error in this topic.

The exponential function e^x and the natural logarithm ln x

e is a number, approximately 2.718281828, chosen because y=ex is the one exponential curve whose gradient at every point equals its height. ex is called the exponential function, and lnx means logex, the natural logarithm.

Because they share a base, ex and lnx undo each other: ln(ex)=x for every real x, and elnx=x for every x>0. That second restriction matters. eln(−3) is meaningless, because ln(−3) does not exist, so a solution that requires it must be rejected.

The two functions are therefore inverse functions, and this is the relationship the syllabus asks you to understand rather than merely quote. It is what lets you solve ln(2x−1)=3: exponentiate both sides to get 2x−1=e3, so x=e3+12=10.5 to 3 significant figures. In the other direction, e2x=7 gives 2x=ln7, so x=ln72=0.973.

Two facts about the ranges are worth memorising because they decide how many solutions an equation has. ex is positive for every x, so ex=−4 has no solutions. And lnx is defined only for x>0, so lnx=−4 does have a solution, namely x=e−4.

StatementEquivalent statementRestriction
e0=1ln1=0none
e1=elne=1none
ln(ex)=xelnx=xx>0 in the second form only
ex>0 alwayslnx is undefined for x≤0the domain of lnx is x>0
ex never reaches zero and never goes negative, so the x-axis is an asymptote of its graph. lnx is the mirror image, so the y-axis is an asymptote of that one.

The graphs of y = e^x, y = ln x and y = e^kx

The graph of y=ex passes through (0,1), climbs steeply to the right, and approaches the x-axis as x becomes very negative without ever touching it. Its range is y>0 and it is increasing everywhere. The graph of y=lnx passes through (1,0), climbs more and more slowly, and approaches the y-axis as x approaches zero from above. Its domain is x>0 and its range is every real number.

Because the functions are inverses, one graph is the reflection of the other in the line y=x. The point (0,1) on y=ex reflects to (1,0) on y=lnx, and the horizontal asymptote of one becomes the vertical asymptote of the other. If a question asks you to sketch both, the line y=x is the mirror, and drawing it makes the sketch easy to justify.

The syllabus asks specifically for y=ekx for both positive and negative k. For k>0 the curve grows as x increases; for k<0 it decays towards the x-axis. Every one of them passes through (0,1), because e0=1 whatever k is, and the bigger |k| is, the faster the curve rises or falls. The case k=−1 is worth knowing separately: y=e−x is the reflection of y=ex in the y-axis.

One algebraic fact ties the family together: ekx=(ek)x, so a curve of the form y=ekx is the same kind of thing as y=ax with a=ek. That is why every exponential model in the paper, whether written with a base of 2 or a base of e, has the same shape and the same two possibilities - growth or decay.

CurvePoint it always passes throughAsymptoteBehaviour
y=ex(0,1)the x-axis, as x→−∞increasing, range y>0
y=e−x(0,1)the x-axis, as x→+∞decreasing, range y>0
y=ekx, k>0(0,1)the x-axis on the leftgrowth; steeper for larger k
y=ekx, k<0(0,1)the x-axis on the rightdecay; faster for more negative k
y=lnx(1,0)the y-axis, as x→0+increasing, domain x>0
Every exponential curve passes through (0,1) and every logarithmic curve passes through (1,0), because e0=1 and ln1=0. A sketch that misses these points has missed the definition.

Solving equations in which the unknown is in the index

When the unknown is in the air, take logarithms of both sides. That step is valid because ln is an increasing function, so it preserves equality, and it works for any base - ln and log10 are both acceptable, and the exact answer may be written with either. For 2x+1=5, taking ln gives (x+1)ln2=ln5, so x+1=ln5ln2 and x=1.322 to 3 decimal places.

When the unknown appears in two indices, use the power law to bring both down, then collect the x terms. For 32x−1=4x+1: taking logarithms gives (2x−1)ln3=(x+1)ln4; expanding gives 2xln3−ln3=xln4+ln4; collecting gives x(2ln3−ln4)=ln3+ln4, so x=ln3+ln42ln3−ln4=3.06 to 3 significant figures. The whole method is one line of expansion and one line of collecting.

Inequalities work the same way with one extra rule: dividing by a negative number reverses the inequality, and a logarithm can be negative when its base is less than 1 or its argument is less than 1. In 21−x>5, taking logarithms gives (1−x)ln2>ln5, so −xln2>ln5−ln2, and multiplying by −1 reverses the sign to give xln2<ln2−ln5. Since ln2>0 the division does not reverse anything, and x<ln2−ln5ln2=−1.32 to 3 significant figures.

Two smaller habits save marks. State which logarithm you are taking, because that is a method mark in its own right. And keep the exact fraction until the final line: ln5ln2 rounded to 1.32 and then reused in a later part can cost the accuracy mark, while the exact form never can.

  • Write 'take ln of both sides' before you use the power law
  • af(x)=b becomes f(x)lna=lnb in one step
  • With the unknown in two indices, expand both sides and collect the x terms before dividing
  • Dividing by a negative logarithm reverses an inequality - check the sign of the log before you divide
  • 0.5x=8 gives x=ln8ln0.5=−3 exactly, because 8=23 and ln0.5=−ln2
An equation such as ex=−2 has no solutions, because ex is always positive. Spotting that before you take logarithms saves you from writing ln(−2), which does not exist.

Reducing a relationship to linear form

Experimental data often obey a power law y=kxn or an exponential law y=kax, and neither can be checked by plotting y against x, because both produce curves. Taking logarithms turns each of them into the equation of a straight line, and the constants can then be read off the graph or worked out from two pairs of values.

For y=kxn, take logarithms of both sides and use the product and power laws: lny=lnk+nlnx. Plotted with lny up the vertical axis and lnx along the horizontal axis, this is a straight line of gradient n and vertical intercept lnk. The gradient gives the power directly, and the intercept has to be exponentiated to give k.

For y=kax, the same step gives lny=lnk+xlna, which is a straight line when lny is plotted against x itself. Here the gradient is lna and the vertical intercept is again lnk. A relationship of the form y=Aebx is the same case with a=eb: the gradient of the straight line is exactly b, and the intercept is lnA.

Given two pairs of values, the two constants come out of two simultaneous equations. If y=kxn with y=96 when x=4, and y=729 when x=9, then ln96=lnk+nln4 and ln729=lnk+nln9. Subtracting removes lnk: ln729−ln96=n(ln9−ln4), so n=ln729−ln96ln9−ln4=2.02740.8109=2.5. Then lnk=ln96−2.5ln4=1.0986, so k=e1.0986=3.

RelationshipLinear formPlotGradientIntercept
y=kxnlny=lnk+nlnxlny against lnxnlnk, so k=eintercept
y=kaxlny=lnk+xlnalny against xlna, so a=egradientlnk
y=Aebxlny=lnA+bxlny against xblnA
y=Ab−xlny=lnA−xlnblny against x−lnblnA
The intercept is lnk, not k. An answer that reads a graph intercept of 1.0986 and states k=1.0986 has lost the final mark; k=e1.0986=3 is the answer.

How a Paper 3 logarithms question is built

There are four shapes and each has a routine. Evaluating a logarithm is a recall question - write the index. Solving an equation with the unknown in the index is 'take logarithms, apply the power law, collect'. Solving an equation with logarithms on both sides is 'combine with the laws, use the definition, then reject any invalid root'. Transforming a relationship to linear form is 'take logarithms, state what is plotted, name the gradient and the intercept, then convert the intercept back'.

The marks sit in the statements rather than in the arithmetic. Writing 'take ln of both sides', naming the gradient as lna, and saying why a root is rejected are each worth a mark that a calculator cannot supply. A bare decimal with no line of working rarely scores more than the final accuracy mark.

  • Rewrite using the definition before doing anything clever - most questions are shorter than they look
  • Reject any root that makes an argument of a logarithm zero or negative, and say why in one clause
  • Give the exact answer and the rounded one when the question asks for a stated accuracy
  • In a linear-form question, state the axes you are plotting on: lny against lnx and lny against x are different graphs
  • Check a solution by substituting it back into the original equation - index equations are easy to check numerically

Key terms you must be able to define

Logarithm
The index to which a base must be raised to give a number: logax=n means an=x.
Base (of a logarithm)
The number being raised to a power, written as a subscript in logax. It must be positive and not equal to 1.
Argument of a logarithm
The number the logarithm is taken of. It must be positive: logax requires x>0.
Common logarithm
A logarithm to base 10, written logx with the base left out. It is the one on the calculator button.
Natural logarithm
A logarithm to base e, written lnx. The one Paper 3 uses most.
e
The irrational number 2.718281828..., the base for which y=ex has gradient equal to its own height.
Exponential function
ex, always positive, increasing everywhere, with the x-axis as an asymptote.
Inverse functions
Two functions that undo each other. ex and lnx are inverses, so ln(ex)=x and elnx=x for x>0.
Asymptote
A line a curve approaches but never reaches. y=ex has the x-axis as an asymptote; y=lnx has the y-axis.
Product law
logaxy=logax+logay. It turns a product into a sum.
Quotient law
logaxy=logax−logay. It turns a quotient into a difference.
Power law
logaxk=klogax. It brings an index down to the front, which is how index equations are solved.
Exponential equation
An equation with the unknown in an index, such as 2x+1=5. Solved by taking logarithms of both sides.
Exponential growth and decay
The behaviour of y=ekx: growth when k>0, decay towards the x-axis when k<0.
Linear form
A relationship rewritten so that it plots as a straight line, such as lny=lnk+nlnx.
Logarithmic transformation
Taking logarithms of a relationship to turn a power law or an exponential law into a straight line, so that the gradient and intercept give the constants.

Applied

At AS & A Level the marks sit in the setup: choosing the model, stating the variable and writing the equation before any working. These show the shape of a full-mark answer, then you do the algebra yourself.

Evaluating a logarithm from the definition

log232 asks for the power of 2 that gives 32. Since 25=32, the answer is 5. log319 asks for the power of 3 that gives 19, and 3−2=19, so the answer is −2. No calculator is needed for either, and the whole question is worth two marks.

An index equation with one unknown index

Solve 5x=12. Take logarithms of both sides: xln5=ln12, so x=ln12ln5=1.544 to 3 decimal places. The exact form ln12ln5 is the answer to the question; the decimal is what a stated accuracy asks for. Check roughly: 51.5=11.18, so an answer near 1.54 is sensible.

Exact form first, decimal second

Solve 32x=20. Take logarithms: 2xln3=ln20, so x=ln202ln3=1.363 to 3 significant figures. Notice that the 2 stays with the x rather than disappearing into the fraction: the power law gives 2xln3, and dividing by 2ln3 is the last step.

Finding the constants of a power law

Data fit y=kxn, with y=96 when x=4 and y=729 when x=9. Taking logarithms gives lny=lnk+nlnx. Subtracting the two equations: n=ln729−ln96ln9−ln4=2.02740.8109=2.5. Then lnk=ln96−2.5ln4=1.0986, so k=e1.0986=3. Check: 3×92.5=3×243=729, as given.

An exponential decay model

The mass m grams of a sample after t days is modelled by m=40e−0.05t. Find the time at which the mass is 10 grams. Put 40e−0.05t=10, so e−0.05t=0.25. Take logarithms: −0.05t=ln0.25, so t=ln0.25−0.05=27.7 days to 3 significant figures. The negative sign in the index is handled by the logarithm, not by ignoring it.

Flashcards

Click a card to flip it. Mark honestly — the tracker uses this.

Q1What does logax=n mean?
an=x. A logarithm is an index: log232=5 because 25=32.
Q2What is loga1?
0, for every valid base, because a0=1. So ln1=0.
Q3What is logaa?
1, because a1=a. So lne=1.
Q4Write down the product law of logarithms.
logaxy=logax+logay. It only applies to a product, never to a sum.
Q5Write down the quotient law of logarithms.
logaxy=logax−logay.
Q6Write down the power law of logarithms.
logaxk=klogax. This is the law that frees an unknown from an index.
Q7Why can you not take the logarithm of a negative number?
Because an is positive for every positive base a and every n, so no index produces a negative result.
Q8What is the relationship between ex and lnx?
They are inverse functions: ln(ex)=x for all x, and elnx=x for x>0.
Q9Which point does every curve y=ekx pass through?
(0,1), because e0=1 whatever k is.
Q10Which point does y=lnx pass through?
(1,0), because ln1=0.
Q11What are the asymptotes of y=ex and y=lnx?
y=ex has the x-axis as an asymptote as x→−∞; y=lnx has the y-axis as an asymptote as x→0+.
Q12What is the shape of y=ekx when k is negative?
A decreasing decay curve through (0,1) falling towards the x-axis. y=e−x is the reflection of y=ex in the y-axis.
Q13How do you solve af(x)=b?
Take logarithms of both sides: f(x)lna=lnb, so f(x)=lnblna. Then solve for x.
Q14What happens to an inequality when you divide by ln0.5?
The direction reverses, because ln0.5=−0.693 is negative. Check the sign of the logarithm before dividing.
Q15How is y=kxn turned into a straight line?
lny=lnk+nlnx, so plot lny against lnx. The gradient is n and the intercept is lnk.
Q16How is y=kax turned into a straight line?
lny=lnk+xlna, so plot lny against x. The gradient is lna and the intercept is lnk.
Q17A graph of lny against x has intercept 0.693. What is the constant k?
k=e0.693=2. The intercept gives lnk, so it must be exponentiated.
0 of 17 marked as known

Exam-style questions

8 questions, 28 marks. Write your answer, then reveal the mark scheme and tick each point you actually made. Answering honestly here is what makes the rest of the site useful.

EvaluateAO12 marks
Evaluate log232 and log319.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • B1
  • B1log319=−2, because 3−2=19not checked yet
Examiner tip: Both answers come straight from the definition: the logarithm is the index. A negative answer is expected for the second one, because the fraction is less than 1.
CalculateAO23 marks
Solve the equation 2x+1=5, giving your answer to 3 decimal places.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • A1
  • A1x=1.322not checked yet
Examiner tip: The power law is what moves (x+1) out of the index. Check the size of the answer: 22=4 and 23=8, so x+1 must be between 2 and 3, and x between 1 and 2.
DetermineAO24 marks
Solve the equation 32x−1=4x+1, giving your answer to 3 significant figures.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • A1
  • A1x=3.06not checked yet
Examiner tip: Keep ln3 and ln4 as symbols until the last line. Turning them into decimals early is how the accuracy mark gets lost, and the exact fraction is worth a mark of its own.
DetermineAO24 marks
Determine the set of values of x for which 21−x>5, giving your answer to 3 significant figures.
Write a short answer in words.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • A1
  • A1x<−1.32not checked yet
Examiner tip: There are two sign decisions here and both are checked by the mark scheme: the inequality reverses when you multiply by −1, and it does not reverse when you divide by the positive ln2. Test x=−2: 23=8>5 is true.
CalculateAO23 marks
Solve the equation ln(2x−1)=3, giving your answer to 3 significant figures.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • A1x=10.5not checked yet
Examiner tip: Exponentiating both sides is the inverse step: ln is undone by e. The 1 has to move across before the division by 2, and e3=20.0855, so x is a little over 10.
DetermineAO25 marks
The variables x and y are related by y=kxn, where k and n are constants. When x=4, y=96, and when x=9, y=729. Determine the values of n and k.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • M1
  • A1
  • A1k=3, from lnk=ln96−2.5ln4not checked yet
Examiner tip: Subtracting the two equations removes lnk and leaves one equation in n alone. Then put n back to get lnk, and exponentiate at the end: lnk=1.0986 gives k=3.
CalculateAO14 marks
Solve the equation log2x+log2(x+2)=3.
Write a number, a fraction such as 3/4, or an expression such as 3x+2.

Mark scheme — tick each point you actually made

  • M1
  • M1
  • A1
  • A1rejects x=−4 because log2(−4) is not defined, so x=2not checked yet
Examiner tip: The 3 is the value of the logarithm, so the definition gives x(x+2)=23, not 3. Rejecting the negative root is part of the answer, and it needs a stated reason.
ExplainAO23 marks
The variables x and y are related by y=Abx, where A and b are positive constants. Explain how the values of A and b can be found from a straight-line graph of lny against x.

Mark scheme — tick each point you actually made

  • B1
  • B1
  • B1
Examiner tip: Say what is plotted on each axis, name the gradient and the intercept, and convert the intercept back at the end. Both constants are found by exponentiation, because both appear as logarithms in the linear form.

Exam technique for this topic

  • Learn the definition as a two-way statement and use it in the first line of any logarithm question. 'Rewrite logax=n as an=x' is a method mark, and it turns most equations into ordinary algebra.
  • When the unknown is in an index, write 'take ln of both sides' on its own line before applying the power law. The method mark is awarded for the logarithm, not for the eventual answer.
  • Reject invalid roots explicitly. In log2x+log2(x+2)=3 the quadratic gives x=2 and x=−4, and the answer is only complete when you have said that x=−4 is rejected because log2(−4) is undefined.
  • In a linear-form question, state the axes and both constants in words: 'plotting lny against lnx gives a straight line of gradient n and intercept lnk'. Then convert the intercept with k=eintercept - the graph gives you the logarithm of k, never k itself.
  • Give both the exact form and the rounded value when an accuracy is specified. ln3+ln42ln3−ln4 earns the exactness mark, and 3.06 earns the accuracy mark; writing only 3.06 leaves the first of those on the table.

Why students lose marks here

A student wrotelog26=log22+log24, so the product law lets you split a logarithm of a sum.
Why it loses marksThe product law is logaxy=logax+logay, which is about a product inside the logarithm. There is no law at all for the logarithm of a sum, and log26 is not 1+2.
The answer that scoreslog26 stays as it is. log22+log24=1+2=3, which is log28, not log26.
A student wroteFrom log2x+log2(x+2)=3, writing x(x+2)=3.
Why it loses marksThe 3 is the value of the logarithm, so the definition gives x(x+2)=23. Losing the base is the commonest single error in this topic.
The answer that scoresCombine first: log2[x(x+2)]=3, so x(x+2)=8, giving x2+2x−8=0, x=2 or x=−4. The root x=−4 is rejected, so x=2.
A student wroteDividing by ln0.5 to solve 0.5x>3 and writing x>ln3ln0.5.
Why it loses marksln0.5 is negative, so dividing by it reverses the direction of the inequality. The arithmetic is right and the inequality sign is wrong.
The answer that scoresxln0.5>ln3 with ln0.5=−0.693, so x<ln3ln0.5=−1.585.
A student wroteA graph of lny against x has intercept 1.0986, so the constant k is 1.0986.
Why it loses marksThe linear form is lny=lnk+xlna, so the intercept on the lny axis is lnk. The value of k is the exponential of that intercept.
The answer that scoreslnk=1.0986, so k=e1.0986=3.
A student wroteUsing elnx=x for x=−5 to conclude that eln(−5)=−5.
Why it loses marksln(−5) is not defined: the argument of a logarithm must be positive. The inverse relationship only holds for x>0.
The answer that scoresThere is no value of eln(−5), because ln(−5) does not exist. elnx=x holds only for x>0.