Salta al contenuto
Note per Studenti L'Hopital's Rule and the Limit of the Derivative Report

L'Hopital's Rule and the Limit of the Derivative

In questa pagina 7

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\frac00 and ∞∞\frac\infty\infty by differentiating numerator and denominator separately.

Statement

Theorem (L'Hopital). Let x0∈R‾x_0 \in \overline{\mathbb{R}} (a real number or ±∞\pm\infty). Let f,gf, g be defined and differentiable in a neighbourhood UU of x0x_0, except possibly at x0x_0, with g(x)≠0g(x) \ne 0 and g′(x)≠0g'(x) \ne 0 for x∈U∖{x0}x \in U \setminus \{x_0\}. If either

  1. lim⁡x→x0f(x)=0\displaystyle\lim_{x \to x_0} f(x) = 0 and lim⁡x→x0g(x)=0\displaystyle\lim_{x \to x_0} g(x) = 0 (form 00\frac00), or
  2. lim⁡x→x0g(x)=±∞\displaystyle\lim_{x \to x_0} g(x) = \pm\infty (what ff does does not matter),

then lim⁡x→x0f(x)g(x)=lim⁡x→x0f′(x)g′(x)provided the second limit exists (finite or infinite).\lim_{x \to x_0}\frac{f(x)}{g(x)} = \lim_{x \to x_0}\frac{f'(x)}{g'(x)} \qquad \text{provided the second limit exists (finite or infinite).}

Examples. lim⁡x→0ex−1x=Hlim⁡x→0ex1=1\lim_{x \to 0}\frac{e^x - 1}{x} \overset{H}{=} \lim_{x \to 0}\frac{e^x}{1} = 1; lim⁡x→+∞log⁡xx=Hlim⁡x→+∞1/x1=0\lim_{x \to +\infty}\frac{\log x}{x} \overset{H}{=} \lim_{x \to +\infty}\frac{1/x}{1} = 0.

Notes:

  • It is not the derivative of the quotient: one computes f′g′\frac{f'}{g'}, not (fg)′\left(\frac fg\right)'.
  • The theorem is read right to left: first compute lim⁡f′g′\lim\frac{f'}{g'}; if it exists, it is also lim⁡fg\lim\frac fg.
  • In case 2 it is enough that the denominator tends to infinity.
  • For x0∈Rx_0 \in \mathbb{R} it holds also for one-sided limits x→x0±x \to x_0^\pm.

Proof in a simple case

The general proof uses Cauchy's theorem. Here case 1 with stronger hypotheses: x0∈Rx_0 \in \mathbb{R}, f,gf, g differentiable at x0x_0 with continuous derivatives there, and g′(x0)≠0g'(x_0) \ne 0. Since f,gf, g are continuous, f(x0)=g(x0)=0f(x_0) = g(x_0) = 0, so lim⁡x→x0f(x)g(x)=lim⁡x→x0f(x)−f(x0)g(x)−g(x0)=lim⁡x→x0f(x)−f(x0)x−x0g(x)−g(x0)x−x0=f′(x0)g′(x0)=lim⁡x→x0f′(x)g′(x),\lim_{x \to x_0}\frac{f(x)}{g(x)} = \lim_{x \to x_0}\frac{f(x) - f(x_0)}{g(x) - g(x_0)} = \lim_{x \to x_0}\frac{\dfrac{f(x) - f(x_0)}{x - x_0}}{\dfrac{g(x) - g(x_0)}{x - x_0}} = \frac{f'(x_0)}{g'(x_0)} = \lim_{x \to x_0}\frac{f'(x)}{g'(x)}, the last equality by continuity of f′,g′f', g'. ■\blacksquare

Idea: near x0x_0 both functions are approximately their tangent lines, and the factor (x−x0)(x - x_0) cancels leaving the ratio of slopes.

If lim⁡f′/g′\lim f'/g' does not exist, nothing follows

The limit of fg\frac fg may exist anyway. Take f(x)=3x−2cos⁡xf(x) = 3x - 2\cos x, g(x)=x+sin⁡xg(x) = x + \sin x as x→+∞x \to +\infty.

  • g→+∞g \to +\infty (case 2).
  • f′g′=3+2sin⁡x1+cos⁡x\frac{f'}{g'} = \frac{3 + 2\sin x}{1 + \cos x} is periodic and not constant, so it has no limit.
  • Yet, since 2cos⁡x2\cos x and sin⁡x\sin x are bounded, hence o(x)o(x), lim⁡x→+∞3x−2cos⁡xx+sin⁡x=lim⁡x→+∞3x+o(x)x+o(x)=3.\lim_{x \to +\infty}\frac{3x - 2\cos x}{x + \sin x} = \lim_{x \to +\infty}\frac{3x + o(x)}{x + o(x)} = 3.

Applications to limits

Hierarchy of infinities. For p>0p > 0, α>0\alpha > 0: lim⁡x→+∞log⁡pxxα=0\lim_{x \to +\infty}\frac{\log^p x}{x^\alpha} = 0.

  • p=1p = 1: form ∞∞\frac\infty\infty, lim⁡log⁡xxα=Hlim⁡1/xαxα−1=lim⁡1αxα=0\lim\frac{\log x}{x^\alpha} \overset{H}{=} \lim\frac{1/x}{\alpha x^{\alpha - 1}} = \lim\frac{1}{\alpha x^\alpha} = 0.
  • General pp: log⁡pxxα=(log⁡xxα/p)p→0p=0\frac{\log^p x}{x^\alpha} = \left(\frac{\log x}{x^{\alpha/p}}\right)^p \to 0^p = 0.

When it is convenient. When differentiating simplifies (logarithms, arctangents become rational functions). Not when derivatives get more complicated (products, powers fgf^g): 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 1x\frac1x as x→1x \to 1 there is no indeterminate form, and differentiating would give a wrong result.

The theorem on the limit of the derivative

It decides whether ff is differentiable at a delicate point x0x_0 (junction of a piecewise function, zero of an absolute value) without computing the limit of the difference quotient.

Corollary. Let f:(a,b)→Rf: (a, b) \to \mathbb{R} be continuous and differentiable in ]a,b[∖{x0}]a, b[ \setminus \{x_0\}. Then:

  1. if lim⁡x→x0−f′(x)\lim_{x \to x_0^-} f'(x) exists it equals f′(x0−)f'(x_0^-); if lim⁡x→x0+f′(x)\lim_{x \to x_0^+} f'(x) exists it equals f′(x0+)f'(x_0^+);
  2. so, when both limits exist, ff is differentiable at x0x_0 iff lim⁡x→x0−f′(x)=lim⁡x→x0+f′(x)∈R\lim_{x \to x_0^-} f'(x) = \lim_{x \to x_0^+} f'(x) \in \mathbb{R}, and then f′(x0)=lim⁡x→x0f′(x)f'(x_0) = \lim_{x \to x_0} f'(x).

Example. ∣x∣|x| is continuous with f′=±1f' = \pm1 for x≠0x \ne 0: the limits are −1≠1-1 \ne 1, so not differentiable at 00.

Proof (right limit). f′(x0+)=lim⁡x→x0+f(x)−f(x0)x−x0f'(x_0^+) = \lim_{x \to x_0^+}\frac{f(x) - f(x_0)}{x - x_0}: the denominator tends to 00 and so does the numerator because ff is continuous at x0x_0. It is a 00\frac00 form; differentiating numerator (f(x0)f(x_0) is a constant) and denominator, f′(x0+)=Hlim⁡x→x0+f′(x)1=lim⁡x→x0+f′(x),f'(x_0^+) \overset{H}{=} \lim_{x \to x_0^+}\frac{f'(x)}{1} = \lim_{x \to x_0^+} f'(x), legitimate because this last limit exists by assumption. ■\blacksquare

Three observations:

  1. Without continuity it is false. f(x)=x+1f(x) = x + 1 for x≥0x \ge 0, x−1x - 1 for x<0x < 0: f′=1f' = 1 for x≠0x \ne 0, f′(0+)=1f'(0^+) = 1, but f′(0−)=lim⁡x→0−(x−1)−1x=+∞≠1f'(0^-) = \lim_{x \to 0^-}\frac{(x - 1) - 1}{x} = +\infty \ne 1. Always check continuity first.
  2. If the limits of f′f' do not exist, nothing follows. f(x)=x2sin⁡1xf(x) = x^2\sin\frac1x for x≠0x \ne 0, f(0)=0f(0) = 0 is differentiable at 00 with f′(0)=0f'(0) = 0, whereas f′(x)=2xsin⁡1x−cos⁡1xf'(x) = 2x\sin\frac1x - \cos\frac1x has no limit as x→0x \to 0.
  3. If the limits exist, are equal and finite, then f′(x0)=lim⁡f′(x)f'(x_0) = \lim f'(x), so f′f' is continuous at x0x_0. In observation 2, ff is differentiable at 00 but f′f' is not continuous there.

Method to decide differentiability of ff at x0x_0:

  1. check continuity at x0x_0 (else not differentiable);
  2. compute f′(x)f'(x) for x≠x0x \ne x_0;
  3. compute L±=lim⁡x→x0±f′(x)L_\pm = \lim_{x \to x_0^\pm} f'(x): equal and finite, differentiable; finite and different, corner; both +∞+\infty or both −∞-\infty, vertical-tangent inflection; opposite infinities, cusp; one limit does not exist, go back to the difference quotient.

The classes C0C^0 and C1C^1

C0(I)={f continuous on I}C^0(I) = \{f \text{ continuous on } I\}, C1(I)={f differentiable on I with f′ continuous}C^1(I) = \{f \text{ differentiable on } I \text{ with } f' \text{ continuous}\}. At the endpoints of I=[a,b]I = [a, b] the one-sided derivatives are used. Example: x2∈C1(R)x^2 \in C^1(\mathbb{R}); ∣x∣∈C0∖C1|x| \in C^0 \setminus C^1. The inclusions are strict: C1(I)⊊{differentiable on I}⊊C0(I),C^1(I) \subsetneq \{\text{differentiable on } I\} \subsetneq C^0(I), since x2sin⁡1xx^2\sin\frac1x (with value 00 at 00) is differentiable on R\mathbb{R} but not C1C^1. To check a piecewise function is C1C^1 it suffices that it is continuous at the junction x0x_0 and lim⁡x→x0−f′=lim⁡x→x0+f′∈R\lim_{x \to x_0^-} f' = \lim_{x \to x_0^+} f' \in \mathbb{R}.

Summary

Requires Gives
Case 1 f→0f \to 0, g→0g \to 0 lim⁡fg=lim⁡f′g′\lim\frac fg = \lim\frac{f'}{g'} if the latter exists
Case 2 g→±∞g \to \pm\infty same
lim⁡f′g′\lim\frac{f'}{g'} does not exist no conclusion

Common mistakes

  • Using the quotient rule f′g−fg′g2\frac{f'g - fg'}{g^2} instead of f′g′\frac{f'}{g'}.
  • Applying it without an indeterminate form: lim⁡x→0cos⁡x1+x=1\lim_{x \to 0}\frac{\cos x}{1 + x} = 1, while −sin⁡x1→0\frac{-\sin x}{1} \to 0.
  • Concluding that lim⁡fg\lim\frac fg does not exist because lim⁡f′g′\lim\frac{f'}{g'} does not.
  • Using it where derivatives get worse (exponentials with complicated exponents, products).
  • Using the limit of f′f' without checking continuity; confusing differentiable with C1C^1.

Versione ripasso

f,gf, g differentiable near x0∈R‾x_0 \in \overline{\mathbb{R}} (except possibly at x0x_0), g′≠0g' \ne 0. If f,g→0f, g \to 0, or ∣g∣→+∞|g| \to +\infty, then lim⁡fg=lim⁡f′g′if the latter exists.\lim\frac{f}{g} = \lim\frac{f'}{g'} \quad \text{if the latter exists.}

  • Not the derivative of the quotient; also valid for one-sided limits.
  • If lim⁡f′g′\lim\frac{f'}{g'} does not exist, no conclusion: 3x−2cos⁡xx+sin⁡x→3\frac{3x - 2\cos x}{x + \sin x} \to 3 although 3+2sin⁡x1+cos⁡x\frac{3 + 2\sin x}{1 + \cos x} has no limit.
  • Examples: ex−1x→1\frac{e^x - 1}{x} \to 1; log⁡pxxα→0\frac{\log^p x}{x^\alpha} \to 0 (for p=1p = 1: 1/xαxα−1→0\frac{1/x}{\alpha x^{\alpha - 1}} \to 0; in general raise to pp).
  • Convenient when differentiation simplifies (logs, arctan); otherwise use dominant terms or expansions. Check the form first.

Proof (simple case). f(x0)=g(x0)=0f(x_0) = g(x_0) = 0, divide by x−x0x - x_0: ratio of difference quotients tends to f′(x0)g′(x0)\frac{f'(x_0)}{g'(x_0)}.

Limit of the derivative. ff continuous at x0x_0, differentiable elsewhere. If lim⁡x→x0±f′(x)\lim_{x \to x_0^\pm} f'(x) exist, they equal f′(x0±)f'(x_0^\pm) (L'Hopital on the difference quotient, a 00\frac00 form by continuity). So ff is differentiable at x0x_0 iff the two limits are equal and finite, and then f′f' is continuous at x0x_0.

  • Continuity is necessary (jump example: f′(0−)=+∞≠1f'(0^-) = +\infty \ne 1).
  • If lim⁡f′\lim f' does not exist, go back to the difference quotient (x2sin⁡1xx^2\sin\frac1x is differentiable at 00).
  • Method: continuity; f′f' off x0x_0; limits L±L_\pm: equal finite differentiable, different finite corner, same infinite vertical-tangent inflection, opposite infinite cusp.

Classes. C0C^0 continuous; C1C^1 differentiable with continuous f′f'; C1⊊differentiable⊊C0C^1 \subsetneq \text{differentiable} \subsetneq C^0.

Typical mistakes. Quotient rule instead of f′g′\frac{f'}{g'}; no indeterminate form; "no limit of f′/g′f'/g' so no limit"; ignoring continuity; differentiable versus C1C^1.

Teoria collegata