Achievable logoAchievable logo
AP Calculus AB
Sign in
Sign up
Purchase
Textbook
Practice exams
Support
How it works
Exam catalog
Mountain with a flag at the peak
Textbook
Introduction
1. Limits
2. Derivative basics
3. Advanced differentiation
4. Contextual uses
4.1 Derivatives in context
4.2 Straight-line motion
4.3 Related rates
4.4 Linear approximations
4.5 L'Hopital's rule
5. Analytical uses
6. Integration
7. Differential equations
8. Applications of integrals
9. Testing details tag
10. test
Wrapping up
Achievable logoAchievable logo
4.5 L'Hopital's rule
Achievable AP Calculus AB
4. Contextual uses
Our AP Calculus AB course is currently in development and is a work-in-progress.

L'Hopital's rule

8 min read
Font
Discuss
Share
Feedback

What you’ll learn:

  • How to apply L’Hopital’s rule on limits with indeterminate form 00​ or ∞∞​
  • How to handle other indeterminate forms by rewriting or using logarithms

Another application of derivatives is evaluating limits in indeterminate form 00​ or ∞∞​ with L’Hopital’s rule. Instead of applying different methods such as dominant term analysis, simply take the derivatives of the numerator and the denominator separately and re-evaluate. Repeat the process until direct substitution no longer results in either of those two indeterminate forms.

L’Hopital’s rule

If x→alim​f(x)=x→alim​g(x)=0 or x→alim​f(x)=x→alim​g(x)=∞, then

x→alim​g(x)f(x)​=x→alim​g′(x)f′(x)​

Sidenote
Not the quotient rule

Don’t use the quotient rule! With L’Hopital’s rule, the derivatives of the numerator and the denominator must be found separately before re-evaluating a limit by direct substitution.

1. Form: 0/0

Recall the special trig limit x→0lim​xsin(x)​=1. Other methods like the squeeze theorem can be used to prove this limit, but we’ll show how to use L’Hopital’s rule on it.

Since direct substitution results in 00​, apply L’Hopital’s rule.

  • The derivative of the numerator, sin(x), is cos(x).
  • The derivative of the denominator, x, is 1.

Therefore

x→0lim​xsin(x)​=x→0lim​1cos(x)​

Re-evaluating the limit with direct substitution results in 1​.

Here are a few more examples where direct substitution results in 00​.

x→0lim​xex−1​

Solution

(spoiler)

Applying L’Hopital’s rule,

=x→0lim​1ex​

=e0=1​

x→0lim​x1+x​−1​

Solution

(spoiler)

=x→0lim​121​(1+x)−1/2​

=x→0lim​21+x​1​

=21​​

2. Form: ∞/∞

L’Hopital’s rule can also be applied when direct substitution results in the indeterminate form ∞∞​.

x→∞lim​exx3+5​

Solution

(spoiler)

=x→∞lim​ex3x2​

Since direct substitution still produces the same indeterminate form, L’Hopital’s rule can be applied again.

=x→∞lim​ex6x​

Applying it again,

=x→∞lim​ex6​

Since direct substitution results in 6 over a very large value, the limit is 0​.

x→∞lim​xln(ex+x)​

Solution

(spoiler)

Applying L’Hopital’s rule,

=x→∞lim​1ex+x1​⋅(ex+1)​

=x→∞lim​ex+xex+1​

Applying L’Hopital’s rule again until it’s no longer needed,

=x→∞lim​ex+1ex​

=x→∞lim​exex​

Since the both ex cancel out, the limit is 1​.

3. Form 0×∞

L’Hopital’s rule can only be applied to quotients, so when this indeterminate form results from an expression f(x)×g(x), rewrite it either as g(x)1​f(x)​ or f(x)1​g(x)​ depending on which form’s denominator is easier to differentiate or will lead somewhere. For example,

x→0+lim​xcot(x)

can be written either as

x→0+lim​1/xcot(x)​

or

x→0+lim​1/cot(x)x​

=x→0+lim​tan(x)x​

The 1st option takes on the form ∞∞​ while the 2nd is 00​. Let’s try applying L’Hopital’s rule on the 1st one.

x→0+lim​1/xcot(x)​

x→0+lim​−1/x2−csc2(x)​

Hm…this doesn’t seem like it will go anywhere because differentiating the denominator will just increase the exponent on x and the 01​ will never go away. So let’s work with the 2nd option.

=x→0+lim​tan(x)x​

=x→0+lim​sec2(x)1​

=1​

4. Form ∞−∞

∞−∞ is an indeterminate form because the limit is not necessarily 0, as it may seem.

Find

x→1+lim​x−1x​−ln(x)1​

Combine into one rational expression.

x→1+lim​x−1x​⋅ln(x)ln(x)​−ln(x)1​⋅x−1x−1​

=x→1+lim​(x−1)ln(x)xln(x)−(x−1)​

Direct substitution results in 00​ so L’Hopital’s rule can be applied.

=x→1+lim​(x−1)(1/x)+ln(x)x(1/x)+ln(x)−1​

=x→1+lim​1−(1/x)+ln(x)ln(x)​

00​ again, so using L’Hopital’s:

=x→1+lim​(1/x2)+(1/x)(1/x)​

=21​​

Sidenote
Infinity + infinity

∞+∞ is not an indeterminate form - the limit will just be ∞. Similarly, −∞−∞ becomes −∞.

5. Form: 1∞,00,∞0

When direct substitution results in any of these indeterminate forms, resolve it by using the power property of logarithms.

x→∞lim​(1+x1​)x

Let

Lln(L)​=x→∞lim​(1+x1​)x=x→∞lim​ln[(1+x1​)x]=x→∞lim​x⋅ln(1+x1​)​

Direct substitution at this step results in ∞×0. Apply the previous technique of turning into a quotient.

x→∞lim​x1​ln(1+x1​)​

Then L’Hopital’s rule can be applied because direct substitution results in 00​.

x→∞lim​−x21​x+1x​⋅(−x21​)​

After canceling −x21​ the limit becomes

x→∞lim​xx+1​=1​

using either dominant term analysis or applying L’Hopital’s rule again.

Remember that the other side throughout this process was ln(L) and the goal was to find just L (which we defined as the limit problem). Solving for L,

ln(L)=1

L=e

Therefore

x→∞lim​(1+x1​)x=e​

AP tip:

Remember this limit definition of e.

Examples

n→0lim​(1+n)1/n

Solution

(spoiler)

Let L=n→0lim​(1+n)1/n.

Then taking the natural log of both sides,

ln(L)=ln(n→0lim​(1+n)1/n)

=n→0lim​n1​ln(1+n)

=n→0lim​nln(1+n)​

As n→0, the limit approaches 00​. So L’Hopital’s rule can be applied.

n→0lim​11+n1​​

=n→0lim​1+n1​

=1

Since ln(L)=1,L=e. Therefore

n→0lim​(1+n)1/n=e​

Alternatively, if we make the substitution u=n1​, note that as n→0, u→∞ and n=u1​.

Then the limit in terms of u is

u→∞lim​(1+u1​)u

Which looks just like the limit definition of e from the previous problem!

x→∞lim​(1−x1​)cos(x)

Solution

(spoiler)

Because cos(x) forever oscillates, it doesn’t settle on a single number as x→∞. This limit isn’t even in the form 1∞ and does not exist​.

x→0+lim​xx

Solution

(spoiler)

Direct substitution results in 00. Let

L=x→0+lim​xx

Then

ln(L)=x→0+lim​ln(xx)

=x→0+lim​xln(x)

=x→0+lim​x1​ln(x)​

=x→0+lim​−1/x21/x​

=x→0+lim​(−x)

=0

Since ln(L)=0,

L=1​

Key points
  • Use L’Hopital’s rule only on quotients, when the indeterminate form is 00​ or ±∞∞​.
  • For the other indeterminate forms, a summary for what to do:
Form What to do
0⋅∞ Rewrite as fraction
∞−∞ Combine
00,∞0,1∞ Use logarithms

Sign up for free to take 8 quiz questions on this topic

All rights reserved ©2016 - 2026 Achievable, Inc.