Professional Documents
Culture Documents
18 Sol
18 Sol
18 Sol
f (x) f 0 (x)
lim = lim 0 ,
g(x) g (x)
provided this last limit exists. Here, lim stands for lim , lim± , or lim .
x→a x→a x→±∞
Table of Contents
The pronunciation is lō-pē-täl. Evidently, this result is actually due to the mathematician JJ II
Bernoulli rather than to l’Hôpital. The verification of l’Hôpital’s rule (omitted) depends
on the mean value theorem. J I
x2
31.2.1 Example Find lim .
x→0 sin x Page 3 of 17
0
Solution As observed above, this limit is of indeterminate type 0, so l’Hôpital’s rule Back
applies. We have
x2
0 l’H 2x 0
lim = lim = = 0, Print Version
x→0 sin x 0 x→0 cos x 1
where we have first used l’Hôpital’s rule and then the substitution rule. Home Page
L’Hopital’s Rule
The solution of the previous example shows the notation we use to indicate the type of an Limit of indeterminate type
indeterminate limit and the subsequent use of l’Hôpital’s rule. L’Hôpital’s rule
Common mistakes
3x − 2
31.2.2 Example Find lim 2 . Examples
x→−∞ ex
Indeterminate product
Table of Contents
31.3. Common mistakes
JJ II
Here are two pitfalls to avoid:
J I
L’Hôpital’s rule should not be used if the limit is not indeterminate (of the appropriate
type). For instance, the following limit is not indeterminate; in fact, the substitution
rule applies to give the limit: Page 4 of 17
sin x 0
lim = = 0. Back
x→0 x + 1 1
An application of l’Hôpital’s rule gives the wrong answer:
Print Version
Although l’Hôpital’s rule involves a quotient f (x)/g(x) as well as derivatives, the Limit of indeterminate type
quotient rule of differentiation is not involved. The expression in l’Hôpital’s rule is L’Hôpital’s rule
0 Common mistakes
f 0 (x)
f (x)
and not . Examples
g 0 (x) g(x) Indeterminate product
Indeterminate difference
Solution We have
sin θ 0 l’H cos θ 1
lim = lim = = 1. Table of Contents
θ→0 θ 0 θ→0 1 1
(In 19, we had to work pretty hard to determine this important limit. It is tempting to go
back and replace that argument with this much easier one, but unfortunately we used this JJ II
limit to derive the formula for the derivative of sin θ, which is used here in the application
of l’Hôpital’s rule, so that would make for a circular argument.) J I
3x2 + x + 4
31.4.2 Example Find lim . Back
x→∞ 5x2 + 8x
2
3x + x + 4 ∞ l’H 6x + 1 ∞ l’H 6 6 3
lim = lim = lim = = . Home Page
x→∞ 5x2 + 8x ∞ x→∞ 10x + 8 ∞ x→∞ 10 10 5
L’Hopital’s Rule
preferable to using l’Hôpital’s rule repeatedly, especially if the degrees of the polynomials Indeterminate difference
are large. Sometimes though, we have no alternate approach: Indeterminate powers
Summary
ex − 1 − x − x2 /2
31.4.3 Example Find lim .
x→0 x3
Solution We have
ex − 1 − x − x2 /2 ex − 1 − x 0
0 l’H Table of Contents
lim = lim
x→0 x3 0 x→0 3x2 0
x
l’H e − 1 0
= lim JJ II
x→0 6x 0
x 0
l’H e e 1
= lim = = . J I
x→0 6 6 6
Page 6 of 17
There are other indeterminate types, to which we now turn. The strategy for each is to Back
transform the limit into either type 00 or ±∞
±∞ and then use l’Hôpital’s rule.
Print Version
Home Page
Math 112 (71) Fall 2010 Examples 1 - 9 (L’Hopital’s Rule)
Problems & Solutions
Example 1
x2 + x − 12
Evaluate the limit lim using
x →3 x2 − 9
(a) algebraic manipulation (factor and cancel)
Solution
x2 + x − 12 ( x − 3)( x + 4) x+4 7
lim = lim = lim =
x →3 x2 − 9 x →3 ( x − 3)( x + 3) x →3 x + 3 6
(b) L’Hopital’s Rule
Solution
0
Since direct substitution gives 0 we can use L’Hopital’s Rule to give
x2 + x − 12 H 2x + 1 7
lim = lim =
x →3 x2 − 9 x →3 2x 6
Example 2
sin 3x
Evaluate the limit lim using
x →0 tan 4x
sin x
(a) the basic trigonometric limit lim = 1 together with appropriate changes of variables
x →0 x
Solution
Write the limit as
sin 3x sin 3x x cos 4x
lim = lim lim
x →0 tan 4x x →0 x x →0 sin 4x
In the first limit let u = 3x and in the second let v = 4x. Then the limit is
sin 3x 3 sin u v cos v
lim = lim lim
x →0 tan 4x u →0 u v→0 4 sin v
sin u v
= 34 lim lim lim cos v = 3
4
u →0 u v→0 sin v v →0
sin 3x H 3 cos 3x 3
lim = lim = 4
x →0 tan 4x x →0 4 sec2 4x
L’Hopital’s Rule
The solution of the previous example shows the notation we use to indicate the type of an Limit of indeterminate type
indeterminate limit and the subsequent use of l’Hôpital’s rule. L’Hôpital’s rule
Common mistakes
3x − 2
31.2.2 Example Find lim 2 . Examples
x→−∞ ex
Indeterminate product
Table of Contents
31.3. Common mistakes
�� ��
Here are two pitfalls to avoid:
� �
� L’Hôpital’s rule should not be used if the limit is not indeterminate (of the appropriate
type). For instance, the following limit is not indeterminate; in fact, the substitution
rule applies to give the limit: Page 4 of 17
sin x 0
lim = = 0. Back
x→0 x + 1 1
An application of l’Hôpital’s rule gives the wrong answer:
Print Version
Example 1
x2 + x − 12
Evaluate the limit lim using
x →3 x2 − 9
(a) algebraic manipulation (factor and cancel)
Solution
x2 + x − 12 ( x − 3)( x + 4) x+4 7
lim = lim = lim =
x →3 x2 − 9 x →3 ( x − 3)( x + 3) x →3 x + 3 6
(b) L’Hopital’s Rule
Solution
0
Since direct substitution gives 0 we can use L’Hopital’s Rule to give
x2 + x − 12 H 2x + 1 7
lim = lim =
x →3 x2 − 9 x →3 2x 6
Example 2
sin 3x
Evaluate the limit lim using
x →0 tan 4x
sin x
(a) the basic trigonometric limit lim = 1 together with appropriate changes of variables
x →0 x
Solution
Write the limit as
sin 3x sin 3x x cos 4x
lim = lim lim
x →0 tan 4x x →0 x x →0 sin 4x
In the first limit let u = 3x and in the second let v = 4x. Then the limit is
sin 3x 3 sin u v cos v
lim = lim lim
x →0 tan 4x u →0 u v→0 4 sin v
sin u v
= 34 lim lim lim cos v = 3
4
u →0 u v→0 sin v v →0
sin 3x H 3 cos 3x 3
lim = lim = 4
x →0 tan 4x x →0 4 sec2 4x
Math 112 (71) Examples 1 - 9 (L’Hopital’s Rule)
Fall 2010 Problems & Solutions Page 2
Example 3
π
Evaluate the limit limπ x − 2 tan x using L’Hopital’s Rule.
x→ 2
Solution
Write the limit as
x − π2
limπ x − π
2 tan x = limπ
x→ 2 x→ 2 cot x
0
Then direct substitution gives 0 so we can use L’Hopital’s Rule to give
H 1
limπ x − π
2 tan x = limπ = −1
x→ 2 x→ 2 (− csc2 x )
Example 4 √
2−x−x
Evaluate the limit lim using L’Hopital’s Rule.
x →1 x−1
Solution
0
Since direct substitution gives 0 use L’Hopital’s Rule to give
1
√ −√ −1
2−x−x H 2−x 3
lim = lim =−
x →1 x−1 x →1 1 2
Note that this result
√can also be obtained by rationalizing the numerator by multiplying top and bottom by
the root conjugate 2 − x + x.
Example 5
1 − cos x
Evaluate the limit lim using L’Hopital’s Rule.
x →0 x2
Solution
0
Since direct substitution gives 0 use L’Hopital’s Rule to give
1 − cos x H sin x
lim = lim
x →0 x2 x →0 2x
0
Again direct substitution gives 0 so use L’Hopital’s Rule a second time to give
1 − cos x H cos x 1
lim = lim =
x →0 x2 x →0 2 2
Math 112 (71) Examples 1 - 9 (L’Hopital’s Rule)
Fall 2010 Problems & Solutions Page 3
Example 6
Evaluate the limits at infinity
ex
(a) lim
x →∞ x
Solution
∞
Direct “substitution” gives ∞ so we can use L’Hopital’s Rule to give
ex H ex
lim = lim =∞
x →∞ x x →∞ 1
(b) lim x2 e− x
x →∞
Solution
Write the limit as
x2
lim x2 e− x = lim
x →∞ x →∞ e x
∞
Then direct “substitution” gives ∞ so we can use L’Hopital’s Rule to give
H 2x H 2
lim x2 e− x = lim = lim x = 0
x →∞ x →∞ ex x →∞ e
p
(c) lim x2 + x + 1 − x
x →∞
Solution
Direct “substitution” gives the indeterminate form ∞ − ∞. Write the limit as
r !
1 1
! 1+ + 2 −1
x x
r
p
2
1 1
lim x + x + 1 − x = lim x 1 + + 2 − 1 = lim
x →∞ x →∞ x x x → ∞ 1
x
∞
Now direct “substitution” gives so we can use L’Hopital’s Rule to give
∞
1 −1/2
1 1 1 2
p 2 1 + x + x2 − 2− 3
x x
H
lim x2 + x + 1 − x = lim
x →∞ x →∞ 1
− 2
x
2
1+ 1
= lim x
x →∞
1/2 = 2
1 1
2 1+ + 2
x x
Example 7
ln ( x − 2)
Evaluate the limit lim using L’Hopital’s Rule.
x → 2+ ln ( x2 − 4)
Solution
∞
Direct substitution gives ∞ so we can use L’Hopital’s Rule
1
ln ( x − 2) H x − 2 = lim x2 − 4 x2 − 4
lim = lim = lim
2
x →2+ ln ( x − 4) x → 2+ 2x x →2+ 2x ( x − 2) x →2+ 2x2 − 4x
2
x −4
H 2x
= lim =1
x →2 4x − 4
+
MATH 1010E University Mathematics
Lecture Notes (week 8)
Martin Li
1 L’Hospital’s Rule
Another useful application of mean value theorems is L’Hospital’s Rule. It
helps us to evaluate limits of “indeterminate forms” such as 00 . Let’s look
at the following example. Recall that we have proved in week 3 (using the
sandwich theorem and a geometric argument)
sin x
lim = 1.
x→0 x
We say that the limit above has indeterminate form 00 since both the numer-
ator and denominator goes to 0 as x → 0. Roughly speaking, L’Hospital’s
rule says that under such situation, we can differentiate the numerator and
denominator first and then take the limit. The result, if exists, should be
equal to the original limit. For example,
(sin x)� cos x
lim �
= lim = 1,
x→0 (x) x→0 1
1
if the limit on the right hand side exists. Since the right hand side is the
same as
2 sin x cos x
lim = lim (2 cos x) = 2.
x→0 sin x x→0
sin2 x
Therefore, we conclude that limx→0 1−cos x = 2.
x − sin x 1 − cos x
lim = lim ,
x→0 x3 x→0 3x2
if the right hand side exists. The right hand side is still in the form “ 00 ”,
therefore we can apply L’Hospital’s Rule again
1 − cos x sin x
lim = lim ,
x→0 3x2 x→0 6x
if the right hand side exists. But now the right hand side can be evaluated:
sin x 1 sin x 1
lim = lim = .
x→0 6x 6 x→0 x 6
As a result, if we trace backwards, we conclude that the original limit exists
and
x − sin x 1
lim = .
x→0 x3 6
Example 1.4 Consider the limit
ex − x − 1
lim .
x→0 1 − cosh x
2
L’Hopital’s Rule
Table of Contents
Solution As noted above, this limit is indeterminate of type ∞ · 0. We rewrite the expres-
sion as a fraction and then use l’Hôpital’s rule:
x ∞ JJ II
lim xe−x = lim x
∞
x→∞ x→∞ e
J I
l’H 1 1
= lim x
x→∞ e large pos.
= 0. Page 7 of 17
Back
Home Page
L’Hopital’s Rule
Summary
sin 6x 0
lim+ (cot 2x)(sin 6x) = lim+
x→0 x→0 tan 2x 0
l’H 6 cos 6x
= lim+
x→0 2 sec2 2x
6
= = 3. Table of Contents
2
JJ II
since tan π/2 is undefined. Nor can one determine this limit by using inspection. The first
Print Version
term going to infinity is trying to make the expression large and positive, while the second
term going to negative infinity is trying to make the expression large and negative. There
is a struggle going on. We say that this limit is indeterminate of type ∞ − ∞. Home Page
L’Hopital’s Rule
The strategy for handling this type is to combine the terms into a single fraction and then Limit of indeterminate type
use l’Hôpital’s rule. L’Hôpital’s rule
Common mistakes
31.6.1 Example Find lim
π
(tan x − sec x). Examples
x→ 2 −
Indeterminate product
Solution As observed above, this limit is indeterminate of type ∞ − ∞. We combine the Indeterminate difference
terms and then use l’Hôpital’s rule: Indeterminate powers
Summary
sin x 1
lim (tan x − sec x) = lim −
x→ π2
− x→ π2
− cos x cos x
sin x − 1 0
= lim
x→ π2
− cos x 0
l’H cos x Table of Contents
= lim π − − sin x
x→ 2
0
= = 0. JJ II
−1
J I
x 1
31.6.2 Example Find lim+ − .
x→1 x − 1 ln x Page 9 of 17
Solution The limit is indeterminate of type ∞ − ∞. We combine the terms and then use
Back
Print Version
Home Page
L’Hopital’s Rule
JJ II
31.7. Indeterminate powers
The strategy for handling this type (as well as the types 1∞ and 00 yet to be introduced) is
Print Version
to first find the limit of the natural logarithm of the expression (ultimately using l’Hôpital’s
rule) and then use an inverse property of logarithms to get the original limit.
Home Page
L’Hopital’s Rule
l’H 1/x
= lim
x→∞ 1
= 0.
Therefore,
1/x Table of Contents
lim x1/x = lim eln x = e0 = 1,
x→∞ x→∞
where we have used the inverse property of logarithms y = eln y and then the previous com- JJ II
putation. (The next to the last equality also uses continuity of the exponential function.)
J I
Therefore, JJ II
x
1 x
= lim eln(1+ x ) = e1 = e.
1
lim 1+
x→∞ x x→∞ J I
Page 12 of 17
0
Type 0 . The limit
lim (tan x)x 00
Back
x→0
cannot be determined by using inspection. The base going to 0 is trying to make the Print Version
expression small, while the exponent going to 0 is trying to make the expression equal to
1. We say that this limit is indeterminate of type 00 .
Home Page
Math 112 (71) Examples 1 - 9 (L’Hopital’s Rule)
Fall 2010 Problems & Solutions Page 3
Example 6
Evaluate the limits at infinity
ex
(a) lim
x →∞ x
Solution
∞
Direct “substitution” gives ∞ so we can use L’Hopital’s Rule to give
ex H ex
lim = lim =∞
x →∞ x x →∞ 1
(b) lim x2 e− x
x →∞
Solution
Write the limit as
x2
lim x2 e− x = lim
x →∞ x →∞ e x
∞
Then direct “substitution” gives ∞ so we can use L’Hopital’s Rule to give
H 2x H 2
lim x2 e− x = lim = lim x = 0
x →∞ x →∞ ex x →∞ e
p
(c) lim x2 + x + 1 − x
x →∞
Solution
Direct “substitution” gives the indeterminate form ∞ − ∞. Write the limit as
r !
1 1
! 1+ + 2 −1
x x
r
p
2
1 1
lim x + x + 1 − x = lim x 1 + + 2 − 1 = lim
x →∞ x →∞ x x x → ∞ 1
x
∞
Now direct “substitution” gives so we can use L’Hopital’s Rule to give
∞
1 −1/2
1 1 1 2
p 2 1 + x + x2 − 2− 3
x x
H
lim x2 + x + 1 − x = lim
x →∞ x →∞ 1
− 2
x
2
1+ 1
= lim x
x →∞
1/2 = 2
1 1
2 1+ + 2
x x
Example 7
ln ( x − 2)
Evaluate the limit lim using L’Hopital’s Rule.
x → 2+ ln ( x2 − 4)
Solution
∞
Direct substitution gives ∞ so we can use L’Hopital’s Rule
1
ln ( x − 2) H x − 2 = lim x2 − 4 x2 − 4
lim = lim = lim
2
x →2+ ln ( x − 4) x → 2+ 2x x →2+ 2x ( x − 2) x →2+ 2x2 − 4x
2
x −4
H 2x
= lim =1
x →2 4x − 4
+
∞ 1/0 0
= = .,
∞ 1/0 0
0
00 = exp(0 ln 0) = exp(0 · (−∞)) = exp(− ).
0
We should emphasize that the “calculations” above are just formal. They
indicate the general idea of transforming the limits rather than actual arith-
metic of numbers. Using these ideas, we can actually handle all the deter-
minate forms in (2.1) by the L’Hospital’s Rule. We have
Remark 2.3 The theorem also holds in the case x0 = ±∞ and for one-
sided limits as well.
We postpone the proof of Theorem 2.2 until the end of this section but
we will first look at a few applications.
lim x ln x.
x→0+
4
Similarly, we can prove that
xk
lim = 0, for any k.
x→+∞ ex
The following example shows that L’Hospital’s Rule may not always
work:
sinh x cosh x sinh x
lim = lim = lim ,
x→∞ cosh x x→∞ sinh x x→∞ cosh x
which gets back to the original limit we want to evaluate! So L’Hospital’s
Rule leads us nowhere in such situation. For this example, we have to do
some cancellations first,
sinh x ex − e−x 1 − e−2x
lim = lim x = lim = 1.
x→∞ cosh x x→∞ e + e−x x→∞ 1 + e−2x
The first one has the form “ 00 ” and the second one has the form “ ∞
∞ ” as
x → ∞. Therefore, we can apply L’Hospital’s Rule to both cases. For the
first case, we have
sin(1/x) − 12 cos 1 1
lim = lim x 1 x = lim cos = 1.
x→∞ 1/x x→∞ − x2 x→∞ x
5
which doesn’t seem to simplify after L’Hospital’s Rule. Therefore, sometimes
we have to choose a good way to transform the limit before we apply the
L’Hospital’s Rule. A general rule of thumb here is that the expression should
get simpler after taking the derivatives.
This limit has the indeterminate form “∞ − ∞”, which we haven’t men-
tioned. There is in fact no general way to evaluate limits of such forms. But
for this particular example, we can transform it as
1 1 x − sin x
− = ,
sin x x x sin x
which has the standard indeterminate form “ 00 ”. Therefore, we can apply
L’Hospital’s Rule a few times to get
x − sin x 1 − cos x sin x
lim = lim = lim = 0.
x→0 x sin x x→0 sin x + x cos x x→0 2 cos x − x sin x
Note that we can move the limit into the function “exp” since the exponential
function “exp” is continuous.
We end this section with a proof of Theorem 2.2.
Proof of Theorem 2.2 : The idea is that if f (x0 ) = ±∞ = g(x0 ), then we have
1 1
f (x0 ) = 0 = g(x0 ) . Therefore, we can apply L’Hospital’s Rule to conclude
that
f (x) 1/g(x) −g � (x)/g(x)2
lim = lim = lim .
x→x0 g(x) x→x0 1/f (x) x→x0 −f � (x)/f (x)2
6
ln x (1 / x) ⋅ x 2 − ln x ⋅ 2 x
Solution: L'Hopital's Rule gives lim = lim
x2
x →∞ x →∞ (x 2 )2
x − 2 x ln x 1 − 2 ln x
= lim = lim = ??? (The solver is stuck because this
x →∞ x4 x →∞ x3
expression is similar to but more complicated than the original problem.)
The Error: The solver used the quotient rule rather than L'Hopital's Rule.
ln x 1/ x
A Correct Solution: Using L'Hopital's Rule correctly gives lim 2
= lim
x →∞ x x →∞ 2x
1
= lim = 0.
x →∞ 2x 2
sin 2 x x ln x
Problem #5: Find the following limits: (a) lim ; (b) lim .
x→0 5x −1 x →∞ 2x
Solution: Since both problems involve quotients, we can use L'Hopital's Rule for each:
2 cos 2 x 2 ⋅ cos 0
For (a), differentiating top and bottom gives lim = = 2/5 .
x→0 5 5
x ⋅1 / x 1
For (b), differentiating top and bottom gives lim = lim = 0
x →∞ (ln 2) 2 x x →∞ (ln 2) 2 x
The Error--(a): L'Hopital's Rule can only be used on expressions that have the
sin(2 ⋅ 0) 0
indeterminate form ∞ /∞ or 0/0. But plugging in 0 gives = , so
5(0) − 1 −1
L'Hopital's Rule does not apply.
sin 2 x sin(2 ⋅ 0) 0
A Correct Solution: lim = = = 0.
x→0 5x −1 5(0) − 1 −1
The Error--(b): This expression does have the indeterminate form ∞ /∞, so it is correct
to use L'Hopital's Rule. However, the derivative of the numerator requires the product
rule.
x ln x 1⋅ ln x + x ⋅1 / x ln x + 1
A Correct Solution: lim = lim
x
= lim . As this
x
x →∞ 2 x →∞ (ln 2)2 x →∞ (ln 2)2 x
is still of the form ∞ /∞, we must apply L'Hopital's Rule again:
25
2. (a) lim xe−x (f) lim x2 e−x
x→∞ x→∞
(b) lim cot(2x) sin(6x) (g) lim x ln x
x→0+ x→0
1
(c) lim tan x − 1
π
x→ 2 − cos x (h) lim x sin
x→∞ x
x 1 1 1
(d) lim − (i) lim −
x→1+ x − 1
� � ln x x→0 sin x x
1 x 1
(e) lim 1 + (j) lim x x
x→∞ x x→∞
3. Try to compute the following limit with L’Hospital rule. What happened? Then
sketch a graph with some program. What does it look like? Try to compute the
limit with two policemen theorem.
x2 + sin x
lim
x→∞ x2
Source 1: Calculus: Single and Multivariable 6th edition by Hughes-Hallett, Deborah, McCallum, William G.,
Gleason, Andr (2012)