Skip to the passage panel
WikiLean · Articles Articles Brain Contribute About

Preliminary: these links have not yet had an independent audit.

L'Hôpital's rule

91 passages17 formalized18 partial56 not formalized

Statement only

More ways to filter
Library
ATLAS related only
Passages
About this page

This page

  • Wikipedia revision 1377912694, pinned: the text here is that revision, not today's article.
  • WikiProject Mathematics: C-class, High importance
  • Annotated article on WikiLean.
  • 91 passages checked, 69 Lean locations (and 21 related declarations).

Central statements: 7 of the 91 passages state the article's subject or a named result or definition; the other 84 are supporting (examples, setup). Of these 7: 1 formalized, 5 partial, 1 not formalized.

What the colours mean

  • Formalized a Lean declaration states it, proved, or a Lean definition defines it
  • Statement only Lean states it, but the proof is not finished
  • Partial Lean states part of it, or a more general or special form
  • Not formalized searched every library and not found

Libraries searched

Searched 48 Lean libraries, pinned 2026-10-17, 3 left out (library set u1).

How these links were made

  • Accuracy, from an audit of a sample of 224 items (blind, not independent): Strong links (exact, close or broad match) on supporting passages that have exactly the right relation: 92% (95% interval 49–99%), from 36 drawn of 1029, weighted by relation and library, an effective sample of 5.1; Links in a counting relation (exact, close, broad, narrow match or part) on supporting passages that have exactly the right relation: 73% (95% interval 40–92%), from 48 drawn of 1740, weighted by relation and library, an effective sample of 8.1; Central and subject passages whose formalization status is right: 86% (95% interval 73–94%), from 44 drawn of 1905, weighted by recorded status, an effective sample of 42; 'Not formalized' on supporting passages that is right (no declaration in the 48 libraries states it): 60% (95% interval 25–87%), from 12 drawn of 1236, weighted by article, an effective sample of 6.1.
  • Audit run tierA-batch1-audit, run by jack, 2 Nov 2026, 21:10 – 3 Nov 2026, 02:10 UTC: judged by Claude Opus 5.5 (claude-opus-5-5).
  • Record set tierA-b1b (cf-locate-recordset/2, statuses by status rule 3), exported 1 Nov 2026 by formal-companion at commit d85385a.
  • Seal sha256 23710337d053e8212378a9e580805628bcdfda61a6fc431e65f24a4a16c9e602.
  • Inventory run inv-tierA-b1r, run by jack, 30 Oct 2026, 07:23–20:00 UTC: worker Claude Opus 5 (claude-opus-5), reviewer Claude Opus 5 (claude-opus-5). It listed the formal passages, each with its kind and prominence, that the locate run then searched.
  • Locate run loc-tierA-b1b, run by jack, 31 Oct 2026, 04:59 – 1 Nov 2026, 03:06 UTC: worker Claude Opus 5 (claude-opus-5), reviewer Claude Opus 5 (claude-opus-5).
  • Challenge run chal-tierA-b1, run by jack, 1 Nov 2026, 03:19–14:25 UTC: worker Claude Opus 5 (claude-opus-5), reviewer Claude Opus 5 (claude-opus-5). In this article it re-checked every Lean location and absence on a central or subject passage (17 locations and 1 absence); on supporting passages, a seeded sample (seed 0; drawn at 0.5 for strong matches, 0.2 for weaker links and 0.25 for absences): 30 of 52 locations and 10 of 54 absences. In all, 47 of 69 Lean locations (68%) and 11 of 55 absences (20%) were re-checked.
  • Passage text: 91 of 91 passages shown in full, each the slice of the pinned revision's text that its record's span sha256 hashes, checked when the store was built.
  • Lean code: each declaration's type, from the declaration corpus of universe u1 (built 18 Oct 2026, sha256 a364fd6aede5), at the commit its card links.

How the text is shown

Each passage is shown in full, as revision 1377912694 states it (checked against its record's span hash when the store was built). Where a passage is only part of a sentence, it is highlighted and the rest of the sentence is shown in grey around it, from the same copy of the revision; a list item also shows the sentence that introduces it. Formulas are drawn from their TeX; hover one to see it.

Each card's Lean code is its declaration's type as Lean prints it, from the declaration corpus of library set u1 at the card's commit, laid out as a header: binders before the colon, then the hypotheses as arrows (the corpus keeps no hypothesis names) and the conclusion, in Mathlib's notation (𝓝, π, R[X], Type*). It is not the source text; Source opens that.

Select a highlighted passage to see where Lean formalizes it.

L'Hôpital's rule (/ˌloʊpiːˈtɑːl/ loh-pee-TAHL), also known as Bernoulli's rule, is a mathematical theorem used for evaluating the limit of a quotient of two functions, each of which tends to zero or infinity, by taking each function's derivative. The rule is named after the 17th-century French mathematician Guillaume de l'Hôpital, who published it in his 1696 textbook after learning it from his tutor, the Swiss mathematician Johann Bernoulli.

For two functions f {\displaystyle f} and g {\displaystyle g} , under most circumstances the limit of their quotient can be evaluated as the quotient of the limits: lim x → c f ( x ) / g ( x ) = {\textstyle \lim _{x\to c}f(x)/g(x)={}} lim x → c f ( x ) / lim x → c g ( x ) {\textstyle \lim _{x\to c}f(x){\big /}\lim _{x\to c}g(x)} . However, if both limits tend to zero (that is, lim x → c f ( x ) = {\textstyle \lim _{x\to c}f(x)={}} lim x → c g ( x ) = 0 {\textstyle \lim _{x\to c}g(x)=0} ) or if both tend to infinity, this method cannot be applied because the "indeterminate forms" ⁠ 0 / 0 {\displaystyle 0/0} ⁠ and ⁠ ∞ / ∞ {\displaystyle \infty /\infty } ⁠ are not well defined. L'Hôpital's rule states that in such cases, under the assumption that there exists an open interval containing c {\displaystyle c} in which g ′ {\displaystyle g'} never equals zero except possibly at c {\displaystyle c} , lim x → c f ( x ) g ( x ) = lim x → c f ′ ( x ) g ′ ( x ) , {\displaystyle \lim _{x\to c}{\frac {f(x)}{g(x)}}=\lim _{x\to c}{\frac {f'(x)}{g'(x)}},} whenever the right-hand-side limit exists. Here, ⁠ f ′ {\displaystyle f'} ⁠ and ⁠ g ′ {\displaystyle g'} ⁠ are the derivatives of ⁠ f {\displaystyle f} ⁠ and ⁠ g {\displaystyle g} ⁠.

The differentiation of the numerator and denominator often simplifies the quotient or converts it to a limit that can be directly evaluated by continuity.

History

Johann Bernoulli was the original discoverer of this result for the indeterminate form 0 / 0 {\displaystyle 0/0} .[1] He sent it to Guillaume de l'Hôpital (also written l'Hospital[a]) in a letter dated July 22, 1694.[2] Previously, during his time in Paris, Bernoulli signed a contract with l'Hôpital, in which he agreed to teach the new calculus to l'Hôpital, to inform him of his own mathematical discoveries, which l'Hôpital might use as he pleased, and to refrain from sharing his notes with others. In return, l'Hôpital paid Bernoulli an annual allowance, which dramatically improved Bernoulli's financial situation.[2] L'Hôpital published this rule in his 1696 book Analyse des Infiniment Petits pour l'Intelligence des Lignes Courbes (lit. 'Analysis of the Infinitely Small for the Understanding of Curved Lines').[b] Its original presentation was geometric and L'Hôpital showcased many of the same examples used by Bernoulli.[2] As the first textbook on the differential calculus to be printed, it dominated much of the eighteenth century and helped popularize new mathematics across Europe.[4] The original result was subsequently extended; these are now collectively referred to as l'Hôpital's rules.[5]

General form

The general form of l'Hôpital's rule covers many cases. Let c {\displaystyle c} and L {\displaystyle L} be extended real numbers: real numbers, as well as positive and negative infinity. Let I {\displaystyle I} be an open interval containing c {\displaystyle c} (for a two-sided limit) or an open interval with endpoint c {\displaystyle c} (for a one-sided limit, or a limit at infinity if c {\displaystyle c} is infinite).

Assumption 1: On I ∖ { c } {\displaystyle I\setminus \{c\}} , the real-valued functions f {\displaystyle f} and g {\displaystyle g} are differentiable with g ′ ( x ) ≠ 0 {\displaystyle g'(x)\neq 0} .

Assumption 2: lim x → c f ′ ( x ) g ′ ( x ) = L {\displaystyle \lim _{x\to c}{\frac {f'(x)}{g'(x)}}=L} , a finite or infinite limit.

If either

a ) lim x → c f ( x ) = lim x → c g ( x ) = 0 {\displaystyle a)\lim _{x\to c}f(x)=\lim _{x\to c}g(x)=0}

or

b ) lim x → c | f ( x ) | = lim x → c | g ( x ) | = ∞ , {\displaystyle b)\lim _{x\to c}|f(x)|=\lim _{x\to c}|g(x)|=\infty ,}

then

lim x → c f ( x ) g ( x ) = lim x → c f ′ ( x ) g ′ ( x ) = L . {\displaystyle \lim _{x\to c}{\frac {f(x)}{g(x)}}=\lim _{x\to c}{\frac {f'(x)}{g'(x)}}=L.}

Although we have written x → c {\displaystyle x\to c} throughout, the limits may also be one-sided limits ( x → c + {\displaystyle x\to c^{+}} or x → c − {\displaystyle x\to c^{-}} ), when c {\displaystyle c} is a finite endpoint of I {\displaystyle I} .

In the second case b), the hypothesis that f {\displaystyle f} diverges to infinity is not necessary; in fact, it is sufficient that lim x → c | g ( x ) | = ∞ . {\displaystyle \lim _{x\to c}|g(x)|=\infty .}

The hypothesis that g ′ ( x ) ≠ 0 {\displaystyle g'(x)\neq 0} appears most commonly in the literature, but some authors sidestep this hypothesis by adding other hypotheses which imply g ′ ( x ) ≠ 0 {\displaystyle g'(x)\neq 0} . For example, one may require in the definition of the limit lim x → c f ′ ( x ) g ′ ( x ) = L {\displaystyle \lim _{x\to c}{\frac {f'(x)}{g'(x)}}=L} that the function f ′ ( x ) g ′ ( x ) {\displaystyle {\frac {f'(x)}{g'(x)}}} must be defined everywhere on an interval I ∖ { c } {\displaystyle I\setminus \{c\}} .[6][c] Another method is to require that both f {\displaystyle f} and g {\displaystyle g} be differentiable everywhere on an interval containing c {\displaystyle c} .[7]

Necessity of conditions: Counterexamples

All four conditions for l'Hôpital's rule are necessary:

  1. Indeterminacy of form: lim x → c f ( x ) = lim x → c g ( x ) = 0 {\displaystyle \lim _{x\to c}f(x)=\lim _{x\to c}g(x)=0} or ± ∞ {\displaystyle \pm \infty }  ;
  2. Differentiability of functions: f {\displaystyle f} and g {\displaystyle g} are differentiable on an open interval I {\displaystyle I} except possibly at the limit point c {\displaystyle c} in I {\displaystyle I} ;
  3. Non-zero derivative of denominator: g ′ ( x ) ≠ 0 {\displaystyle g'(x)\neq 0} for all x {\displaystyle x} in I {\displaystyle I} with x ≠ c {\displaystyle x\neq c} ;
  4. Existence of limit of the quotient of the derivatives: lim x → c f ′ ( x ) g ′ ( x ) {\displaystyle \lim _{x\to c}{\frac {f'(x)}{g'(x)}}} exists.

Where one of the above conditions is not satisfied, l'Hôpital's rule is not valid in general, and its conclusion may be false in certain cases.

1. Form is not indeterminate

The necessity of the first condition can be seen by considering the counterexample where the functions are f ( x ) = x + 1 {\displaystyle f(x)=x+1} and g ( x ) = 2 x + 1 {\displaystyle g(x)=2x+1} and the limit is x → 1 {\displaystyle x\to 1} .

The first condition is not satisfied for this counterexample because lim x → 1 f ( x ) = lim x → 1 ( x + 1 ) = ( 1 ) + 1 = 2 ≠ 0 {\displaystyle \lim _{x\to 1}f(x)=\lim _{x\to 1}(x+1)=(1)+1=2\neq 0} and lim x → 1 g ( x ) = lim x → 1 ( 2 x + 1 ) = 2 ( 1 ) + 1 = 3 ≠ 0 {\displaystyle \lim _{x\to 1}g(x)=\lim _{x\to 1}(2x+1)=2(1)+1=3\neq 0} . This means that the form is not indeterminate.

The second and third conditions are satisfied by f ( x ) {\displaystyle f(x)} and g ( x ) {\displaystyle g(x)} . The fourth condition is also satisfied with

lim x → 1 f ′ ( x ) g ′ ( x ) = lim x → 1 ( x + 1 ) ′ ( 2 x + 1 ) ′ = lim x → 1 1 2 = 1 2 . {\displaystyle \lim _{x\to 1}{\frac {f'(x)}{g'(x)}}=\lim _{x\to 1}{\frac {(x+1)'}{(2x+1)'}}=\lim _{x\to 1}{\frac {1}{2}}={\frac {1}{2}}.}

But the conclusion fails, since

lim x → 1 f ( x ) g ( x ) = lim x → 1 x + 1 2 x + 1 = lim x → 1 ( x + 1 ) lim x → 1 ( 2 x + 1 ) = 2 3 ≠ 1 2 . {\displaystyle \lim _{x\to 1}{\frac {f(x)}{g(x)}}=\lim _{x\to 1}{\frac {x+1}{2x+1}}={\frac {\lim _{x\to 1}(x+1)}{\lim _{x\to 1}(2x+1)}}={\frac {2}{3}}\neq {\frac {1}{2}}.}

2. Differentiability of functions

Differentiability of functions is a requirement because if a function is not differentiable, then the derivative of the function is not guaranteed to exist at each point in I {\displaystyle I} . The fact that I {\displaystyle I} is an open interval is grandfathered in from the hypothesis of the Cauchy's mean value theorem. The notable exception of the possibility of the functions being not differentiable at c {\displaystyle c} exists because l'Hôpital's rule only requires the derivative to exist as the function approaches c {\displaystyle c} ; the derivative does not need to be taken at c {\displaystyle c} .

For example, let f ( x ) = { sin ⁡ x , x ≠ 0 1 , x = 0 {\displaystyle f(x)={\begin{cases}\sin x,&x\neq 0\\1,&x=0\end{cases}}} , g ( x ) = x {\displaystyle g(x)=x} , and c = 0 {\displaystyle c=0} . In this case, f ( x ) {\displaystyle f(x)} is not differentiable at c {\displaystyle c} . However, since f ( x ) {\displaystyle f(x)} is differentiable everywhere except c {\displaystyle c} , then lim x → c f ′ ( x ) {\displaystyle \lim _{x\to c}f'(x)} still exists. Thus, since lim x → c f ( x ) g ( x ) = 0 0 {\displaystyle \lim _{x\to c}{\frac {f(x)}{g(x)}}={\frac {0}{0}}} and lim x → c f ′ ( x ) g ′ ( x ) {\displaystyle \lim _{x\to c}{\frac {f'(x)}{g'(x)}}} exists, l'Hôpital's rule still holds.

3. Derivative of denominator is zero

The necessity of the condition that g ′ ( x ) ≠ 0 {\displaystyle g'(x)\neq 0} near c {\displaystyle c} (except possibly at c {\displaystyle c} ) can be seen by the following counterexample due to Otto Stolz.[8] Let f ( x ) = x + sin ⁡ x cos ⁡ x {\displaystyle f(x)=x+\sin x\cos x} and g ( x ) = f ( x ) e sin ⁡ x . {\displaystyle g(x)=f(x)e^{\sin x}.} Then there is no limit for f ( x ) / g ( x ) {\displaystyle f(x)/g(x)} as x → ∞ . {\displaystyle x\to \infty .} However,

f ′ ( x ) g ′ ( x ) = 2 cos 2 ⁡ x ( 2 cos 2 ⁡ x ) e sin ⁡ x + ( x + sin ⁡ x cos ⁡ x ) e sin ⁡ x cos ⁡ x = 2 cos ⁡ x 2 cos ⁡ x + x + sin ⁡ x cos ⁡ x e − sin ⁡ x , {\displaystyle {\begin{aligned}{\frac {f'(x)}{g'(x)}}&={\frac {2\cos ^{2}x}{(2\cos ^{2}x)e^{\sin x}+(x+\sin x\cos x)e^{\sin x}\cos x}}\\&={\frac {2\cos x}{2\cos x+x+\sin x\cos x}}e^{-\sin x},\end{aligned}}}

which tends to 0 as x → ∞ {\displaystyle x\to \infty } , while the original expression before cancellation of cos ⁡ x {\displaystyle \cos x} is undefined at infinitely many points. Further examples of this type were found by Ralph P. Boas Jr.[9]

4. Limit of derivatives does not exist

The requirement that the limit lim x → c f ′ ( x ) g ′ ( x ) {\displaystyle \lim _{x\to c}{\frac {f'(x)}{g'(x)}}} exists is essential; if it does not exist, the original limit lim x → c f ( x ) g ( x ) {\displaystyle \lim _{x\to c}{\frac {f(x)}{g(x)}}} may nevertheless exist. Indeed, as x {\displaystyle x} approaches c {\displaystyle c} , the functions f {\displaystyle f} or g {\displaystyle g} may exhibit many oscillations of small amplitude but steep slope, which do not affect lim x → c f ( x ) g ( x ) {\displaystyle \lim _{x\to c}{\frac {f(x)}{g(x)}}} but do prevent the convergence of lim x → c f ′ ( x ) g ′ ( x ) {\displaystyle \lim _{x\to c}{\frac {f'(x)}{g'(x)}}} .

For example, if f ( x ) = x + sin ⁡ ( x ) {\displaystyle f(x)=x+\sin(x)} , g ( x ) = x {\displaystyle g(x)=x} and c = ∞ {\displaystyle c=\infty } , then

f ′ ( x ) g ′ ( x ) = 1 + cos ⁡ ( x ) 1 , {\displaystyle {\frac {f'(x)}{g'(x)}}={\frac {1+\cos(x)}{1}},}

which does not approach a limit since cosine oscillates infinitely between 1 and −1. But the ratio of the original functions does approach a limit, since the amplitude of the oscillations of f {\displaystyle f} becomes small relative to g {\displaystyle g} :

lim x → ∞ f ( x ) g ( x ) = lim x → ∞ ( x + sin ⁡ ( x ) x ) = lim x → ∞ ( 1 + sin ⁡ ( x ) x ) = 1 + 0 = 1. {\displaystyle \lim _{x\to \infty }{\frac {f(x)}{g(x)}}=\lim _{x\to \infty }\left({\frac {x+\sin(x)}{x}}\right)=\lim _{x\to \infty }\left(1+{\frac {\sin(x)}{x}}\right)=1+0=1.}

In a case such as this, all that can be concluded is that

lim inf x → c f ′ ( x ) g ′ ( x ) ≤ lim inf x → c f ( x ) g ( x ) ≤ lim sup x → c f ( x ) g ( x ) ≤ lim sup x → c f ′ ( x ) g ′ ( x ) , {\displaystyle \liminf _{x\to c}{\frac {f'(x)}{g'(x)}}\leq \liminf _{x\to c}{\frac {f(x)}{g(x)}}\leq \limsup _{x\to c}{\frac {f(x)}{g(x)}}\leq \limsup _{x\to c}{\frac {f'(x)}{g'(x)}},}

so that if the limit of f g {\displaystyle {\frac {f}{g}}} exists, then it must lie between the inferior and superior limits of f ′ g ′ {\displaystyle {\frac {f'}{g'}}} . In the example, 1 does indeed lie between 0 and 2.)

Note also that by the contrapositive form of the Rule, if lim x → c f ( x ) g ( x ) {\displaystyle \lim _{x\to c}{\frac {f(x)}{g(x)}}} does not exist, then lim x → c f ′ ( x ) g ′ ( x ) {\displaystyle \lim _{x\to c}{\frac {f'(x)}{g'(x)}}} also does not exist.

Examples

Example application of l'Hôpital's rule to f ( x ) = sin ⁡ x {\displaystyle f(x)=\sin x} and g ( x ) = − 0.5 x {\displaystyle g(x)=-0.5x} : the function h ( x ) = f ( x ) / g ( x ) {\displaystyle h(x)=f(x)/g(x)} is undefined at x = 0 {\displaystyle x=0} , but can be completed to a continuous function on all of R {\displaystyle \mathbb {R} } by defining h ( 0 ) = f ′ ( 0 ) / g ′ ( 0 ) = − 2 {\displaystyle h(0)=f'(0)/g'(0)=-2} (colors marked in legend).

In the following computations, each application of l'Hôpital's rule is indicated by the symbol = H {\displaystyle {\stackrel {\mathrm {H} }{=}}} .

  • Here is a basic example involving the exponential function, which involves the indeterminate form 0 0 {\displaystyle {\frac {0}{0}}} at x = 0 {\displaystyle x=0} : lim x → 0 e x − 1 x 2 + x   = H   lim x → 0 d d x ( e x − 1 ) d d x ( x 2 + x ) = lim x → 0 e x 2 x + 1 = 1. {\displaystyle \lim _{x\to 0}{\frac {e^{x}-1}{x^{2}+x}}\ {\stackrel {\mathrm {H} }{=}}\ \lim _{x\to 0}{\frac {{\frac {d}{dx}}(e^{x}-1)}{{\frac {d}{dx}}(x^{2}+x)}}=\lim _{x\to 0}{\frac {e^{x}}{2x+1}}=1.}
  • This is a more elaborate example involving 0 0 {\displaystyle {\frac {0}{0}}} . Applying l'Hôpital's rule a single time still results in an indeterminate form. In this case, the limit may be evaluated by applying the rule three times: lim x → 0 2 sin ⁡ ( x ) − sin ⁡ ( 2 x ) x − sin ⁡ ( x )   = H   lim x → 0 2 cos ⁡ ( x ) − 2 cos ⁡ ( 2 x ) 1 − cos ⁡ ( x )   = H   lim x → 0 − 2 sin ⁡ ( x ) + 4 sin ⁡ ( 2 x ) sin ⁡ ( x )   = H   lim x → 0 − 2 cos ⁡ ( x ) + 8 cos ⁡ ( 2 x ) cos ⁡ ( x ) = − 2 + 8 1 = 6. {\displaystyle {\begin{aligned}\lim _{x\to 0}{\frac {2\sin(x)-\sin(2x)}{x-\sin(x)}}&\ {\stackrel {\mathrm {H} }{=}}\ \lim _{x\to 0}{\frac {2\cos(x)-2\cos(2x)}{1-\cos(x)}}\\[4pt]&\ {\stackrel {\mathrm {H} }{=}}\ \lim _{x\to 0}{\frac {-2\sin(x)+4\sin(2x)}{\sin(x)}}\\[4pt]&\ {\stackrel {\mathrm {H} }{=}}\ \lim _{x\to 0}{\frac {-2\cos(x)+8\cos(2x)}{\cos(x)}}={\frac {-2+8}{1}}=6.\end{aligned}}}
  • Here is an example involving ∞ ∞ {\displaystyle {\frac {\infty }{\infty }}} : lim x → ∞ x n ⋅ e − x = lim x → ∞ x n e x   = H   lim x → ∞ n x n − 1 e x = n ⋅ lim x → ∞ x n − 1 e x . {\displaystyle \lim _{x\to \infty }x^{n}\cdot e^{-x}=\lim _{x\to \infty }{\frac {x^{n}}{e^{x}}}\ {\stackrel {\mathrm {H} }{=}}\ \lim _{x\to \infty }{\frac {nx^{n-1}}{e^{x}}}=n\cdot \lim _{x\to \infty }{\frac {x^{n-1}}{e^{x}}}.} Repeatedly apply l'Hôpital's rule until the exponent is zero (if n {\displaystyle n} is an integer) or negative (if n {\displaystyle n} is fractional) to conclude that the limit is zero.
  • Here is an example involving the indeterminate form 0 ⋅ ∞ {\displaystyle 0\cdot \infty } (see below), which is rewritten as the form ∞ ∞ {\displaystyle {\frac {\infty }{\infty }}} : lim x → 0 + x ln ⁡ x = lim x → 0 + ln ⁡ x 1 x   = H   lim x → 0 + 1 x − 1 x 2 = lim x → 0 + − x = 0. {\displaystyle \lim _{x\to 0^{+}}x\ln x=\lim _{x\to 0^{+}}{\frac {\ln x}{\frac {1}{x}}}\ {\stackrel {\mathrm {H} }{=}}\ \lim _{x\to 0^{+}}{\frac {\frac {1}{x}}{-{\frac {1}{x^{2}}}}}=\lim _{x\to 0^{+}}-x=0.}
  • Here is an example involving the mortgage repayment formula and 0 0 {\displaystyle {\frac {0}{0}}} . Let P {\displaystyle P} be the principal (loan amount), r {\displaystyle r} the interest rate per period and n {\displaystyle n} the number of periods. When r {\displaystyle r} is zero, the repayment amount per period is P n {\displaystyle {\frac {P}{n}}} (since only principal is being repaid); this is consistent with the formula for non-zero interest rates: lim r → 0 P r ( 1 + r ) n ( 1 + r ) n − 1   = H   P lim r → 0 ( 1 + r ) n + r n ( 1 + r ) n − 1 n ( 1 + r ) n − 1 = P n . {\displaystyle \lim _{r\to 0}{\frac {Pr(1+r)^{n}}{(1+r)^{n}-1}}\ {\stackrel {\mathrm {H} }{=}}\ P\lim _{r\to 0}{\frac {(1+r)^{n}+rn(1+r)^{n-1}}{n(1+r)^{n-1}}}={\frac {P}{n}}.}
  • One can also use l'Hôpital's rule to prove the following theorem. If f {\displaystyle f} is twice-differentiable in a neighborhood of x {\displaystyle x} and its second derivative is continuous on this neighborhood, then lim h → 0 f ( x + h ) + f ( x − h ) − 2 f ( x ) h 2 = lim h → 0 f ′ ( x + h ) − f ′ ( x − h ) 2 h = lim h → 0 f ″ ( x + h ) + f ″ ( x − h ) 2 = f ″ ( x ) . {\displaystyle {\begin{aligned}\lim _{h\to 0}{\frac {f(x+h)+f(x-h)-2f(x)}{h^{2}}}&=\lim _{h\to 0}{\frac {f'(x+h)-f'(x-h)}{2h}}\\[4pt]&=\lim _{h\to 0}{\frac {f''(x+h)+f''(x-h)}{2}}\\[4pt]&=f''(x).\end{aligned}}}
  • Sometimes l'Hôpital's rule is invoked in a tricky way: suppose f ( x ) + f ′ ( x ) {\displaystyle f(x)+f'(x)} converges as x → ∞ {\displaystyle x\to \infty } and that e x ⋅ f ( x ) {\displaystyle e^{x}\cdot f(x)} converges to positive or negative infinity. Then: lim x → ∞ f ( x ) = lim x → ∞ e x ⋅ f ( x ) e x   = H   lim x → ∞ e x ( f ( x ) + f ′ ( x ) ) e x = lim x → ∞ ( f ( x ) + f ′ ( x ) ) , {\displaystyle \lim _{x\to \infty }f(x)=\lim _{x\to \infty }{\frac {e^{x}\cdot f(x)}{e^{x}}}\ {\stackrel {\mathrm {H} }{=}}\ \lim _{x\to \infty }{\frac {e^{x}{\bigl (}f(x)+f'(x){\bigr )}}{e^{x}}}=\lim _{x\to \infty }{\bigl (}f(x)+f'(x){\bigr )},} and so, lim x → ∞ f ( x ) {\displaystyle \lim _{x\to \infty }f(x)} exists and lim x → ∞ f ′ ( x ) = 0. {\displaystyle \lim _{x\to \infty }f'(x)=0.} (This result remains true without the added hypothesis that e x ⋅ f ( x ) {\displaystyle e^{x}\cdot f(x)} converges to positive or negative infinity, but the justification is then incomplete.)

Complications

Sometimes L'Hôpital's rule does not reduce to an obvious limit in a finite number of steps, unless some intermediate simplifications are applied. Examples include the following:

  • Two applications can lead to a return to the original expression that was to be evaluated:

lim x → ∞ e x + e − x e x − e − x   = H   lim x → ∞ e x − e − x e x + e − x   = H   lim x → ∞ e x + e − x e x − e − x   = H   ⋯ . {\displaystyle \lim _{x\to \infty }{\frac {e^{x}+e^{-x}}{e^{x}-e^{-x}}}\ {\stackrel {\mathrm {H} }{=}}\ \lim _{x\to \infty }{\frac {e^{x}-e^{-x}}{e^{x}+e^{-x}}}\ {\stackrel {\mathrm {H} }{=}}\ \lim _{x\to \infty }{\frac {e^{x}+e^{-x}}{e^{x}-e^{-x}}}\ {\stackrel {\mathrm {H} }{=}}\ \cdots .} This situation can be dealt with by substituting y = e x {\displaystyle y=e^{x}} and noting that y {\displaystyle y} goes to infinity as x {\displaystyle x} goes to infinity; with this substitution, this problem can be solved with a single application of the rule:

lim x → ∞ e x + e − x e x − e − x = lim y → ∞ y + y − 1 y − y − 1   = H   lim y → ∞ 1 − y − 2 1 + y − 2 = 1 1 = 1. {\displaystyle \lim _{x\to \infty }{\frac {e^{x}+e^{-x}}{e^{x}-e^{-x}}}=\lim _{y\to \infty }{\frac {y+y^{-1}}{y-y^{-1}}}\ {\stackrel {\mathrm {H} }{=}}\ \lim _{y\to \infty }{\frac {1-y^{-2}}{1+y^{-2}}}={\frac {1}{1}}=1.}

Alternatively, the numerator and denominator can both be multiplied by e x , {\displaystyle e^{x},} at which point L'Hôpital's rule can immediately be applied successfully

lim x → ∞ e x + e − x e x − e − x = lim x → ∞ e 2 x + 1 e 2 x − 1   = H   lim x → ∞ 2 e 2 x 2 e 2 x = 1. {\displaystyle \lim _{x\to \infty }{\frac {e^{x}+e^{-x}}{e^{x}-e^{-x}}}=\lim _{x\to \infty }{\frac {e^{2x}+1}{e^{2x}-1}}\ {\stackrel {\mathrm {H} }{=}}\ \lim _{x\to \infty }{\frac {2e^{2x}}{2e^{2x}}}=1.}

  • An arbitrarily large number of applications may never lead to an answer even without repeating:

lim x → ∞ x 1 2 + x − 1 2 x 1 2 − x − 1 2   = H   lim x → ∞ 1 2 x − 1 2 − 1 2 x − 3 2 1 2 x − 1 2 + 1 2 x − 3 2   = H   lim x → ∞ − 1 4 x − 3 2 + 3 4 x − 5 2 − 1 4 x − 3 2 − 3 4 x − 5 2   = H   ⋯ . {\displaystyle \lim _{x\to \infty }{\frac {x^{\frac {1}{2}}+x^{-{\frac {1}{2}}}}{x^{\frac {1}{2}}-x^{-{\frac {1}{2}}}}}\ {\stackrel {\mathrm {H} }{=}}\ \lim _{x\to \infty }{\frac {{\frac {1}{2}}x^{-{\frac {1}{2}}}-{\frac {1}{2}}x^{-{\frac {3}{2}}}}{{\frac {1}{2}}x^{-{\frac {1}{2}}}+{\frac {1}{2}}x^{-{\frac {3}{2}}}}}\ {\stackrel {\mathrm {H} }{=}}\ \lim _{x\to \infty }{\frac {-{\frac {1}{4}}x^{-{\frac {3}{2}}}+{\frac {3}{4}}x^{-{\frac {5}{2}}}}{-{\frac {1}{4}}x^{-{\frac {3}{2}}}-{\frac {3}{4}}x^{-{\frac {5}{2}}}}}\ {\stackrel {\mathrm {H} }{=}}\ \cdots .}

This situation too can be dealt with by a transformation of variables, in this case y = x {\displaystyle y={\sqrt {x}}} :

lim x → ∞ x 1 2 + x − 1 2 x 1 2 − x − 1 2 = lim y → ∞ y + y − 1 y − y − 1   = H   lim y → ∞ 1 − y − 2 1 + y − 2 = 1 1 = 1. {\displaystyle \lim _{x\to \infty }{\frac {x^{\frac {1}{2}}+x^{-{\frac {1}{2}}}}{x^{\frac {1}{2}}-x^{-{\frac {1}{2}}}}}=\lim _{y\to \infty }{\frac {y+y^{-1}}{y-y^{-1}}}\ {\stackrel {\mathrm {H} }{=}}\ \lim _{y\to \infty }{\frac {1-y^{-2}}{1+y^{-2}}}={\frac {1}{1}}=1.}

Again, an alternative approach is to multiply numerator and denominator by x 1 / 2 {\displaystyle x^{1/2}} before applying L'Hôpital's rule:

lim x → ∞ x 1 2 + x − 1 2 x 1 2 − x − 1 2 = lim x → ∞ x + 1 x − 1   = H   lim x → ∞ 1 1 = 1. {\displaystyle \lim _{x\to \infty }{\frac {x^{\frac {1}{2}}+x^{-{\frac {1}{2}}}}{x^{\frac {1}{2}}-x^{-{\frac {1}{2}}}}}=\lim _{x\to \infty }{\frac {x+1}{x-1}}\ {\stackrel {\mathrm {H} }{=}}\ \lim _{x\to \infty }{\frac {1}{1}}=1.}

A common logical fallacy is to use L'Hôpital's rule to prove the value of a derivative by computing the limit of a difference quotient. Since applying l'Hôpital requires knowing the relevant derivatives, this amounts to circular reasoning or begging the question, assuming what is to be proved. For example, consider the proof of the derivative formula for powers of x:

lim h → 0 ( x + h ) n − x n h = n x n − 1 . {\displaystyle \lim _{h\to 0}{\frac {(x+h)^{n}-x^{n}}{h}}=nx^{n-1}.}

Applying L'Hôpital's rule and finding the derivatives with respect to h {\displaystyle h} yields n x n − 1 {\displaystyle nx^{n-1}} as expected, but this computation requires the use of the very formula that is being proven. Similarly, to prove lim x → 0 sin ⁡ ( x ) x = 1 {\displaystyle \lim _{x\to 0}{\frac {\sin(x)}{x}}=1} , applying L'Hôpital requires knowing the derivative of sin ⁡ ( x ) {\displaystyle \sin(x)} at x = 0 {\displaystyle x=0} , which amounts to calculating lim h → 0 sin ⁡ ( h ) h {\displaystyle \lim _{h\to 0}{\frac {\sin(h)}{h}}} in the first place; a valid proof requires a different method such as the squeeze theorem.

Other indeterminate forms

Other indeterminate forms, such as 1 ∞ {\displaystyle 1^{\infty }} , 0 0 {\displaystyle 0^{0}} , ∞ 0 {\displaystyle \infty ^{0}} , 0 ⋅ ∞ {\displaystyle 0\cdot \infty } , and ∞ − ∞ {\displaystyle \infty -\infty } , can sometimes be evaluated using L'Hôpital's rule. We again indicate applications of L'Hopital's rule by = H {\displaystyle {\stackrel {\mathrm {H} }{=}}} .

For example, to evaluate a limit involving ∞ − ∞ {\displaystyle \infty -\infty } , convert the difference of two functions to a quotient:

lim x → 1 ( x x − 1 − 1 ln ⁡ x ) = lim x → 1 x ⋅ ln ⁡ x − x + 1 ( x − 1 ) ⋅ ln ⁡ x   = H   lim x → 1 ln ⁡ x x − 1 x + ln ⁡ x = lim x → 1 x ⋅ ln ⁡ x x − 1 + x ⋅ ln ⁡ x   = H   lim x → 1 1 + ln ⁡ x 1 + 1 + ln ⁡ x = 1 + 0 1 + 1 + 0 . {\displaystyle {\begin{aligned}\lim _{x\to 1}\left({\frac {x}{x-1}}-{\frac {1}{\ln x}}\right)&=\lim _{x\to 1}{\frac {x\cdot \ln x-x+1}{(x-1)\cdot \ln x}}\\[6pt]&\ {\stackrel {\mathrm {H} }{=}}\ \lim _{x\to 1}{\frac {\ln x}{{\frac {x-1}{x}}+\ln x}}\\[6pt]&=\lim _{x\to 1}{\frac {x\cdot \ln x}{x-1+x\cdot \ln x}}\\[6pt]&\ {\stackrel {\mathrm {H} }{=}}\ \lim _{x\to 1}{\frac {1+\ln x}{1+1+\ln x}}={\frac {1+0}{1+1+0}}.\end{aligned}}}

L'Hôpital's rule can be used on indeterminate forms involving exponents by using logarithms to "move the exponent down". Here is an example involving the indeterminate form 0 0 {\displaystyle 0^{0}} :

lim x → 0 + x x = lim x → 0 + e ln ⁡ ( x x ) = lim x → 0 + e x ⋅ ln ⁡ x = lim x → 0 + exp ⁡ ( x ⋅ ln ⁡ x ) = exp ⁡ ( lim x → 0 + x ⋅ ln ⁡ x ) . {\displaystyle \lim _{x\to 0^{+}\!}x^{x}=\lim _{x\to 0^{+}\!}e^{\ln(x^{x})}=\lim _{x\to 0^{+}\!}e^{x\cdot \ln x}=\lim _{x\to 0^{+}\!}\exp(x\cdot \ln x)=\exp({\lim _{x\to 0^{+}\!\!}\,x\cdot \ln x}).}

It is valid to move the limit inside the exponential function because this function is continuous. Now the exponent x {\displaystyle x} has been "moved down". The limit lim x → 0 + x ⋅ ln ⁡ x {\displaystyle \lim _{x\to 0^{+}}x\cdot \ln x} is of the indeterminate form 0 · ∞ dealt with in an example above: L'Hôpital may be used to determine that

lim x → 0 + x ⋅ ln ⁡ x = 0. {\displaystyle \lim _{x\to 0^{+}}x\cdot \ln x=0.}

Thus

lim x → 0 + x x = exp ⁡ ( 0 ) = e 0 = 1. {\displaystyle \lim _{x\to 0^{+}}x^{x}=\exp(0)=e^{0}=1.}

The following table lists the most common indeterminate forms and the transformations which precede applying l'Hôpital's rule:

Indeterminate form with f {\displaystyle f} and g {\displaystyle g} Conditions Transformation to 0 / 0 {\displaystyle 0/0}
0 0 {\displaystyle {\frac {0}{0}}} lim x → c f ( x ) = 0 ,   lim x → c g ( x ) = 0 {\displaystyle \lim _{x\to c}f(x)=0,\ \lim _{x\to c}g(x)=0\!} N/a
∞ ∞ {\displaystyle {\frac {\infty }{\infty }}} lim x → c f ( x ) = ∞ ,   lim x → c g ( x ) = ∞ {\displaystyle \lim _{x\to c}f(x)=\infty ,\ \lim _{x\to c}g(x)=\infty \!} lim x → c f ( x ) g ( x ) = lim x → c 1 / g ( x ) 1 / f ( x ) {\displaystyle \lim _{x\to c}{\frac {f(x)}{g(x)}}=\lim _{x\to c}{\frac {1/g(x)}{1/f(x)}}\!}
0 ⋅ ∞ {\displaystyle 0\cdot \infty } lim x → c f ( x ) = 0 ,   lim x → c g ( x ) = ∞ {\displaystyle \lim _{x\to c}f(x)=0,\ \lim _{x\to c}g(x)=\infty \!} lim x → c f ( x ) g ( x ) = lim x → c f ( x ) 1 / g ( x ) {\displaystyle \lim _{x\to c}f(x)g(x)=\lim _{x\to c}{\frac {f(x)}{1/g(x)}}\!}
∞ − ∞ {\displaystyle \infty -\infty } lim x → c f ( x ) = ∞ ,   lim x → c g ( x ) = ∞ {\displaystyle \lim _{x\to c}f(x)=\infty ,\ \lim _{x\to c}g(x)=\infty \!} lim x → c ( f ( x ) − g ( x ) ) = lim x → c 1 / g ( x ) − 1 / f ( x ) 1 / ( f ( x ) g ( x ) ) {\displaystyle \lim _{x\to c}(f(x)-g(x))=\lim _{x\to c}{\frac {1/g(x)-1/f(x)}{1/(f(x)g(x))}}\!}
0 0 {\displaystyle 0^{0}} lim x → c f ( x ) = 0 + , lim x → c g ( x ) = 0 {\displaystyle \lim _{x\to c}f(x)=0^{+},\lim _{x\to c}g(x)=0\!} lim x → c f ( x ) g ( x ) = exp ⁡ lim x → c g ( x ) 1 / ln ⁡ f ( x ) {\displaystyle \lim _{x\to c}f(x)^{g(x)}=\exp \lim _{x\to c}{\frac {g(x)}{1/\ln f(x)}}\!}
1 ∞ {\displaystyle 1^{\infty }} lim x → c f ( x ) = 1 ,   lim x → c g ( x ) = ∞ {\displaystyle \lim _{x\to c}f(x)=1,\ \lim _{x\to c}g(x)=\infty \!} lim x → c f ( x ) g ( x ) = exp ⁡ lim x → c ln ⁡ f ( x ) 1 / g ( x ) {\displaystyle \lim _{x\to c}f(x)^{g(x)}=\exp \lim _{x\to c}{\frac {\ln f(x)}{1/g(x)}}\!}
∞ 0 {\displaystyle \infty ^{0}} lim x → c f ( x ) = ∞ ,   lim x → c g ( x ) = 0 {\displaystyle \lim _{x\to c}f(x)=\infty ,\ \lim _{x\to c}g(x)=0\!} lim x → c f ( x ) g ( x ) = exp ⁡ lim x → c g ( x ) 1 / ln ⁡ f ( x ) {\displaystyle \lim _{x\to c}f(x)^{g(x)}=\exp \lim _{x\to c}{\frac {g(x)}{1/\ln f(x)}}\!}

Stolz–Cesàro theorem

The Stolz–Cesàro theorem is a similar result involving limits of sequences, but it uses finite difference operators rather than derivatives.

Geometric interpretation: parametric curve and velocity vector

Consider the parametric curve in the xy-plane with coordinates given by the continuous functions g ( t ) {\displaystyle g(t)} and f ( t ) {\displaystyle f(t)} , the locus of points ( g ( t ) , f ( t ) ) {\displaystyle (g(t),f(t))} , and suppose f ( c ) = g ( c ) = 0 {\displaystyle f(c)=g(c)=0} . The slope of the tangent to the curve at ( g ( c ) , f ( c ) ) = ( 0 , 0 ) {\displaystyle (g(c),f(c))=(0,0)} is the limit of the ratio f ( t ) g ( t ) {\displaystyle {\frac {f(t)}{g(t)}}} as t → c {\displaystyle t\to c} . The tangent to the curve at the point ( g ( t ) , f ( t ) ) {\displaystyle (g(t),f(t))} is the velocity vector ( g ′ ( t ) , f ′ ( t ) ) {\displaystyle (g'(t),f'(t))} with slope f ′ ( t ) g ′ ( t ) {\displaystyle {\frac {f'(t)}{g'(t)}}} . L'Hôpital's rule then states that the slope of the curve at the origin ( t = c {\displaystyle t=c} ) is the limit of the tangent slope at points approaching the origin, provided that this is defined.

Proof of L'Hôpital's rule

Special case

The proof of L'Hôpital's rule is simple in the case where f {\displaystyle f} and g {\displaystyle g} are continuously differentiable at the point c {\displaystyle c} and where a finite limit is found after the first round of differentiation. This is only a special case of L'Hôpital's rule, because it only applies to functions satisfying stronger conditions than required by the general rule. However, many common functions have continuous derivatives (e.g. polynomials, sine and cosine, exponential functions), so this special case covers most applications.

Suppose that f {\displaystyle f} and g {\displaystyle g} are continuously differentiable at a real number c {\displaystyle c} , that f ( c ) = g ( c ) = 0 {\displaystyle f(c)=g(c)=0} , and that g ′ ( c ) ≠ 0 {\displaystyle g'(c)\neq 0} . Then

lim x → c f ( x ) g ( x ) = lim x → c f ( x ) − 0 g ( x ) − 0 = lim x → c f ( x ) − f ( c ) g ( x ) − g ( c ) = lim x → c ( f ( x ) − f ( c ) x − c ) ( g ( x ) − g ( c ) x − c ) = lim x → c ( f ( x ) − f ( c ) x − c ) lim x → c ( g ( x ) − g ( c ) x − c ) = f ′ ( c ) g ′ ( c ) = lim x → c f ′ ( x ) g ′ ( x ) . {\displaystyle {\begin{aligned}&\lim _{x\to c}{\frac {f(x)}{g(x)}}=\lim _{x\to c}{\frac {f(x)-0}{g(x)-0}}=\lim _{x\to c}{\frac {f(x)-f(c)}{g(x)-g(c)}}\\[6pt]={}&\lim _{x\to c}{\frac {\left({\frac {f(x)-f(c)}{x-c}}\right)}{\left({\frac {g(x)-g(c)}{x-c}}\right)}}={\frac {\lim _{x\to c}\left({\frac {f(x)-f(c)}{x-c}}\right)}{\lim _{x\to c}\left({\frac {g(x)-g(c)}{x-c}}\right)}}={\frac {f'(c)}{g'(c)}}=\lim _{x\to c}{\frac {f'(x)}{g'(x)}}.\end{aligned}}}

This follows from the difference quotient definition of the derivative. The last equality follows from the continuity of the derivatives at c {\displaystyle c} . The limit in the conclusion is not indeterminate because g ′ ( c ) ≠ 0 {\displaystyle g'(c)\neq 0} .

The proof of a more general version of L'Hôpital's rule is given below.

General proof

This is a unified proof the 0 0 {\displaystyle {\frac {0}{0}}} and ± ∞ ± ∞ {\displaystyle {\frac {\pm \infty }{\pm \infty }}} indeterminate forms using Cauchy's generalization of the mean value theorem.[10][11] But it is possible to prove it without Cauchy's result.[12]

Let f {\displaystyle f} and g {\displaystyle g} be functions satisfying the assumptions in § General form. Let I {\displaystyle I} be the open interval in the hypothesis with endpoint c {\displaystyle c} . Considering that g ′ ( x ) ≠ 0 {\displaystyle g'(x)\neq 0} on this interval and g {\displaystyle g} is continuous, I {\displaystyle I} can be chosen smaller so that g {\displaystyle g} is nonzero on I {\displaystyle I} .[d]

For each x {\displaystyle x} in the interval, define m ( x ) = inf f ′ ( t ) g ′ ( t ) {\displaystyle m(x)=\inf {\frac {f'(t)}{g'(t)}}} and M ( x ) = sup f ′ ( t ) g ′ ( t ) {\displaystyle M(x)=\sup {\frac {f'(t)}{g'(t)}}} as t {\displaystyle t} ranges over all values between x {\displaystyle x} and c {\displaystyle c} . (The symbols inf and sup denote the infimum and supremum.)

From the differentiability of f {\displaystyle f} and g {\displaystyle g} on I {\displaystyle I} , Cauchy's mean value theorem ensures that for any two distinct points x {\displaystyle x} and y {\displaystyle y} in I {\displaystyle I} there exists a ξ {\displaystyle \xi } between x {\displaystyle x} and y {\displaystyle y} such that f ( x ) − f ( y ) g ( x ) − g ( y ) = f ′ ( ξ ) g ′ ( ξ ) {\displaystyle {\frac {f(x)-f(y)}{g(x)-g(y)}}={\frac {f'(\xi )}{g'(\xi )}}} . Consequently, m ( x ) ≤ f ( x ) − f ( y ) g ( x ) − g ( y ) ≤ M ( x ) {\displaystyle m(x)\leq {\frac {f(x)-f(y)}{g(x)-g(y)}}\leq M(x)} for all choices of distinct x {\displaystyle x} and y {\displaystyle y} in the interval. The value g ( x ) − g ( y ) {\displaystyle g(x)-g(y)} is always nonzero for distinct x {\displaystyle x} and y {\displaystyle y} in the interval, for if it was not, the mean value theorem would imply the existence of a p {\displaystyle p} between x {\displaystyle x} and y {\displaystyle y} such that g ′ ( p ) = 0 {\displaystyle g'(p)=0} .

The definition of m ( x ) {\displaystyle m(x)} and M ( x ) {\displaystyle M(x)} will result in an extended real number, and so it is possible for them to take on the values ± ∞ {\displaystyle \pm \infty } . In the following two cases, m ( x ) {\displaystyle m(x)} and M ( x ) {\displaystyle M(x)} will establish bounds on the ratio f g {\displaystyle {\frac {f}{g}}} .

Case 1: lim x → c f ( x ) = lim x → c g ( x ) = 0 {\displaystyle \lim _{x\to c}f(x)=\lim _{x\to c}g(x)=0}

For any x {\displaystyle x} in the interval I {\displaystyle I} , and point y {\displaystyle y} between x {\displaystyle x} and c {\displaystyle c} ,

m ( x ) ≤ f ( x ) − f ( y ) g ( x ) − g ( y ) = f ( x ) g ( x ) − f ( y ) g ( x ) 1 − g ( y ) g ( x ) ≤ M ( x ) {\displaystyle m(x)\leq {\frac {f(x)-f(y)}{g(x)-g(y)}}={\frac {{\frac {f(x)}{g(x)}}-{\frac {f(y)}{g(x)}}}{1-{\frac {g(y)}{g(x)}}}}\leq M(x)}

and therefore as y {\displaystyle y} approaches c {\displaystyle c} , f ( y ) g ( x ) {\displaystyle {\frac {f(y)}{g(x)}}} and g ( y ) g ( x ) {\displaystyle {\frac {g(y)}{g(x)}}} become zero, and so

m ( x ) ≤ f ( x ) g ( x ) ≤ M ( x ) . {\displaystyle m(x)\leq {\frac {f(x)}{g(x)}}\leq M(x).}

Case 2: lim x → c | g ( x ) | = ∞ {\displaystyle \lim _{x\to c}|g(x)|=\infty }

For every x {\displaystyle x} in the interval I {\displaystyle I} , define S x = { y ∣ y {\displaystyle S_{x}=\{y\mid y} is between x {\displaystyle x} and c } {\displaystyle c\}} . For every point y {\displaystyle y} between x {\displaystyle x} and c {\displaystyle c} ,

m ( x ) ≤ f ( y ) − f ( x ) g ( y ) − g ( x ) = f ( y ) g ( y ) − f ( x ) g ( y ) 1 − g ( x ) g ( y ) ≤ M ( x ) . {\displaystyle m(x)\leq {\frac {f(y)-f(x)}{g(y)-g(x)}}={\frac {{\frac {f(y)}{g(y)}}-{\frac {f(x)}{g(y)}}}{1-{\frac {g(x)}{g(y)}}}}\leq M(x).}

As y {\displaystyle y} approaches c {\displaystyle c} , both f ( x ) g ( y ) {\displaystyle {\frac {f(x)}{g(y)}}} and g ( x ) g ( y ) {\displaystyle {\frac {g(x)}{g(y)}}} become zero, and therefore

m ( x ) ≤ lim inf y ∈ S x f ( y ) g ( y ) ≤ lim sup y ∈ S x f ( y ) g ( y ) ≤ M ( x ) . {\displaystyle m(x)\leq \liminf _{y\in S_{x}}{\frac {f(y)}{g(y)}}\leq \limsup _{y\in S_{x}}{\frac {f(y)}{g(y)}}\leq M(x).}

The limit superior and limit inferior are necessary since the existence of the limit of f g {\displaystyle {\frac {f}{g}}} has not yet been established.

It is also the case that

lim x → c m ( x ) = lim x → c M ( x ) = lim x → c f ′ ( x ) g ′ ( x ) = L . {\displaystyle \lim _{x\to c}m(x)=\lim _{x\to c}M(x)=\lim _{x\to c}{\frac {f'(x)}{g'(x)}}=L.} [e]

and

lim x → c ( lim inf y ∈ S x f ( y ) g ( y ) ) = lim inf x → c f ( x ) g ( x ) {\displaystyle \lim _{x\to c}\left(\liminf _{y\in S_{x}}{\frac {f(y)}{g(y)}}\right)=\liminf _{x\to c}{\frac {f(x)}{g(x)}}} and lim x → c ( lim sup y ∈ S x f ( y ) g ( y ) ) = lim sup x → c f ( x ) g ( x ) . {\displaystyle \lim _{x\to c}\left(\limsup _{y\in S_{x}}{\frac {f(y)}{g(y)}}\right)=\limsup _{x\to c}{\frac {f(x)}{g(x)}}.}

In case 1, the squeeze theorem establishes that lim x → c f ( x ) g ( x ) {\displaystyle \lim _{x\to c}{\frac {f(x)}{g(x)}}} exists and is equal to L {\displaystyle L} . In the case 2, and the squeeze theorem again asserts that lim inf x → c f ( x ) g ( x ) = lim sup x → c f ( x ) g ( x ) = L {\displaystyle \liminf _{x\to c}{\frac {f(x)}{g(x)}}=\limsup _{x\to c}{\frac {f(x)}{g(x)}}=L} , and so the limit lim x → c f ( x ) g ( x ) {\displaystyle \lim _{x\to c}{\frac {f(x)}{g(x)}}} exists and is equal to L {\displaystyle L} . This is the result that was to be proven.

In case 2 the assumption that f ( x ) {\displaystyle f(x)} diverges to infinity was not used within the proof. This means that if | g ( x ) | {\displaystyle |g(x)|} diverges to infinity as x {\displaystyle x} approaches c {\displaystyle c} and both f {\displaystyle f} and g {\displaystyle g} satisfy the hypotheses of L'Hôpital's rule, then no additional assumption is needed about the limit of f ( x ) {\displaystyle f(x)} : It could even be the case that the limit of f ( x ) {\displaystyle f(x)} does not exist. In this case, L'Hopital's theorem is actually a consequence of Cesàro–Stolz.[13]

In the case when | g ( x ) | {\displaystyle |g(x)|} diverges to infinity as x {\displaystyle x} approaches c {\displaystyle c} and f ( x ) {\displaystyle f(x)} converges to a finite limit at c {\displaystyle c} , then L'Hôpital's rule would be applicable, but not absolutely necessary, since basic limit calculus will show that the limit of f ( x ) g ( x ) {\displaystyle {\frac {f(x)}{g(x)}}} as x {\displaystyle x} approaches c {\displaystyle c} must be zero.

Corollary

A simple but very useful consequence of L'Hopital's rule is that the derivative of a function cannot have a removable discontinuity. That is, suppose that f {\displaystyle f} is continuous at a {\displaystyle a} , and that f ′ ( x ) {\displaystyle f'(x)} exists for all x {\displaystyle x} in some open interval containing a {\displaystyle a} , except perhaps for x = a {\displaystyle x=a} . Suppose, moreover, that lim x → a f ′ ( x ) {\displaystyle \lim _{x\to a}f'(x)} exists. Then f ′ ( a ) {\displaystyle f'(a)} also exists and f ′ ( a ) = lim x → a f ′ ( x ) . {\displaystyle f'(a)=\lim _{x\to a}f'(x).} In particular, f ′ {\displaystyle f'} is also continuous at a {\displaystyle a} .

Thus, if a function is not continuously differentiable near a point, the derivative must have an essential discontinuity at that point.

Proof

Consider the functions h ( x ) = f ( x ) − f ( a ) {\displaystyle h(x)=f(x)-f(a)} and g ( x ) = x − a {\displaystyle g(x)=x-a} . The continuity of f {\displaystyle f} at a {\displaystyle a} tells us that lim x → a h ( x ) = 0 {\displaystyle \lim _{x\to a}h(x)=0} . Moreover, lim x → a g ( x ) = 0 {\displaystyle \lim _{x\to a}g(x)=0} since a polynomial function is always continuous everywhere. Applying L'Hopital's rule shows that

f ′ ( a ) := lim x → a f ( x ) − f ( a ) x − a = lim x → a h ′ ( x ) g ′ ( x ) = lim x → a f ′ ( x ) . {\displaystyle f'(a):=\lim _{x\to a}{\frac {f(x)-f(a)}{x-a}}=\lim _{x\to a}{\frac {h'(x)}{g'(x)}}=\lim _{x\to a}f'(x).}

See also

Notes

  1. ^ In the 17th and 18th centuries, the name was commonly spelled "l'Hospital", and he himself spelled his name that way. Since then, French spellings have changed: the silent 's' has been removed and replaced with a circumflex over the preceding vowel.
  2. ^ Translated from French, "Let there be a curve AMD (where AP = X, PM = y, AB = a) such that the value of the ordinate y is expressed by a fraction whose numerator and denominator each become zero when x = a; that is, when the point P falls on the given point B. One asks what shall then be the value of the ordinate BD. [Solution: ]... if one takes the differential of the numerator and if one divides it by the differential of the denominator, after having set x = a = Ab or AB, one will have the value [that was] sought of the ordinate bd or BD."[3]
  3. ^ The functional analysis definition of the limit of a function does not require the existence of such an interval.
  4. ^ Since g {\displaystyle g} is nonzero and g {\displaystyle g} is continuous on the interval, it is impossible for g {\displaystyle g} to be zero more than once on the interval. If it had two zeros, the mean value theorem would assert the existence of a point p {\displaystyle p} in the interval between the zeros such that g ( p ) = 0 {\displaystyle g(p)=0} . Thus, either g {\displaystyle g} is already nonzero on the interval, or else the interval can be reduced in size so as not to contain the single zero of g {\displaystyle g} .
  5. ^ The limits lim x → c m ( x ) {\displaystyle \lim _{x\to c}m(x)} and lim x → c M ( x ) {\displaystyle \lim _{x\to c}M(x)} both exist as they feature nondecreasing and nonincreasing functions of x {\displaystyle x} , respectively. Consider a sequence x i → c {\displaystyle x_{i}\to c} . Then lim i m ( x i ) ≤ lim i f ′ ( x i ) g ′ ( x i ) ≤ lim i M ( x i ) {\displaystyle \lim _{i}m(x_{i})\leq \lim _{i}{\frac {f'(x_{i})}{g'(x_{i})}}\leq \lim _{i}M(x_{i})} , as the inequality holds for each i {\displaystyle i} ; this yields the inequalities lim x → c m ( x ) ≤ lim x → c f ′ ( x ) g ′ ( x ) ≤ lim x → c M ( x ) {\displaystyle \lim _{x\to c}m(x)\leq \lim _{x\to c}{\frac {f'(x)}{g'(x)}}\leq \lim _{x\to c}M(x)} The next step is to show lim x → c M ( x ) ≤ lim x → c f ′ ( x ) g ′ ( x ) {\displaystyle \lim _{x\to c}M(x)\leq \lim _{x\to c}{\frac {f'(x)}{g'(x)}}} . Fix a sequence of numbers ε i > 0 {\displaystyle \varepsilon _{i}>0} such that lim i ε i = 0 {\displaystyle \lim _{i}\varepsilon _{i}=0} , and a sequence x i → c {\displaystyle x_{i}\to c} . For each i {\displaystyle i} , choose x i < y i < c {\displaystyle x_{i}<y_{i}<c} such that f ′ ( y i ) g ′ ( y i ) + ε i ≥ sup x i < ξ < c f ′ ( ξ ) g ′ ( ξ ) {\displaystyle {\frac {f'(y_{i})}{g'(y_{i})}}+\varepsilon _{i}\geq \sup _{x_{i}<\xi <c}{\frac {f'(\xi )}{g'(\xi )}}} , by the definition of sup {\displaystyle \sup } . Thus lim i M ( x i ) ≤ lim i f ′ ( y i ) g ′ ( y i ) + ε i = lim i f ′ ( y i ) g ′ ( y i ) + lim i ε i = lim i f ′ ( y i ) g ′ ( y i ) {\displaystyle {\begin{aligned}\lim _{i}M(x_{i})&\leq \lim _{i}{\frac {f'(y_{i})}{g'(y_{i})}}+\varepsilon _{i}\\&=\lim _{i}{\frac {f'(y_{i})}{g'(y_{i})}}+\lim _{i}\varepsilon _{i}\\&=\lim _{i}{\frac {f'(y_{i})}{g'(y_{i})}}\end{aligned}}} as desired. The argument that lim x → c m ( x ) ≥ lim x → c f ′ ( x ) g ′ ( x ) {\displaystyle \lim _{x\to c}m(x)\geq \lim _{x\to c}{\frac {f'(x)}{g'(x)}}} is similar.

References

  1. ^ Kline, Morris (1972). Mathematical Thought from Ancient to Modern Times. Oxford University Press. p. 383. ISBN 0-19-506136-5.
  2. ^ a b c Struik, Dirk (April 1963). "The Origin of L'Hôpital's Rule". The Mathematics Teacher. 56 (4). National Council of Teachers of Mathematics: 257–260.
  3. ^ L'Hospital (1696). Analyse des infiniment petits. pp. 145–146.
  4. ^ Boyer, Carl B.; Merzbach, Uta (1991). A History of Mathematics (2nd ed.). New York: John Wiley & Sons. pp. 420–421. ISBN 0-471-09763-2.
  5. ^ Bartle, Robert G.; Sherbert, Donald R. (2011). Introduction to Real Analysis (4th ed.). John Wiley & Sons. pp. 180–181. ISBN 978-0-471-43331-6.
  6. ^ Chatterjee, Dipak (2005). Real Analysis. PHI Learning Pvt. Ltd. p. 291. ISBN 81-203-2678-4.
  7. ^ Krantz, Steven G. (2004). A Handbook of Real variables with Applications to Differential Equations and Fourier Analysis. Boston, Massachusetts: Birkhäuser. p. 79. ISBN 0-8176-4329-X.
  8. ^ Stolz, Otto (1879). "Ueber die Grenzwerthe der Quotienten" [About the limits of quotients]. Mathematische Annalen (in German). 15 (3–4): 556–559. doi:10.1007/bf02086277. S2CID 122473933.
  9. ^ Boas Jr., Ralph P. (1986). "Counterexamples to L'Hopital's Rule". American Mathematical Monthly. 93 (8): 644–645. doi:10.1080/00029890.1986.11971912. JSTOR 2322330.
  10. ^ Taylor, A. E. (January 1952). "L'Hospital's Rule". American Mathematical Monthly. 59 (1): 20–4. doi:10.1080/00029890.1952.11988058.
  11. ^ Stewart, James (2012). Calculus: Early Transcendentals (7th ed.). Cengage Learning. pp. A45–A46. ISBN 978-0-538-49790-9.
  12. ^ Wazewski, T. (1949). "Quelques démonstrations uniformes pour tous les cas du théorème de l'Hôpital. Généralisations" [Some uniform proofs for all cases of L'Hôpital's theorem. Generalizations]. Prace Mat.-Fiz. (in French). 47: 117–128. MR 0034430.
  13. ^ "L'Hopital's Theorem". IMOmath. International Mathematical Olympiad. Archived from the original on 6 May 2021. Retrieved 26 May 2013.

Further reading

  • Lettenmeyer, F. (1936). "Über die sogenannte Hospitalsche Regel" [On the So-called l'Hopital Rule]. Journal für die reine und angewandte Mathematik (in German). 1936 (174): 246–247. doi:10.1515/crll.1936.174.246. S2CID 199546754.