Prerequisites: Derivatives - Definition and Differentiation RulesThe derivative is the limit of the difference quotient and gives the slope of the tangent line; differentiable implies continuous but not conversely; the notes collect the derivatives of elementary functions, the rules (linearity, product, quotient, chain rule, inverse function, f^g) and higher-order derivatives with the classes C^n.Derivatives - Definition and Differentiation Rules →, indeterminate forms of limits.
L'Hopital's rule solves the indeterminate forms 00 and ∞∞ by differentiating numerator and denominator separately.
Statement
Theorem (L'Hopital). Let x0∈R (a real number or ±∞). Let f,g be defined and differentiable in a neighbourhood U of x0, except possibly at x0, with g(x)=0 and g′(x)=0 for x∈U∖{x0}. If either
- x→x0limf(x)=0 and x→x0limg(x)=0 (form 00), or
- x→x0limg(x)=±∞ (what f does does not matter),
then
x→x0limg(x)f(x)=x→x0limg′(x)f′(x)provided the second limit exists (finite or infinite).
Examples. limx→0xex−1=Hlimx→01ex=1; limx→+∞xlogx=Hlimx→+∞11/x=0.
Notes:
- It is not the derivative of the quotient: one computes g′f′, not (gf)′.
- The theorem is read right to left: first compute limg′f′; if it exists, it is also limgf.
- In case 2 it is enough that the denominator tends to infinity.
- For x0∈R it holds also for one-sided limits x→x0±.
Proof in a simple case
The general proof uses Cauchy's theorem. Here case 1 with stronger hypotheses: x0∈R, f,g differentiable at x0 with continuous derivatives there, and g′(x0)=0. Since f,g are continuous, f(x0)=g(x0)=0, so
x→x0limg(x)f(x)=x→x0limg(x)−g(x0)f(x)−f(x0)=x→x0limx−x0g(x)−g(x0)x−x0f(x)−f(x0)=g′(x0)f′(x0)=x→x0limg′(x)f′(x),
the last equality by continuity of f′,g′. ■
Idea: near x0 both functions are approximately their tangent lines, and the factor (x−x0) cancels leaving the ratio of slopes.
If limf′/g′ does not exist, nothing follows
The limit of gf may exist anyway. Take f(x)=3x−2cosx, g(x)=x+sinx as x→+∞.
- g→+∞ (case 2).
- g′f′=1+cosx3+2sinx is periodic and not constant, so it has no limit.
- Yet, since 2cosx and sinx are bounded, hence o(x),
x→+∞limx+sinx3x−2cosx=x→+∞limx+o(x)3x+o(x)=3.
Applications to limits
Hierarchy of infinities. For p>0, α>0: limx→+∞xαlogpx=0.
- p=1: form ∞∞, limxαlogx=Hlimαxα−11/x=limαxα1=0.
- General p: xαlogpx=(xα/plogx)p→0p=0.
When it is convenient. When differentiating simplifies (logarithms, arctangents become rational functions). Not when derivatives get more complicated (products, powers fg): then factor out dominant terms or use Maclaurin expansions (Maclaurin Series of the Elementary Functions and ApplicationsTable of the Maclaurin expansions to know by heart (exponential, sine, cosine, log(1+x), (1+x)^alpha, arctangent, hyperbolic functions, tangent) and rules for combining them: algebra of little-o, sums, products, compositions, expansions at infinity, and how many terms to keep in a limit.Maclaurin Series of the Elementary Functions and Applications →). Often it is best to mix: replace the easy part by an expansion, then use L'Hopital on the rest. Always check the hypotheses: for x1 as x→1 there is no indeterminate form, and differentiating would give a wrong result.
The theorem on the limit of the derivative
It decides whether f is differentiable at a delicate point x0 (junction of a piecewise function, zero of an absolute value) without computing the limit of the difference quotient.
Corollary. Let f:(a,b)→R be continuous and differentiable in ]a,b[∖{x0}. Then:
- if limx→x0−f′(x) exists it equals f′(x0−); if limx→x0+f′(x) exists it equals f′(x0+);
- so, when both limits exist, f is differentiable at x0 iff limx→x0−f′(x)=limx→x0+f′(x)∈R, and then f′(x0)=limx→x0f′(x).
Example. ∣x∣ is continuous with f′=±1 for x=0: the limits are −1=1, so not differentiable at 0.
Proof (right limit). f′(x0+)=limx→x0+x−x0f(x)−f(x0): the denominator tends to 0 and so does the numerator because f is continuous at x0. It is a 00 form; differentiating numerator (f(x0) is a constant) and denominator,
f′(x0+)=Hx→x0+lim1f′(x)=x→x0+limf′(x),
legitimate because this last limit exists by assumption. ■
Three observations:
- Without continuity it is false. f(x)=x+1 for x≥0, x−1 for x<0: f′=1 for x=0, f′(0+)=1, but f′(0−)=limx→0−x(x−1)−1=+∞=1. Always check continuity first.
- If the limits of f′ do not exist, nothing follows. f(x)=x2sinx1 for x=0, f(0)=0 is differentiable at 0 with f′(0)=0, whereas f′(x)=2xsinx1−cosx1 has no limit as x→0.
- If the limits exist, are equal and finite, then f′(x0)=limf′(x), so f′ is continuous at x0. In observation 2, f is differentiable at 0 but f′ is not continuous there.
Method to decide differentiability of f at x0:
- check continuity at x0 (else not differentiable);
- compute f′(x) for x=x0;
- compute L±=limx→x0±f′(x): equal and finite, differentiable; finite and different, corner; both +∞ or both −∞, vertical-tangent inflection; opposite infinities, cusp; one limit does not exist, go back to the difference quotient.
The classes C0 and C1
C0(I)={f continuous on I}, C1(I)={f differentiable on I with f′ continuous}. At the endpoints of I=[a,b] the one-sided derivatives are used. Example: x2∈C1(R); ∣x∣∈C0∖C1. The inclusions are strict:
C1(I)⊊{differentiable on I}⊊C0(I),
since x2sinx1 (with value 0 at 0) is differentiable on R but not C1. To check a piecewise function is C1 it suffices that it is continuous at the junction x0 and limx→x0−f′=limx→x0+f′∈R.
Summary
|
Requires |
Gives |
| Case 1 |
f→0, g→0 |
limgf=limg′f′ if the latter exists |
| Case 2 |
g→±∞ |
same |
| limg′f′ does not exist |
|
no conclusion |
Common mistakes
- Using the quotient rule g2f′g−fg′ instead of g′f′.
- Applying it without an indeterminate form: limx→01+xcosx=1, while 1−sinx→0.
- Concluding that limgf does not exist because limg′f′ does not.
- Using it where derivatives get worse (exponentials with complicated exponents, products).
- Using the limit of f′ without checking continuity; confusing differentiable with C1.
Versione ripasso
f,g differentiable near x0∈R (except possibly at x0), g′=0. If f,g→0, or ∣g∣→+∞, then
limgf=limg′f′if the latter exists.
- Not the derivative of the quotient; also valid for one-sided limits.
- If limg′f′ does not exist, no conclusion: x+sinx3x−2cosx→3 although 1+cosx3+2sinx has no limit.
- Examples: xex−1→1; xαlogpx→0 (for p=1: αxα−11/x→0; in general raise to p).
- Convenient when differentiation simplifies (logs, arctan); otherwise use dominant terms or expansions. Check the form first.
Proof (simple case). f(x0)=g(x0)=0, divide by x−x0: ratio of difference quotients tends to g′(x0)f′(x0).
Limit of the derivative. f continuous at x0, differentiable elsewhere. If limx→x0±f′(x) exist, they equal f′(x0±) (L'Hopital on the difference quotient, a 00 form by continuity). So f is differentiable at x0 iff the two limits are equal and finite, and then f′ is continuous at x0.
- Continuity is necessary (jump example: f′(0−)=+∞=1).
- If limf′ does not exist, go back to the difference quotient (x2sinx1 is differentiable at 0).
- Method: continuity; f′ off x0; limits L±: equal finite differentiable, different finite corner, same infinite vertical-tangent inflection, opposite infinite cusp.
Classes. C0 continuous; C1 differentiable with continuous f′; C1⊊differentiable⊊C0.
Typical mistakes. Quotient rule instead of g′f′; no indeterminate form; "no limit of f′/g′ so no limit"; ignoring continuity; differentiable versus C1.