What Is L'Hôpital's Rule?
L'Hôpital's rule is the standard tool for resolving indeterminate forms — limits of quotients that direct substitution reduces to the meaningless expressions 0/0 or ∞/∞. The rule states: if lim f(x)/g(x) produces one of those two forms, and f and g are differentiable near the point, then
lim f(x)/g(x) = lim f'(x)/g'(x)
— provided the right-hand limit exists. Differentiate the numerator and the denominator separately (this is emphatically not the quotient rule), then try the limit again. If the new form is still indeterminate, apply the rule again; each round typically simplifies the competition between numerator and denominator until a definite answer emerges.
Why it works, intuitively: near the troublesome point, both functions are racing to zero (or infinity), and the limit of their ratio is decided by how fast each one moves — which is exactly what derivatives measure. Replacing the functions by their rates of change compares the speeds directly.
How to Use This Calculator
Enter your limit as a single quotient (like sin(x)/x) and the approach point. The calculator first substitutes to verify the form really is 0/0 or ∞/∞ — if it isn't, it says so and refuses to apply the rule, exactly as you should on an exam. When the form qualifies, each application is shown in full: the freshly differentiated numerator and denominator as symbolic expressions, the substituted values, and whether another round is needed, up to four applications. The graph plots the quotient near the point so you can see the function approaching its limiting height despite being undefined at the point itself.
Worked Example
Evaluate limx→0 (1 − cos x)/x². Substitution gives (1−1)/0 = 0/0 — indeterminate. First application: differentiate top and bottom separately to get sin(x)/2x; substitution again gives 0/0. Second application: cos(x)/2, and substituting x = 0 now gives cos(0)/2 = 1/2. Two rounds were required, and each was a legitimate re-check of the form before differentiating again — skipping that re-check is where most errors creep in.
The Indeterminate Forms
| Form | L'Hôpital directly? | Strategy |
|---|---|---|
| 0/0, ∞/∞ | Yes | Apply the rule as-is |
| 0·∞ | After rewriting | Rewrite as 0/(1/∞) or ∞/(1/0) to get a quotient |
| ∞ − ∞ | After rewriting | Combine over a common denominator first |
| 1^∞, 0⁰, ∞⁰ | After logarithms | Take ln, evaluate the resulting 0·∞ form, exponentiate back |
| 5/0, 0/5, etc. | Never | Not indeterminate — read the answer directly |
Common Mistakes to Avoid
- Applying the rule to a form that isn't indeterminate. limx→0⁺ (1/x)/(ln x) has the form ∞/(−∞) — fine — but lim (x+1)/x at 0 has form 1/0, which is not indeterminate, and "L'Hôpitaling" it produces nonsense. Always substitute first.
- Using the quotient rule instead of separate derivatives. The rule differentiates numerator and denominator independently: f'/g', never (f/g)'.
- Forgetting to re-check between applications. After each round, substitute again; only continue if the form is still 0/0 or ∞/∞.
- Looping forever on cycling limits. Some quotients (like e^x/(e^x+e^−x) variants) cycle under repeated differentiation — when rounds stop making progress, switch to algebraic simplification instead.
Real-World Applications
L'Hôpital's rule earns its keep wherever formulas break down at special parameter values. In finance, the compound-interest formula for the future value of an annuity has a 0/0 form when the interest rate is exactly zero — the rule (or the equivalent series expansion) recovers the sensible answer that payments simply add up. In physics, the intensity pattern of light through a slit involves sin(x)/x, whose value "at" x = 0 — the pattern's central peak — is defined by precisely the limit this page's default example computes. Relativistic formulas reduce to Newtonian ones as v/c → 0 through the same kind of limiting analysis.
In engineering and statistics, expressions like (eˣ−1)/x and ln(x)/(x−1) appear as sensitivities and elasticities near reference points, and their well-defined limiting values are what make small-signal analysis and per-unit approximations coherent. Numerical software must handle these removable singularities explicitly — library implementations of functions like expm1 and log1p exist precisely because naive evaluation near the indeterminate point loses all precision.
Frequently Asked Questions
Why is it called an "indeterminate" form?
Because 0/0 alone determines nothing: sin(x)/x → 1, x²/x → 0, and x/x³ → ∞ are all "0/0" at zero yet have completely different answers. The form tells you more work is needed, not what the answer is.
Does L'Hôpital's rule work for limits at infinity?
Yes — the rule applies equally to x → ∞ when the form is 0/0 or ∞/∞. That's how growth hierarchies are proved: ln(x)/x → 0 follows from one application, giving (1/x)/1 → 0. See the Limit at Infinity Calculator for the sampling-based view of the same limits.
Can every limit be done with L'Hôpital's rule?
No. Some indeterminate quotients cycle or worsen under differentiation, and famously limx→∞ x/√(x²+1) turns circular — while simple algebra (divide by x) resolves it instantly. The rule is one tool among several; factoring, conjugates, and series expansions remain essential.
Is applying the rule twice always allowed?
Yes, provided the hypotheses hold again: the new quotient must itself be 0/0 or ∞/∞ at the point. The worked example above needed exactly two applications, re-verifying the form in between. This calculator automates that re-check on every round.
Who was L'Hôpital?
Guillaume de l'Hôpital, a French marquis, published the rule in 1696 in the first calculus textbook ever written. The result was actually discovered by his tutor, Johann Bernoulli, under a financial arrangement giving l'Hôpital rights to his discoveries — one of mathematics' most famous naming quirks.
How does L'Hôpital's rule relate to Taylor series?
They're two views of the same phenomenon. Near the limit point, replacing numerator and denominator with their Taylor expansions makes the answer visible directly: sin(x)/x becomes (x − x³/6 + …)/x = 1 − x²/6 + …, which clearly approaches 1. Each application of L'Hôpital's rule effectively peels off one Taylor term from top and bottom — which is why (1 − cos x)/x² needed exactly two rounds, matching cos's expansion starting at the x² term. When repeated applications get messy, switching to a short Taylor expansion is often the faster road to the same limit.