4.8 L'Hôpital's Rule

The rule for indeterminate quotients of the forms zero over zero and infinity over infinity, repeated application, converting products, differences and exponential forms into quotients, the proof of the growth ranking, and the forms that only appear indeterminate.

Subject: Calculus I · 72 slides · symbolic lesson

Open the interactive version of this deck

What this lesson covers

The lesson, slide by slide

1. L'Hôpital's Rule

Title

Calculus I · Section 4.8

Limits that plug in to nonsense, settled by derivatives

2. What this lesson gives you

Objectives

Section 2.3 settled limits like these one trick at a time: factor, rationalise, squeeze. This lesson gives one tool that handles most of them, and many that no algebra touches.

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 394 — learning objectives 4.8.1 to 4.8.3

In Chapter 2 every limit that plugged in to zero over zero needed its own trick. You factored a polynomial, multiplied by a conjugate, or found a squeeze. Each trick worked for one family of examples, and many limits had no trick at all: try factoring x squared over e to the x.

This lesson gives you one tool that works on almost all of them, and it uses something you now have that you did not have in Chapter 2: derivatives. The rule itself fits on one line. Most of the lesson is about using it honestly: checking that it is allowed, noticing when to stop, and dragging limits that are not quotients into a shape the rule can handle.

The last part pays off a promise. You have been told that exponentials outgrow powers and powers outgrow logarithms. By the end you will be able to prove it in two or three lines.

3. Before anything new: two limits that plug in to zero over zero

Warm-up

\[ \lim_{x\to 2}\frac{x^2-4}{x-2} \qquad \lim_{x\to 0}\frac{\sin x}{x} \]

Discussion prompt

Substitute into each. Both give zero over zero. Now find each limit by the methods of Chapter 2. What do the two answers tell you about the expression zero over zero?

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 395 — the two motivating limits

Write both limits down before you look at the answer. The first one factors; the second is the famous limit you proved with the squeeze theorem, using areas in the unit circle.

Now compare. Both expressions give zero over zero when you substitute, yet one limit is 4 and the other is 1. If zero over zero were a number, it could not be both. So the expression zero over zero is not an answer. It is a report that the top and the bottom are both shrinking, and it says nothing about how fast each one shrinks.

That question, how fast each part shrinks, is exactly what a derivative measures. Keep it in mind: it is the whole idea of the lesson.

4. Zero over zero, settled by slopes

Section

Part 1

5. Why zero over zero decides nothing

Concept

Figure (svg): Three curves near x equals 0: sine of 2x over x heads to a hollow dot at height 2; one minus cosine x, over x, passes through a hollow dot at the origin; and x over x squared shoots up to infinity on the right and down on the left.

All three quotients are zero over zero at the origin, and they head to 2, to 0 and to infinity. The symbol zero over zero does not decide anything.

\[ \frac{\sin 2x}{x} \to 2, \qquad \frac{1-\cos x}{x} \to 0, \qquad \frac{x}{x^2} \to \infty \]

indeterminate form — A pattern such as zero over zero that a limit produces on substitution, where the limits of the pieces do not determine the limit of the whole.

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 395 — indeterminate forms of type 0/0

Look at the three curves near the origin. Every one of them is a quotient whose top and bottom both vanish at zero. The blue one heads to a hole at height 2, the green one passes through a hole at the origin, and the red one shoots off to infinity.

So knowing only that the top and bottom both tend to zero tells you nothing about the quotient. It depends on the race between them. When the top shrinks faster, the quotient goes to zero. When the bottom shrinks faster, the quotient blows up. When they shrink at comparable rates, you get a finite nonzero number.

That is what the word indeterminate means here: the limits of the pieces do not determine the limit of the whole. It is not a claim that the limit fails to exist. It usually exists; you just have to work harder to find it.

6. Zoom in until both curves are lines

Concept

Suppose f and g are differentiable and both are zero at a. Near a, each function is almost its tangent line:

\[ f(x) \approx f(a) + f'(a)(x-a), \qquad g(x) \approx g(a) + g'(a)(x-a) \]

Both values at a are zero, so the constant terms drop out:

\[ \frac{f(x)}{g(x)} \approx \frac{f'(a)(x-a)}{g'(a)(x-a)} \]

The factor x minus a cancels, and what is left is a ratio of slopes.

\[ \frac{f(x)}{g(x)} \approx \frac{f'(a)}{g'(a)} \quad \text{for } x \text{ near } a \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, pp. 395-396 — local linear approximation, Figure 4.71

This slide is the entire idea behind the rule, and it uses only linear approximation from Section 4.2. Near the point a, a differentiable function looks like its tangent line.

Both functions are zero at a, so their tangent lines both pass through the point a comma zero. Each tangent line is just its slope times x minus a. Divide one by the other and the factor x minus a cancels, leaving the ratio of the slopes.

Read the conclusion carefully: near a, the quotient of the functions is approximately the quotient of their derivatives at a. The approximation gets better the closer x is to a, which is exactly the situation a limit asks about. The theorem on the next slides makes that precise, but you should be able to rebuild the rule from this picture whenever you forget it.

7. Two curves through one zero

Picture it

Figure (svg): Near x equals 1: the curve y equals sine of pi x falls through the point (1, 0) along its tangent line of slope minus pi, and the curve y equals ln x rises through the same point along its tangent line of slope 1. The dashed tangent lines hug the curves close to x equals 1.

Zoom in on the shared zero and both curves become straight lines. The quotient of two lines through the same point is just the quotient of their slopes.

Example 4.38(b) drawn to scale. Both curves cross zero at x equal to 1. Close to that point each is indistinguishable from its tangent line, so their quotient is the quotient of the slopes.

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 395 — Figure 4.71, with the curves of Example 4.38b

Here are the actual curves from Example 4.38(b), drawn to scale. The sine curve falls through the point 1 comma 0 with slope minus pi, and the logarithm rises through the same point with slope 1. The dashed lines are their tangent lines.

Notice how closely each curve hugs its tangent line near x equal to 1. In that window the quotient of the curves is almost the quotient of the lines, and the quotient of two lines through the same point is constant: slope over slope, minus pi over 1.

So the limit should be minus pi. Two slides from now you will get exactly that from the rule, and the rule is nothing more than this picture turned into a calculation.

8. Slide the slope and watch the hole

Tweak it

Parameter explorer

The curve is sin(kx)/x. Near 0 the top is almost the line kx and the bottom is the line x. Slide k: where is the hole in the graph at x = 0?

\[ \frac{\sin({k}x)}{x} \;\to\; \frac{{k}}{1} \]

  • k — from 0.5 to 3: slope k of the top

Move the slider and watch the height of the curve at x equal to 0. The curve is sine of k x over x, and it is undefined at 0, but it clearly heads toward a definite height.

Near 0, sine of k x is almost the line k x, whose slope is k. The bottom, x, is a line of slope 1. So the quotient should approach k over 1, which is k. Check that the hole sits at height k for every setting you try.

The rule gives the same thing in one line: the derivative of the top at 0 is k times cosine of 0, which is k, and the derivative of the bottom is 1. The slider is the tangent-line argument, made visible.

9. Theorem 4.12: the zero over zero case

Concept

L'Hôpital's rule, zero over zero case — Suppose f and g are differentiable on an open interval containing a, except possibly at a, and both tend to 0 as x tends to a. Then the limit of f over g equals the limit of f prime over g prime, provided that second limit exists or is infinite.

\[ \lim_{x\to a} f(x) = 0 = \lim_{x\to a} g(x) \quad\Longrightarrow\quad \lim_{x\to a}\frac{f(x)}{g(x)} = \lim_{x\to a}\frac{f'(x)}{g'(x)} \]

The same holds for one-sided limits, and when a is plus or minus infinity.

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 396 — Theorem 4.12

Here is the formal statement. Read the hypotheses as a checklist. Both functions must be differentiable near a, though not necessarily at a itself. Both must tend to zero. And the new limit, of the derivatives' quotient, must exist or be infinite.

The conclusion is that the original limit equals the new one. Notice the rule does not say the functions are equal, or that their derivatives are. It says two limits are equal, and only under those hypotheses.

The final sentence is what makes the rule so flexible: it also works for one-sided limits, and when x goes to plus or minus infinity instead of to a number. You will use every one of those versions in this lesson.

10. Reading Theorem 4.12 piece by piece

Notation

Annotate

On: \( \frac{0}{0}: \quad \lim_{x\to a}\frac{f(x)}{g(x)} = \lim_{x\to a}\frac{f'(x)}{g'(x)} \)

  • The ticket in. Substitute first; only if top and bottom BOTH tend to 0 (or both to ±∞, Theorem 4.13) may you continue.
  • The quotient you want. You are finding its LIMIT, not its derivative.
  • Differentiate the top and the bottom SEPARATELY. No quotient rule anywhere.
  • Holds when the right-hand limit exists or is ±∞. If the right side has no limit, the rule says nothing.

Step through the notes one at a time. The first one is the most important and the most skipped: the form must be zero over zero before you do anything. The rule does not check this for you. It will happily produce a number whether or not it was allowed to, as you will see in Example 4.40.

The third note is the second most common mistake. You differentiate the top on its own and the bottom on its own. There is no quotient rule, because you are not finding the derivative of the quotient.

The last note explains a subtle point you will meet later in the lesson: if the quotient of derivatives has no limit at all, the rule is simply silent. It does not say the original limit fails to exist.

11. Why it works: a proof in six lines

Concept

Take the special case where f, g and both derivatives are continuous near a, with g prime of a not zero. Continuity gives f of a and g of a both equal to zero, so they can be subtracted for free.

\[ \frac{f(x)}{g(x)} = \frac{f(x)-f(a)}{g(x)-g(a)} \]

\[ = \frac{\dfrac{f(x)-f(a)}{x-a}}{\dfrac{g(x)-g(a)}{x-a}} \]

\[ \to \frac{f'(a)}{g'(a)} \quad \text{(definition of the derivative)} \]

\[ = \lim_{x\to a}\frac{f'(x)}{g'(x)} \quad \text{(continuity of } f' \text{ and } g'\text{)} \]

Each quotient in the middle is a difference quotient: a slope. The proof is the tangent-line picture made exact.

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 396 — proof of Theorem 4.12

This proof covers the special case where everything is continuous, which is the case you will meet in almost every example. The general proof needs a stronger tool, the Cauchy mean value theorem, and is left to a later course.

The first move is a free one: since f of a and g of a are both zero, subtracting them changes nothing. The second move divides the top and the bottom by x minus a. Now the top is a difference quotient for f and the bottom is a difference quotient for g, and as x goes to a they become the derivatives at a.

Look back at the tangent-line slide. Each difference quotient is the slope of a secant line, and the proof is simply that picture with secant lines turning into tangent lines. The last step uses continuity of the derivatives to write the answer as a limit, which is the form the theorem states.

12. A caution about sine x over x

Intuition

The rule gives the limit of sine x over x in one line: cosine x over 1, which tends to 1. It is the right number, but it is not a proof.

\[ \frac{d}{dx}\sin x = \cos x \quad \text{was derived using} \quad \lim_{x\to 0}\frac{\sin x}{x} = 1 \]

Section 3.5 needed this very limit to find the derivative of sine. Using that derivative to prove the limit runs in a circle. The squeeze argument of Section 2.3 is the proof; the rule is a check.

It is tempting to use the rule as a proof that sine x over x tends to 1: the derivative of sine is cosine, cosine of 0 is 1, done. The number is right, but the argument is circular.

Go back to Section 3.5. To show that the derivative of sine is cosine, you needed the limit of sine h over h as h goes to 0. So the derivative of sine rests on this limit, and you cannot then turn around and use that derivative to prove the limit.

This is a good example of the difference between a calculation and a proof. For computing, the rule is fine and gives the correct value. For proving this particular limit, the squeeze theorem from Section 2.3 is the only honest route.

13. Trap: using the quotient rule

Trap

The trap

A common wrong first line:

\[ \lim \frac{f}{g} = \lim \frac{f'g - fg'}{g^2} \]

Wrong. That is the derivative OF the quotient.

The fix

The rule differentiates the top and the bottom separately and divides the results. The quotient rule answers a different question, the slope of f over g, and gives a different number.

\[ \lim \frac{f}{g} = \lim \frac{f'}{g'} \]

This mistake comes from the word derivative appearing near the word quotient. The quotient rule computes the derivative of f over g, which is the slope of the graph of the quotient. That is a completely different question from the limit of the quotient.

L'Hôpital's rule treats the top and the bottom as two separate functions. You differentiate each on its own and divide. There is no g squared in the denominator and no subtraction on top. If you see either, stop and start again.

14. Example 4.38(a): one minus cosine, over x

Worked example

Evaluate the limit by the rule.

\[ \lim_{x\to 0}\frac{1-\cos x}{x} \]

Substitute to check the form

Why: Cosine of 0 is 1, so the top vanishes, and so does the bottom.

\[ \frac{1-\cos 0}{0} = \frac{0}{0} \]

Differentiate the top and the bottom separately

Why: The derivative of minus cosine is sine; the derivative of x is 1.

\[ \lim_{x\to 0}\frac{1-\cos x}{x} = \lim_{x\to 0}\frac{\sin x}{1} \]

Substitute into the new quotient

Why: Nothing is indeterminate now.

\[ \frac{\sin 0}{1} = \frac{0}{1} = 0 \]

Check numerically

Why: At x equal to 0.1 the quotient is about 0.04996; at 0.01, about 0.005. It shrinks like half of x, heading to 0.

\[ \frac{1-\cos 0.1}{0.1} \approx 0.04996, \qquad \frac{1-\cos 0.01}{0.01} \approx 0.005 \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 397 — Example 4.38a

Start every rule problem the same way: substitute and write down the form you get. Here the top is one minus cosine of zero, which is zero, and the bottom is zero, so the rule is allowed.

Differentiate the top on its own. The derivative of 1 is 0 and the derivative of minus cosine is sine. Differentiate the bottom on its own to get 1. The new quotient is sine x over 1, and substituting now gives a plain number, zero.

The numerical check is worth making a habit. The values at 0.1 and 0.01 are about half of x, so they shrink to zero in step with x. That also explains the answer: near 0, one minus cosine x is about half of x squared, so dividing by x leaves about half of x.

15. Example 4.38(b): sine of pi x over ln x

Worked example

The limit from the tangent-line picture, now done by the rule.

\[ \lim_{x\to 1}\frac{\sin(\pi x)}{\ln x} \]

Check the form

Why: Sine of pi is 0 and the logarithm of 1 is 0.

\[ \frac{\sin \pi}{\ln 1} = \frac{0}{0} \]

Differentiate separately

Why: The chain rule brings out a factor pi on top.

\[ \lim_{x\to 1}\frac{\sin(\pi x)}{\ln x} = \lim_{x\to 1}\frac{\pi\cos(\pi x)}{1/x} \]

Clear the fraction in the denominator

Why: Dividing by one over x is multiplying by x.

\[ = \lim_{x\to 1} \pi x\cos(\pi x) \]

Substitute

Why: Cosine of pi is minus 1.

\[ = \pi(1)(-1) = -\pi \]

Check against the slopes and a number

Why: The slopes in the picture were minus pi and 1. At x equal to 1.001 the quotient is about minus 3.1432, close to minus pi, which is about minus 3.1416.

\[ \frac{\sin(1.001\pi)}{\ln 1.001} \approx -3.1432 \approx -\pi \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 397 — Example 4.38b

This is the example the tangent-line picture predicted would give minus pi. Check the form first: sine of pi is 0 and ln of 1 is 0.

The top needs the chain rule, which brings out a factor of pi. The bottom's derivative is one over x. Dividing by one over x is the same as multiplying by x, and that tidies the new quotient into pi x times cosine of pi x. Now substitute: cosine of pi is minus 1, so the limit is minus pi.

Compare this with the picture. The slopes of the tangent lines at x equal to 1 were minus pi and 1, and their ratio is exactly the answer. The rule and the picture are the same idea.

16. Example 4.38(c): zero over zero at infinity

Worked example

The rule also works as x grows without bound.

\[ \lim_{x\to\infty}\frac{e^{1/x}-1}{1/x} \]

Check the form

Why: One over x tends to 0, so e to it tends to 1, and the top tends to 0 as well.

\[ \frac{e^{0}-1}{0} = \frac{0}{0} \]

Differentiate the top

Why: The chain rule: e to the one over x, times the derivative of one over x.

\[ \frac{d}{dx}\left(e^{1/x}-1\right) = e^{1/x}\left(-\frac{1}{x^2}\right) \]

Differentiate the bottom

Why: The derivative of one over x.

\[ \frac{d}{dx}\left(\frac1x\right) = -\frac{1}{x^2} \]

Divide and cancel

Why: The factor minus one over x squared is common to both.

\[ \lim_{x\to\infty}\frac{e^{1/x}(-1/x^2)}{-1/x^2} = \lim_{x\to\infty} e^{1/x} = e^0 = 1 \]

Check with numbers

Why: At x equal to 10 the quotient is 1.0517; at 100, 1.0050; at 1000, 1.0005. It closes in on 1.

\[ x = 10: 1.0517, \quad x = 100: 1.0050, \quad x = 1000: 1.0005 \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 397 — Example 4.38c

The rule does not need x to approach a finite number. Here x grows without bound, and the top and the bottom both shrink to zero, so this is still zero over zero.

The derivatives look messy at first: the top needs the chain rule and brings out a factor minus one over x squared, and the bottom is minus one over x squared on its own. But they share that factor, so it cancels completely, leaving e to the one over x, which tends to e to the zero, which is 1.

Here is another way to see it. Put t equal to one over x. Then t goes to zero, and the quotient becomes e to the t minus 1, over t, which is the difference quotient defining the derivative of e to the t at 0. That derivative is 1.

17. Example 4.38(d): twice in a row

Worked example

Sometimes one application leaves another zero over zero.

\[ \lim_{x\to 0}\frac{\sin x - x}{x^2} \]

Check the form

Why: Sine of 0 minus 0 is 0, and 0 squared is 0.

\[ \frac{0-0}{0} = \frac00 \]

Apply the rule once

Why: Differentiate top and bottom separately.

\[ \lim_{x\to 0}\frac{\sin x - x}{x^2} = \lim_{x\to 0}\frac{\cos x - 1}{2x} \]

Re-check the form

Why: Cosine of 0 minus 1 is 0, and 2 times 0 is 0: still indeterminate, so the rule may be used again.

\[ \frac{\cos 0 - 1}{2\cdot 0} = \frac00 \]

Apply the rule again

Why: Differentiate the new top and bottom.

\[ \lim_{x\to 0}\frac{\cos x - 1}{2x} = \lim_{x\to 0}\frac{-\sin x}{2} \]

Substitute, and stop

Why: The form is determined now.

\[ \frac{-\sin 0}{2} = 0 \]

Check numerically

Why: At 0.1 the quotient is about minus 0.01666, at 0.01 about minus 0.001667: roughly minus x over 6, heading to 0.

\[ x = 0.1: -0.01666, \qquad x = 0.01: -0.001667 \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 397 — Example 4.38d

After one application, the new quotient is cosine x minus 1, over 2x. Before doing anything else, substitute again. It is zero over zero a second time, so you are allowed to apply the rule a second time.

The second application gives minus sine x over 2, and substituting gives zero. That is a determined value, so you stop.

The pattern to build is: substitute, apply, substitute, and only apply again if substituting still gives an indeterminate form. The re-check between applications is not a formality. In the error-analysis slide later in this part, you will see what happens when it is skipped.

18. Checkpoint 4.37: x over tan x

Prediction

\[ \lim_{x\to 0}\frac{x}{\tan x} \]

Predict first

Check the form, apply the rule once, and predict the limit.

  • 0
  • 1
  • ∞
  • The limit does not exist

Correct: 1

Why: Both parts tend to zero. The derivatives are 1 and secant squared of x, so the new quotient is cosine squared of x, which tends to 1. Numerically, at x equal to 0.01 the quotient is 0.99997.

\[ \lim_{x\to 0}\frac{x}{\tan x} = \lim_{x\to 0}\frac{1}{\sec^2 x} = \lim_{x\to 0}\cos^2 x = 1 \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 397 — Checkpoint 4.37

Commit to an answer before revealing. Check the form: x and tan x both tend to zero, so the rule applies.

The derivative of x is 1 and the derivative of tan x is secant squared x. So the new quotient is one over secant squared, which is cosine squared. Cosine of 0 is 1, so the limit is 1.

This matches what you already know: tan x is sine x over cosine x, and sine x is almost x near zero, so tan x is almost x too. Their ratio should be close to 1, and the numbers agree.

19. Infinity over infinity, and when not to

Section

Part 2

20. Theorem 4.13: the infinity over infinity case

Concept

The rule has a second ticket in: top and bottom both growing without bound.

L'Hôpital's rule, infinity over infinity case — If f and g are differentiable near a, except possibly at a, and each tends to plus or minus infinity as x tends to a, then the limit of f over g equals the limit of f prime over g prime, provided the latter exists or is infinite.

\[ \lim_{x\to a}|f(x)| = \infty = \lim_{x\to a}|g(x)| \quad\Longrightarrow\quad \lim_{x\to a}\frac{f(x)}{g(x)} = \lim_{x\to a}\frac{f'(x)}{g'(x)} \]

Again a may be infinite and the limit may be one-sided. The symbol infinity over infinity names a race between two unbounded quantities, not a division.

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, pp. 397-398 — Theorem 4.13

The second version of the rule covers quotients where the top and the bottom both grow without bound, in either direction. The conclusion is the same: the limit of the quotient equals the limit of the quotient of the derivatives, when that limit exists or is infinite.

The proof is harder than the zero over zero case and you do not need it, but the reason it holds is similar. Two unbounded quantities are in a race, and their derivatives measure how fast each is running.

As with zero over zero, the notation infinity over infinity is shorthand for a situation. Infinity is not a number, so you are not dividing anything by anything. You are naming a form, and the form is what gives you permission to use the rule.

21. Example 4.39(a): a ratio of two lines

Worked example

\[ \lim_{x\to\infty}\frac{3x+5}{2x+1} \]

Check the form

Why: Both are first-degree polynomials with positive leading coefficients.

\[ 3x+5 \to \infty, \qquad 2x+1 \to \infty \]

Differentiate separately

Why: Each derivative is a constant.

\[ \lim_{x\to\infty}\frac{3x+5}{2x+1} = \lim_{x\to\infty}\frac{3}{2} = \frac32 \]

Check by the older method

Why: Divide the top and the bottom by x, as in Section 2.3.

\[ \frac{3x+5}{2x+1} = \frac{3 + 5/x}{2 + 1/x} \to \frac{3+0}{2+0} = \frac32 \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 398 — Example 4.39a

Two lines with positive slopes both grow without bound, so this is infinity over infinity and the rule applies. The derivatives are the constants 3 and 2, and the answer is three halves.

The check uses the method from Section 2.3: divide the top and the bottom by the highest power of x in the bottom. It gives the same three halves.

Both methods are correct. For ratios of polynomials the old method is often just as fast, and you should use whichever is quicker. The rule becomes essential when the top and bottom are different kinds of function, like a logarithm over a power, where no division trick works.

22. Example 4.39(b): ln x over cot x

Worked example

\[ \lim_{x\to 0^+}\frac{\ln x}{\cot x} \]

Check the form

Why: The logarithm dives to minus infinity; cotangent climbs to plus infinity.

\[ \ln x \to -\infty, \qquad \cot x \to +\infty \]

Apply the rule

Why: The derivative of cotangent is minus cosecant squared.

\[ \lim_{x\to 0^+}\frac{\ln x}{\cot x} = \lim_{x\to 0^+}\frac{1/x}{-\csc^2 x} = \lim_{x\to 0^+}\frac{1}{-x\csc^2 x} \]

Do not stop at a product

Why: x tends to 0 while cosecant squared blows up: undecided. Rewrite with sine instead of cosecant.

\[ \frac{1}{-x\csc^2 x} = \frac{\sin^2 x}{-x} \]

Re-check, and apply again

Why: Now the top and the bottom both tend to 0.

\[ \lim_{x\to 0^+}\frac{\sin^2 x}{-x} = \lim_{x\to 0^+}\frac{2\sin x\cos x}{-1} = \frac{0}{-1} = 0 \]

Check numerically

Why: At x equal to 0.1 the quotient is about minus 0.231; at 0.001 about minus 0.0069. Small, negative and shrinking.

\[ x = 0.1: -0.231, \qquad x = 0.001: -0.0069 \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, pp. 398-399 — Example 4.39b

The first application is fine: it is minus infinity over plus infinity, and the derivatives give one over x divided by minus cosecant squared. But look at what you get: one over minus x times cosecant squared. The x tends to zero and the cosecant squared blows up, so the bottom is a product whose limit you do not know.

Do not apply the rule to a product. Rewrite instead: cosecant is one over sine, so the quotient becomes sine squared x over minus x, and that is zero over zero. Now the rule applies again and gives 2 sine x cosine x over minus 1, which tends to 0.

The lesson is that each application can leave an expression that needs algebra before the next step. Always simplify, then re-check the form.

23. Checkpoint 4.38: ln x over 5x

Estimation

\[ \lim_{x\to\infty}\frac{\ln x}{5x} \]

x101001000
ln x / (5x)0.04610.00920.0014

Predict first

Both parts grow without bound. From the table and one application of the rule, what is the limit?

  • 1/5
  • 0
  • ∞
  • 1

Correct: 0

Why: The derivatives are one over x and 5, so the new quotient is one over 5x, which tends to 0. The table agrees: the values fall by a factor of about five for every factor of ten in x. The logarithm grows, but far more slowly than 5x.

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 399 — Checkpoint 4.38

Make an estimate from the table before you reveal. Each time x is multiplied by ten, the quotient drops by roughly a factor of five. That is strong evidence the values are heading to zero.

The rule makes it certain. The derivative of ln x is one over x and the derivative of 5x is 5, so the new quotient is one over 5x, which clearly tends to zero.

This is your first taste of the growth-rate story in Part 5. A logarithm does grow without bound, but it grows so slowly that any positive multiple of x leaves it behind.

24. Example 4.40: when the rule does not apply

Worked example

Show that the limit cannot be found by the rule.

\[ \lim_{x\to 1}\frac{x^2+5}{3x+4} \]

Check the form

Why: Neither part tends to 0 or to infinity.

\[ 1^2 + 5 = 6, \qquad 3(1)+4 = 7 \]

See what the misapplied rule would give

Why: Differentiating anyway produces a new quotient with a different value.

\[ \lim_{x\to 1}\frac{2x}{3} = \frac23 \quad \text{(not the limit)} \]

Figure (svg): Two curves on x from 0 to 2: the true quotient, x squared plus 5 over 3x plus 4, passing through the point (1, 6/7), and the line 2x over 3 from the misapplied rule, passing through the point (1, 2/3), well below.

The quotient of the derivatives is a different function that happens to exist at x equals 1. Nothing about it is related to the true limit, because the form was never indeterminate.

Check the true value by substitution

Why: The quotient is continuous at 1, so substitution is the whole answer. At x equal to 1.001 the quotient is 0.85706, next to six sevenths, 0.85714.

\[ \lim_{x\to 1}\frac{x^2+5}{3x+4} = \frac67 \ne \frac23 \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 399 — Example 4.40

Here the check at the start fails. The top tends to 6 and the bottom to 7, so the form is six sevenths: an ordinary number. The limit is six sevenths, and you are finished.

Now see what happens if you ignore the check. Differentiating gives 2x over 3, and at x equal to 1 that is two thirds. The figure shows why the two answers disagree: the quotient of derivatives is a completely different function, and nothing links its value at 1 to the limit you wanted.

The danger is that the wrong computation looks perfectly reasonable. No error message appears, and two thirds is a plausible number. The only protection is the form check before the first application.

25. Trap: the rule on a determined form

Trap

The trap

A quick-looking computation:

\[ \lim_{x\to 0}\frac{x+1}{x+2} = \lim_{x\to 0}\frac{1}{1} \]

\[ = 1 \]

Wrong. The form was one half, not undecided.

The fix

Substituting gives one over two: a number, so the limit is one half. The rule was never allowed. It still printed a confident answer, which is why the form check is not optional.

\[ \frac{0+1}{0+2} = \frac12 \]

This is the same error as Example 4.40 in its smallest form. Substituting zero gives one over two, which is a perfectly good number. So the limit is one half, and the rule was never permitted.

Applying it anyway gives one over one, which is 1, and it looks just as clean as a correct answer. That is what makes this trap dangerous: a wrong use of the rule does not produce an obviously broken result, it produces a confident wrong one. One substitution at the start prevents it every time.

26. Checkpoint 4.39: cos x over x from the right

Worked example

Explain why the rule cannot be used, then evaluate by other means.

\[ \lim_{x\to 0^+}\frac{\cos x}{x} \]

Check the form

Why: The top tends to 1, not 0. This is one over zero, which is not indeterminate.

\[ \cos x \to 1, \qquad x \to 0^+ \]

Reason about the sizes

Why: A quantity near 1 divided by a tiny positive number is huge and positive.

\[ \frac{\cos x}{x} \approx \frac{1}{x} \to +\infty \]

Figure (svg): The curve y equals cosine x over x for x from 0.07 to 1.5: it plunges down from the top of the window near x equals 0 and falls to about 0.05 at x equals 1.5.

A numerator near 1 over a tiny positive denominator is huge. No indeterminacy, no rule, just a vertical asymptote.

Check with numbers

Why: At x equal to 0.1 the quotient is 9.95; at 0.01 it is 99.995.

\[ \frac{\cos 0.1}{0.1} \approx 9.95, \qquad \frac{\cos 0.01}{0.01} \approx 99.995 \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 399 — Checkpoint 4.39

The top tends to 1, not to zero. So the form is one over zero, and one over zero is not indeterminate: it always means the quotient is blowing up. The rule does not apply, and you do not need it.

What remains is to find the sign. The bottom approaches zero through positive values because x comes from the right, and the top is close to 1 and positive. A positive number divided by a tiny positive number is huge and positive, so the limit is plus infinity.

The graph shows exactly that: a vertical asymptote at x equal to zero, with the curve rising without bound as you approach it from the right.

27. Apply, re-check, apply, stop

Fill the middle

Exercise-style: two applications, with a re-check in between.

Fill in the blanks

\lim_2x\frac\frac{1}{2}___ = \lim____\frac______} } = \lim____\frac______ = ___

Why: The bottom x squared differentiates to 2x. Sine x over 2x is still zero over zero, so the rule is applied again, giving cosine x over 2, which is determined: one half. At x equal to 0.01 the original quotient is 0.49999.

Fill in both blanks. The first is the derivative of the original bottom, x squared. The second is the final value.

After the first application you have sine x over 2x. That is still zero over zero, so the rule may be applied again, giving cosine x over 2. Substituting now gives one half, a determined value. You stop there.

This limit is worth remembering on its own: near zero, one minus cosine x is about half of x squared. You used that fact to explain Example 4.38(a), and you will meet it again when you study Taylor polynomials.

28. Find the error: one application too many

Error analysis

Exercise 377, worked by someone who never re-checks the form.

Annotate

On: \( \frac{e^x-x-1}{x^2} \to \frac{e^x-1}{2x} \to \frac{e^x}{2} \to \frac{e^x}{0} \)

  • Legal: at x = 0 the top is 1 − 0 − 1 = 0 and the bottom is 0, a genuine 0/0.
  • Legal: e⁰ − 1 = 0 over 2·0 = 0, still 0/0.
  • STOP here: substituting gives 1/2, a determined value. The limit is 1/2.
  • Illegal: the form 1/2 is not indeterminate, so the rule may not be applied, and it produces nonsense.

\[ \lim_{x\to 0}\frac{e^x-x-1}{x^2} = \frac12 \quad (x = 0.01: \; 0.5017) \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 408 — Exercise 377

Read the chain of arrows and decide which ones are legal before you open the notes. Each arrow is one application of the rule, and each application needs its own zero over zero.

The first two arrows are fine: both times, substituting gave zero over zero. But after the second arrow the quotient is e to the x over 2, and substituting gives one half. That is the answer. The third arrow applies the rule to a form that is not indeterminate, exactly the mistake of Example 4.40, and the result, e to the x over zero, is meaningless.

The fix is a habit: substitute after every application, and let the result decide whether you continue. The numerical check, 0.5017 at x equal to 0.01, confirms one half.

29. Forms that only look indeterminate

Concept

A form is undecided only when two effects pull in opposite directions. When they pull the same way, the limit is decided.

formwhy it is decidedlimit
0 / ∞a tiny top over a huge bottom0
1 / 0⁺a fixed top over a tiny positive bottom+∞
∞ + ∞, ∞ · ∞both pieces push upward+∞
0⁺ to the power ∞a small base shrinks further each time it multiplies0
∞ to the power ∞a huge base raised to a huge power+∞

The undecided seven are zero over zero, infinity over infinity, zero times infinity, infinity minus infinity, zero to the zero, infinity to the zero, and one to the infinity.

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 399 — the list of indeterminate forms

Not every strange-looking form is undecided. The test is whether the two parts of the expression pull the limit in opposite directions. If they pull the same way, the answer is fixed.

Take zero over infinity: a small top over a huge bottom only gets smaller, so the limit is zero. Infinity plus infinity only grows. A base near zero raised to a huge power is a small number multiplied by itself many times, which shrinks to zero. None of these needs the rule.

Contrast zero times infinity: one factor drags toward zero and the other toward infinity, and either can win. That is the mark of the seven genuine indeterminate forms listed at the bottom of the slide.

30. Undecided, or already decided?

Sorting

Sort into buckets

Each form comes from a limit. Sort it: does it still need work, or is the answer already fixed?

Indeterminate: needs work
0 · ∞; ∞ − ∞; 1 to the power ∞; ∞⁰
Determined: answer fixed
0 / ∞; ∞ + ∞; 0⁺ to the power ∞; 1 / 0⁺
undec
0 · ∞, ∞ − ∞, 1 to the ∞ and ∞⁰ each set two effects against each other, so the pieces alone cannot decide the limit.
dec
0/∞ → 0, ∞ + ∞ → ∞, 0⁺ to the ∞ → 0, and 1/0⁺ → +∞: both effects push the same way.

For each form, ask whether its two parts compete or cooperate. Competing parts make it indeterminate. Cooperating parts decide the answer at once.

Two of the determined ones are easy to misfile. Zero to the power infinity looks like zero to the zero or one to the infinity, but a base that is already close to zero only shrinks as you raise it to larger powers, so the limit is zero. And one over zero from the right is never undecided: it always blows up, as in Checkpoint 4.39.

The indeterminate ones on the list, zero times infinity, infinity minus infinity, one to the infinity and infinity to the zero, are the subject of the next two parts.

31. When the rule goes silent

Counterexample

\[ \lim_{x\to\infty}\frac{x + \sin x}{x} \]

Discussion prompt

This is a genuine infinity over infinity. Apply the rule and see what happens. Then find the limit another way. Does this break the rule?

This example tests how carefully you read the theorem. The top and the bottom both grow without bound, so the form is legal. The rule gives one plus cosine x over 1, which swings between zero and two forever and has no limit.

Does that mean the original limit does not exist? No. Divide through by x and the quotient is 1 plus sine x over x. The second term is squeezed to zero, so the limit is 1.

Look back at the hypothesis: the rule applies only if the limit of the derivatives' quotient exists or is infinite. Here it does not, so the rule makes no claim at all. When the rule fails to produce a limit, go back to other methods; never conclude that there is no limit.

32. Products and differences

Section

Part 3

33. Zero times infinity: a tug of war

Picture it

Figure (svg): Three curves 3x squared over x to the n plus 1 for x from 0 to 10: with n equal to 1 the curve climbs off the top; with n equal to 2 it levels at the dashed line y equals 3; with n equal to 3 it rises to a peak near 1.59 and falls back toward 0.

In every case one factor tends to zero and the other to infinity. Which one wins depends on the exponent, so the form zero times infinity cannot decide it.

\[ \frac{1}{x^n+1} \to 0, \quad 3x^2 \to \infty, \quad \frac{3x^2}{x^n+1} \to \begin{cases} \infty & n = 1 \\ 3 & n = 2 \\ 0 & n = 3 \end{cases} \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 400 — the indeterminate form 0 · ∞

Each curve is the product of one over x to the n plus 1, which shrinks to zero, and 3x squared, which grows without bound. So every one of them has the form zero times infinity.

Now look at the three fates. When n is 1, the shrinking factor is too weak and the product climbs forever. When n is 2, the two effects balance exactly and the product settles at 3. When n is 3, the shrinking factor wins and the product falls to zero.

The form alone cannot tell these apart, which is exactly what indeterminate means. To decide a particular one, you need to compare rates, and comparing rates is the rule's job once you rewrite the product as a quotient.

34. Turn a product into a quotient

Concept

The rule only accepts quotients. A product is turned into one by moving a factor to the bottom as its reciprocal.

\[ f \cdot g = \frac{f}{1/g} \qquad \text{or} \qquad f \cdot g = \frac{g}{1/f} \]

If f tends to 0 and g to infinity, then one over g tends to 0, so the first version is zero over zero, and the second is infinity over infinity. Both are legal; usually only one is useful.

Rule of thumb: keep the factor whose derivative is simpler on top, and send the one that is simpler as a reciprocal to the bottom. A logarithm belongs on top.

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 400 — rewriting 0 · ∞ as a quotient

The algebra is one line: any factor can be moved to the denominator as its reciprocal. If one factor tends to zero and the other to infinity, then one over the infinite one tends to zero, and one over the zero one tends to infinity. So you can choose to make zero over zero or infinity over infinity.

Both rewrites are always legal, but they are not equally good. The rule replaces top and bottom by their derivatives, and you want those derivatives to be simpler, not more complicated.

A logarithm is the clearest case. Its derivative, one over x, is simpler than it is, so keep the logarithm on top. Its reciprocal, one over ln x, has an ugly derivative, so do not send it to the bottom. The next example and the prediction after it show the difference.

35. Example 4.41: x ln x from the right

Worked example

\[ \lim_{x\to 0^+} x\ln x \]

Identify the form

Why: x shrinks to 0 while the logarithm dives to minus infinity.

\[ 0 \cdot (-\infty) \]

Rewrite as a quotient

Why: Keep the logarithm on top and send x down as one over x.

\[ x\ln x = \frac{\ln x}{1/x}, \qquad \frac{-\infty}{\infty} \]

Apply the rule

Why: The derivative of one over x is minus one over x squared.

\[ \lim_{x\to 0^+}\frac{\ln x}{1/x} = \lim_{x\to 0^+}\frac{1/x}{-1/x^2} \]

Simplify the compound fraction

Why: Multiply the top by minus x squared.

\[ \frac{1/x}{-1/x^2} = -x \]

Take the limit

Why: Minus x tends to 0.

\[ \lim_{x\to 0^+}(-x) = 0 \]

Figure (svg): The curve y equals x ln x for x from 0 to 2: it starts at a hollow point at the origin, dips to a minimum of minus 1 over e at x equals 1 over e, crosses the axis at x equals 1 and rises to about 1.39 at x equals 2.

The logarithm dives to minus infinity, but the factor x drags it back. The product returns to zero, as the rule predicts.

Check numerically

Why: At 0.1 the product is about minus 0.230; at 0.001 about minus 0.0069. Negative, and closing in on 0.

\[ 0.1\ln 0.1 \approx -0.230, \qquad 0.001\ln 0.001 \approx -0.0069 \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 400 — Example 4.41 and Figure 4.72

The logarithm dives toward minus infinity as x shrinks, while x itself goes to zero. Which effect wins is not obvious. Rewrite with the logarithm on top: ln x over one over x is minus infinity over infinity.

One application gives one over x divided by minus one over x squared. Simplify before substituting: multiplying the top and bottom by x squared gives minus x, which tends to zero. So x wins the race, and the product goes to zero.

The graph shows the product dipping to a minimum of minus one over e and then returning to the origin from below. Keep this limit in your pocket. It comes back twice in Part 4, where x to the x and other powers depend on it.

36. Which way up?

Prediction

\[ x\ln x = \frac{\ln x}{1/x} \qquad \text{or} \qquad x\ln x = \frac{x}{1/\ln x} \]

Predict first

Both rewrites are legal. Which one lets the rule finish the problem in one application?

  • ln x over 1/x
  • x over 1/ln x
  • Both, equally quickly
  • Neither; the rule cannot handle a logarithm

Correct: ln x over 1/x

Why: With the logarithm on top, its derivative one over x combines with minus one over x squared to give minus x at once. The other way, the bottom one over ln x differentiates to minus one over x times ln x squared, and the new quotient is minus x times ln x squared: another zero times infinity, and a worse one.

\[ \frac{x}{1/\ln x} \;\to\; \frac{1}{-1/(x(\ln x)^2)} = -x(\ln x)^2 \quad \text{(worse)} \]

Make a choice before revealing. Both rewrites are algebraically correct, so the question is only which one leads somewhere.

With ln x on top, the derivatives are one over x and minus one over x squared, and the quotient simplifies to minus x in one line. With x on top, the bottom is one over ln x, and its derivative is minus one over x times ln x squared. The new quotient is minus x times ln x squared: another zero times infinity, and worse than the one you started with.

So when you rewrite a product, glance ahead at what the derivatives will look like. If the first choice makes things worse, switch. The textbook does exactly that in Example 4.44.

37. Checkpoint 4.40: x cot x

Step zero

\[ \lim_{x\to 0} x\cot x \]

Discussion prompt

Before any differentiating: what form is this, and what single rewrite turns it into something the rule accepts? Then finish it.

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 401 — Checkpoint 4.40

Answer the first question before doing any calculus. x shrinks to zero and cotangent blows up near zero, so this is zero times infinity.

The rewrite is free here, because cotangent is already one over tangent. So x times cotangent x is x over tan x, and that is exactly Checkpoint 4.37: zero over zero, one application, cosine squared, limit 1.

The point of the step-zero question is that recognising the form and choosing the rewrite is most of the work. Once the product is a quotient, the calculus is routine.

38. Infinity minus infinity is a race

Concept

Figure (svg): Three curves: 3x cubed minus 3x squared minus 5 climbs to plus infinity; 3x squared minus 3x squared minus 5 is the flat line at minus 5; 3x minus 3x squared minus 5 falls to minus infinity. Axes for x from 0 to 4.

Both 3x to the n and 3x squared plus 5 grow without bound, yet their difference can go up, stay at minus 5, or go down. Infinity minus infinity is not zero; it is not anything yet.

\[ \lim_{x\to\infty}\left(3x^n - (3x^2+5)\right) = \begin{cases} \infty & n = 3 \\ -5 & n = 2 \\ -\infty & n = 1 \end{cases} \]

To use the rule, turn the difference into a single fraction: combine over a common denominator, or factor out the bigger piece.

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 401 — the indeterminate form ∞ − ∞

In each of these, both 3x to the n and 3x squared plus 5 grow without bound, so each difference has the form infinity minus infinity. Yet the three curves end up at plus infinity, at minus 5, and at minus infinity.

The reason is that infinity is not a number that can be subtracted from itself. What matters is how fast each part grows. If the first part grows faster, the difference grows; if they grow at exactly the same rate, the difference can settle; if the second part grows faster, the difference falls.

To bring in the rule, you need a quotient. For a difference of fractions, combine them over a common denominator. For other differences, factor out the larger piece.

39. Example 4.42: one over x squared minus one over tan x

Worked example

\[ \lim_{x\to 0^+}\left(\frac{1}{x^2} - \frac{1}{\tan x}\right) \]

Identify the form

Why: Both terms blow up to plus infinity.

\[ \infty - \infty \]

Combine over the common denominator

Why: The common denominator is x squared times tan x.

\[ \frac{1}{x^2} - \frac{1}{\tan x} = \frac{\tan x - x^2}{x^2\tan x} \]

Re-check the form

Why: Top and bottom both tend to 0.

\[ \frac{0 - 0}{0 \cdot 0} = \frac00 \]

Apply the rule

Why: The bottom needs the product rule.

\[ \lim_{x\to 0^+}\frac{\tan x - x^2}{x^2\tan x} = \lim_{x\to 0^+}\frac{\sec^2 x - 2x}{x^2\sec^2 x + 2x\tan x} \]

Substitute

Why: The top tends to 1; the bottom tends to 0 through positive values.

\[ \frac{\to 1}{\to 0^+} \;\Longrightarrow\; +\infty \]

Figure (svg): Two panels for x between 0 and 1.2. Left: the curves 1 over x squared and 1 over tan x, both shooting up near 0, the first much faster. Right: their difference, 1 over x squared minus 1 over tan x, also shooting up near 0.

Both terms blow up at the origin, but one over x squared blows up like the square of one over x, much faster than one over tan x, which behaves like one over x. The difference follows the faster one.

Check numerically

Why: At x equal to 0.1 the difference is about 90; at 0.01 about 9900. It grows like one over x squared, as the figure shows.

\[ x = 0.1: 90.0, \qquad x = 0.01: 9900 \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 401 — Example 4.42

Both terms blow up as x approaches zero from the right, so the form is infinity minus infinity. Combine the fractions: the common denominator is x squared tan x, and the numerator is tan x minus x squared.

Re-check the form: the top and bottom both tend to zero. Apply the rule, using the product rule on the bottom. The new top tends to 1, and the new bottom tends to zero through positive values. That is one over zero from the right, which is plus infinity.

The figure explains the answer without any calculus. Near zero, tan x is about x, so one over tan x behaves like one over x, while the first term behaves like one over x squared, which is far bigger. The larger infinity wins, and the difference blows up.

40. Checkpoint 4.41: one over x minus one over sin x

Worked example

\[ \lim_{x\to 0^+}\left(\frac{1}{x} - \frac{1}{\sin x}\right) \]

Combine into one fraction

Why: Infinity minus infinity; the common denominator is x sin x.

\[ \frac{1}{x} - \frac{1}{\sin x} = \frac{\sin x - x}{x\sin x} \]

Apply the rule once

Why: Zero over zero. Product rule on the bottom.

\[ \lim_{x\to 0^+}\frac{\sin x - x}{x\sin x} = \lim_{x\to 0^+}\frac{\cos x - 1}{\sin x + x\cos x} \]

Re-check and apply again

Why: Still zero over zero: cosine of 0 minus 1 is 0, and so is the bottom.

\[ \lim_{x\to 0^+}\frac{\cos x - 1}{\sin x + x\cos x} = \lim_{x\to 0^+}\frac{-\sin x}{2\cos x - x\sin x} \]

Substitute

Why: The bottom tends to 2, which is not zero.

\[ \frac{-\sin 0}{2\cos 0 - 0} = \frac{0}{2} = 0 \]

Check numerically

Why: At 0.1 the difference is about minus 0.0167; at 0.01 about minus 0.00167. The two infinities cancel almost exactly, leaving about minus x over 6.

\[ x = 0.1: -0.0167, \qquad x = 0.01: -0.00167 \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 402 — Checkpoint 4.41

This looks like the previous example, but the two terms are much more evenly matched: sine x is extremely close to x near zero, so one over x and one over sine x are almost equal.

Combine into one fraction and the rule is needed twice. After the first application you still have zero over zero, so re-check and apply again. The second time, the bottom tends to 2, and the top tends to zero, so the limit is zero.

The numbers show just how evenly matched the terms are. At x equal to 0.01 each term is about a hundred, and their difference is only about minus 0.00167, roughly minus x over 6. Compare Example 4.42, where the terms were mismatched and the difference blew up.

41. Trap: infinity minus infinity is zero

Trap

The trap

The tempting shortcut:

\[ \frac{1}{x} - \frac{1}{\sin x} \]

\[ \to \infty - \infty = 0 \]

Wrong reasoning, even though 0 happens to be the answer here.

The fix

Infinity is not a number, so it cannot cancel. Example 4.42 has the same form and its limit is plus infinity; the n equal to 2 curve gave minus 5. Combine into one fraction and let the rule decide.

\[ \frac{1}{x^2} - \frac{1}{\tan x} \to +\infty \]

The shortcut on the left happens to land on the right number for this particular limit, which makes it more dangerous, not less. The same reasoning applied to Example 4.42 would give zero when the true answer is plus infinity.

Infinity is not a quantity that cancels with itself. The expression infinity minus infinity only records that two parts are growing; it says nothing about which grows faster. The rule for this form is: combine into a single fraction, then let the rule or the algebra decide.

42. Match each limit to its rewrite

Matching

Match the pairs

  • a. x ln x as x → 0⁺
  • b. 1/x − 1/sin x as x → 0⁺
  • c. x² times e to the −x, as x → ∞
  • d. x to the 1/x, as x → ∞
  • w. (ln x)/(1/x): ∞/∞
  • x. (sin x − x)/(x sin x): 0/0
  • y. x²/eˣ: ∞/∞
  • z. exp of (ln x)/x: take ln first

Why: Products move a factor to the bottom (x ln x, and x² times e to the minus x, where the negative exponent is already a reciprocal). A difference is combined over a common denominator. A power is logged first, turning the exponent into a product. Exercise 387's answer is 0.

Before matching, name the form of each limit on the left. That tells you which kind of rewrite to look for.

The two products become quotients by moving a factor to the bottom. For x squared times e to the minus x, the negative exponent already is a reciprocal, so the rewrite is x squared over e to the x, which you will meet again as Example 4.45(a). The difference is combined over a common denominator. The power x to the one over x has a moving base and a moving exponent, so the move is to take the logarithm first.

Notice that every route ends in the same place: a quotient that is zero over zero or infinity over infinity. The rule itself only ever handles those two forms. Everything else in this lesson is a way of getting there.

43. The exponential forms

Section

Part 4

44. One to the infinity is not one

Concept

Figure (svg): Three curves for x from 1 to 20: (1 + 1/x) to the x rises toward the dashed line at e; (1 + 1/x) to the x squared shoots off the top; (1 + 1/x squared) to the x falls toward 1.

Every base here tends to 1 and every exponent grows without bound, yet the limits are e, infinity and 1. The race between the base and the exponent decides.

\[ \left(1+\tfrac1x\right)^{x} \to e, \qquad \left(1+\tfrac1x\right)^{x^2} \to \infty, \qquad \left(1+\tfrac{1}{x^2}\right)^{x} \to 1 \]

One raised to any power is one, but a base that is only close to one, raised to a growing power, can drift anywhere. Zero to the zero and infinity to the zero are races of the same kind.

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 402 — the forms 0⁰, ∞⁰ and 1 to the ∞

It is natural to think one to any power is one. That is true for the number one exactly. But in a limit the base is only approaching one, and it is raised to a power that keeps growing. Those two effects compete.

The figure shows three examples with the same form. When the base's excess over one is one over x and the exponent is x, the two balance and the limit is e, the very definition of e you met in Chapter 1. When the exponent grows faster, like x squared, the power blows up. When the base's excess shrinks faster, like one over x squared, the power settles back to one.

Zero to the zero and infinity to the zero are indeterminate for the same reason: a base and an exponent pulling in opposite directions.

45. Bring the exponent down with a logarithm

Concept

The rule needs a quotient, and a logarithm turns a power into a product.

\[ y = f(x)^{g(x)} \]

\[ \ln y = g(x)\ln f(x) \]

That product is a zero times infinity form; rewrite it and apply the rule. Suppose its limit is L. The exponential is continuous, so exponentiating brings the answer back:

\[ \lim_{x\to a}\ln y = L \quad\Longrightarrow\quad \lim_{x\to a} y = e^{L} \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 402 — the logarithm method

The rule only handles quotients, and a power is not a quotient. The logarithm is the bridge: it turns a power into a product, and you already know how to turn a product into a quotient.

So the method has three steps. Take the natural log of the expression. Find the limit of that log, which is usually a zero times infinity form. Then undo the log by raising e to the result.

The last step relies on continuity of the exponential function: if ln y approaches L, then y, which is e to the ln y, approaches e to the L. It is short, but it is where most mistakes happen, as you will see in a few slides.

46. Reading the logarithm method

Notation

Annotate

On: \( \lim_{x\to a} f(x)^{g(x)} = \exp\left(\lim_{x\to a} g(x)\ln f(x)\right) \)

  • A power whose base AND exponent both move. If only one moves, you do not need this: 2ˣ or x³ are ordinary.
  • The logarithm of the power. This is where the rule does its work, after rewriting the product as a quotient.
  • Find this limit L first. It is the logarithm of the answer, not the answer.
  • The last step, the one most often forgotten: the answer is e to the L. Because exp is continuous, the limit may move inside it.

The notes follow the method in order. The first note is a reminder to use it only when both the base and the exponent are moving. Something like 2 to the x or x cubed has a fixed base or a fixed exponent, and you can handle it directly.

The middle notes are where the work happens. The limit inside the brackets is the limit of the logarithm. Call it L. It is not the answer; it is the logarithm of the answer.

The last note is the step that is easiest to drop under pressure. After finding L, write e to the L. If you remember nothing else about this method, remember that the final line must have an e in it.

47. Example 4.43: x to the one over x

Worked example

\[ \lim_{x\to\infty} x^{1/x} \]

Identify the form

Why: The base grows without bound; the exponent shrinks to 0.

\[ \infty^{0} \]

Take the logarithm

Why: Bring the exponent down.

\[ y = x^{1/x} \quad\Longrightarrow\quad \ln y = \frac{1}{x}\ln x = \frac{\ln x}{x} \]

Apply the rule to the logarithm

Why: Infinity over infinity.

\[ \lim_{x\to\infty}\frac{\ln x}{x} = \lim_{x\to\infty}\frac{1/x}{1} = 0 \]

Exponentiate back

Why: The limit of ln y is 0, so y tends to e to the 0.

\[ \lim_{x\to\infty} x^{1/x} = e^{0} = 1 \]

Figure (svg): The curve y equals x to the power 1 over x for x from 0 to 25: it rises from 0 to a peak of about 1.445 at x equals e, then sinks slowly toward the dashed line y equals 1.

The base grows without bound, but the exponent shrinks to zero faster than the base can matter. The curve peaks at x equals e and then settles back to 1.

Check with numbers

Why: At 10 the power is 1.2589; at 1000, 1.0069; at a million, 1.0000138. Sliding down to 1.

\[ 10^{1/10} \approx 1.2589, \quad 1000^{1/1000} \approx 1.0069 \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, pp. 402-403 — Example 4.43

The base x grows without bound while the exponent one over x shrinks to zero, so the form is infinity to the zero. Take logs: ln y is ln x over x, which is infinity over infinity.

One application of the rule gives one over x, which tends to zero. So the limit of the logarithm is zero, and the limit of y is e to the zero, which is 1.

The graph shows more than the limit. The function rises to a maximum at x equal to e, about 1.445, and then sinks slowly back to 1. The slowness is the logarithm's fault: ln x over x shrinks, but only slowly, so even at a million the power is still 1.0000138.

48. Checkpoint 4.42: x to the one over ln x

Prediction

\[ \lim_{x\to\infty} x^{1/\ln x} \]

Predict first

It is infinity to the zero again. Take the logarithm and predict the limit.

  • 1
  • e
  • ∞
  • 0

Correct: e

Why: The logarithm is one over ln x times ln x, which is exactly 1 for every x above 1. So the limit of the logarithm is 1 and the limit is e to the 1. In fact the function equals e everywhere on its domain: no rule was even needed after taking the logarithm.

\[ \ln y = \frac{1}{\ln x}\cdot\ln x = 1 \quad\Longrightarrow\quad y = e \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 403 — Checkpoint 4.42

Commit to a guess before revealing. It looks like Example 4.43, and the tempting guess is 1.

Take the logarithm: the exponent is one over ln x, and multiplying by ln x gives exactly 1. Not approximately, exactly, for every x bigger than 1. So the logarithm of the expression is the constant 1, and the expression itself is the constant e.

This is a useful surprise. The form was infinity to the zero, like Example 4.43, and yet the answer is e, not 1. That is one more reminder that an indeterminate form can hide any value at all.

49. Example 4.44: x to the sin x

Worked example

\[ \lim_{x\to 0^+} x^{\sin x} \]

Take the logarithm

Why: Zero to the zero; bring the exponent down.

\[ \ln y = \sin x\ln x \quad \left(0 \cdot (-\infty)\right) \]

Try moving sine to the bottom

Why: The rule gives a worse product, minus x times ln x squared times cos x. Abandon it.

\[ \frac{\sin x}{1/\ln x} \;\to\; -x(\ln x)^2\cos x \quad \text{(worse)} \]

Move the logarithm's partner instead

Why: Keep ln x on top and put cosecant, one over sine, on the bottom.

\[ \sin x\ln x = \frac{\ln x}{\csc x} \]

Apply the rule

Why: The derivative of cosecant is minus cosecant times cotangent.

\[ \lim_{x\to 0^+}\frac{\ln x}{\csc x} = \lim_{x\to 0^+}\frac{1/x}{-\csc x\cot x} \]

Rewrite in sines and cosines

Why: Cosecant is one over sine; cotangent is cosine over sine.

\[ \frac{1/x}{-\csc x\cot x} = \frac{-\sin^2 x}{x\cos x} = \frac{\sin x}{x}\cdot(-\tan x) \]

Take the limit of each factor

Why: The first factor tends to 1, the second to 0.

\[ \lim_{x\to 0^+}\frac{\sin x}{x}\cdot\lim_{x\to 0^+}(-\tan x) = 1 \cdot 0 = 0 \]

Exponentiate back

Why: The limit of ln y is 0.

\[ \lim_{x\to 0^+} x^{\sin x} = e^{0} = 1 \]

Check numerically

Why: At 0.1 the power is about 0.795; at 0.001 about 0.993. Climbing to 1.

\[ 0.1^{\sin 0.1} \approx 0.795, \qquad 0.001^{\sin 0.001} \approx 0.993 \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, pp. 403-404 — Example 4.44

After taking logs you have sine x times ln x, a zero times infinity product. The book first tries putting sine on top and one over ln x on the bottom. The rule then produces minus x times ln x squared times cosine x, which is worse than the starting point, so that attempt is abandoned.

The successful choice keeps ln x on top, as the rule of thumb from Part 3 suggests, and puts cosecant, the reciprocal of sine, on the bottom. After one application, rewrite cosecant and cotangent in sines and cosines. The expression splits into sine x over x, which tends to 1, times minus tan x, which tends to 0.

So the logarithm tends to 0 and the answer is e to the 0, which is 1. Notice the final step reused the limit of sine x over x from Chapter 2: the rule rarely works alone.

50. Checkpoint 4.43: x to the x

Worked example

\[ \lim_{x\to 0^+} x^{x} \]

Take the logarithm

Why: Zero to the zero.

\[ y = x^x \quad\Longrightarrow\quad \ln y = x\ln x \]

Reuse Example 4.41

Why: That limit is already known.

\[ \lim_{x\to 0^+} x\ln x = 0 \]

Exponentiate back

Why: e to the 0.

\[ \lim_{x\to 0^+} x^x = e^0 = 1 \]

Figure (svg): The curve y equals x to the x for x from 0 to 1.6: it starts at a hollow point at height 1 on the y-axis, dips to a minimum of about 0.692 at x equals 1 over e, returns to 1 at x equals 1, and rises to about 2.12 at x equals 1.6.

The graph returns to height 1 at the left edge, not 0. The logarithm of the curve is x ln x, whose limit is 0, and e to the 0 is 1.

Check numerically

Why: At 0.1 the power is 0.794; at 0.001, 0.9931. The graph confirms the hollow point is at height 1, not 0.

\[ 0.1^{0.1} \approx 0.794, \qquad 0.001^{0.001} \approx 0.9931 \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 404 — Checkpoint 4.43

Take the logarithm: ln y is x ln x. You found that limit in Example 4.41. It is zero, so the answer is e to the zero, which is 1.

Look at the graph near the left edge. The curve comes in to height 1, not to zero, even though the base is heading to zero. The exponent, also heading to zero, pulls the value up toward 1 at the same time, and the exponent wins.

The dip in the middle is a bonus: the minimum of x to the x is at x equal to one over e, where the value is about 0.692. Every limit in this lesson has a graph you can sketch to check it.

51. Find the error: the last step was skipped

Error analysis

Annotate

On: \( \ln y = x\ln x \to 0 \;\Longrightarrow\; \lim_{x\to 0^+} x^x = 0 \)

  • Correct: the logarithm brings the exponent down.
  • Correct: Example 4.41. But this 0 is the limit of ln y, the LOGARITHM of the answer.
  • Wrong: the answer is e⁰ = 1. The final exponentiation was forgotten.

\[ \lim_{x\to 0^+} x^x = e^{\lim x\ln x} = e^{0} = 1 \]

Read the argument and find the line that is wrong before revealing the notes. The first two claims are correct: the logarithm is x ln x, and its limit is zero.

The error is in the conclusion. The zero is the limit of ln y, not of y. To get the limit of y you must exponentiate, and e to the zero is 1. The graph on the previous slide shows the curve approaching height 1, so an answer of zero contradicts the picture.

When you use the logarithm method, finish every problem by writing the words e to the, followed by the limit you found. That line is short, but leaving it out changes the answer.

52. Slide k in one plus k over x, to the x

Tweak it

Parameter explorer

The curve is (1 + k/x)ˣ. Slide k and read off the height the curve levels at. Compare it with e to the k.

\[ \left(1 + \frac{{k}}{x}\right)^{x} \;\to\; e^{{k}} \]

  • k — from -1 to 2: k

\[ \ln y = x\ln\left(1+\frac kx\right) = \frac{\ln(1+k/x)}{1/x} \;\to\; k \]

Start with k equal to 1: the curve rises toward e, about 2.718. Now move k to 2 and watch the level rise to about 7.39, which is e squared. Try minus 1: the curve levels at about 0.368, which is one over e.

The line under the slider explains why. The logarithm of the expression is x times ln of 1 plus k over x. Rewrite that as a quotient, apply the rule once, and it tends to k. So the expression tends to e to the k.

This one formula covers all the one to the infinity limits of this shape. It is also the formula behind continuous compounding, which is the real-world slide coming up.

53. Exercise 395: one minus one over x, to the x

Worked example

A one to the infinity form from the section's exercise set.

\[ \lim_{x\to\infty}\left(1 - \frac{1}{x}\right)^{x} \]

Take the logarithm and rewrite

Why: The product x times ln of something near 1 becomes a quotient.

\[ \ln y = x\ln\left(1-\frac1x\right) = \frac{\ln(1-1/x)}{1/x} \]

Differentiate the top

Why: Chain rule: one over the inside, times the derivative of the inside, which is one over x squared.

\[ \frac{d}{dx}\ln\left(1-\frac1x\right) = \frac{1/x^2}{1-1/x} \]

Divide by the derivative of the bottom

Why: That derivative is minus one over x squared, which cancels.

\[ \frac{1/x^2}{1-1/x}\cdot\frac{1}{-1/x^2} = -\frac{1}{1-1/x} \to -1 \]

Exponentiate back

Why: The limit of ln y is minus 1.

\[ \lim_{x\to\infty}\left(1-\frac1x\right)^x = e^{-1} \approx 0.3679 \]

Check with numbers

Why: At x equal to 10 the power is 0.3487; at 100, 0.3660; at 1000, 0.36770, approaching one over e.

\[ x = 10: 0.3487, \quad x = 100: 0.3660, \quad x = 1000: 0.36770 \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 408 — Exercise 395

This is one to the infinity: the base tends to 1 and the exponent grows. Take the logarithm and rewrite the product x times ln of 1 minus one over x as a quotient with one over x on the bottom. It is zero over zero.

The top needs the chain rule: one over the inside, times the inside's derivative, which is plus one over x squared. The bottom's derivative is minus one over x squared, and that factor cancels, leaving minus one over 1 minus one over x, which tends to minus 1.

So the answer is e to the minus 1, one over e. It fits the slider exactly: this is the case k equal to minus 1. The table of values creeps up to 0.36788 from below.

54. Compounding more and more often

Real world

Discussion prompt

You deposit 1000 dollars at 5% a year, compounded n times a year, so after one year you have 1000(1 + 0.05/n)ⁿ. What happens as n grows: does compounding every second make you rich?

Write your guess first. Many people expect that compounding more and more often would make the balance grow without bound, because the interest is being added so frequently.

The formula is one to the infinity: the base, one plus 0.05 over n, gets closer and closer to 1, while the exponent n grows. From the slider, the limit is e to the 0.05, so the balance tends to 1000 times e to the 0.05, about 1051.27 dollars.

The table shows how quickly the benefit runs out. Monthly compounding already gives 1051.16; daily compounding gives 1051.27; compounding every second adds almost nothing more. This limit is why banks can advertise continuous compounding: it is a finite, computable number.

55. Growth rates

Section

Part 5

56. Growing faster, made precise

Concept

x10100100010,000
x²10010,0001,000,000100,000,000
x³10001,000,0001,000,000,0001,000,000,000,000
3x² + 4x + 134130,4013,004,001300,040,001

The cube pulls away from the square: their ratio is x, which is unbounded. But the last row stays roughly three times the square: their ratio settles at a constant.

\[ \frac{x^3}{x^2} = x \to \infty, \qquad \frac{x^2}{3x^2+4x+1} \to \frac13 \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 404 — Tables 4.7 and 4.8

The table compares three functions that all grow without bound. The cube leaves the square behind: at ten thousand it is ten thousand times larger. But the last row, 3x squared plus 4x plus 1, always stays at roughly three times the square.

Ratios are the right way to capture this. The ratio of the cube to the square is x, which grows without bound, so the cube grows more rapidly. The ratio of the square to the last row settles at one third, so those two grow at the same rate.

Notice that growing at the same rate does not mean being equal: one function can always be larger. It means their ratio settles at a fixed nonzero number.

57. Reading the growth-rate definitions

Notation

Annotate

On: \( \lim_{x\to\infty}\frac{f(x)}{g(x)} = 0 \quad \text{vs} \quad \lim_{x\to\infty}\frac{f(x)}{g(x)} = M \ne 0 \)

  • Both functions grow without bound; the question is which grows faster.
  • g grows more rapidly than f: f becomes a vanishing fraction of g. Equivalently g/f → ∞.
  • f and g grow at the same rate: eventually f is about M times g, like x² and 3x² + 4x + 1 with M = 1/3.
  • Both definitions are limits of an ∞/∞ quotient, which is exactly the rule's territory.

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, pp. 404-405 — definition of growth rates

Both definitions are about functions that grow without bound, and both are stated as the limit of a ratio. A ratio tending to zero means the top becomes negligible compared with the bottom, so the bottom grows more rapidly. A ratio tending to a nonzero constant means the two keep pace.

The last note is the reason this topic belongs in a lesson on L'Hôpital's rule. The ratio of two functions that grow without bound is infinity over infinity, exactly the form the rule handles. So every growth-rate comparison is a rule problem.

Keep the reading of the first definition in mind for the ranking slide: g grows more rapidly than f means f over g tends to zero.

58. Example 4.45(a): e to the x beats x squared

Worked example

\[ \lim_{x\to\infty}\frac{x^2}{e^x} \]

Check the form and apply the rule

Why: Infinity over infinity; the exponential is its own derivative.

\[ \lim_{x\to\infty}\frac{x^2}{e^x} = \lim_{x\to\infty}\frac{2x}{e^x} \]

Re-check and apply again

Why: Still infinity over infinity.

\[ \lim_{x\to\infty}\frac{2x}{e^x} = \lim_{x\to\infty}\frac{2}{e^x} = 0 \]

Conclude

Why: The ratio tends to 0, so the exponential grows more rapidly.

\[ e^x \text{ grows more rapidly than } x^2 \]

Figure (svg): The curve y equals x squared over e to the x for x from 0 to 14: it rises from 0 to a peak of about 0.541 at x equals 2, then decays toward 0.

The square is ahead only briefly. After x equals 2 the exponential pulls away, and the ratio collapses toward zero.

Check with the table

Why: At 5 the square is 25 against 148; at 20 it is 400 against about 485 million.

\[ \frac{20^2}{e^{20}} = \frac{400}{485{,}165{,}195} \approx 8.2\times 10^{-7} \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, pp. 405-406 — Example 4.45a, Table 4.9

Apply the rule once and the power drops from 2 to 1 while the exponential is unchanged, because it is its own derivative. The form is still infinity over infinity, so apply again. Now the top is the constant 2 and the bottom still grows, so the ratio tends to zero.

The figure shows the ratio itself. The square is ahead of the exponential in relative terms only briefly, the ratio peaking at x equal to 2, and after that the ratio collapses toward zero.

The table check is dramatic: at x equal to 20, the square is 400 while e to the 20 is about 485 million. The rule turns that impression into a proof, and the same argument works for any power, as the next few slides show.

59. Example 4.45(b): x squared beats ln x

Worked example

\[ \lim_{x\to\infty}\frac{\ln x}{x^2} \]

Check the form

Why: Both grow without bound.

\[ \ln x \to \infty, \qquad x^2 \to \infty \]

Apply the rule

Why: The derivative of ln x is one over x.

\[ \lim_{x\to\infty}\frac{\ln x}{x^2} = \lim_{x\to\infty}\frac{1/x}{2x} \]

Simplify and take the limit

Why: One over x divided by 2x is one over 2x squared.

\[ \lim_{x\to\infty}\frac{1}{2x^2} = 0 \]

Check with the table

Why: At 10,000 the logarithm is 9.21 and the square is one hundred million.

\[ \frac{\ln 10{,}000}{10{,}000^2} = \frac{9.21}{10^8} \approx 9.2\times 10^{-8} \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 406 — Example 4.45b, Table 4.10

Both functions grow without bound, so the ratio is infinity over infinity. One application gives one over x divided by 2x, which simplifies to one over 2x squared and tends to zero.

So the square grows much more rapidly than the logarithm. The table makes the gap vivid: at ten thousand, the logarithm is only about 9.21, while the square is a hundred million.

Notice that the logarithm disappeared after one application. Its derivative, one over x, is a power of x, and from then on the problem is power against power. That is why logarithms are so easy to handle with the rule.

60. A bigger power only delays the exponential

Picture it

Figure (svg): Two panels. Left: e to the x and x cubed for x from 0 to 5.5; the cubic is above between x equals 1.86 and 4.54, then e to the x overtakes it. Right: e to the x and x to the fourth for x from 0 to 10; the quartic is above until x equals 8.61, then e to the x overtakes it.

A bigger power holds the lead longer, but never forever. The exponential always overtakes and then leaves the power behind.

The rule applied three or four times, just as in Example 4.45(a), grinds any power down to a constant while the exponential stays put. So the exponential grows more rapidly than x to the p for every positive p.

\[ \lim_{x\to\infty}\frac{x^3}{e^x} = \lim\frac{3x^2}{e^x} = \lim\frac{6x}{e^x} = \lim\frac{6}{e^x} = 0 \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, pp. 406-407 — Figure 4.75 and Table 4.11

Compare the two panels. Against x cubed, the exponential is behind for a while and overtakes at about 4.54. Against x to the fourth, it is behind for longer, until about 8.61. A bigger power holds the lead longer.

But it never holds it forever. The rule explains why: each application lowers the power by one and leaves the exponential alone. After as many applications as the power, the top is a constant and the bottom is still e to the x, so the ratio goes to zero.

The same argument works for x to any positive power p, which is the result the book states: e to the x grows more rapidly than every power of x.

61. Checkpoint 4.44: x to the hundredth against 2 to the x

Worked example

\[ \lim_{x\to\infty}\frac{x^{100}}{2^x} \]

Apply the rule once

Why: The derivative of 2 to the x is ln 2 times 2 to the x.

\[ \lim_{x\to\infty}\frac{x^{100}}{2^x} = \lim_{x\to\infty}\frac{100x^{99}}{(\ln 2)2^x} \]

See the pattern

Why: Every application lowers the power by one and adds a factor ln 2 on the bottom; the form stays infinity over infinity until the power is gone.

\[ = \lim_{x\to\infty}\frac{100\cdot 99 x^{98}}{(\ln 2)^2 2^x} = \cdots \]

After 100 applications

Why: The top is the constant 100 factorial.

\[ \lim_{x\to\infty}\frac{100!}{(\ln 2)^{100}2^x} = 0 \]

Conclude

Why: The ratio tends to 0.

\[ 2^x \text{ grows more rapidly than } x^{100} \]

Figure (svg): The logarithms of x to the hundredth and of 2 to the x, plotted for x from 0 to 1400: 100 ln x is a slowly bending curve, x ln 2 a straight line starting at 0; the line crosses the curve at about x equals 996, height about 690.

Plotting the logarithms keeps the numbers on the page. The power is ahead for almost a thousand units, and then the exponential passes it for good.

Check where the lead changes

Why: Compare logarithms: 100 ln x against x ln 2. They cross near x equal to 996, and from there on 2 to the x is ahead for good.

\[ 100\ln 996 \approx 690.4 \approx 996\ln 2 \]

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 406 — Checkpoint 4.44

Differentiating 2 to the x gives ln 2 times 2 to the x, so each application lowers the power by one and adds a factor of ln 2 to the bottom. After a hundred applications the top is the constant one hundred factorial, and the bottom is still an exponential. The ratio goes to zero, so 2 to the x grows more rapidly.

You do not write out a hundred steps. You describe the pattern and state where it ends, which is a complete argument.

The figure shows how long the power holds out. Comparing logarithms, 100 ln x against x ln 2, the power stays ahead until x is about 996. Up to there the power is enormously larger, and yet the exponential wins in the end.

62. Logarithms lose to every power

Concept

Figure (svg): Three curves for x from 0 to 160: the square root of x climbs highest; the cube root of x and ln x run close together, with ln x slightly above the cube root between x equals 6.4 and x equals 93.4, and below it after that.

The logarithm keeps pace with the cube root for a while, even edging ahead, but from x equals 93.4 on the cube root leads for good.

For any positive p, however small, one application settles it:

\[ \lim_{x\to\infty}\frac{\ln x}{x^{p}} = \lim_{x\to\infty}\frac{1/x}{px^{p-1}} = \lim_{x\to\infty}\frac{1}{px^{p}} = 0 \]

So even the cube root, which trails the logarithm between about 6.4 and 93.4, wins in the end. Table 4.12: at 10,000 the logarithm is 9.21 and the cube root 21.5.

OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule §4.8, p. 407 — Figure 4.76 and Table 4.12

One application of the rule works for every positive p at once. The derivative of ln x is one over x, the derivative of x to the p is p times x to the p minus 1, and their ratio simplifies to one over p times x to the p, which tends to zero.

The figure shows why this is not obvious from a graph. The logarithm and the cube root run neck and neck, and between about 6.4 and 93.4 the logarithm is actually ahead. Only after 93.4 does the cube root pull away for good.

For smaller powers the crossover happens much later, but it always happens. So the growth ranking is: logarithms, then powers, then exponentials.

63. Rank the growth rates

Ranking

Put in order

Order these from slowest-growing to fastest-growing as x → ∞.

  1. ln x
  2. √x
  3. x¹⁰⁰
  4. 2ˣ
  5. eˣ
  6. xˣ

Why: Logarithms lose to every power, and every power loses to every exponential with base above 1. Between exponentials, e to the x over 2 to the x is (e/2) to the x, which grows, so e wins. And x to the x over e to the x is (x/e) to the x, which grows faster still.

Drag the functions into order before checking. Use the ranking you have just proved: logarithms below powers, powers below exponentials.

Two comparisons need a moment's thought. Between 2 to the x and e to the x, divide one by the other: e to the x over 2 to the x is e over 2, all to the x, and since e over 2 is bigger than 1, that grows. So e to the x is faster. And x to the x beats e to the x, because their ratio is x over e, all to the x, whose base eventually exceeds any fixed number.

Notice that the enormous power x to the hundredth still sits below the humble 2 to the x. That is the content of Checkpoint 4.44.

64. Putting it together

Section

Part 6

65. Pattern: evaluating an indeterminate limit

Pattern

Figure (svg): A flow diagram. Substitute first. A determined value ends the problem. Zero over zero or infinity over infinity goes straight to the rule. A product or a difference is rewritten as a quotient first. A power with an indeterminate exponent form is logged first, and the answer is e to the limit found.

Substitution comes first and last: it decides whether the rule may be used, and it decides when to stop.
  1. Substitute first. A number, or a determined form, ends the problem.
  2. Zero over zero or infinity over infinity: differentiate the top and bottom separately, then substitute again.
  3. Still indeterminate? Apply again, but only after re-checking. Stop the moment the form is determined.
  4. A product: move one factor to the bottom as a reciprocal; keep a logarithm on top.
  5. A difference: combine into one fraction.
  6. A power with both parts moving: take the logarithm, find its limit L, answer e to the L.

This is the order to work in for any limit you cannot evaluate by substitution. It begins and ends with substitution, which decides whether the rule is allowed and when to stop using it.

The middle branches are the conversions from this lesson. Products move a factor to the bottom, differences are combined into one fraction, and powers are logged. Each route ends in zero over zero or infinity over infinity, and only then does the rule act.

The two mistakes that cost the most marks are both at the edges of the diagram: using the rule without checking the form, and forgetting to exponentiate at the end of the logarithm route.

66. The seven forms and their routes

Comparison

Comparison matrix

formexamplefirst movelimit
0/0(1 − cos x)/x, x → 0the rule0
∞/∞(3x + 5)/(2x + 1), x → ∞the rule3/2
0 · ∞x ln x, x → 0⁺ln x over 1/x0
∞ − ∞1/x − 1/sin x, x → 0⁺one fraction0
0⁰xˣ, x → 0⁺take ln1
∞⁰x to the 1/x, x → ∞take ln1
1 to the ∞(1 − 1/x)ˣ, x → ∞take ln1/e

Fill in the blanks from memory, then check. Every example in the table is one you have worked in this lesson, so the answers are on earlier slides if you get stuck.

Look down the first-move column. Only the first two forms go straight to the rule. The next two need algebra first, and the last three need a logarithm first. That column is the whole strategy of the lesson in a few words.

The last column is a reminder that the same form can hide very different answers: three limits are 0, two are 1, one is three halves, and one is one over e. Three different forms all gave 0, and two different forms both gave 1.

67. Check: when the rule applies

Check

Check your understanding

To which limit may L'Hôpital's rule NOT be applied?

  • A. (x² − 1)/(x − 1) as x → 1
  • B. (x + 1)/(x + 2) as x → 0 (correct)
  • C. (ln x)/x as x → ∞
  • D. (eˣ − 1)/x as x → 0

Answer: B

Why: Substituting 0 gives one over two, a determined value, so the limit is one half and the rule is not allowed. Applying it anyway gives 1, which is wrong. The other three are genuine zero over zero or infinity over infinity forms.

Why A tempts people
Zero over zero at 1, so the rule applies (and gives 2, as factoring does).
Why C tempts people
Infinity over infinity, so the rule applies and gives 0.
Why D tempts people
Zero over zero at 0, so the rule applies and gives e⁰ = 1.

Substitute into each option before thinking about derivatives. Three give an indeterminate form; one gives a number.

The odd one out is x plus 1 over x plus 2 at zero, which substitutes to one half. That is the answer, and the rule was never allowed. If you apply it anyway you get 1, the confident wrong answer from the trap slide.

68. Check: a one to the infinity limit

Check

Check your understanding

What is the limit of (1 + 3/x)ˣ as x → ∞?

  • A. 1
  • B. 3
  • C. e³ (correct)
  • D. ∞

Answer: C

Why: The logarithm is x times ln of one plus 3 over x, which is ln of one plus 3 over x, over one over x. The rule gives 3 over one plus 3 over x, which tends to 3. Exponentiating back gives e cubed, about 20.09.

Why A tempts people
This treats one to the infinity as 1. The base only approaches 1 while the exponent grows, and the two effects compete.
Why B tempts people
3 is the limit of the logarithm. The final exponentiation was forgotten.
Why D tempts people
The base tends to 1, not to something bigger, so the power does not blow up; the logarithm has the finite limit 3.

Name the form first: the base tends to 1 and the exponent grows, so it is one to the infinity. Take the logarithm, rewrite it as a quotient, and the rule gives 3.

The two most common wrong answers come from the two most common errors. Answering 1 treats the form as if it were a number. Answering 3 finds the limit of the logarithm and forgets to exponentiate. The slider on the constant k gives the answer directly: e to the k with k equal to 3.

69. Check: growth rates

Check

Check your understanding

Which function grows most rapidly as x → ∞?

  • A. x⁵⁰
  • B. e to the x/10 (correct)
  • C. x¹⁰ ln x
  • D. (ln x)¹⁰⁰⁰

Answer: B

Why: Any exponential with a positive rate beats any power: applying the rule fifty times to x to the fiftieth over e to the x over 10 leaves a constant over a growing exponential. The slow start, a tenth in the exponent, only delays the win.

Why A tempts people
A power, however large, loses to e to the x over 10; the rule grinds the power down to a constant.
Why C tempts people
Ten applications of power-versus-power reasoning show this grows slower than x to the fiftieth, let alone an exponential.
Why D tempts people
A power of a logarithm loses to every positive power of x, so it is the slowest of the four.

Sort the options by type: two powers of x, one power of a logarithm, and one exponential. The ranking decides it: logarithms below powers, powers below exponentials.

The exponential has a slow rate, one tenth, and a power like x to the fiftieth is far larger for a long time. But slow start or not, the rule applied fifty times grinds the power down to a constant while the exponential remains, so the exponential wins.

70. Explain the rule without the theorem

Explain it to yourself

Discussion prompt

In two or three sentences, explain to yourself why dividing the derivatives gives the limit of a zero over zero quotient. Use the tangent-line picture, not the theorem's wording.

Write your explanation before revealing. If you can explain the rule from the picture, you will never confuse it with the quotient rule and you will always remember why the form check matters.

The key facts are that both functions are zero at the point, so both tangent lines pass through the same point on the axis, and that near that point each curve is almost its tangent line. The ratio of two lines through the same point on the axis is the ratio of their slopes.

That also shows why the form matters: if f of a were not zero, the tangent line would not pass through that point, the constant terms would not drop out, and the ratio of slopes would mean nothing.

71. Exit ticket

Exit ticket

\[ \lim_{x\to 0}(1+2x)^{1/x} \]

Discussion prompt

Name the form, choose the route, and find the limit.

This combines the lesson in one problem: recognise the form, choose the route, apply the rule, and remember the last step.

The base tends to 1 and the exponent one over x blows up, so it is one to the infinity. The logarithm is ln of 1 plus 2x, over x, which is zero over zero. One application gives 2 over 1 plus 2x, which tends to 2. Exponentiate: the limit is e squared, about 7.389.

The numerical check at x equal to 0.001 gives 7.374, close to e squared. It also matches the slider, with the variable turned upside down: this is the case k equal to 2.

72. Recap

Recap

situationwhat to dowatch out for
0/0 or ∞/∞differentiate top and bottom separatelynot the quotient rule; check the form first
still indeterminateapply againre-check every time; stop when determined
0 · ∞move a factor down as a reciprocalkeep ln on top
∞ − ∞combine into one fractionit is not 0
0⁰, ∞⁰, 1 to the ∞take ln, find L, answer e to the Ldo not forget to exponentiate
growth rateslimit of the ratioln x ≪ xᵖ ≪ eˣ

\[ \frac{0}{0}, \frac{\infty}{\infty}: \quad \lim\frac{f}{g} = \lim\frac{f'}{g'} \]

Next, Section 4.9 uses derivatives to find roots numerically: Newton's method.

Stewart, Calculus: Early Transcendentals 8e, §4.4 Indeterminate Forms and l'Hospital's Rule §4.4, pp. 304-314 — the same material in Stewart

The rule has one line and one condition. When a quotient is zero over zero or infinity over infinity, its limit equals the limit of the quotient of derivatives, taken separately. Check the form before every application and stop as soon as the form is determined.

Every other indeterminate form is converted into one of those two. Products move a factor to the bottom, differences become one fraction, and powers go through a logarithm, which must be undone at the end.

The growth ranking is now a theorem: logarithms grow more slowly than every power, and powers more slowly than every exponential. Next, Section 4.9 uses derivatives for a very different job, finding the roots of equations by Newton's method.

Sources

  1. OpenStax Calculus Volume 1, §4.8 L'Hôpital's Rule — Strang & Herman, OpenStax / Rice University, CC BY-NC-SA 4.0, pp. 394-408
  2. Stewart, Calculus: Early Transcendentals 8e, §4.4 Indeterminate Forms and l'Hospital's Rule — James Stewart, Cengage Learning, 2016, pp. 304-314

Want this taught 1-on-1? Alexander tutors Calculus I — $55/session, free consultation.

Book on Wyzant · Text (657) 465-8108