Corrected exercises: indeterminate forms and L'Hospital's rule (MATH 140)
This is the corrected exercise set for indeterminate forms and L'Hospital's rule (also spelled L'Hôpital) in MATH 140, Calculus 1, at McGill University, section 4.4 of Stewart. It comes after the derivative rules and before curve sketching, which uses it for every horizontal asymptote that algebra cannot reach. Every answer is exact and computed by hand, and each solution writes the form before each round, because on a MATH 140 paper a correct limit without its form loses the method marks.
The thread running through the whole set: the rule is a PERMIT that is checked at every use. The form must be 00 or ∞∞ at THAT round; a product, a difference or a variable power is first rewritten into one of these two; and the rule only concludes when the new limit exists. When the form is not indeterminate, the limit is read directly; when a round loops or makes the quotient worse, algebra takes over.
The traps named in the solutions: differentiating a form 20, applying the quotient rule instead of differentiating top and bottom separately, one round too many after the form became 10, a lost minus sign on e−x, the wrong factor put downstairs in a product, answering 0 to ∞−∞, stopping at the limit of the logarithm, believing that 00 or 1∞ is always 1, concluding that a limit does not exist because g′f′ has none, and proving xsinx→1 with a rule that needs it.
Self-checking setType your answers under each question: the page tells you right or wrong before you open the solution. With an account, every answer right on the first try earns points.
•L'Hospital's rule: if gf is of the form 00 or ±∞±∞ at a (or ±∞), g′=0 near a, and limg′f′ exists or is ±∞, then limgf=limg′f′.
•Top and bottom are differentiated separately. The form is written before EVERY round; a form such as c0 or 0c with c=0 is not indeterminate.
•0⋅∞: write fg=1/gf or 1/fg, keeping a logarithm upstairs. ∞−∞: common denominator, factoring, or lna−lnb=lnba.
•1∞, 00, ∞0: with y=fg, lny=glnf; if lny→L then y→eL.
•Growth as x→∞: lnx≪xp≪ex for every p>0.
•If the rule loops or worsens the quotient: divide by the dominant term, or substitute t=x1.
Part A: the basics (/50)
Exercise 1: The form 0/0: check it, then differentiate top and bottom separately
L'Hospital's rule. Suppose f and g are differentiable near a (except possibly at a), g′(x)=0 near a, and the quotient g(x)f(x) is of the form 00 or ±∞±∞ as x→a. If limx→ag′(x)f′(x) exists (or is ±∞), then limx→ag(x)f(x)=limx→ag′(x)f′(x). The same holds for one-sided limits and for a=±∞.
The top and the bottom are differentiated SEPARATELY: the quotient rule has nothing to do here. The figure shows y=e3x−1 and y=sin2x near 0, with their tangent lines at the origin.
a) Find limx→0sin2xe3x−1, stating the form first. Explain the answer with the two tangent lines of the figure.
b) Find limx→1x2−1lnx.
c) Find limx→2x2+x−6x3−8 in two ways: by L'Hospital's rule, then by factoring. Do the answers agree?
d) A student writes: limx→π−1−cosxsinx=limx→π−sinxcosx=−∞. Find the error and the correct limit.
e) Find limx→0x5x−3x, as an exact number.
Show the solution
Answers
a)Form 00; the limit is 23, the quotient of the two tangent slopes.
b)Form 00; the limit is 21.
c)512 both ways.
d)The form is 20, not indeterminate: the limit is 0.
e)ln5−ln3=ln35
a) As x→0, e3x−1→e0−1=0 and sin2x→0: the form is 00, and both functions are differentiable, with (sin2x)′=2cos2x=0 near 0. By L'Hospital's rule, with the chain rule on each inner function 3x and 2x: limx→02cos2x3e3x=2⋅13⋅1=23. The figure explains why: near 0 each curve is almost its tangent line, e3x−1≈3x and sin2x≈2x, so the quotient is almost 2x3x=23. L'Hospital's rule is exactly that: when both functions vanish at a, their quotient tends to the quotient of their SLOPES at a. Writing the form 00 before differentiating is the first method mark of every question of this chapter.
b) At x=1, ln1=0 and 12−1=0: the form is 00. By L'Hospital's rule, limx→12x1/x=21. The new quotient is continuous at 1, so the limit is read by substitution and the computation stops after one round. Factoring does not work here, since lnx has no factor x−1 to cancel: this is the kind of 00 for which the rule was made.
c) At x=2: 8−8=0 and 4+2−6=0, form 00. By L'Hospital's rule, limx→22x+13x2=512. By factoring: x3−8=(x−2)(x2+2x+4) and x2+x−6=(x−2)(x+3), so for x=2 the quotient is x+3x2+2x+4→512. The answers agree, as they must: the rule is a theorem, not a trick. For polynomials the factorization is often just as fast, and it is the method to keep when a question says without L'Hospital's rule.
d) As x→π−, sinx→0 but 1−cosx→1−(−1)=2. The form is 20, which is NOT indeterminate: the limit is 20=0, by the quotient law, and the question is over. The student skipped the check of the form, and the rule, applied outside its hypotheses, produced −∞, a wrong answer with a correct-looking computation. This is the single most expensive error of the chapter: the whole question is lost, and nothing on the page looks wrong to the student.
e) At x=0: 50−30=0 and the denominator is 0, form 00. Write 5x=exln5, so (5x)′=5xln5 by the chain rule, and likewise (3x)′=3xln3. By L'Hospital's rule, limx→015xln5−3xln3=ln5−ln3=ln35. The answer is exact: ln35, not a decimal. A student who writes (5x)′=x⋅5x−1 applies the power rule to an exponential and gets 10 at the end, a sign that the derivative was wrong.
Tick the exercises you have done or want to review: a free account, no password, keeps your ticks from one visit to the next and tells you which chapter to tackle next. Create your space, an email is enough.
Exercise 2: The form infinity over infinity, and who grows faster
The rule applies in the same way to the form ±∞±∞. Its most useful consequence is the growth ranking of the elementary functions as x→∞: for every p>0, lnx≪xp≪ex, where u≪v means vu→0. A power of lnx loses to any power of x, and any power of x loses to ex.
The figure shows y=x3 and y=ex for 0≤x≤6.
a) Find limx→∞x(lnx)2, checking the form at each round.
b) Find limx→∞x4ex.
c) Find limx→∞ln(x2+5)ln(x3+1).
d) Find limx→0+lnxln(sinx).
e) Without a calculator, compare e3 with 27 and e5 with 125, and say what the figure shows between x=3 and x=5. Then prove that limx→∞exx3=0 and explain why the figure does not contradict it.
Show the solution
Answers
a)0, after two rounds
b)∞, after four rounds
c)23
d)1
e)e3<27 and e5>125: x3 is ahead at 3, behind at 5. exx3→0: the limit only speaks of large x.
a) As x→∞, (lnx)2→∞ and x→∞: form ∞∞. Round 1, with the chain rule on the square: 12lnx⋅x1=x2lnx. Check again: ∞∞, so the rule may be used once more. Round 2: 12/x=x2→0. The limit is 0. Each round is licensed by its own form: writing ∞∞ twice is not a formality, it is the permit for the second derivative quotient.
b) Form ∞∞. Round 1: 4x3ex, still ∞∞. Round 2: 12x2ex, still ∞∞. Round 3: 24xex, still ∞∞. Round 4: 24ex→∞. So x4ex→∞. Each round lowers the power by one and leaves ex unchanged; the rule also allows a limit equal to ∞. By the growth ranking the answer was predictable, but on an exam the ranking is quoted only if the course allows it: the four rounds are the proof.
c) Both logarithms tend to ∞: form ∞∞. By the rule, with the chain rule on each inner polynomial: x2+52xx3+13x2=2(x3+1)3x(x2+5). This is now a rational function, and dividing top and bottom by x3 gives 2(1+1/x3)3(1+5/x2)→23. Simplify BETWEEN rounds: differentiating x3+13x2 again with the quotient rule would be a waste of ten lines. The answer is the ratio of the degrees, because ln(x3+1) behaves like 3lnx and ln(x2+5) like 2lnx.
d) As x→0+, sinx→0+, so ln(sinx)→−∞, and lnx→−∞: form −∞−∞, covered by the rule. Round 1: 1/xcosx/sinx=sinxxcosx. This is of the form 00; rather than a second round, split it: sinxx⋅cosx, and sinxx→1 (one round of the rule: cosx1→1). So the limit is 1⋅1=1. The logarithm flattens everything: sinx and x differ, but their logarithms have the same size near 0.
e) Since e<3, e3<27. Since e>2.7, e5>2.75, and 2.72=7.29 and 2.74=7.292>53, so 2.75>53×2.7>143>125. So at x=3 the cubic is ahead, x3>ex, and at x=5 the exponential has passed it, as the figure shows: after a first crossing near x=2, the curves cross again between 4 and 5 (at 4 the cubic still leads, e4<2.724<64), and never after that. For the limit: form ∞∞; three rounds give ex3x2, ex6x, ex6→0, the form ∞∞ being checked before each. No contradiction: a limit at infinity says nothing about x=3, it describes what happens for ALL x large enough. Concluding from a table of small values that x3 grows faster is the error the figure is designed to provoke.
Exercise 3: Products 0 times infinity and differences infinity minus infinity: rewrite first
The rule only accepts a QUOTIENT of the form 00 or ∞∞. A product f⋅g with f→0 and g→±∞ is first written 1/gf or 1/fg, and the choice matters: one of the two makes the next quotient simpler, the other makes it worse. A difference f−g with f,g→∞ is first turned into a quotient, by a common denominator, a factorization, or a law of logarithms.
In every part, write the form, then the rewritten quotient and ITS form, before any derivative.
a) Find limx→0+sinxlnx. Try both ways of writing it as a quotient, and keep the one that works.
b) Find limx→−∞xex.
c) Find limx→1+(lnx1−x−11).
d) Find limx→(π/2)−(secx−tanx).
e) Find limx→∞[ln(2x+1)−ln(x+3)].
Show the solution
Answers
a)cscxlnx works: the limit is 0.
b)e−xx→0
c)21
d)0
e)ln2
a) Form 0⋅(−∞). First way: 1/lnxsinx, of the form 00; the rule gives −x(lnx)21cosx=−x(lnx)2cosx, a product of the same kind as before and harder. Abandon it. Second way: 1/sinxlnx=cscxlnx, of the form ∞−∞; the rule gives −cscxcotx1/x=−xsinx⋅tanx, and since xsinx→1 and tanx→0, the limit is −1⋅0=0. The rule of thumb: keep the LOGARITHM upstairs, because its derivative x1 is simpler than it, while lnx1 has an uglier derivative.
b) Form (−∞)⋅0. Write xex=e−xx: as x→−∞, x→−∞ and e−x→∞, form ∞−∞. By the rule, −e−x1=−ex→0. So xex→0, from below since xex<0 for x<0. The other choice, 1/xex, is of the form 00 and the rule turns it into −1/x2ex=−x2ex: a worse product. Rewriting is a choice, and a round that makes things worse is a signal to go back, not to insist.
c) As x→1+, both lnx1 and x−11 tend to +∞: form ∞−∞. Common denominator: (x−1)lnxx−1−lnx, of the form 00. Round 1: lnx+xx−11−x1; multiply top and bottom by x: xlnx+x−1x−1, still 00. Round 2: lnx+1+11→21. The difference of two quantities that both blow up is 21, not 0: they blow up at the same rate, and the rule measures what is left over. Clearing the small fractions between rounds is what keeps round 2 short.
d) As x→(π/2)−, secx→∞ and tanx→∞: form ∞−∞. Common denominator, since both have cosx downstairs: secx−tanx=cosx1−sinx, of the form 00. By the rule, −sinx−cosx=sinxcosx→10=0. The last quotient is NOT indeterminate, so the computation stops there. Answer: 0.
e) Form ∞−∞. Here no derivative is needed: by the law of logarithms, ln(2x+1)−ln(x+3)=lnx+32x+1. Inside, x+32x+1=1+3/x2+1/x→2, and ln is continuous at 2, so the limit is ln2. Turning the difference into a quotient is the whole method for ∞−∞; sometimes the quotient is then easy, and the rule is not needed at all. Answering 0 because the two logarithms both grow without bound confuses a form with a value.
Exercise 4: Repeated rounds: the form is checked again before each one
When the first round gives another 00, the rule may be used again, and again: each round needs its own form, written down. Two habits make the difference between a clean page and a lost question: SIMPLIFY between rounds (a factor that tends to a nonzero number can be taken out as a limit), and STOP as soon as the form is no longer indeterminate.
The figure shows y=x3tanx−x for 0<∣x∣≤1.2: the function is not defined at 0, and its graph has a hole.
a) Find limx→0x3tanx−x and locate the hole of the figure.
b) Find limx→0x2ex+e−x−2.
c) A student writes: limx→0x2+xex−1−x=limx→02x+1ex−1=limx→02ex=21. Find the error and the correct limit.
d) Find limx→0x−tanxx−sinx, simplifying after the first round.
Show the solution
Answers
a)31: the hole is at (0,31).
b)1, after two rounds
c)After one round the form is 10: the limit is 0, not 21.
d)−21
a) Form 00, since tan0−0=0. Round 1: 3x2sec2x−1=3x2tan2x, by the identity sec2x−1=tan2x. Still 00, but a second derivative of sec2x is not needed: 3x2tan2x=31(xtanx)2, and xtanx is 00 with, by the rule, 1sec2x→1. So the limit is 31⋅12=31. The figure agrees: the curve is even, rises from about 0.33 near 0 to about 0.79 at x=±1.2, and the hole sits at (0,31). Three blind rounds would work too, with 2sec2xtanx and then its derivative: the identity saves two error-prone lines.
b) At 0: 1+1−2=0 over 0, form 00. Round 1, chain rule on e−x: 2xex−e−x, form 00 again since e0−e0=0. Round 2: 2ex+e−x→21+1=1. The sign in round 1 is the trap: (e−x)′=−e−x, and a student who forgets the minus finds 2xex+e−x→02, an infinite limit for a function that is visibly bounded near 0.
c) The first round is legitimate: at 0 the form is 01−1−0=00, and it gives 2x+1ex−1. But now the numerator tends to 0 and the denominator to 1: the form is 10, NOT indeterminate, and the limit is 0. The second round was not allowed: its hypothesis, a form 00 or ∞∞, is false, and it produced 21, a wrong answer. Check: for x=0.01, ex−1−x is about 2x2=0.00005 while x2+x≈0.01, a quotient near 0.005, close to 0. Applying the rule once too often costs the whole question, and it is invisible unless the form is written before EVERY round.
d) Form 00. Round 1: 1−sec2x1−cosx=−tan2x1−cosx, still 00. Simplify instead of differentiating: tan2x=cos2xsin2x and sin2x=(1−cosx)(1+cosx), so for x near 0, x=0, the quotient is −(1−cosx)(1+cosx)(1−cosx)cos2x=−1+cosxcos2x→−21. The factor 1−cosx that caused the 00 cancels. Blind rounds would reach the same −21 after two more derivatives of sec2x; the algebra is shorter and harder to get wrong.
Exercise 5: Powers 1 to the infinity, 0 to the 0, infinity to the 0: take the logarithm
When both the base and the exponent move, y=f(x)g(x) with f(x)>0, three forms are indeterminate: 1∞, 00 and ∞0. The method is always the same. Write lny=g(x)lnf(x), a product of the form 0⋅∞; rewrite it as a quotient and find limlny=L; then, because the exponential is continuous, limy=eL.
The figure shows y=(cosx)1/x2 on (−2π,2π) without 0, and a dashed horizontal line.
a) Find limx→0+xsinx. You may use Exercise 3 a).
b) Find limx→0(cosx)1/x2, and give the exact height of the dashed line.
c) Find limx→∞(ex+x)1/x.
d) Find limx→0+(1+sin4x)cotx.
e) A student writes: 00=1, so every limit of the form 00 equals 1. Compute x1/lnx for 0<x<1 and conclude.
Show the solution
Answers
a)lny=sinxlnx→0, so the limit is e0=1.
b)lny→−21, so the limit is e−1/2=e1, the height of the line.
c)lny→1, so the limit is e.
d)lny→4, so the limit is e4.
e)x1/lnx=e for every x in (0,1): a form 00 with limit e.
a) As x→0+ the base x→0+ and the exponent sinx→0: form 00. Let y=xsinx, so lny=sinxlnx, of the form 0⋅(−∞). By Exercise 3 a), rewritten as cscxlnx and one round of the rule, lny→0. The exponential is continuous at 0, so y=elny→e0=1. The answer is 1 HERE because the logarithm tends to 0, not because 00 is 1: part e) shows the difference.
b) As x→0, cosx→1 and x21→∞: form 1∞. With y=(cosx)1/x2 (defined for ∣x∣<2π, where cosx>0), lny=x2ln(cosx), of the form 00. Round 1: 2x−sinx/cosx=−21⋅xtanx→−21, since xtanx→1 (Exercise 4 a). So y→e−1/2=e1, about 0.61 with e≈2.72. This is the height of the dashed line, and the figure shows the curve closing in on it from both sides, with a hole at (0,e−1/2). The frequent error is to stop at lny→−21 and answer −21: a power of a positive number is never negative, and the last line must exponentiate.
c) As x→∞, the base ex+x→∞ and the exponent x1→0: form ∞0. lny=xln(ex+x), form ∞∞. Round 1: ex+xex+1, form ∞∞ again. A second round gives ex+1ex and a third exex=1; faster, divide top and bottom of ex+xex+1 by ex: 1+xe−x1+e−x→1+01+0=1, since xe−x=exx→0. So lny→1 and y→e. The term x is negligible next to ex, and (ex)1/x=e exactly: the limit says the x does not matter.
d) As x→0+, 1+sin4x→1 and cotx→∞: form 1∞. lny=cotxln(1+sin4x)=tanxln(1+sin4x), form 00. Round 1, chain rule twice on the numerator: sec2x1+sin4x4cos4x→14⋅1/1=4. So y→e4. Writing cotx=tanx1 is the move that turns the product into a quotient; the inner function 4x must bring its factor 4, and it is exactly that 4 which ends up in the exponent of the answer.
e) For 0<x<1, lnx=0 and x1/lnx=elnx1⋅lnx=e1=e. As x→0+ the base tends to 0 and the exponent lnx1 tends to 0−: the form is 00, yet the function is the CONSTANT e, and its limit is e, not 1. The student confuses the number 00, which some texts define as 1 for convenience, with the FORM 00, which is a statement about two functions that both tend to 0 and says nothing about their race. The same holds for 1∞ (part b gave e−1/2) and ∞0 (part c gave e).
Part B: problems and reasoning (/50)
Exercise 6: When the rule does not apply, or does not help
L'Hospital's rule is an implication with hypotheses: IF the form is 00 or ∞∞, IF g′=0 near the point, and IF limg′f′ exists, THEN limgf is the same number. When the last hypothesis fails, the rule says nothing, not that the limit fails to exist. And even when it applies, it can loop or make the quotient worse: then algebra takes over.
The figure shows, for 0<x≤30, the quotient xx+sinx in blue and the quotient of the derivatives, 1+cosx, dashed in orange.
a) Show that xx+sinx is of the form ∞∞ as x→∞ and that the quotient of the derivatives has no limit. Find the limit anyway, and state what the rule allows you to conclude here.
b) Apply the rule twice to xx2+1 as x→∞ and describe what happens. Find the limit at ∞, then at −∞.
c) Find limx→0+xe−1/x. Show that the rule makes it worse, and use the substitution t=x1.
d) Find limx→0sinxx2sin(1/x), after checking whether the rule can decide it.
e) A student proves limx→0xsinx=1 by L'Hospital's rule, then uses that limit to prove that (sinx)′=cosx. What is wrong with this argument?
Show the solution
Answers
a)11+cosx has no limit; xx+sinx=1+xsinx→1. The rule concludes nothing.
b)The rule returns x2+1x, then the original quotient: a loop. Limits 1 at ∞ and −1 at −∞.
c)The rule gives x2e−1/x, worse; ett→0, so the limit is 0.
d)g′f′ has no limit; sinxx⋅xsinx1→1⋅0=0.
e)Circular: the rule needs (sinx)′=cosx, the very result the limit is used to prove.
a) As x→∞, x+sinx≥x−1→∞ and x→∞: form ∞∞. The quotient of the derivatives is 11+cosx, which oscillates between 0 and 2 forever, the dashed curve of the figure: it has no limit. Yet xx+sinx=1+xsinx, and −x1≤xsinx≤x1 with both bounds tending to 0, so by the squeeze theorem the limit is 1: the blue curve settles on the line y=1. The rule's third hypothesis, the existence of limg′f′, fails, so the rule concludes NOTHING, neither a value nor the nonexistence of the limit. Writing the limit does not exist because 1+cosx has none reverses the implication and costs the whole question.
b) Form ∞∞. Round 1: 1x2+1x=x2+1x, form ∞∞. Round 2: x2+1x1=xx2+1, the starting quotient. The rule turns in a circle and will never finish. Algebra instead: for x>0, x=x2, so xx2+1=x2x2+1=1+x21→1. For x<0, x=−x2, so the quotient is −1+x21→−1. The loop is the signal: when the rule gives back what you started from, stop differentiating and divide by the dominant term, with the sign of x.
c) As x→0+, −x1→−∞, so e−1/x→0: form 00. By the rule, with the chain rule, (e−1/x)′=x21e−1/x, and the new quotient is x2e−1/x: the same exponential over a WORSE power, and each further round adds a power of x1. Substitute t=x1, so t→∞ as x→0+: xe−1/x=te−t=ett, form ∞∞, and one round gives et1→0. The limit is 0. When x appears only through x1, the substitution turns a hopeless quotient into a standard one.
d) As x→0, ∣x2sinx1∣≤x2→0 and sinx→0: form 00. The derivative of the top is 2xsinx1−cosx1 (product and chain rules), and g′f′=cosx2xsin(1/x)−cos(1/x) has no limit, since cosx1 oscillates between −1 and 1. The rule is silent. Split instead: sinxx2sin(1/x)=sinxx⋅xsinx1. The first factor tends to 1 and the second to 0 by the squeeze theorem, ∣xsinx1∣≤∣x∣. The limit is 0. Same lesson as a): the failure of g′f′ proves nothing about gf.
e) L'Hospital's rule on xsinx uses the derivative (sinx)′=cosx. But in the course, that derivative is PROVED from the limit limh→0hsinh=1, through the definition limh→0hsin(x+h)−sinx. Using the rule to obtain the limit, and the limit to obtain the derivative, is a circular argument: nothing has been proved. The rule is a legitimate SHORTCUT for computing xsinx once the derivatives of the trigonometric functions are established, never a proof of the facts on which those derivatives rest. On a question that says prove, it earns zero.
Exercise 7: Choosing the constants so that a limit exists
A classic of MATH 140 finals: a limit contains unknown constants, and they must be chosen so that the limit is finite. The rule is then read backwards. If the denominator tends to 0 and the limit is finite, the numerator MUST tend to 0 too, otherwise the form is 0c with c=0 and the limit is infinite. Each round of the rule gives one such condition.
No calculator: every constant and every limit is exact.
a) Find the constant a for which limx→0x3sin3x+ax is finite, then compute that limit.
b) In a), what happens to the limit when a=−3? Distinguish a>−3 and a<−3.
c) Find a and b such that limx→0x2e2x−a−bx is finite, and compute it.
d) Let g(x)=x2ln(1+2x)−2x for x>−21, x=0. What value must g(0) take for g to be continuous at 0?
e) Find a>0 such that limx→∞(x−ax+a)x=e.
Show the solution
Answers
a)a=−3, and the limit is −29.
b)+∞ if a>−3, −∞ if a<−3 (on both sides of 0).
c)a=1, b=2, and the limit is 2.
d)g(0)=−2
e)The limit is e2a, so a=21.
a) The denominator x3→0 and the numerator sin3x+ax→0 for every a: form 00. Round 1: 3x23cos3x+a. The denominator still tends to 0 and the numerator tends to 3+a; for a finite limit this must be 0, so a=−3. With a=−3 the form is 00 again. Round 2: 6x−9sin3x, still 00. Round 3: 6−27cos3x→−627=−29. The limit is −29. The condition on a comes from checking the form at round 2: the check is not a formality here, it IS the equation.
b) If a=−3, after round 1 the quotient 3x23cos3x+a has a numerator tending to 3+a=0 and a denominator tending to 0+, since 3x2>0 on both sides. The form 0+3+a is not indeterminate: the limit is +∞ if 3+a>0, that is a>−3, and −∞ if a<−3. The rule was applied only once, legitimately, and the second quotient is concluded by its sign, not differentiated again. Note that round 1 is legitimate for every a, so the limit of the original quotient equals this one.
c) The denominator x2→0 and the numerator tends to 1−a. For a finite limit, 1−a=0: a=1. Now form 00; round 1: 2x2e2x−b, whose numerator tends to 2−b while the denominator tends to 0: so b=2. Form 00; round 2: 24e2x→2. So a=1, b=2, and the limit is 2. Two unknowns, two conditions, each one read on the numerator just before a round of the rule.
d) g is continuous at 0 exactly when g(0)=limx→0g(x). Form 00, since ln1−0=0. Round 1: 2x1+2x2−2. Simplify: 1+2x2−2=1+2x−4x, so the quotient is 2x(1+2x)−4x=1+2x−2→−2 for x=0. So g(0)=−2. Simplifying after round 1 avoids a second round, and avoids differentiating a quotient of quotients.
e) Form 1∞: the base x−ax+a→1 and the exponent x→∞. With y the expression, for x>a, lny=xlnx−ax+a=1/xln(x+a)−ln(x−a), of the form 00. Round 1: −x21x+a1−x−a1=−x21x2−a2−2a=x2−a22ax2→2a. So y→e2a, and e2a=e gives a=21. Splitting the logarithm of the quotient into a difference BEFORE differentiating makes round 1 a two-line computation.
Exercise 8: Five statements to correct
Each statement below was written by a student on a MATH 140 assignment, and each is false. Say what is wrong, give a counterexample, and write the correct statement.
a) By L'Hospital's rule, limx→ag(x)f(x)=limx→a(g(x)f(x))′, computed with the quotient rule.
b) The rule gives the right answer for every quotient: limx→0x+1cosx=limx→01−sinx=0.
c) If f(x)→0 and g(x)→0, then g(x)f(x)→1, because the two are equally small.
d) x→0+ and e1/x→∞, and zero times anything is zero, so limx→0+xe1/x=0.
e) Since ex grows faster than any power, ex>x10 for every x>0.
Show the solution
Answers
a)False: g′f′, not (gf)′. For xe3x−1 the limit is 3, not 29.
b)False: the form is 11, and the limit is 1.
c)False: xx2→0, x2x is unbounded, x5x→5.
d)False: xe1/x=tet with t=x1, and the limit is ∞.
e)False at x=10: e10<310<1010. True for all x large enough.
a) FALSE. The rule differentiates the numerator and the denominator SEPARATELY: limgf=limg′f′, under its hypotheses. The derivative of the quotient, (gf)′=g2f′g−fg′, is another function with another limit. Take xe3x−1 at 0, form 00: the rule gives 13e3x→3, the correct limit. The quotient rule gives x23xe3x−e3x+1, of the form 00, and one legitimate round of the rule on it gives 2x9xe3x→29: that is the SLOPE of the quotient near 0, not its limit. Correct statement: under the hypotheses of the rule, limx→ag(x)f(x)=limx→ag′(x)f′(x), top and bottom differentiated one at a time.
b) FALSE. At 0, cos0=1 and 0+1=1: the form is 11, not indeterminate, and the limit is 1 by the quotient law. The rule, applied without its hypothesis, gives 0, which is wrong. Correct statement: the rule applies only to the forms 00 and ±∞±∞, and the form is written down before each application.
c) FALSE. 00 is indeterminate precisely because two functions that tend to 0 can do so at different rates: xx2=x→0, x2x=x1 is unbounded near 0, and x5x=5. Correct statement: if f(x)→0 and g(x)→0, the limit of gf can be any number, infinite, or nonexistent, and it is decided by comparing the rates, which is exactly what g′f′ does.
d) FALSE. 0⋅∞ is indeterminate: the zero factor shrinks while the other grows, and here the exponential wins. With t=x1→∞: xe1/x=tet, form ∞∞, and one round gives 1et→∞. So limx→0+xe1/x=∞. Correct statement: zero times a BOUNDED quantity tends to zero; zero times a quantity that tends to infinity is a form, to be rewritten as a quotient.
e) FALSE. At x=10: e10<310=59049, while 1010 is ten billion, so e10<1010. The growth ranking is a statement about LIMITS: exx10→0 (ten rounds of the rule, each on a form ∞∞), which means that ex>x10 for all x beyond some point, not for all x>0. At x=1, e>1, so the two curves cross at least twice. Correct statement: for every p>0, ex>xp for all x large enough.
Exercise 9: Compounding more and more often: the limit, and how fast the gap closes
A deposit of 10000 dollars earns interest at the nominal annual rate r=4%. If the interest is compounded x times a year, each period adds xr of the balance, and after t years the balance is B=10000(1+xr)xt dollars. Banks compound yearly, monthly, daily; continuous compounding is what happens as x→∞. Here x is treated as a positive REAL variable, so that the rule can be used.
The figure shows, after one year, the balance beyond 10400 dollars, B(x)−10400, for 1≤x≤24, with the dots x=1,2,4,12. No calculator: every answer is exact, or an estimate built from exact pieces.
a) After one year, compute the balance exactly for x=1, x=2 and x=4 (to the cent).
b) Name the form of (1+xr)x as x→∞, and prove that its limit is er by applying the rule directly at infinity. Deduce the balance after t years under continuous compounding.
c) At 4% compounded continuously, what is the exact balance after 25 years? Estimate it with e≈2.72.
d) Prove that limu→0+u2u−ln(1+u)=21.
e) Let D(x)=x[r−xln(1+xr)]. Show that D(x)→2r2, then that x[er−(1+xr)x]→2r2er. Deduce how many dollars continuous compounding pays, in one year, beyond monthly compounding, using e0.04≈1.04.
Show the solution
Answers
a)10400, 10404 and 10406.04 dollars
b)Form 1∞; xln(1+xr)→r, so the limit is er; after t years, 10000ert dollars.
c)10000e dollars, about 27200 dollars
d)One round: 2(1+u)1→21
e)Gap ≈2x10000r2er≈x8.32 dollars: about 0.69 dollars for monthly compounding.
a) x=1: 10000×1.04=10400. x=2: 10000×1.022=10000×1.0404=10404. x=4: 10000×1.014; square twice, 1.012=1.0201 and 1.02012=1.04060401, so the balance is 10406.0401, that is 10406.04 dollars. On the figure these are the dots at heights 0, 4 and 6.04: each doubling of the frequency pays less than the previous one.
b) As x→∞ the base 1+xr→1 and the exponent x→∞: form 1∞, NOT 1. Take the logarithm: xln(1+xr)=1/xln(1+r/x), form 00 as x→∞. By the rule, with the chain rule on the inner function 1+xr, whose derivative is −x2r: −1/x21+r/x−r/x2=1+r/xr→r. The exponential is continuous, so (1+xr)x→er. After t years, (1+xr)xt=[(1+xr)x]t→ert, since y↦yt is continuous at er>0: continuous compounding gives 10000ert dollars. Writing 1∞=1 here would say that compounding more often pays nothing, which the figure contradicts.
c) rt=0.04×25=1, so the balance is 10000e1=10000e dollars, exactly. With e≈2.72, about 27200 dollars. The exact answer is 10000e; the estimate only says how large it is, and a decimal from a calculator would not be accepted as the answer on the exam.
d) As u→0+, u−ln(1+u)→0−ln1=0 and u2→0: form 00. Round 1: 2u1−1+u1=2u1+uu=2(1+u)1→21. Simplifying the fraction before taking the limit avoids a second round. Note that u−ln(1+u)>0 for u>0: the function u−ln(1+u) is 0 at 0 and has derivative 1+uu>0.
e) Put u=xr, so u→0+ as x→∞ and x=ur: D=ur[r−urln(1+u)]=r2⋅u2u−ln(1+u)→2r2 by d). By d) again D>0. Now (1+xr)x=exln(1+r/x)=er−D/x, so with s=xD→0+: x[er−er−s]=er⋅D⋅s1−e−s. The last factor is 00 and one round gives 1e−s→1. So the product tends to er⋅2r2⋅1: a form ∞⋅0 with a finite limit. In dollars, the gap is about 2x10000r2er=x8e0.04≈x8.32, since 10000×0.0016=16. Monthly, x=12: about 128.32≈0.69 dollars a year on 10000 dollars; daily, about 2 cents. The figure's curve does climb to its ceiling, but by the last dollar the race is already over: the rule measured not only the limit, but the SPEED at which it is reached.
Exercise 10: A final exam question: one function, every kind of limit
Let f(x)=xex−1 for x=0, and f(0)=1. This is the shape of a long final exam question: continuity, a derivative computed by its definition, the sign of f′, and the limits at both ends, with a form to check at every step and one trap that is not indeterminate at all.
Every limit must be justified: name the form, then the tool.
a) Prove that f is continuous at 0.
b) Compute f′(0) from the definition of the derivative.
c) Compute f′(x) for x=0, then limx→0f′(x). Compare with b).
d) Let N(x)=(x−1)ex+1. Study the sign of N, and deduce that f is increasing on R.
e) Find limx→∞f(x) and limx→−∞f(x), and give the range of f.
Show the solution
Answers
a)limx→0xex−1=1=f(0)
b)f′(0)=limh→0h2eh−1−h=21
c)f′(x)=x2(x−1)ex+1, and f′(x)→21=f′(0)
d)N(0)=0, N′(x)=xex: N>0 for x=0, so f′>0 everywhere.
e)∞ (form ∞∞) and 0 (form −∞−1, not indeterminate); range (0,∞).
a) As x→0, ex−1→0 and x→0: form 00. By the rule, limx→01ex=1. Since f(0)=1, limx→0f(x)=f(0), and f is continuous at 0. The three conditions of continuity are all visible: f(0) is defined, the limit exists, and the two are equal. For x=0, f is a quotient of continuous functions with a nonzero denominator, hence continuous: f is continuous on R.
b) By definition, f′(0)=limh→0hf(h)−f(0)=limh→0hheh−1−1=limh→0h2eh−1−h. Form 00. Round 1: 2heh−1, form 00 again. Round 2: 2eh→21. So f′(0)=21. The quotient rule cannot be used at 0, where f is not given by the formula: the definition is the only way, and the rule is what makes it computable.
c) For x=0, by the quotient rule: f′(x)=x2ex⋅x−(ex−1)⋅1=x2(x−1)ex+1. As x→0, the numerator tends to −1+1=0 and the denominator to 0: form 00. Round 1: 2xex+(x−1)ex=2xxex=2ex for x=0, which tends to 21. The two computations agree: limx→0f′(x)=21=f′(0), so f′ is itself continuous at 0. Simplifying 2xxex is legitimate because x=0; a second round would also work but costs a line.
d) N(0)=−1+1=0 and N′(x)=ex+(x−1)ex=xex, which is negative for x<0 and positive for x>0. So N decreases on (−∞,0] and increases on [0,∞): its minimum is N(0)=0, and N(x)>0 for every x=0. Hence f′(x)=x2N(x)>0 for x=0, and f′(0)=21>0: f′>0 on R, so f is increasing on R. The numerator N is exactly the one whose limit gave the 00 of c): the same function serves twice.
e) As x→∞: ex−1→∞ and x→∞, form ∞∞; one round gives 1ex→∞. As x→−∞: ex−1→0−1=−1 and x→−∞. The form is −∞−1, which is NOT indeterminate: the quotient tends to 0, through positive values since the top and the bottom are both negative. The rule must not be used here; applied anyway it gives 1ex→0, the right number by luck and a method error on the paper. So the line y=0 is a horizontal asymptote on the left. Since f is continuous and increasing, with limits 0 at −∞ and ∞ at ∞, the Intermediate Value Theorem gives the range (0,∞). The figure of the solution shows the curve rising from the asymptote through the filled point (0,1), with its tangent of slope 21.