L'Hôpital's Rule
Statement
Let and be differentiable near with near . If the limit is an indeterminate form or , and the limit exists (or is ), then:
The rule also applies when .
Visualization
Recipe for indeterminate forms:
| Form | Strategy | Example | Result |
|---|---|---|---|
| Apply L'Hôpital directly | |||
| Apply L'Hôpital directly | |||
| Rewrite as | |||
| Common denominator first | |||
| Take , reduce to |
Worked example:
| Step | Expression | Value |
|---|---|---|
| Direct substitution | indeterminate | |
| L'Hôpital once | at | again |
| L'Hôpital twice | at |
Proof Sketch
The case at from the right uses Cauchy's Mean Value Theorem (a generalized MVT):
- Extend continuously: Set .
- Apply Cauchy MVT on : For each near , there exists with .
- Squeeze: As , is sandwiched between and , so .
- Conclude: .
Step 2 relies on the Mean Value TheoremMean Value TheoremThere exists a point where the instantaneous rate of change equals the average rate of changeRead more →; step 3 uses the Intermediate Value TheoremIntermediate Value TheoremA continuous function on a closed interval hits every value between its endpointsRead more → to trap .
Connections
- Mean Value TheoremMean Value TheoremThere exists a point where the instantaneous rate of change equals the average rate of changeRead more → — Cauchy's MVT (the engine of L'Hôpital) is a direct generalisation of MVT
- Intermediate Value TheoremIntermediate Value TheoremA continuous function on a closed interval hits every value between its endpointsRead more → — used to squeeze in the proof
- Chain RuleChain RuleDifferentiate composite functions by peeling layersRead more → — many L'Hôpital computations require differentiating composite functions
- Taylor's TheoremTaylor's TheoremApproximate smooth functions by polynomials with explicit error boundsRead more → — Taylor expansions give an alternative shortcut for limits at
- Fundamental Theorem of CalculusFundamental Theorem of CalculusIntegration and differentiation are inverse operationsRead more → — FTC evaluations often produce forms that L'Hôpital resolves
Lean4 Proof
import Mathlib.Analysis.Calculus.LHopital
open Filter Set
/-- L'Hôpital's rule for the 0/0 form from the right on an open interval (a, b).
Wraps Mathlib's `HasDerivAt.lhopital_zero_right_on_Ioo`. -/
theorem lhopital_zero_right {f g f' g' : ℝ → ℝ} {a b : ℝ} {l : Filter ℝ}
(hab : a < b)
(hff' : ∀ x ∈ Ioo a b, HasDerivAt f (f' x) x)
(hgg' : ∀ x ∈ Ioo a b, HasDerivAt g (g' x) x)
(hg' : ∀ x ∈ Ioo a b, g' x ≠ 0)
(hfa : Filter.Tendsto f (nhdsWithin a (Ioi a)) (nhds 0))
(hga : Filter.Tendsto g (nhdsWithin a (Ioi a)) (nhds 0))
(hdiv : Filter.Tendsto (fun x => f' x / g' x) (nhdsWithin a (Ioi a)) l) :
Filter.Tendsto (fun x => f x / g x) (nhdsWithin a (Ioi a)) l :=
HasDerivAt.lhopital_zero_right_on_Ioo hab hff' hgg' hg' hfa hga hdivReferenced by
- Cauchy's Mean Value TheoremCalculus