Lantern Tutor Sign in

Add Maths · 6 Logarithmic and exponential functions

6 Logarithmic and exponential functions

Before you start

  • The laws of indices: am×an=am+n, am÷an=am−n, (am)n=amn, a0=1, a−n=1an, a12=a.
  • Solving quadratic equations by factorising.
  • What an inverse function is: it undoes the original, and its graph is the reflection of the original in the line y=x.
  • Sketching a graph from its key features: where it meets the axes and what happens for large positive and negative x.
Syllabus objectives covered (3)
  • Know and use simple properties and graphs of the logarithmic and exponential functions, including ln x and eˣ.
  • Know and use the laws of logarithms, including change of base of logarithms.
  • Solve equations of the form aˣ = b.

Part 1 of 8

What a logarithm is

  1. A logarithm answers one question: what power? log2⁡8 asks 'what power of 2 gives 8?' The answer is 3, because 23=8.
  2. So every log statement is an index statement written the other way round. Switching between the two forms is the core skill of this whole topic.
    loga⁡b=c⟺ac=b
  3. Work some out by asking the question. log3⁡19=−2 because 3−2=19. log4⁡2=12 because 412=2.
  4. Know two values on sight: loga⁡1=0 because a0=1, and loga⁡a=1 because a1=a.
  5. The base a is positive and not 1, and you can only take the log of a positive number, because no power of a positive base is ever zero or negative. So log2⁡(−4) does not exist.
  6. Logarithms can have any base. Two have their own names: lg⁡x means log10⁡x, and ln⁡x means loge⁡x, the natural logarithm, which comes later in this lesson.

Part 2 of 8

The laws of logarithms

  1. You must recall these; they are not on the List of formulas. Each one is an index law in disguise, which is how you rebuild it if you forget.
    loga⁡(xy)=loga⁡x+loga⁡yloga⁡(xy)=loga⁡x−loga⁡yloga⁡(xk)=kloga⁡x
  2. Why the first law holds: if x=am and y=an, then xy=am+n, so loga⁡(xy)=m+n=loga⁡x+loga⁡y. Multiplying numbers adds their powers, so it adds their logs.
  3. The power law is the most useful of the three, because it brings an unknown down out of a power: loga⁡(xk)=kloga⁡x. That is how logs solve equations like 3x=5.
  4. Two identities come straight from the definition. They say that loga⁡ and 'raise a to the power' undo each other.
    loga⁡(ax)=xaloga⁡x=x  for x>0
  5. Know what the laws do not say. There is no law for loga⁡(x+y). And loga⁡xloga⁡y is one number divided by another; it is not loga⁡xy.

Part 3 of 8

Writing an expression as a single logarithm

  1. The order that avoids mistakes: first use the power law to move every coefficient up into an index, then combine with the product and quotient laws.
  2. A plain number has to become a log in the same base before it can combine. In base 10, 2=lg⁡100 because 102=100. In base 5, 2=log5⁡25.
  3. Write 2−lg⁡4+2lg⁡x as a single logarithm. Power law first, 2lg⁡x=lg⁡x2, and replace 2 by lg⁡100.
    lg⁡100−lg⁡4+lg⁡x2
  4. Subtracting a log divides, and adding a log multiplies.
    lg⁡(100x24)=lg⁡(25x2)
  5. The same laws turn a log equation into an ordinary one. To solve lg⁡(x+3)+lg⁡x=1, combine to lg⁡(x(x+3))=1, then switch to index form: x(x+3)=101.
    x2+3x−10=0⇒(x+5)(x−2)=0
  6. That gives x=2 or x=−5. **Reject x=−5**: it would need lg⁡ of a negative number, which does not exist. The answer is x=2 only. Always test the solutions of a log equation in the original logs.

Part 4 of 8

Change of base

  1. Logs in different bases cannot be combined directly. The change of base law rewrites a log in any base you choose. You must recall this one too.
    loga⁡b=logc⁡blogc⁡a
  2. It comes from the power law. If loga⁡b=y, then ay=b. Take logc⁡ of both sides: ylogc⁡a=logc⁡b, so y=logc⁡blogc⁡a.
  3. Choosing c=b gives a special case worth spotting, because it turns a log upside down.
    loga⁡b=1logb⁡a
  4. So 1log3⁡e=loge⁡3=ln⁡3. Taking the reciprocal of a log swaps its base and the number inside it.
  5. For mixed bases in one equation, rewrite everything in the smallest base. log4⁡x=log2⁡xlog2⁡4=12log2⁡x. So log2⁡x+log4⁡x=6 becomes 32log2⁡x=6, giving log2⁡x=4 and x=24=16.
  6. The same law evaluates awkward logs by hand: log4⁡8=log2⁡8log2⁡4=32.

Part 5 of 8

The number e, and ln x and eˣ as inverses

  1. e is a constant, about 2.718, and y=ex is the exponential function. On a non-calculator paper you never need its decimal value: answers stay in terms of e and ln⁡.
  2. ln⁡x is loge⁡x, so every law above applies to it unchanged: ln⁡(xy)=ln⁡x+ln⁡y, ln⁡xk=kln⁡x, ln⁡1=0 and ln⁡e=1.
  3. The syllabus wants you to understand that f(x)=ex and g(x)=ln⁡x are each the inverse of the other. In symbols, each one undoes the other.
    ln⁡(ex)=x for all x,eln⁡x=x for x>0
  4. That is how you undo either one in an equation. ex=5 gives x=ln⁡5. ln⁡x=3 gives x=e3. e2x=7 gives 2x=ln⁡7, so x=12ln⁡7.
  5. Because they are inverses, the graph of y=ln⁡x is the reflection of y=ex in the line y=x. Every point swaps its coordinates: (0,1) on y=ex becomes (1,0) on y=ln⁡x, and (1,e) becomes (e,1).
    xy−2−1123−2−1123y = eˣy = ln xy = xasymptote y = 0asymptote x = 0
    The asymptotes swap too: y=0 for y=ex becomes x=0 for y=ln⁡x.
  6. Read the key features off that reflection. y=ex is always positive, crosses the y-axis at (0,1), and gets closer and closer to the x-axis as x becomes large and negative without ever reaching it. Its asymptote is y=0.
  7. y=ln⁡x exists only for x>0, crosses the x-axis at (1,0), and drops steeply alongside the y-axis as x gets close to 0. Its asymptote is x=0. It keeps increasing, slowly, for ever.

Part 6 of 8

Graphs of y = keⁿˣ + a

  1. The exponential graphs in this syllabus have the form y=kenx+a, with n, k and a integers. Four features describe any of them, and each comes from a short piece of algebra, not from plotting.
  2. Asymptote. enx gets closer and closer to 0 on one side: as x→−∞ if n>0, or as x→+∞ if n<0. On that side y gets closer and closer to a, so the asymptote is y=a. The +a moves it off the x-axis.
  3. **y-intercept.** Put x=0. Since e0=1, y=k+a.
  4. **x-intercept.** Solve kenx+a=0, so enx=−ak. This has a solution only if −ak is positive, because enx is always positive. Otherwise the curve never crosses the x-axis.
  5. Direction. enx increases if n>0 and decreases if n<0. A negative k reverses that, and the curve then approaches its asymptote from below instead of from above.
  6. Put it together for y=3e2x−6. The asymptote is y=−6, approached as x→−∞. The y-intercept is 3−6=−3. The x-intercept comes from e2x=2, so 2x=ln⁡2 and x=12ln⁡2. With n=2 and k=3 both positive, the curve rises more and more steeply to the right.
    xy−3−2−11−6−3369(0, −3)(½ ln 2, 0)asymptote y = −6
    The asymptote is y=a, here y=−6, not the x-axis, and the intercepts are labelled exactly.
  7. On a sketch, label exact values such as (12ln⁡2,0), not decimals, and draw the asymptote as a dashed line with its equation written beside it.

Part 7 of 8

Graphs of y = k ln(ax + b)

  1. The logarithmic graphs in this syllabus have the form y=kln⁡(ax+b), with k, a and b integers. One rule drives everything: ln⁡ only accepts positive inputs, so the graph exists only where ax+b>0.
  2. Asymptote. The graph drops (or rises, if k<0) steeply at the edge of that region, where ax+b=0. The vertical asymptote is x=−ba.
  3. **x-intercept.** ln⁡ is zero only at 1, so solve ax+b=1, which gives x=1−ba.
  4. **y-intercept.** Put x=0 to get y=kln⁡b. This only exists if x=0 is inside the region, which needs b>0. Otherwise the curve does not meet the y-axis.
  5. For y=2ln⁡(x+3): the graph exists for x>−3 and the asymptote is x=−3. The x-intercept is where x+3=1, which is (−2,0). The y-intercept is (0,2ln⁡3).
    xy−3−2246−4−224(−2, 0)(0, 2 ln 3)x = −3
    Nothing exists to the left of the asymptote, because ln⁡ of a negative number is undefined.
  6. If a is negative, the region is on the left instead. y=ln⁡(4−2x) exists for x<2, its asymptote x=2 is on the right, and the curve decreases as x increases.

Part 8 of 8

Solving aˣ = b

  1. First look for a common base. 8x=32 is 23x=25, so 3x=5 and x=53. When both sides are powers of the same number, compare the powers.
  2. With no common base, take logs of both sides (any base) and use the power law to bring x down. From 3x=5, xlg⁡3=lg⁡5.
    x=lg⁡5lg⁡3=log3⁡5
  3. On a non-calculator paper that is the answer. ln⁡5ln⁡3, lg⁡5lg⁡3 and log3⁡5 are equal, exact forms. Do not 'simplify' to ln⁡53: that is a different number. As a sanity check, 3<5<9, so log3⁡5 lies between 1 and 2.
  4. With x in both powers, take logs, expand, collect the x terms and factorise. From 2x+1=3x: (x+1)ln⁡2=xln⁡3, so ln⁡2=x(ln⁡3−ln⁡2).
    x=ln⁡2ln⁡3−ln⁡2=ln⁡2ln⁡32
  5. Some equations hide a quadratic. In 4x−6(2x)+8=0, notice that 4x=(2x)2. Let u=2x: u2−6u+8=0, so u=2 or u=4. Each becomes a simple ax=b: 2x=2 gives x=1, and 2x=4 gives x=2.
  6. The trap in a hidden quadratic: ax is always positive. For e2x−2ex−8=0, u=ex gives (u−4)(u+2)=0. Keep ex=4, so x=ln⁡4=2ln⁡2. Reject ex=−2 and say why: ex>0 for every x.

Worked examples

Example 1. Solve log3⁡(2x+1)−log3⁡(x−1)=2.

Show the working
  1. Combine the two logs with the quotient law, so there is a single log to undo.
    log3⁡(2x+1x−1)=2
  2. Switch to index form: the base 3, raised to the right-hand side, equals what is inside the log.
    2x+1x−1=32=9
  3. Multiply both sides by (x−1): 2x+1=9x−9, so 10=7x and x=107.
  4. Check the logs exist: x−1=37>0 and 2x+1=277>0. Their ratio is 277÷37=9=32, so the equation holds.

Answer: x=107.

Example 2. Solve log2⁡x=4logx⁡2.

Show the working
  1. The bases differ, and one log is the other turned upside down: by change of base, logx⁡2=1log2⁡x.
  2. Let u=log2⁡x so the structure is easy to see.
    u=4u⇒u2=4⇒u=2 or u=−2
  3. Keep both. A log can be negative; it is the number inside a log that must be positive. Switch each to index form: log2⁡x=2 gives x=4, and log2⁡x=−2 gives x=2−2=14.
  4. Check x=14. The left side is −2. On the right, log1/4⁡2=−12 because (14)−12=412=2, and 4×(−12)=−2. Both solutions stand.

Answer: x=4 or x=14.

Example 3. Solve 52x−1=3x, giving x exactly.

Show the working
  1. There is no common base, so take natural logs of both sides and bring the powers down. Keep the bracket round 2x−1.
    (2x−1)ln⁡5=xln⁡3
  2. Expand, then collect the x terms on one side.
    2xln⁡5−xln⁡3=ln⁡5
  3. Factorise out x. This is the step that isolates it.
    x(2ln⁡5−ln⁡3)=ln⁡5
  4. Tidy the bracket into a single log: 2ln⁡5−ln⁡3=ln⁡25−ln⁡3=ln⁡253.
    x=ln⁡5ln⁡253
  5. A sanity check with no calculator: at x=0 the left side is 15 and the right side is 1; at x=1 they are 5 and 3. The sides swap order, so the solution lies between 0 and 1. Since 5<253, the fraction ln⁡5ln⁡253 is less than 1, which fits.

Answer: x=ln⁡5ln⁡253, or equivalently ln⁡52ln⁡5−ln⁡3.

Example 4. A curve has equation y=4−2e3x. State the equation of its asymptote, find where it meets the axes, and describe its shape.

Show the working
  1. Match it to y=kenx+a: k=−2, n=3 and a=4.
  2. Asymptote: n>0, so e3x→0 as x→−∞, and then y→4. The asymptote is y=4.
  3. y-intercept: x=0 gives y=4−2(1)=2, so the point is (0,2).
  4. x-intercept: 4−2e3x=0 gives e3x=2, so 3x=ln⁡2 and x=13ln⁡2. It exists because 2 is positive.
  5. Shape: e3x increases, and k=−2 is negative, so y decreases as x increases. The curve starts just below y=4 on the far left, passes through (0,2) and (13ln⁡2,0), then falls more and more steeply.
  6. Why 'just below'? 2e3x is always positive, so y=4−2e3x is always less than 4. The curve never reaches its asymptote.

Answer: Asymptote y=4. It meets the y-axis at (0,2) and the x-axis at (13ln⁡2,0). It is decreasing, approaching y=4 from below as x→−∞.

Where people go wrong

Mistake: Writing lg⁡(x+3)=lg⁡x+lg⁡3.

Instead: There is no law for the log of a sum. It is lg⁡x+lg⁡3 that equals lg⁡3x.

The product law comes from adding powers when numbers are multiplied. Nothing like that happens when numbers are added.

Mistake: 'Simplifying' ln⁡5ln⁡3 to ln⁡53 or to ln⁡5−ln⁡3.

Instead: Leave ln⁡5ln⁡3, or write it as log3⁡5.

ln⁡53 is the log of a quotient. ln⁡5ln⁡3 is a quotient of logs, which by change of base is log3⁡5, a different number.

Mistake: Writing 2lg⁡x as lg⁡2x.

Instead: 2lg⁡x=lg⁡x2.

The power law moves the coefficient up into a power, not into a product.

Mistake: Giving the asymptote of y=3e2x−6 as y=0.

Instead: The asymptote is y=−6.

As e2x→0, y→0−6. The constant a moves the asymptote along with the rest of the graph.

Mistake: Keeping a solution that puts a negative number inside a log, or accepting ex=−2.

Instead: Test every solution in the original equation. Reject values that need the log of a number that is not positive, or a power equal to a negative number.

ax>0 for every x, and a log accepts only positive inputs. The algebra can produce values that were never possible.

Check yourself

  1. Find the exact value of (a) log2⁡32 (b) log9⁡3 (c) lg⁡0.01 (d) ln⁡e4.
    Answer(a) 5 (b) 12, since 912=3 (c) −2 (d) 4.
  2. Write 1log7⁡e as a natural logarithm.
    Answerln⁡7, because loga⁡b=1logb⁡a.
  3. Write 3lg⁡2+lg⁡x−1 as a single logarithm.
    Answerlg⁡8+lg⁡x−lg⁡10=lg⁡8x10=lg⁡4x5.
  4. Solve 8x=4x+1.
    AnswerWrite both as powers of 2: 23x=22x+2, so 3x=2x+2 and x=2.
  5. Solve 5x=12, giving your answer exactly, and state which two whole numbers it lies between.
    Answerx=lg⁡12lg⁡5=log5⁡12. Since 5<12<25, it lies between 1 and 2.
  6. Solve 2e2x−7ex+3=0.
    AnswerLet u=ex: 2u2−7u+3=(2u−1)(u−3)=0, so ex=12 or ex=3. Both are positive, so x=ln⁡12=−ln⁡2 or x=ln⁡3.
  7. For y=5−3e−2x, state the equation of the asymptote and the y-intercept.
    AnswerHere n=−2<0, so e−2x→0 as x→+∞, and the asymptote is y=5. The y-intercept is 5−3=2.
  8. State the equation of the asymptote of y=ln⁡(2x−6) and find where the curve meets the x-axis.
    AnswerIt needs 2x−6>0, so the asymptote is x=3. Setting 2x−6=1 gives x=72, so it meets the x-axis at (72,0).

Exam questions

Try each part first. Open the mark scheme after you have written your answer.

Question 1.

(a) Write 1+2lg⁡x−lg⁡5 as a single base 10 logarithm, simplifying your answer. 3 marks No calculator

Mark scheme
  • B1 1=lg⁡10 soi
  • M1 power law and at least one of the product or quotient laws applied correctly
  • A1 lg⁡(2x2) cao

(b) Use the change of base law to solve log3⁡x+log9⁡x=3. 3 marks No calculator

Mark scheme
  • M1 log9⁡x=log3⁡xlog3⁡9 oe
  • A1 32log3⁡x=3 oe
  • A1 x=9

Question 2.

(a) Solve 3x+2=7x, giving your answer in the form ln⁡pln⁡q, where p and q are rational numbers. 4 marks No calculator

Mark scheme
  • M1 takes logs of both sides and brings the powers down: (x+2)ln⁡3=xln⁡7 oe
  • M1 collects the x terms and factorises: x(ln⁡7−ln⁡3)=2ln⁡3 oe
  • A1 x=2ln⁡3ln⁡7−ln⁡3 oe
  • A1 x=ln⁡9ln⁡73 cao

(b) Solve 9x−3x+1−18=0, giving your answer exactly. 4 marks No calculator

Mark scheme
  • B1 9x=(3x)2 and 3x+1=3×3x used, e.g. u2−3u−18=0
  • M1 solves their three-term quadratic in u
  • A1 3x=6, with 3x=−3 rejected because 3x>0
  • A1 x=ln⁡6ln⁡3 oe, e.g. log3⁡6 or 1+log3⁡2

Question 3. The curve C has equation y=3ln⁡(2x−4).

(a) State the equation of the asymptote of C. 1 mark No calculator

Mark scheme
  • B1 x=2

(b) Sketch C, showing the asymptote and the coordinates of any point where C meets the axes. 3 marks No calculator

Mark scheme
  • B1 increasing logarithmic shape, entirely to the right of x=2
  • B1 asymptote x=2 drawn and labelled, with the curve falling steeply towards it
  • B1 (52,0) labelled, and no intersection with the y-axis

(c) Solve 3ln⁡(2x−4)=6, giving your answer exactly. 2 marks No calculator

Mark scheme
  • M1 ln⁡(2x−4)=2 and 2x−4=e2
  • A1 x=e2+42 oe

How this is examined

  • Solving an exponential equation exactly, by taking logs or by spotting a hidden quadratic: a four- or five-mark Solve, sometimes asking for the answer in a stated form such as ln⁡pln⁡q Logs taken of both sides with the powers brought down in brackets (M), the x terms collected and factorised (M), and an exact final answer. For a hidden quadratic: u=ax stated, both values of u found, and the negative one rejected with the reason ax>0.
  • Combining logs and solving a log equation: a Solve with two or three log terms in one base, or a Write as a single logarithm The power law used before the product and quotient laws, plain numbers written as logs of the same base (e.g. 1=lg⁡10), the single log converted to index form, and any solution that puts a non-positive number inside a log rejected.
  • Key features of y=kenx+a or y=kln⁡(ax+b): a State the asymptote, then a Sketch worth two or three marks, sometimes with intercepts to Find The correct shape on the correct side of a dashed asymptote labelled with its equation (y=a or x=−ba), with intercepts labelled exactly, e.g. (12ln⁡2,0).
  • Changing base to handle mixed bases: a Solve such as log3⁡x+log9⁡x=k, or a Use the change of base law The change of base written out explicitly, e.g. log9⁡x=log3⁡xlog3⁡9=12log3⁡x, before the terms are combined.
  • Undoing e with ln⁡, and ln⁡ with e: a one- or two-mark step inside a longer question ekx=c rewritten as kx=ln⁡c, or ln⁡(…)=c rewritten as (…)=ec, with the answer left exact.

Words to know

Logarithm
loga⁡b is the power to which a must be raised to give b.
lg
Shorthand for log10⁡.
Natural logarithm
ln⁡x=loge⁡x, the inverse function of ex.
e
A constant, about 2.718, which is the base of the exponential function ex and of ln⁡.
Asymptote
A line that a curve gets closer and closer to without reaching, stated as an equation such as y=−6 or x=−3.
Change of base
loga⁡b=logc⁡blogc⁡a, which rewrites a log in any base.
Exponential equation
An equation with the unknown in a power, such as ax=b.