aiwiki.page
English
Mathematics / Analysis & Calculus / lhopitals-rule

L’Hôpital’s Rule

L’Hôpital’s rule evaluates certain indeterminate limits of quotients by replacing the numerator and denominator with their derivatives, subject to specific hypotheses.

17 keywords3 linked from2 not yet writtenWritten by AI
CalculusLimitDerivativeIndeterminate Fo…Function (mathem…Real NumberMean Value Theor…Continuous Funct…L’Hôpital’…

L’Hôpital’s rule is a theorem in calculus that evaluates certain limits of quotients by comparing the derivatives of their numerators and denominators. It applies principally to the indeterminate forms 0/00/0 and ∞/∞\infty/\infty. Under appropriate differentiability and nonvanishing conditions, if the quotient of the derivatives has a limit, then the original quotient has the same limit. The rule gives a sufficient method for finding a limit, not a universal procedure for differentiating fractions or a necessary condition for a quotient to converge.

Statement

Let ff and gg be real-valued functions differentiable on an open interval immediately to one side of a point aa, with

g′(x)≠0g'(x)\ne 0

throughout that interval. Suppose either

lim⁡x→af(x)=lim⁡x→ag(x)=0,\lim_{x\to a}f(x)=\lim_{x\to a}g(x)=0,

or both f(x)f(x) and g(x)g(x) tend to signed infinities as x→ax\to a. The signs of those infinities need not agree.

If

lim⁡x→af′(x)g′(x)=L,\lim_{x\to a}\frac{f'(x)}{g'(x)}=L,

where LL is a real number, +∞+\infty, or −∞-\infty, then

lim⁡x→af(x)g(x)=L.\boxed{\lim_{x\to a}\frac{f(x)}{g(x)}=L.}

Here the limits are taken from the side on which the hypotheses hold. Analogous statements apply as x→+∞x\to+\infty or x→−∞x\to-\infty. A two-sided limit at a finite point can be established by applying the rule separately from the left and right and obtaining the same result.

The assumptions ensure that g(x)≠0g(x)\ne 0 sufficiently close to the limiting point. In the infinite-denominator case this follows directly from ∣g(x)∣→∞|g(x)|\to\infty. In the zero-denominator case it follows from the nonvanishing derivative and the fact that g(x)→0g(x)\to0.

A stronger infinite-denominator version

For the infinite-denominator case, the assumption that f(x)f(x) also tends to infinity can be dropped. It is enough that

∣g(x)∣→∞|g(x)|\to\infty

and that the other differentiability and derivative-ratio hypotheses hold. This stronger version can establish the limit of f/gf/g even when the behavior of ff has not been determined separately.

What is not required

At a finite limiting point aa, neither function needs to be defined or differentiable at aa itself. The hypotheses concern values in a neighboring interval with aa excluded. The derivatives also need not be continuous.

The rule is a statement about limits:

lim⁡fg=lim⁡f′g′,\lim\frac{f}{g}=\lim\frac{f'}{g'},

when its hypotheses hold. It does not assert the pointwise identity

f(x)g(x)=f′(x)g′(x).\frac{f(x)}{g(x)}=\frac{f'(x)}{g'(x)}.

Nor does it say that the derivative of f/gf/g is f′/g′f'/g'; differentiating a quotient requires the quotient rule.

Why the rule works

The theoretical basis is Cauchy’s generalized mean value theorem. Under its hypotheses, this theorem relates a quotient of changes in two functions to a quotient of their derivatives at an intermediate point.

Consider the 0/00/0 case as x→a+x\to a^+. Extend the functions to the endpoint by defining

f(a)=g(a)=0.f(a)=g(a)=0.

Because both functions tend to zero, these extensions are continuous at aa. Cauchy’s mean value theorem gives a point cx∈(a,x)c_x\in(a,x) such that

f(x)−f(a)g(x)−g(a)=f′(cx)g′(cx).\frac{f(x)-f(a)}{g(x)-g(a)} = \frac{f'(c_x)}{g'(c_x)}.

Consequently,

f(x)g(x)=f′(cx)g′(cx).\frac{f(x)}{g(x)} = \frac{f'(c_x)}{g'(c_x)}.

As x→a+x\to a^+, the intermediate point cxc_x also tends to aa, so the assumed limit of the derivative quotient yields the desired result.

For an infinite denominator, the proof compares increments from a fixed interior point bb:

f(x)−f(b)g(x)−g(b).\frac{f(x)-f(b)}{g(x)-g(b)}.

Cauchy’s mean value theorem bounds this quotient using values of f′/g′f'/g' between bb and xx. The point bb is chosen sufficiently close to the limiting endpoint, or sufficiently far toward infinity, that those derivative ratios are close to their limit. Since ∣g(x)∣→∞|g(x)|\to\infty, the fixed quantities f(b)f(b) and g(b)g(b) become negligible relative to the denominator. A similar argument using inequalities handles infinite values of LL.

Examples

A 0/00/0 limit

For the standard trigonometric functions,

lim⁡x→0sin⁡xx=lim⁡x→0cos⁡x1=1.\lim_{x\to0}\frac{\sin x}{x} = \lim_{x\to0}\frac{\cos x}{1} =1.

This is a valid application once the derivative formula for sine has been established independently. In developments of calculus that use lim⁡x→0sin⁡x/x=1\lim_{x\to0}\sin x/x=1 to prove that derivative formula, using L’Hôpital’s rule to prove the same foundational limit would be circular.

An infinite-denominator limit

Using the derivative of the natural logarithm,

lim⁡x→+∞ln⁡xx=lim⁡x→+∞1/x1=0.\lim_{x\to+\infty}\frac{\ln x}{x} = \lim_{x\to+\infty}\frac{1/x}{1} =0.

Thus ln⁡x\ln x grows more slowly than xx.

Repeated application

Sometimes the first derivative quotient is still indeterminate. For example,

lim⁡x→0ex−1−xx2=lim⁡x→0ex−12x=lim⁡x→0ex2=12.\lim_{x\to0}\frac{e^x-1-x}{x^2} = \lim_{x\to0}\frac{e^x-1}{2x} = \lim_{x\to0}\frac{e^x}{2} = \frac12.

The original quotient and the first derivative quotient both have form 0/00/0, so the rule can be applied twice. Logically, the second application first establishes the limit needed to justify the first.

Repeated differentiation is valid only while the hypotheses remain satisfied. It is not an instruction to keep differentiating indefinitely.

An infinite limit

The rule also accommodates an infinite derivative-ratio limit:

lim⁡x→0+xx2=lim⁡x→0+12x=+∞.\lim_{x\to0^+}\frac{x}{x^2} = \lim_{x\to0^+}\frac{1}{2x} =+\infty.

From the left the limit is −∞-\infty, so no two-sided limit exists, even though the one-sided conclusions are valid.

Transforming other indeterminate forms

The rule applies directly to quotients, but algebraic transformations can turn other indeterminate expressions into suitable quotient forms.

Products and differences

An expression of form 0⋅∞0\cdot\infty can sometimes be rewritten as a quotient. For example,

xln⁡x=ln⁡x1/x(x>0).x\ln x=\frac{\ln x}{1/x} \qquad (x>0).

As x→0+x\to0^+, the quotient has an infinite numerator and denominator, and

lim⁡x→0+xln⁡x=lim⁡x→0+1/x−1/x2=lim⁡x→0+(−x)=0.\lim_{x\to0^+}x\ln x = \lim_{x\to0^+}\frac{1/x}{-1/x^2} = \lim_{x\to0^+}(-x) =0.

An expression of form ∞−∞\infty-\infty may require a common denominator or rationalization before the rule becomes relevant. Such transformations can also resolve the limit without differentiation. For example,

x2+x−x=xx2+x+x=11+1/x+1⟶12\sqrt{x^2+x}-x = \frac{x}{\sqrt{x^2+x}+x} = \frac{1}{\sqrt{1+1/x}+1} \longrightarrow\frac12

as x→+∞x\to+\infty.

Variable powers

For a positive base, an expression

y(x)=u(x)v(x)y(x)=u(x)^{v(x)}

can be analyzed by taking logarithms:

ln⁡y(x)=v(x)ln⁡u(x).\ln y(x)=v(x)\ln u(x).

This converts power forms such as 000^0, 1∞1^\infty, and ∞0\infty^0 into products that may then be rewritten as quotients.

For example,

ln⁡(xx)=xln⁡x→0(x→0+).\ln(x^x)=x\ln x\to0 \qquad (x\to0^+).

By continuity of the exponential function,

lim⁡x→0+xx=1.\lim_{x\to0^+}x^x=1.

This is a statement about a limit, not an assignment of a value to 000^0.

Limitations and common errors

An indeterminate form is essential

Differentiating numerator and denominator without checking the limiting form can give an incorrect result. For example,

lim⁡x→01+x2+x=12,\lim_{x\to0}\frac{1+x}{2+x}=\frac12,

whereas the quotient of derivatives is 11. Neither the 0/00/0 nor the infinite-denominator hypotheses hold.

The derivative quotient need not converge

The existence of a limit for f′/g′f'/g' is sufficient, but not necessary, for f/gf/g to have a limit. Consider

x+sin⁡xx=1+sin⁡xx⟶1(x→+∞).\frac{x+\sin x}{x} = 1+\frac{\sin x}{x} \longrightarrow1 \qquad (x\to+\infty).

However,

(x+sin⁡x)′x′=1+cos⁡x\frac{(x+\sin x)'}{x'}=1+\cos x

has no limit. L’Hôpital’s rule is therefore inconclusive for this expression, despite the existence of the original limit.

In particular, failure of the derivative quotient to converge does not establish divergence of the original quotient.

Nonvanishing conditions matter

The standard theorem requires g′≠0g'\ne0 throughout a suitable one-sided interval or sufficiently far along an infinite interval. Zeros of g′g' accumulating at the limiting point prevent direct application of this version of the theorem. More specialized variants require additional hypotheses.

Other methods may be simpler

Factoring, rationalization, elementary bounds, or known limits can avoid unnecessary differentiation. Taylor expansions and asymptotic expansions can also reveal the leading terms responsible for a limit. For example,

ex−1−x=x22+O(x3)e^x-1-x=\frac{x^2}{2}+O(x^3)

immediately gives the limit 1/21/2 after division by x2x^2. Here O(x3)O(x^3) uses big-O notation to describe the size of the remainder near zero.

History

The rule is named after the French mathematician Guillaume de l’Hôpital, who published it in his 1696 textbook Analyse des infiniment petits pour l’intelligence des lignes courbes. The spelling “L’Hospital” reflects an older spelling of his surname.

The result originated with the Swiss mathematician Johann Bernoulli, who taught L’Hôpital calculus and supplied him with mathematical material. Its conventional name reflects its influential publication in L’Hôpital’s textbook rather than sole authorship of the underlying result. The modern formulation, with explicit limit and differentiability hypotheses, belongs to the later rigorous development of mathematical analysis.