L'Hôpital's rule - limits of the form 0/0 and ∞/∞, step by step
· 14 min read
In short
L'Hôpital's rule works out limits of the form 0/0 or ∞/∞. Instead of the quotient of two functions, you take the limit of the quotient of their derivatives, f′(x)/g′(x). It works because close to a point where both functions are 0, their graphs look like their tangent lines, so the quotient is close to the quotient of the slopes.
Words to know
- Indeterminate form
- An expression such as 0/0 or ∞/∞ that does not tell you the limit by itself.
- Derivative
- How fast a function changes at a point - the slope of the tangent to its graph there.
- Tangent line
- The straight line that runs exactly like the graph at one point. Close up, the graph looks like it.
- Quotient of derivatives
- f′(x)/g′(x), the derivative of the numerator over the derivative of the denominator.
- One-sided limit
- The limit as x approaches a from one side only, for example x → 0⁺, from the right.
What do you think?
The functions and are both at . If you zoom in close to , the graph of looks like the line , and the graph of like the line . What is ?
Close to , is about and is about , so
The cancels, and what is left is the quotient of the two slopes. The form only says that both functions shrink to . It does not say how fast - and that is exactly what the slopes tell you.
The idea: compare how fast they shrink
When you substitute the point into a fraction and get , the numerator and the denominator both tend to . That alone does not tell you the limit: is an indeterminate form. The limit could be any number, or there could be none at all. What decides it is how fast each part shrinks.
How fast a function changes is what its derivative measures. Close to a point, the graph of a differentiable function looks like its tangent line. So if and , then near
Divide one by the other, and the factor cancels: the quotient is close to . That is L’Hôpital’s rule: in a limit of the form , you may replace the two functions by their derivatives.
Zoom in on 0/0, step by step
Go through the animation with the buttons or the arrow keys. The teal graph is , and the blue one is .
f(1) = 0 · g(1) = 0 · f(1)/g(1) = 0/0
These are the graphs of f(x) = x² − 1 and g(x) = ln x. Both cross the x axis at x = 1, so f(1) = 0 and g(1) = 0. We want the limit of f(x)/g(x) as x → 1, but substituting x = 1 gives 0/0, which tells us nothing yet.
We never put into the fraction. Every step only looked at points close to , just as a limit does. The derivatives answered the question that left open: how fast each function shrinks.
Try it yourself: two quotients side by side
Pick a limit and move the point towards . The upper picture shows and with the heights and . The lower one shows two graphs: the quotient , and the quotient of the derivatives . They are different functions, but when the rule applies, they meet at the same limit.
f(x) = x² − 1g(x) = ln x
The two quotients near the point
f(x)/g(x)f′(x)/g′(x)
- Substitute x = 1
- 0/0 - the rule applies
- f(x)/g(x)
- ≈ 4.33
- f′(x)/g′(x) = 2x/(1/x) = 2x²
- 8
- Limit of f(x)/g(x) as x → 1
- 2
What to notice:
- for , the quotient is not defined at (the ring on its graph), but the quotient of the derivatives, , goes right through that point, at height ,
- for , the quotient of the derivatives, , is at again. Using the rule once more gives , which tends to ,
- for at , substituting gives . That is not an indeterminate form, so the limit is simply . The quotient of the derivatives, , tends to : here the rule does not apply, and using it anyway gives a wrong answer.
The rule
L’Hôpital’s rule. Let and be differentiable near (at itself they need not be), with near . Suppose that, as ,
- and , or
- and both tend to infinity ( or ).
If the limit of exists - a number, or - then
The same holds for one-sided limits, and for or .
Three things to keep in mind:
- Separately. You differentiate the numerator and the denominator separately. This is not the quotient rule: the derivative of the whole fraction has nothing to do with it.
- Check first, every time. The rule works only for and . If the new limit is again or , you may use the rule again - but check the form before every step.
- Other forms need rewriting. , , , and are indeterminate too, but they are not quotients. Rewrite them first: a product becomes , and a power is handled with logarithms.
Where the name comes from. Guillaume de l’Hôpital (1661-1704), a French marquis and mathematician, published the rule in 1696 in his book Analyse des infiniment petits pour l’intelligence des lignes courbes - the first textbook on differential calculus. The rule itself is credited to Johann Bernoulli. He had taught l’Hôpital, who paid him to share his discoveries. In l’Hôpital’s time his name was spelled l’Hospital, which is why you will see both spellings.
Example 1: 0/0, with the rule used twice
We want .
Step 1. Check the form
We substitute into the numerator and into the denominator.
It is , so the rule may be used.
Step 2. Differentiate the numerator and the denominator
We differentiate each of them on its own, not the fraction as a whole.
Step 3. Check the new limit
The new limit is . Substituting gives again, so we use the rule once more.
Step 4. Differentiate again
We differentiate the new numerator and the new denominator.
Step 5. Substitute
The limit of is not indeterminate, so now we can substitute .
Answer
. Close to , the numerator is about half as big as .
Example 2: ∞/∞ - which grows faster?
We want .
Step 1. Check the form
As grows, both the numerator and the denominator grow without bound.
It is , so the rule may be used.
Step 2. Differentiate once
We differentiate the numerator and the denominator separately.
The new limit, , is still .
Step 3. Differentiate again
We use the rule a second time.
Step 4. Find the limit
The numerator stays while the denominator grows without bound, so the fraction tends to .
Answer
: grows faster than . The same happens with any power - after uses of the rule the numerator is a constant, and the limit is .
Your turn
Find . The sign means that approaches from the right: exists only for .
Hintshow
This is a product, not a quotient. Write it as a fraction first: multiplying by is the same as dividing by .
Solutiontry it on your own first
Step 1. Check the form
As , the first factor tends to and the second to .
That is the form . It is not a quotient, so the rule cannot be used yet.
Step 2. Write the product as a quotient
Multiplying by is the same as dividing by .
Now the numerator tends to and the denominator to : the form .
Step 3. Differentiate the numerator and the denominator
We differentiate each of them on its own.
Step 4. Simplify the new quotient
Dividing by a fraction means multiplying by its reciprocal.
Step 5. Find the limit
As , the expression tends to .
Answer
. The factor shrinks to faster than falls to .
Common mistakes
- Using the rule when the form is not 0/0 or ∞/∞. Substituting into gives , and that is the limit. Differentiating would give , which is wrong. Always substitute first.
- Using the quotient rule. The rule takes the derivative of the numerator over the derivative of the denominator, . It does not differentiate the fraction as a whole.
- Using the rule once too often. For at , one step gives , and substituting gives . That is the answer. One more step would give , which is wrong: was no longer indeterminate.
- “No limit of f′/g′ means no limit of f/g.” As , tends to . Yet keeps swinging between and . When the limit of does not exist, the rule simply says nothing.
- Forgetting to rewrite other forms. as is . Turn it into a quotient first, as in “Your turn”.
In exams and at university
In the United States, L’Hôpital’s rule is part of both AP Calculus AB and AP Calculus BC, in Unit 4, Contextual Applications of Differentiation. Before using it, students must show that the rule applies: that the numerator and the denominator both tend to , or both to infinity. The exams test only the forms and . Other indeterminate forms, such as , are not assessed, although teachers may cover them.
In England, the rule is not part of A-level Mathematics, but it does appear in A-level Further Mathematics. AQA lists evaluating limits with Maclaurin series or l’Hôpital’s rule in its compulsory content, and Pearson Edexcel covers the rule in an optional paper, Further Pure Mathematics 1.
At university, it is a standard topic of first-year calculus. The open textbook Active Calculus, for example, introduces it right after the rules of differentiation, in a section on using derivatives to evaluate limits.
Check yourself
Test yourself
What is ?
What is ?
Someone differentiates the numerator and the denominator of and gets . What is really?
The limit has the form . Which quotient does L’Hôpital’s rule tell you to look at?
What should you do first with ?
Flashcards for review
Flip a card and say whether you knew the answer. The ones you did not know come back at the end of the deck. Why it pays to come back to them in a few days is explained in the guide Spaced repetition.
Flashcards
Question
Answer
What does L’Hôpital’s rule say?
If has the form or as , then , provided the limit on the right exists.For which forms can you use the rule straight away?
Only for and .Do you use the quotient rule in L’Hôpital’s rule?
No. You differentiate the numerator and the denominator separately.Why does the rule work for ?
Near the graphs look like their tangents: and . The factor cancels, leaving .What if is again ?
Use the rule again - but check the form before every step.What is ?
. Two steps of the rule give : grows faster than .How do you deal with a product such as as ?
It has the form , so rewrite it as a quotient first: , which is .The limit of does not exist. Does that mean has no limit either?
No - the rule just says nothing then. tends to as , although has no limit.Why is not a job for L’Hôpital’s rule?
Substituting gives , which is not an indeterminate form. The derivatives would give the wrong answer .Who is the rule named after, and who found it?
Guillaume de l’Hôpital, who published it in 1696 in the first textbook on differential calculus. It is credited to his teacher, Johann Bernoulli.
Sources
We checked the facts on this page against these sources. All of them may be reused freely: they carry an open licence or are not covered by copyright.
- Active Calculus (Matthew Boelkins, Grand Valley State University) - 2.8 Using Derivatives to Evaluate Limits (the rule for 0/0 and ∞/∞, local linearity as the reason, checking the conditions each time, x²/eˣ) · CC BY-SA 4.0
- Dale Hoffman - Contemporary Calculus, 3.7 L'Hôpital's Rule (the statement, the idea of the proof through tangent lines, repeated use, other indeterminate forms rewritten as quotients, x ln x, the credit to Johann Bernoulli) (PDF) · CC BY 3.0 US
- MacTutor History of Mathematics - Guillaume François Antoine Marquis de l'Hôpital (1661-1704, Analyse des infiniment petits of 1696 as the first textbook on differential calculus, the payment to Bernoulli, the spelling l'Hospital) · CC BY-SA 4.0
- MacTutor History of Mathematics - Johann Bernoulli (he taught l'Hôpital, and the rule in l'Hôpital's book is credited to him) · CC BY-SA 4.0
- Wikibooks - Calculus/L'Hôpital's Rule (the statement for 0/0 and ∞/∞, using the rule again, other indeterminate forms, the rule applies only to indeterminate forms) · CC BY-SA 4.0
- Wikipedia - L'Hôpital's rule (the statement, one-sided limits and limits at infinity, the counterexample (x + sin x)/x, history) · CC BY-SA 4.0
- Wikipedia - Guillaume de l'Hôpital · CC BY-SA 4.0
- Wikipedia - Indeterminate form (0/0, ∞/∞ and the other forms) · CC BY-SA 4.0