BetaFree coursewareRewritten from MIT OpenCourseWareCC BY-NC-SA 4.0
Open CosmologyPhysics & cosmology, from high school to a graduate year

Indeterminate forms and L'Hôpital's rule

When a limit of f(x)/g(x) has the form 0/0 or ∞/∞, it equals the limit of f′(x)/g′(x), if that limit exists (or is ±∞). The rule comes from difference quotients, works as x → ±∞ too, and can be repeated. Products such as x ln x and powers such as xˣ are rewritten first as ratios. It ranks rates of growth: ln x is slower than any positive power of x, and every power is slower than eᵖˣ for p > 0. But look before you L'Hôp: the rule only applies to indeterminate forms.

You need this first

Full reading path (7 pages)
  1. The derivative: slope of the tangent line and rate of change (18.01)
  2. Limits and continuity (18.01)
  3. Derivatives of sine and cosine, and the product and quotient rules (18.01)
  4. The chain rule and higher derivatives (18.01)
  5. Implicit differentiation and the derivatives of inverse functions (18.01)
  6. Exponentials and logarithms: the number e and its derivatives (18.01)
  7. Linear and quadratic approximations (18.01)
On this page · 6 sections
  1. Where the rule comes from
  2. The rule
  3. Other indeterminate forms
  4. Rates of growth
  5. Look before you L'Hôp
  6. Summary

With the techniques of integration done, the course clears up loose ends; this one deals with infinity (transcript, p. 1). Limits such as xln⁡xx\ln x as x→0+x \to 0^+, xe−xxe^{-x} and ln⁡xx\frac{\ln x}{x} as x→∞x \to \infty can be guessed with a calculator, but understanding them needs a tool: L'Hôpital's rule, also spelled L'Hospital, since the circumflex in French marks a dropped s (p. 1).

Where the rule comes from#

Take lim⁡x→1x10−1x2−1\lim_{x \to 1}\frac{x^{10} - 1}{x^2 - 1} (transcript, p. 1). Plugging in gives 00\frac{0}{0}, an indeterminate form. Divide top and bottom by x−1x - 1: each becomes a difference quotient, which tends to a derivative. The top tends to 10x9=1010x^9 = 10 at x=1x = 1, the bottom to 2x=22x = 2, so the limit is 5 (pp. 1–2). In general, if f(a)=g(a)=0f(a) = g(a) = 0 (p. 2; the notes call this the easy version of the rule, notes, p. 1):

The rule from difference quotients
lim⁡x→af(x)g(x)=lim⁡x→af(x)−f(a)x−ag(x)−g(a)x−a=f′(a)g′(a)\lim_{x \to a}\frac{f(x)}{g(x)} = \lim_{x \to a}\frac{\dfrac{f(x) - f(a)}{x - a}}{\dfrac{g(x) - g(a)}{x - a}} = \frac{f'(a)}{g'(a)}
In words

the limit as x goes to a of f(x) over g(x) equals the limit as x goes to a of the quantity the quantity f(x) minus f(a), all over the quantity x minus a, all over the quantity the quantity g(x) minus g(a), all over the quantity x minus a, equals f prime (a) over the quantity g prime (a)

Source: 18.01 Lecture 35 transcript, pp. 2–3

provided g′(a)≠0g'(a) \ne 0 (p. 3). Underneath, it compares the linear approximations of ff and gg at aa (p. 3).

The rule#

The lecture's Version 1, which it calls much better, drops the condition on g′(a)g'(a) (transcript, p. 3):

L'Hôpital's rule
lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x)if f(a)=g(a)=0 and the right-hand limit exists\lim_{x \to a}\frac{f(x)}{g(x)} = \lim_{x \to a}\frac{f'(x)}{g'(x)} \qquad\text{if } f(a) = g(a) = 0 \text{ and the right-hand limit exists}
In words

the limit as x goes to a of f(x) over g(x) equals the limit as x goes to a of f prime (x) over the quantity g prime (x), if f(a) equals g(a) equals 0 and the right-hand limit exists

Source: 18.01 Lecture 35 transcript, pp. 3–4

Differentiate the numerator and the denominator separately: this is nothing like the quotient rule (p. 3). For example, lim⁡x→0sin⁡5xsin⁡2x=lim⁡x→05cos⁡5x2cos⁡2x=52\lim_{x \to 0}\frac{\sin 5x}{\sin 2x} = \lim_{x \to 0}\frac{5\cos 5x}{2\cos 2x} = \frac{5}{2} (p. 4). The rule may be used again if the new ratio is still indeterminate:

Applying the rule twice
cos⁡x−1x2∼−sin⁡x2x∼−cos⁡x2→−12(x→0)\frac{\cos x - 1}{x^2} \sim \frac{-\sin x}{2x} \sim \frac{-\cos x}{2} \to -\frac{1}{2} \quad (x \to 0)
In words

the quantity cos x minus 1, all over x squared is of order minus sine x over the quantity 2 x, is of order minus cos x over 2 goes to minus one half (x goes to 0)

The logic runs backwards: once the last limit exists, so does the one before it, and so on back to the original (pp. 4–5). Neither f′(a)f'(a) nor even f(a)f(a) and g(a)g(a) themselves need to exist; what matters is the behaviour near aa (p. 5). (On p. 4 the lecturer first writes x→1x \to 1 in the sine example and is corrected to x→0x \to 0.) The method of approximations gives the same answers: sin⁡u≈u\sin u \approx u makes sin⁡5xsin⁡2x≈5x2x\frac{\sin 5x}{\sin 2x} \approx \frac{5x}{2x}, and cos⁡x≈1−x22\cos x \approx 1 - \frac{x^2}{2} makes cos⁡x−1x2≈−12\frac{\cos x - 1}{x^2} \approx -\frac{1}{2} (p. 6; notes, pp. 2–3).

The rule also holds when a=±∞a = \pm\infty, when ff and gg both tend to ±∞\pm\infty (the form ∞∞\frac{\infty}{\infty}), and when the right-hand limit is ±∞\pm\infty; only wild oscillation defeats it (transcript, pp. 6–7). It applies only to the forms 00\frac{0}{0} and ∞∞\frac{\infty}{\infty} (p. 9).

Other indeterminate forms#

A product like xln⁡xx\ln x as x→0+x \to 0^+ is of the form 0⋅(−∞)0 \cdot (-\infty): rewrite it as a ratio, choosing the logarithm on top (transcript, p. 7):

Zero times infinity
lim⁡x→0+xln⁡x=lim⁡x→0+ln⁡x1/x=lim⁡x→0+1/x−1/x2=lim⁡x→0+(−x)=0\lim_{x \to 0^+} x\ln x = \lim_{x \to 0^+}\frac{\ln x}{1/x} = \lim_{x \to 0^+}\frac{1/x}{-1/x^2} = \lim_{x \to 0^+}(-x) = 0
In words

the limit as x goes to 0 from the right of x log x equals the limit as x goes to 0 from the right of log x over the quantity 1 over x, equals the limit as x goes to 0 from the right of the quantity 1 over x, all over the quantity minus 1 over x squared, equals the limit as x goes to 0 from the right of (-x) equals 0

The 0 wins (p. 7). The notes add that the other choice, x1/ln⁡x\frac{x}{1/\ln x}, leads nowhere (notes, p. 4). For a moving exponent, such as xxx^x (the form 000^0), use base ee: xx=exln⁡xx^x = e^{x\ln x}, and since xln⁡x→0x\ln x \to 0, xx→e0=1x^x \to e^0 = 1 (transcript, pp. 9–10; notes, p. 4). Forms like 1∞1^\infty and 0⋅∞0 \cdot \infty are handled with the same algebra, exponentials and logarithms (notes, p. 4).

Rates of growth#

With p>0p > 0, xe−px=xepxxe^{-px} = \frac{x}{e^{px}} is ∞∞\frac{\infty}{\infty}, and one step gives 1pepx→0\frac{1}{pe^{px}} \to 0: xx grows more slowly than epxe^{px} (transcript, p. 8). Against x100x^{100}, rather than differentiating 100 times, take a 100th root first (p. 8):

Exponentials beat powers
lim⁡x→∞epxx100=lim⁡x→∞(epx/100x)100=lim⁡x→∞(p100 epx/100)100=∞\lim_{x \to \infty}\frac{e^{px}}{x^{100}} = \lim_{x \to \infty}\left(\frac{e^{px/100}}{x}\right)^{100} = \lim_{x \to \infty}\left(\frac{p}{100}\,e^{px/100}\right)^{100} = \infty
In words

the limit as x goes to infinity of e to the power p x over x to the power 100 equals the limit as x goes to infinity of ( the quantity e to the power p x over 100, end of power, all over x ) to the power 100 equals the limit as x goes to infinity of ( p over 100, times e to the power p x over 100, end of power, ) to the power 100 equals infinity

So epxe^{px} grows faster than any power of xx. And logarithms are slower than any positive power (p. 9):

Logarithms lose to powers
lim⁡x→∞ln⁡xx1/3=lim⁡x→∞1/x13x−2/3=lim⁡x→∞3x−1/3=0\lim_{x \to \infty}\frac{\ln x}{x^{1/3}} = \lim_{x \to \infty}\frac{1/x}{\frac{1}{3}x^{-2/3}} = \lim_{x \to \infty}3x^{-1/3} = 0
In words

the limit as x goes to infinity of log x over the quantity x to the power one third, equals the limit as x goes to infinity of the quantity 1 over x, all over the quantity one third x to the power minus two thirds, equals the limit as x goes to infinity of 3 x to the power minus one third equals 0

Together: ln⁡x≪x1/3≪x≪x10≪eax\ln x \ll x^{1/3} \ll x \ll x^{10} \ll e^{ax} as x→∞x \to \infty, for a>0a > 0 (notes, p. 4). These rates are what the next lecture needs (transcript, p. 8).

Look before you L'Hôp#

Apply the rule twice to sin⁡xx2\frac{\sin x}{x^2} as x→0x \to 0 and you get cos⁡x2x\frac{\cos x}{2x}, then −sin⁡x2→0\frac{-\sin x}{2} \to 0. But sin⁡x≈x\sin x \approx x says sin⁡xx2≈1x\frac{\sin x}{x^2} \approx \frac{1}{x}, which blows up (transcript, p. 10; notes, p. 3). The second step was wrong: cos⁡x2x\frac{\cos x}{2x} is of the form 10\frac{1}{0}, not indeterminate, so the rule did not apply (p. 10). Look before you L'Hôp.

And do not use the rule as a crutch. For an expression like x5+2x4+1x4+2\frac{x^5 + 2x^4 + 1}{x^4 + 2} as x→∞x \to \infty (reconstructed here from the lecture's working), the main terms x5x4=x\frac{x^5}{x^4} = x show at once that it tends to infinity, without four rounds of differentiation (p. 11).

Worked example

Four limits

Find (a) lim⁡x→0ex−1−xx2\lim_{x \to 0}\frac{e^x - 1 - x}{x^2}, (b) lim⁡x→∞x2e−x\lim_{x \to \infty}x^2e^{-x}, (c) lim⁡x→∞(1+1x)x\lim_{x \to \infty}\left(1 + \frac{1}{x}\right)^x, and (d) check (a) numerically at x=0.1x = 0.1.

(a) Twice

00\frac{0}{0}: ex−12x\frac{e^x - 1}{2x} is still 00\frac{0}{0}; again, ex2→12\frac{e^x}{2} \to \frac{1}{2}.

(b) A product

x2ex\frac{x^2}{e^x} is ∞∞\frac{\infty}{\infty}: 2xex\frac{2x}{e^x}, then 2ex→0\frac{2}{e^x} \to 0.

(c) The form 1 to the power infinity

Use base ee: the exponent is xln⁡(1+1x)=ln⁡(1+1/x)1/xx\ln\left(1 + \frac{1}{x}\right) = \frac{\ln(1 + 1/x)}{1/x}, of the form 00\frac{0}{0}. Differentiating top and bottom, −1/x21+1/x\frac{-1/x^2}{1 + 1/x} over −1x2-\frac{1}{x^2} gives 11+1/x→1\frac{1}{1 + 1/x} \to 1. So the limit is e1=e≈2.718e^1 = e \approx 2.718.

(d) A check

At x=0.1x = 0.1: e0.1−1.10.01=1.105171−1.10.01≈0.517\frac{e^{0.1} - 1.1}{0.01} = \frac{1.105171 - 1.1}{0.01} \approx 0.517, close to 12\frac{1}{2}, as it should be.

Summary#

  • For 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}: lim⁡fg=lim⁡f′g′\lim\frac{f}{g} = \lim\frac{f'}{g'}, if the right side exists or is ±∞\pm\infty; also as x→±∞x \to \pm\infty.
  • Differentiate top and bottom separately; repeat while the form stays indeterminate.
  • Rewrite 0⋅∞0 \cdot \infty as a ratio and moving exponents with base ee.
  • ln⁡x≪xp≪eqx\ln x \ll x^p \ll e^{qx} as x→∞x \to \infty (p,q>0p, q > 0).
  • Look before you L'Hôp, and use simple algebra when the main terms are obvious.

Symbols on this page

Show the 27 symbols used here
Ω\Omega capital omega.
The density parameter Ω = ρ/ρ_c. Subscripts pick one ingredient: Ω_m matter, Ω_vac (or Ω_Λ) vacuum energy, Ω_r radiation, Ω_k curvature. Say it: “capital omega”.
∞\infty infinity.
Infinity: larger than any number. Say it: “infinity”.
≈\approx approximately equal.
Is approximately equal to. Say it: “is approximately”.
∼\sim tilde (similar).
Is of the order of: roughly equal, to within a factor of a few. Say it: “is of order”.
≪\ll much less than.
Is much less than. Say it: “is much less than”.
≠\neq not equal.
Is not equal to. Say it: “is not equal to”.
→\to arrow.
Goes to (tends to), or becomes. Say it: “goes to”.
±\pm plus or minus.
Plus or minus: both signs, or an uncertainty (67.3 ± 1.2). Say it: “plus or minus”.
⋅\cdot dot.
Times (multiplication). Between two vectors: the dot product. Say it: “times”.
lim⁡\lim limit.
Limit: the value approached as the variable written below approaches its target. Say it: “the limit”.
sin⁡\sin sine.
Sine of an angle. Say it: “sine”.
cos⁡\cos cosine.
Cosine of an angle. Say it: “cos”.
tanh⁡\tanh hyperbolic tangent.
Hyperbolic tangent, sinh/cosh. Say it: “tanh” (sounds like “tanch”).
ln⁡\ln natural logarithm.
Natural logarithm (base e ≈ 2.718). Say it: “log”.
aa a.
The point the limit is taken at (finite or ±∞); in the growth ranking, a positive constant. Say it: “a”.
H0H_{0} Hubble constant.
The Hubble constant: today's value of H, about 67–73 km/s/Mpc. Unit: 1/s (usually km/s/Mpc). Say it: “H nought”.
t0t_{0} today.
Today: the present time, about 13.8 billion years after the Big Bang in the real universe (simple models on some pages give other ages). Unit: s (usually billions of years). Say it: “t nought”.
Ωm\Omega_{m} matter density parameter.
The matter density as a fraction of the critical density, ρ_m/ρ_c; ',0' means today (about 0.3). Say it: “capital omega m”.
xx x.
The variable that tends to a (or to ±∞). Say it: “x”.
ee e.
Euler's number, e ≈ 2.718. Say it: “e”.
ff f.
The numerator of the ratio f(x)/g(x). Say it: “f”.
gg g.
The denominator of the ratio f(x)/g(x). Say it: “g”.
qq q.
A positive constant (as in e^(qx)). Say it: “q”.
pp p.
A positive constant (as in e^(px) or the power x^p). Say it: “p”.
f′f' f prime.
The derivative of the numerator. Say it: “f prime”.
uu u.
In the sine approximation, a small angle; in the cosmology note, √(1 − Ω_m,0). Say it: “u”.
g′g' g prime.
The derivative of the denominator. Say it: “g prime”.

Tap or click a symbol in a formula to see the same explanation. All symbols: symbols and notation.

Words on this page

Show the 18 words used here

New here

L'Hôpital's rule.
A rule for limits of the form 0/0 or ∞/∞: the limit of f/g equals the limit of f′/g′, if that exists.
indeterminate form.
A limit that looks like 0/0, ∞/∞, 0 × ∞ or 1^∞, whose value cannot be told from that shape and must be worked out.

Also used

integration.
Finding an integral: adding up very many small pieces, or finding an antiderivative. Explained in Differentials and antiderivatives.
p..
Page, in a reference to a source; pp. means pages, as in pp. 3–5.
difference quotient.
The change in a function divided by the change in its input, the slope of a secant line: [f(x + Δx) − f(x)]/Δx. Explained in The derivative: slope of the tangent line and rate of change.
derivative.
The rate at which a function changes as its input changes: the slope of its graph at a point. Explained in Position and velocity in one dimension.
limit.
The value a quantity gets closer and closer to, as near as we like, as its input approaches some value, without having to reach it. Explained in Rates of change and area under a graph.
linear approximation.
Replacing a function near a point by the straight line, or flat plane, that best matches it there, using its first derivatives. Explained in Change of variables in double integrals.
differentiation.
Finding a derivative: working out how fast a function changes. Explained in The derivative: slope of the tangent line and rate of change.
quotient rule.
The rule for the derivative of a fraction of two functions: (u/v)′ = (u′v − uv′)/v².
logarithm.
The power to which a fixed base must be raised to give a number: log₁₀ 1000 = 3 because 10³ = 1000. Explained in Exponentials and logarithms.
flat universe.
A universe with exactly the critical density, whose space has no curvature and which expands forever, ever more slowly. Explained in Open, closed and flat universes.
vacuum energy.
Energy that empty space itself carries, the same everywhere and unchanged as the universe expands. Explained in Dark energy and the accelerating universe.

Academic

transcript.
A written record of exactly what was said in a recorded lecture, word for word.
plug in.
To put numbers or expressions into a formula in place of its symbols.
approximation.
Close to, but not exactly, the true value; an approximation is such a value or formula, chosen because it is simpler.
blow up.
In maths, to grow without limit; to become infinite.
numerically.
In terms of actual numbers rather than symbols; often worked out step by step, by computer, instead of from an exact formula.

Tap or click a word, here or in the text, for its meaning in this lesson. All words: the glossary. How many words are marked in the text: Reading options (the “Aa” button).

Where this leads

In cosmology

34 more cosmology pages that build on this

Pages that build on this

Practise

Check your understanding

  1. lim⁡x→0sin⁡5xsin⁡2x=\lim_{x \to 0}\frac{\sin 5x}{\sin 2x} =
  2. lim⁡x→0+xln⁡x=\lim_{x \to 0^+} x\ln x =
  3. Applying L'Hôpital twice to sin⁡xx2\frac{\sin x}{x^2} as x→0x \to 0 gives −sin⁡x2→0\frac{-\sin x}{2} \to 0. What went wrong?
  4. Which grows fastest as x→∞x \to \infty?
0 of 4 answered

Flashcards

1 / 3