L'Hospital's Rule (Edexcel A Level Further Maths: Further Pure 1): Revision Note

Exam code: 9FM0

Mark Curtis

Written by: Mark Curtis

Updated on

L'Hospital's rule

What is L'Hospital's rule?

  • L'Hospital's rule says that limxa(f(x)g(x)) , i.e. the limit of the expression f(x)g(x) as x tends towards a,

    • where either

      • f(a)=0 and g(a)=0

      • or f(a)=± and g(a)=±

    • is equal to the limit of the derivatives of the numerator and denominator

      • limxa(f(x)g(x))=limxa(f'(x)g'(x))

    • assuming the limit exists

Examiner Tips and Tricks

You must learn L'Hospital's rule, as it is not given in the formulae booklet!

What is the indeterminate form of a limit?

  • The indeterminate form of a limit is a representation of the nature / type of limit

    • although it does not help you actually calculate the limit

      • e.g. 00, , 0×, , 1, 00, 0

  • L'Hospital's rule is a method to calculate limits for two of the indeterminate cases above:

    • The zero over zero case, 00

      • from f(a)g(a) when f(a)=0 and g(a)=0

    • The infinity over infinity case, ±

      • from f(a)g(a) when f(a)=± and g(a)=±

How do I use L'Hospital's rule for the zero over zero case?

  • An example of the zero over zero case, 00, of L'Hospital's rule is to find limxπ(sinxxπ)

    • Let f(x)=sinx and g(x)=xπ

    • Check that f(π) and g(π) are both zero

      • f(π)=sinπ=0 and g(π)=ππ=0

      • so the indeterminate form of the limit is 00

    • Use differentiation to find f'(x)g'(x)

      • cosx1

    • Now let xπ

      • cosπ1=11=1

    • L'Hospital's rule states that this is the limit of the original expression

      • limxπ(sinxxπ)=1

Examiner Tips and Tricks

Limits with trigonometric functions are always assumed to be in radians unless otherwise specified.

  • Remember that calculus with trigonometric functions is only valid for radians

Worked Example

Use L'Hospital's rule to determine

limx0(2x1+ex)

Answer:

Let f(x)=2x and g(x)=1+ex

Check if L'Hospital's rule can be used

  • Calculate f(0) and g(0) and check if f(0)g(0) is 00 or ±

f(0)=2×0=0g(0)=1+e0=1+1=0

limx0(f(x)g(x)) is 00, so L'Hospital's rule can be used

Find f'(x)g'(x) by differentiating the top and bottom separately

f'(x)g'(x)=2ex

Find limx0(f'(x)g'(x)) by letting x tend toward 0

limx0(2ex)=2e0=21=2

This is equal to the limit of f(x)g(x) by L'Hospital's rule

limx0(2x1+ex)=2

How do I use L'Hospital's rule for the infinity over infinity case?

  • An example of the infinity over infinity case, ±, of L'Hospital's rule is to find limx1+(ln(x1)(1x1))

    • x1+ means x1 from values above 1

      • e.g. 1.1, 1.01, 1.001, etc

      • but not 0.9, 0.99, 0.999...

      • as the graph of y=ln(x1) doesn't exist for x<1

    • Let f(x)=ln(x1) and g(x)=1x1

    • Check that f(1) and g(1) are both infinite

      • f(1)=ln0 = and g(1)=10=

      • so the indeterminate form of the limit is

    • Use differentiation to find f'(x)g'(x)

      • 1x11(x1)2

    • Simplify before applying the limit

      • 1x1÷1(x1)2=1(x1)×(x1)(x1)1=(x1)

    • Now let x1+

      • (11)=0

    • L'Hospital's rule states that this is the limit of the original expression

      • limx1+(ln(x1)(1x1))=0

Can I use L'Hospital's rule more than once?

  • L'Hospital's rule can be used repeatedly, so long as the conditions are met each time

  • For example, to find limx0(xsinxx2)

    • Let f(x)=xsinx and g(x)=x2

    • Find f(0) and g(0)

      • f(0)=0sin0=0 and g(0)=02=0

      • so the indeterminate form of limx0(f(x)g(x)) is 00

    • Use differentiation to find f'(x)g'(x)

      • 1cosx2x

    • But f'(0)=1cos0=0 and g'(0)=2×0=0

      • so the indeterminate form of limx0(f'(x)g'(x)) is 00

    • So differentiate again to find f''(x)g''(x)

      • sinx1

    • f''(0)=sin0=0 and g''(0)=1

      • this is not 00

      • so limx0(f''(x)g''(x)) is 01=0

    • By repeated use of L'Hospital's rule, this is the limit of the original expression

      • limx0(xsinxx2)=0

Examiner Tips and Tricks

Students often incorrectly use the quotient rule to differentiate f(x)g(x) instead of just differentiating the top and bottom separately, f'(x)g'(x).

How do I rearrange expressions for L'Hospital's rule?

  • If limxa(f(x)g(x)) is not of the indeterminate form 00 or ± then L'Hospital's rule cannot be used

    • however it is sometimes possible to rearrange f(x)g(x) into these correct forms

  • If limxa(f(x)g(x)) has the indeterminate form of the product 0×, try writing f (or g) as the reciprocal of its reciprocal, 11/f

    • e.g. limx0(xcotx) has the indeterminate form 0×

      • limx0(x1cotx)=limx0(xtanx) now has the correct L'Hospital form of 00

    • e.g.limx0+(xlnx) has the indeterminate form 0×()

      • limx0+(lnx1x) now has the correct L'Hospital form of

  • If limxa(f(x)g(x)) has the indeterminate form of the difference , try writing algebraic fractions as one single simplified fraction

    • e.g. limx0(1xcotx) has the indeterminate form

      • limx0(1xcosxsinx)=limx0(sinxxcosxxsinx) now has the correct L'Hospital form of 00

Worked Example

Use L'Hospital's rule to determine

limxπ2((xπ2)2secxcosx)

Answer:

Check if L'Hospital's rule can be used for f(x)g(x)

  • Calculate f(π2) and g(π2) and check if f(π2)g(π2) is 00 or ±

f(π2)=(π2π2)2secπ2=02×1cosπ2=0×10=0×g(π2)=cosπ2=0

limxπ2(f(x)g(x)) is 0×0, so L'Hospital's rule cannot be used

Rearrange 0×0 to 00 by writing (xπ2)2secxcosx as (xπ2)2cos2x

limxπ2((xπ2)2cos2x)

Check if L'Hospital's rule can now be used for the new f(x)g(x)

f(π2)=(π2π2)2=02=0g(π2)=cos2π2=02=0

limxπ2(f(x)g(x)) is 00, so L'Hospital's rule can be used

Find f'(x)g'(x) by differentiating the top and bottom separately

f'(x)g'(x)=2(xπ2)12(cosx)1(sinx)=2(xπ2)2cosxsinx=xπ2cosxsinx

Find limxπ2(f'(x)g'(x)) by letting x tend toward π2

limxπ2(xπ2cosxsinx)=π2π2cosπ2sinπ2=00×1=00

This is 00 so requires a second use of L'Hospital's rule

Find f''(x)g''(x) by differentiating again the top and bottom separately

f''(x)g''(x)=1(sinx)sinxcosx(cosx)=1sin2xcos2x

Find limxπ2(f''(x)g''(x)) by letting x tend toward π2

limxπ2(1sin2xcos2x)=11202=11=1

This is equal to the limit of (xπ2)2cos2x by L'Hospital's rule twice

  • and (xπ2)2cos2x is a rearrangement of (xπ2)2secxcosx

limxπ2((xπ2)2secxcosx)=1

How do I take logarithms for L'Hospital's rule?

  • If limxa(f(x)g(x)) has the indeterminate form of the power 1, or 00, or 0, etc, try

    • taking the logarithm of the function inside the limit, f(x)g(x)

      • using log laws to write it in the form 00 or ±

    • using L'Hospital's rule to find the limit

    • then writing the answer to the original limit as elimit

  • e.g. limx0((1+sinx)1x) has the indeterminate form 1

    • So take logs of the function

      • limx0(ln((1+sinx)1x))

    • Use log laws to simplify

      • limx0(1xln(1+sinx))=limx0(ln(1+sinx)x)

      • This now has the correct L'Hospital form of 00

    • Use L'Hospital's rule to find the limit

      • limx0(ln(1+sinx)x)=limx0(cosx1+sinx1)=11+01=1

    • The final answer is elimit

      • limx0((1+sinx)1x)=e1=e

Worked Example

Use L'Hospital's rule to determine

limx((1+ax)x)

Answer:

Find the indeterminate form of the limit given

limx((1+ax)x)=(1+0)=1

This is not in the form 00 or ± for L'Hospital's rule

Take logs of the function inside the limit

ln(1+ax)x

Use log laws to simplify

xln(1+ax)

Check the indeterminate form of this limit

limx(xln(1+ax))=×ln1=×0

This is still not in the form 00 or ± for L'Hospital's rule

Try writing x as 1(1x)

limx(ln(1+ax)1x)=ln10=00

This is now in the correct form 00 for L'Hospital's rule

Find f'(x)g'(x) by differentiating the top and bottom separately, then simplify

f'(x)g'(x)=(ax21+ax)1x2=ax21+ax÷1x2=ax21+ax×x21=a1ax=a1+ax

Find limx(f'(x)g'(x)) by letting x tend toward

limx(f'(x)g'(x))=a1+0=a

This is equal to the limit of f(x)g(x) by L'Hospital's rule

limx(ln(1+ax)1x)=a

This means the limit of the original function, before taking logarithms, is ea

limx((1+ax)x)=ea

Unlock more, it's free!

Join the 100,000+ Students that ❤️ Save My Exams

the (exam) results speak for themselves:

Build on this topic

Mark Curtis

Author: Mark Curtis

Expertise: Maths Content Creator

Mark graduated twice from the University of Oxford: once in 2009 with a First in Mathematics, then again in 2013 with a PhD (DPhil) in Mathematics. He has had nine successful years as a secondary school teacher, specialising in A-Level Further Maths and running extension classes for Oxbridge Maths applicants. Alongside his teaching, he has written five internal textbooks, introduced new spiralling school curriculums and trained other Maths teachers through outreach programmes.