KS Maths
AA Topic 5.13 · Analysis and Approaches HL

l’Hôpital’s rule

Close enough, every curve is its own tangent

Why replacing two functions by their derivatives works, when you are allowed to do it, and when you are not.

Words you need (10 key words in this lesson)

The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.

limit
The value that something gets closer and closer to.The limit of 1 over n is zero.
cosine
A ratio in a right-angled triangle: adjacent side over hypotenuse.Cosine of 60 degrees is one half.
differentiate
Find how fast something is changing. Find the derivative.Differentiate x squared to get 2x.
sine
A ratio in a right-angled triangle: opposite side over hypotenuse.Sine of 30 degrees is one half.
fraction
A part of a whole. It is written with a top number and a bottom number.One half is a fraction.
ratio
Compares two or more amounts. It shows how many times one fits into the other.Boys to girls is 2 to 3.
quotient
The answer when you divide.The quotient of 12 and 4 is 3.
substitute
Replace a letter with a number.Substitute x = 3 into 2x to get 6.
straight line
A line that does not bend.A ruler draws a straight line.
expected value
The average result if we repeated many times.Expected heads in 10 tosses is 5.

Preview You are reading the start of this lesson. The rest opens with a plan. See plans Already paid? Sign in

Warm-up

Four quick ones from earlier work. Try each on paper before you open the answer; a slip here shows you what to watch for later in the lesson.

  1. Find limx→3 (x² − 9)/(x − 3) by factorising the top.
    Answer

    x² − 9 = (x − 3)(x + 3), so the fraction is x + 3 for x ≠ 3, and the limit is 6. This is the method l’Hôpital will replace for harder cases.

  2. Differentiate sin 3x and e2x.
    Answer

    3cos 3x and 2e2x. The chain rule puts the derivative of the inside in front, and it is the step most often dropped when using l’Hôpital.

  3. Write down the values of sin 0, cos 0 and e0.
    Answer

    0, 1 and 1. cos 0 is the one that gets mistaken for 0, and it decides whether a form is 0/0 or something else.

  4. Use the quotient rule to differentiate x²/(x + 1).
    Answer

    [2x(x + 1) − x²]/(x + 1)² = (x² + 2x)/(x + 1)². Hold on to this, because l’Hôpital’s rule does not use it: that contrast is a common source of lost marks.

Words used in this lesson
limit
the value a function gets closer and closer to as x approaches a number. For example: as x approaches 0, 5 + x gets closer to 5.
indeterminate form
an expression such as 0/0 whose value cannot be read off directly. For example: 0/0 does not mean 0 and does not mean 1: it needs more work.
numerator
the top of a fraction. For example: in (x + 1)/(x − 4) the numerator is x + 1.
denominator
the bottom of a fraction. For example: in (x + 1)/(x − 4) the denominator is x − 4.
approaches
gets closer to, without necessarily reaching. For example: as x approaches 3 from above, x − 3 is a small positive number.
exists
has a single finite value. For example: the limit of 1/x as x approaches 0 does not exist.
substitute
replace the letter by a number. For example: substitute x = 2 into 3x + 1 to get 7.
provided that
only if this condition is true. For example: “provided that the second limit exists” is a condition of the rule.
separately
one at a time, not together. For example: differentiate the top and the bottom separately.
hence
use the result you have just found. For example: “show it is 0/0, and hence find the limit” means use that form to start.
Higher Level

Both of these curves pass through zero at the same place, so the ratio is 0⁄0 and tells you nothing. Zoom in and watch them both straighten into their tangents. The ratio of two straight lines through the same point is just the ratio of their gradients.

-2-112-2-112zoom in on x = 0sin x / xf = sin xg = x
0.9041f(x) ÷ g(x) nearby
1.0000f′ ÷ g′ at the point
1.0000the limit

Zoom all the way in and the two readouts meet.

The rule

If lim f(x)g(x) gives 0⁄0 or ∞⁄∞, then it equals lim f′(x)g′(x), provided that second limit exists.

Check the form first, every time. The rule applies only to 0⁄0 and ∞⁄∞. Applying it to something like 3⁄2 generally gives a wrong answer, and writing "0/0, so by l’Hôpital" is often worth a mark on its own.

It is not the quotient rule. Differentiate the top and the bottom separately. The two things look similar on the page and are completely different operations.

Worked examples

limx→0 sin xx= lim cos x1 = 1 0/0, so the rule applies limx→2 x² − 4x − 2= lim 2x1 = 4 factorising gives the same answer, and is quicker here limx→0 1 − cos xx²= lim sin x2x still 0/0, so apply it again = lim cos x2 = 12 limx→∞ ln xx= lim 1/x1 = 0 ∞/∞ as x grows, so the rule applies here too

The last one is the other form the rule covers. Both ln x and x grow without limit, but x grows faster, which is what the answer 0 is telling you.

Repeated use is allowed and expected, but check the form again before each application. The moment it stops being indeterminate, stop differentiating and substitute.

The rest of this lesson is in the full course

Still to come in this lesson:

  • A second example, finished by you
  • Check before you go on
  • Where this earns its keep
  • Your turn
  • and 3 more

In the full lesson every figure moves as you drag it, and every answer you type is checked, with a note on what each wrong answer means.

IB Diploma plan: AA HL$99Every Diploma lesson in both courses and both levels, so a change of course never locks you out, and every lesson from Year 7 for the refreshers. $99 for 12 months or $149 for 2 years.

One plan opens every Diploma lesson, AA and AI, SL and HL, for the whole family.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Pay by card on Gumroad, then come back here and type the email you paid with: we email you a sign-in link. For a refund, reply to your Gumroad receipt or email hello@ksmaths.com.

Try a free sample lesson in every unit, and the whole Skill Tree. See this unit.

Already have a revision pack or the Years 7 to 11 plan? Move up and the unused part of what you paid comes off.

Teaching students who need extra support? Student codes for 5, 10 or 30 students.

AA HL Mock Exam Pack, $25BuyPlan $99