AP Calculus AB and BC · Unit 4 · Topic 4.7

    4.7 Using L'Hospital's Rule for Determining Limits of Indeterminate Forms

    Reviewed by P V Satish, Senior Faculty of Science and Academic Consultant · PG Life Sciences, PGD Biotechnology · 20+ years teaching NEET and AP · Special interest in biotechnology, biochemistry and the basics of physics
    Updated

    In short

    If a limit of a quotient gives 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}, L'Hospital's rule says you may replace the numerator and denominator by their derivatives: lim⁡f(x)g(x)=lim⁡f′(x)g′(x)\lim \frac{f(x)}{g(x)} = \lim \frac{f'(x)}{g'(x)}, provided the new limit exists. It is not the quotient rule, and it only applies to these indeterminate forms.

    What you need to know

    • Recognise the indeterminate forms 0/0 and ∞/∞.
    • Apply L'Hospital's rule to evaluate a limit.
    • Verify and state the conditions for using the rule.
    • Apply the rule more than once when the form stays indeterminate.

    The rule

    Suppose ff and gg are differentiable near aa, with g′(x)≠0g'(x) \ne 0 near aa, and lim⁡x→af(x)=lim⁡x→ag(x)=0\lim_{x\to a} f(x) = \lim_{x\to a} g(x) = 0 (or both are infinite). Then

    lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x)\lim_{x\to a}\frac{f(x)}{g(x)} = \lim_{x\to a}\frac{f'(x)}{g'(x)}

    provided the limit on the right exists. The same holds for x→∞x \to \infty. Differentiate the top and the bottom separately; do not use the quotient rule.

    Example. lim⁡x→1ln⁡xx−1\lim_{x\to 1}\frac{\ln x}{x - 1} is 00\frac{0}{0}. Applying the rule: lim⁡x→11/x1=1\lim_{x\to 1}\frac{1/x}{1} = 1.

    Using it more than once

    lim⁡x→0ex−1−xx2\lim_{x\to 0}\frac{e^x - 1 - x}{x^2} is 00\frac{0}{0}. One application gives lim⁡x→0ex−12x\lim_{x\to 0}\frac{e^x - 1}{2x}, still 00\frac{0}{0}. A second gives lim⁡x→0ex2=12\lim_{x\to 0}\frac{e^x}{2} = \frac{1}{2}. Check the form before every application.

    For ∞∞\frac{\infty}{\infty}: lim⁡x→∞x2ex\lim_{x\to\infty}\frac{x^2}{e^x} gives 2xex\frac{2x}{e^x}, then 2ex→0\frac{2}{e^x} \to 0. Exponentials eventually outgrow any power of xx, which is the growth comparison from topic 1.15.

    Checking the form first

    The rule gives wrong answers when the form is not indeterminate. lim⁡x→0x+1x+2=12\lim_{x\to 0}\frac{x + 1}{x + 2} = \frac{1}{2} by direct substitution. Differentiating top and bottom would give 11=1\frac{1}{1} = 1, which is wrong.

    From a table. If f(2)=g(2)=0f(2) = g(2) = 0, f′(2)=3f'(2) = 3 and g′(2)=4g'(2) = 4, with ff and gg differentiable, then lim⁡x→2f(x)g(x)=34\lim_{x\to 2}\frac{f(x)}{g(x)} = \frac{3}{4}. On the FRQ, state that both limits are 0 before applying the rule; that statement is usually worth a point.

    Choosing the right tool

    L'Hospital's rule is powerful, but it is one tool among several. When a 0/0 limit comes from a polynomial or rational expression, factoring and cancelling is usually faster and less error-prone. For example, lim⁡x→3x2−9x−3\lim_{x\to 3}\frac{x^2 - 9}{x - 3} simplifies to x+3x + 3, giving 6 at once, and the rule gives the same answer through 2x1\frac{2x}{1}.

    The rule shines where algebra cannot help: limits mixing exponentials, logarithms and trigonometric functions, such as ln⁡xx−1\frac{\ln x}{x - 1} or 1−cos⁡xx2\frac{1 - \cos x}{x^2}. It also agrees with results from Unit 1, like lim⁡x→0sin⁡xx=1\lim_{x\to 0}\frac{\sin x}{x} = 1, since cos⁡x1→1\frac{\cos x}{1} \to 1, though that limit was itself needed to find the derivative of sin⁡x\sin x, so this is a check rather than a proof.

    A sensible order on any limit question: substitute directly; if you get a number, stop. If you get 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}, try simple algebra, and reach for L'Hospital's rule when the algebra is not obvious. If you get a nonzero number over 0, the limit is infinite or does not exist, and the rule does not apply.

    Key terms

    Indeterminate form
    A limit expression such as 0/0 or ∞/∞ whose value cannot be decided from the form alone.
    L'Hospital's rule
    For 0/0 or ∞/∞, the limit of f/g equals the limit of f′/g′, if that limit exists.
    Direct substitution
    Evaluating a limit by plugging in the value, which works when the function is continuous there.
    Growth rate comparison
    Exponential functions grow faster than any power of x as x → ∞.

    Common mistakes

    • Applying the rule when the form is not 0/0 or ∞/∞.

      Substitute first; if you get a number, that is the limit.

    • Using the quotient rule on f/g.

      Differentiate numerator and denominator separately.

    • Skipping the statement of the conditions on FRQs.

      Write that both limits are 0 (or infinite) before applying the rule.

    How this topic is tested

    • Always try direct substitution first.
    • Re-check the form before each application.
    • Name the rule and state its conditions.

    Practice questions

    Original AP-style multiple-choice questions. Pick an answer to see the explanation.

    1. Question 1 · MP 1 · Implementing Mathematical Processes

      lim⁡x→1ln⁡xx−1\lim_{x\to 1}\frac{\ln x}{x - 1} = ?

    2. Question 2 · MP 1 · Implementing Mathematical Processes

      lim⁡x→0ex−1−xx2\lim_{x\to 0}\frac{e^x - 1 - x}{x^2} = ?

    3. Question 3 · MP 2 · Connecting Representations

      f(2)=g(2)=0f(2) = g(2) = 0, f′(2)=3f'(2) = 3, g′(2)=4g'(2) = 4. What is lim⁡x→2f(x)g(x)\lim_{x\to 2}\frac{f(x)}{g(x)}?

    4. Question 4 · MP 3 · Justification

      Why is L'Hospital's rule wrong for lim⁡x→0x+1x+2\lim_{x\to 0}\frac{x + 1}{x + 2}?

    5. Question 5 · MP 1 · Implementing Mathematical Processes

      lim⁡x→∞x2ex\lim_{x\to\infty}\frac{x^2}{e^x} = ?

    Free-response practice

    Write your answer first, then mark it against the scoring guide.

    Free response (no calculator) · 4 points

    Let h(x)=1−cos⁡xx2h(x) = \frac{1 - \cos x}{x^2} for x≠0x \ne 0.

    1. (a) Explain why L'Hospital's rule may be used to find lim⁡x→0h(x)\lim_{x\to 0} h(x).
    2. (b) Find lim⁡x→0h(x)\lim_{x\to 0} h(x).
    3. (c) State a value for h(0)h(0) that makes hh continuous at 0.

    Connected topics

    Frequently asked questions

    Is it spelled L'Hospital or L'Hôpital?

    Both are correct. The College Board uses L'Hospital.

    Can it handle 0 · ∞ or 1^∞?

    Only after rewriting as a quotient. AP Calculus AB focuses on 0/0 and ∞/∞.

    Does it replace factoring and the squeeze theorem?

    No. Algebra is often quicker, and some limits are easier another way.

    How this shows up on the exam42 multiple-choice and 6 free-response questions, with and without a calculator. See how the exam is laid out.

    Free Unit 4 cheat sheet

    Every topic in Unit 4: Contextual Applications of Differentiation on a few printable pages: the core idea, key terms, the two traps students fall into and what the exam asks.

    We'll use your email to tell you when new AP Calculus AB practice material is ready. No spam, and we'll delete it if you ask.

    Full-length AP Calculus AB practice examsUnit 4 is one of 8 units on the exam. Two timed exams in the 2027 format (42 MCQ + 6 FRQ, with calculator and no-calculator parts), worked explanations, scoring guides and an estimated 1–5 score. $14.99 · try 5 questions free.

    Related lessons in other AP courses

    All topics in Unit 4: Contextual Applications of Differentiation

    1. 4.1 Interpreting the Meaning of the Derivative in Context
    2. 4.2 Straight-Line Motion: Connecting Position, Velocity, and Acceleration
    3. 4.3 Rates of Change in Applied Contexts Other Than Motion
    4. 4.4 Introduction to Related Rates
    5. 4.5 Solving Related Rates Problems
    6. 4.6 Approximating Values of a Function Using Local Linearity and Linearization
    7. 4.7 Using L'Hospital's Rule for Determining Limits of Indeterminate Forms

    Other units in AP Calculus AB

    AP® is a trademark registered by College Board, which is not affiliated with, and does not endorse, this website.