5. Calculus

L’hôpital’s Rule

L’Hôpital’s Rule

Introduction: Why do some limits look impossible? 🤔

students, in calculus you will often meet limits that seem to “stall out” when you try to evaluate them directly. For example, a function may give the expression $\frac{0}{0}$ or $\frac{\infty}{\infty}$ as $x$ approaches a certain value. These are called indeterminate forms because they do not immediately tell you the value of the limit. They tell you only that more work is needed.

L’Hôpital’s Rule is a powerful method for finding certain limits by comparing how quickly the numerator and denominator change. It is closely connected to differentiation, because the rule uses derivatives to evaluate limits that would otherwise be difficult to solve. This makes it an important tool in IB Mathematics: Analysis and Approaches HL, especially when studying limits, continuity, rates of change, and applications of calculus.

Learning goals

By the end of this lesson, students, you should be able to:

  • Explain the main ideas and terminology behind L’Hôpital’s Rule.
  • Apply L’Hôpital’s Rule to suitable limits.
  • Connect L’Hôpital’s Rule to the wider study of calculus.
  • Recognize when the rule is useful and when it is not.
  • Use examples to justify results clearly and accurately.

What L’Hôpital’s Rule says

L’Hôpital’s Rule applies to limits of the form $\frac{f(x)}{g(x)}$ when both $f(x)$ and $g(x)$ approach $0$ or both approach $\pm\infty$ as $x$ approaches some value $a$. If the functions are differentiable near $a$, and if the limit of the derivative ratio exists or is $\pm\infty$, then:

$$\lim_{x\to a}\frac{f(x)}{g(x)}=\lim_{x\to a}\frac{f'(x)}{g'(x)}$$

provided the right-hand limit exists under the conditions required.

This is not a magic shortcut for every limit. It is a theorem with conditions. The important idea is that when two functions both approach the same troublesome form, their derivatives may reveal which one is changing faster.

The two main indeterminate forms

The rule is directly designed for:

  • $\frac{0}{0}$
  • $\frac{\infty}{\infty}$

Other indeterminate forms such as $0\cdot\infty$, $\infty-\infty$, $0^0$, $1^\infty$, and $\infty^0$ are not directly covered, but they can sometimes be rewritten into a fraction that produces one of the two forms above.

For example, an expression like $x\ln x$ as $x\to 0^+$ gives the form $0\cdot(-\infty)$, which is not directly suitable. But you can rewrite it as $\frac{\ln x}{1/x}$, which becomes $\frac{-\infty}{\infty}$ and may then be treated with L’Hôpital’s Rule.

Why the rule works: comparing rates of change

To understand the rule, think about a race between two runners. Suppose one runner represents the numerator $f(x)$ and the other represents the denominator $g(x)$. If both are heading toward $0$, the actual size of each runner is not enough to tell you the result of the fraction. What matters is how quickly each one is changing near the point of interest.

Derivatives measure rate of change. So L’Hôpital’s Rule compares $f'(x)$ and $g'(x)$ instead of $f(x)$ and $g(x)$. If the derivative ratio has a clear limit, then that limit often matches the original one.

This idea is linked to the broader calculus theme of local behavior. Near a point, functions can often be understood by how steeply they rise or fall. That is why derivatives are so useful in limits, approximation, and optimization.

Example 1: a classic $\frac{0}{0}$ limit

Find

$$\lim_{x\to 0}\frac{\sin x}{x}$$

Direct substitution gives $\frac{0}{0}$, so the expression is indeterminate.

Apply L’Hôpital’s Rule:

$$\lim_{x\to 0}\frac{\sin x}{x}=\lim_{x\to 0}\frac{\cos x}{1}$$

Now evaluate the limit:

$$\lim_{x\to 0}\cos x=1$$

So,

$$\lim_{x\to 0}\frac{\sin x}{x}=1$$

This result is fundamental in calculus and is used in many later ideas, including differentiation of trigonometric functions and series approximations.

Example 2: a limit at infinity

Find

$$\lim_{x\to\infty}\frac{3x^2+1}{5x^2-4x}$$

As $x\to\infty$, both numerator and denominator go to $\infty$, so the form is $\frac{\infty}{\infty}$.

Apply L’Hôpital’s Rule:

$$\lim_{x\to\infty}\frac{3x^2+1}{5x^2-4x}=\lim_{x\to\infty}\frac{6x}{10x-4}$$

This is still $\frac{\infty}{\infty}$, so apply the rule again:

$$\lim_{x\to\infty}\frac{6x}{10x-4}=\lim_{x\to\infty}\frac{6}{10}=\frac{3}{5}$$

So the original limit is $\frac{3}{5}$. This tells us the highest-degree terms dominate the behavior for large $x$.

When and how to apply the rule correctly

students, a careful method is essential. A strong IB solution should show the reason for using the rule, not just the final answer.

Step-by-step approach

  1. Check the form by substituting the limit value.
  2. Confirm an indeterminate form of $\frac{0}{0}$ or $\frac{\infty}{\infty}$.
  3. Differentiate numerator and denominator separately.
  4. Re-evaluate the new limit.
  5. Repeat if needed, but only if the new expression is still an indeterminate form.
  6. State the final result clearly.

Example 3: repeated use

Find

$$\lim_{x\to 0}\frac{e^x-1-x}{x^2}$$

Substitution gives $\frac{0}{0}$, so apply L’Hôpital’s Rule:

$$\lim_{x\to 0}\frac{e^x-1}{2x}$$

This is still $\frac{0}{0}$, so apply the rule again:

$$\lim_{x\to 0}\frac{e^x}{2}=\frac{1}{2}$$

So,

$$\lim_{x\to 0}\frac{e^x-1-x}{x^2}=\frac{1}{2}$$

This example shows that sometimes one application is not enough. The goal is to simplify the indeterminate form until a definite limit appears.

Connections to continuity, differentiation, and applications

L’Hôpital’s Rule sits at the intersection of several calculus ideas. It depends on differentiability, which is a stronger condition than continuity. A function must be differentiable near the point in question for the rule to be applied appropriately.

It also helps with questions about continuity. If a limit exists and equals the function value at that point, the function may be continuous there. L’Hôpital’s Rule can help find the limit needed to test continuity.

In applications, the rule can simplify expressions from kinematics, growth models, and optimization. For example, in motion problems, ratios of changing quantities can appear in displacement, velocity, or acceleration contexts. In modeling, it can help analyze how quickly one quantity grows relative to another.

Example 4: interpreting behavior in context

Suppose a model uses the expression

$$\frac{\ln x}{x}$$

as $x\to\infty$. Directly, this is $\frac{\infty}{\infty}$.

Using L’Hôpital’s Rule:

$$\lim_{x\to\infty}\frac{\ln x}{x}=\lim_{x\to\infty}\frac{1/x}{1}=\lim_{x\to\infty}\frac{1}{x}=0$$

This means $\ln x$ grows much more slowly than $x$. In real-world terms, a quantity that increases logarithmically will eventually be small compared to one that increases linearly.

Common mistakes to avoid

A correct IB answer needs more than a memorized formula. Be careful with these points:

  • Do not use L’Hôpital’s Rule unless the limit is truly $\frac{0}{0}$ or $\frac{\infty}{\infty}$ after substitution.
  • Do not differentiate a product or quotient as if the rule applies to the whole expression automatically. L’Hôpital’s Rule only says to differentiate the numerator and denominator separately.
  • Do not forget to check the conditions. The functions must be differentiable in the relevant interval.
  • Do not stop too early if the new limit is still indeterminate.
  • Do not assume the rule works for every expression involving infinity.

If an expression is not in one of the two valid forms, rewrite it first. For example, $\frac{x}{e^x}$ as $x\to\infty$ is already suitable, but $x e^{-x}$ should be rewritten as $\frac{x}{e^x}$.

Conclusion

L’Hôpital’s Rule is a key calculus method for evaluating difficult limits, especially when direct substitution produces $\frac{0}{0}$ or $\frac{\infty}{\infty}$. Its power comes from the idea that derivatives reveal relative rates of change more clearly than the original functions. In IB Mathematics: Analysis and Approaches HL, students, you should view the rule as part of a larger toolkit involving limits, differentiation, continuity, and real-world interpretation. When used carefully, it can turn a confusing expression into a clear and exact result. ✨

Study Notes

  • L’Hôpital’s Rule is used to evaluate limits of the form $\frac{0}{0}$ or $\frac{\infty}{\infty}$.
  • It states that under suitable conditions, $\lim_{x\to a}\frac{f(x)}{g(x)}=\lim_{x\to a}\frac{f'(x)}{g'(x)}$.
  • The rule is based on comparing rates of change using derivatives.
  • Always check the form by substitution before applying the rule.
  • If the new limit is still indeterminate, the rule may be applied again.
  • Expressions like $0\cdot\infty$ or $\infty-\infty$ must often be rewritten first.
  • L’Hôpital’s Rule connects limits, differentiability, continuity, and applications of calculus.
  • It is especially useful in IB AA HL for rigorous reasoning and clear problem solving.
  • Typical examples include $\lim_{x\to 0}\frac{\sin x}{x}=1$ and $\lim_{x\to\infty}\frac{\ln x}{x}=0$.
  • A strong solution should explain why the rule is valid to use, not just give the final answer.

Practice Quiz

5 questions to test your understanding