MATH 140 Calculus 1 • McGill University, Montreal

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\frac{0}{0} or ∞∞\frac{\infty}{\infty} 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 02\frac{0}{2}, applying the quotient rule instead of differentiating top and bottom separately, one round too many after the form became 01\frac{0}{1}, a lost minus sign on e−xe^{-x}, the wrong factor put downstairs in a product, answering 00 to ∞−∞\infty - \infty, stopping at the limit of the logarithm, believing that 000^0 or 1∞1^\infty is always 11, concluding that a limit does not exist because f′g′\frac{f'}{g'} has none, and proving sin⁡xx→1\frac{\sin x}{x} \to 1 with a rule that needs it.

10 corrected exercises • 100 points • 150 minutes

Revision sheet for this chapter → Every MATH 140 chapter →

Self-checking set Type 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.

Course recap

  • • L'Hospital's rule: if fg\frac{f}{g} is of the form 00\frac{0}{0} or ±∞±∞\frac{\pm\infty}{\pm\infty} at aa (or ±∞\pm\infty), g′≠0g' \ne 0 near aa, and lim⁡f′g′\lim \frac{f'}{g'} exists or is ±∞\pm\infty, then lim⁡fg=lim⁡f′g′\lim \frac{f}{g} = \lim \frac{f'}{g'}.
  • • Top and bottom are differentiated separately. The form is written before EVERY round; a form such as 0c\frac{0}{c} or c0\frac{c}{0} with c≠0c \ne 0 is not indeterminate.
  • • 0⋅∞0 \cdot \infty: write fg=f1/gfg = \frac{f}{1/g} or g1/f\frac{g}{1/f}, keeping a logarithm upstairs. ∞−∞\infty - \infty: common denominator, factoring, or ln⁡a−ln⁡b=ln⁡ab\ln a - \ln b = \ln\frac{a}{b}.
  • • 1∞1^\infty, 000^0, ∞0\infty^0: with y=fgy = f^g, ln⁡y=gln⁡f\ln y = g\ln f; if ln⁡y→L\ln y \to L then y→eLy \to e^L.
  • • Growth as x→∞x \to \infty: ln⁡x≪xp≪ex\ln x \ll x^p \ll e^x for every p>0p > 0.
  • • If the rule loops or worsens the quotient: divide by the dominant term, or substitute t=1xt = \frac{1}{x}.

Part A: the basics (/50)

Exercise 1: The form 0/0: check it, then differentiate top and bottom separately

L'Hospital's rule. Suppose ff and gg are differentiable near aa (except possibly at aa), g′(x)≠0g'(x) \ne 0 near aa, and the quotient f(x)g(x)\frac{f(x)}{g(x)} is of the form 00\frac{0}{0} or ±∞±∞\frac{\pm\infty}{\pm\infty} as x→ax \to a. If lim⁡x→af′(x)g′(x)\lim_{x\to a} \frac{f'(x)}{g'(x)} exists (or is ±∞\pm\infty), then lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x)\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 for a=±∞a = \pm\infty.

The top and the bottom are differentiated SEPARATELY: the quotient rule has nothing to do here. The figure shows y=e3x−1y = e^{3x} - 1 and y=sin⁡2xy = \sin 2x near 00, with their tangent lines at the origin.

-0.4-0.20.20.40.6-1.5-1-0.50.511.522.53y = e³ˣ - 1y = sin 2xtangent slopes: 3, 2x
  • a) Find lim⁡x→0e3x−1sin⁡2x\lim_{x\to 0} \frac{e^{3x} - 1}{\sin 2x}, stating the form first. Explain the answer with the two tangent lines of the figure.
  • b) Find lim⁡x→1ln⁡xx2−1\lim_{x\to 1} \frac{\ln x}{x^2 - 1}.
  • c) Find lim⁡x→2x3−8x2+x−6\lim_{x\to 2} \frac{x^3 - 8}{x^2 + x - 6} in two ways: by L'Hospital's rule, then by factoring. Do the answers agree?
  • d) A student writes: lim⁡x→π−sin⁡x1−cos⁡x=lim⁡x→π−cos⁡xsin⁡x=−∞\lim_{x\to \pi^-} \frac{\sin x}{1 - \cos x} = \lim_{x\to \pi^-} \frac{\cos x}{\sin x} = -\infty. Find the error and the correct limit.
  • e) Find lim⁡x→05x−3xx\lim_{x\to 0} \frac{5^x - 3^x}{x}, as an exact number.

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) Form 00\frac{0}{0}; the limit is 32\frac{3}{2}, the quotient of the two tangent slopes.
  • b) Form 00\frac{0}{0}; the limit is 12\frac{1}{2}.
  • c) 125\frac{12}{5} both ways.
  • d) The form is 02\frac{0}{2}, not indeterminate: the limit is 00.
  • e) ln⁡5−ln⁡3=ln⁡53\ln 5 - \ln 3 = \ln\frac{5}{3}

a) As x→0x \to 0, e3x−1→e0−1=0e^{3x} - 1 \to e^0 - 1 = 0 and sin⁡2x→0\sin 2x \to 0: the form is 00\frac{0}{0}, and both functions are differentiable, with (sin⁡2x)′=2cos⁡2x≠0(\sin 2x)' = 2\cos 2x \ne 0 near 00. By L'Hospital's rule, with the chain rule on each inner function 3x3x and 2x2x: lim⁡x→03e3x2cos⁡2x=3⋅12⋅1=32\lim_{x\to 0} \frac{3e^{3x}}{2\cos 2x} = \frac{3 \cdot 1}{2 \cdot 1} = \frac{3}{2}. The figure explains why: near 00 each curve is almost its tangent line, e3x−1≈3xe^{3x} - 1 \approx 3x and sin⁡2x≈2x\sin 2x \approx 2x, so the quotient is almost 3x2x=32\frac{3x}{2x} = \frac{3}{2}. L'Hospital's rule is exactly that: when both functions vanish at aa, their quotient tends to the quotient of their SLOPES at aa. Writing the form 00\frac{0}{0} before differentiating is the first method mark of every question of this chapter.

b) At x=1x = 1, ln⁡1=0\ln 1 = 0 and 12−1=01^2 - 1 = 0: the form is 00\frac{0}{0}. By L'Hospital's rule, lim⁡x→11/x2x=12\lim_{x\to 1} \frac{1/x}{2x} = \frac{1}{2}. The new quotient is continuous at 11, so the limit is read by substitution and the computation stops after one round. Factoring does not work here, since ln⁡x\ln x has no factor x−1x - 1 to cancel: this is the kind of 00\frac{0}{0} for which the rule was made.

c) At x=2x = 2: 8−8=08 - 8 = 0 and 4+2−6=04 + 2 - 6 = 0, form 00\frac{0}{0}. By L'Hospital's rule, lim⁡x→23x22x+1=125\lim_{x\to 2} \frac{3x^2}{2x + 1} = \frac{12}{5}. By factoring: x3−8=(x−2)(x2+2x+4)x^3 - 8 = (x - 2)(x^2 + 2x + 4) and x2+x−6=(x−2)(x+3)x^2 + x - 6 = (x - 2)(x + 3), so for x≠2x \ne 2 the quotient is x2+2x+4x+3→125\frac{x^2 + 2x + 4}{x + 3} \to \frac{12}{5}. 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→π−x \to \pi^-, sin⁡x→0\sin x \to 0 but 1−cos⁡x→1−(−1)=21 - \cos x \to 1 - (-1) = 2. The form is 02\frac{0}{2}, which is NOT indeterminate: the limit is 02=0\frac{0}{2} = 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 −∞-\infty, 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=0x = 0: 50−30=05^0 - 3^0 = 0 and the denominator is 00, form 00\frac{0}{0}. Write 5x=exln⁡55^x = e^{x\ln 5}, so (5x)′=5xln⁡5(5^x)' = 5^x \ln 5 by the chain rule, and likewise (3x)′=3xln⁡3(3^x)' = 3^x \ln 3. By L'Hospital's rule, lim⁡x→05xln⁡5−3xln⁡31=ln⁡5−ln⁡3=ln⁡53\lim_{x\to 0} \frac{5^x \ln 5 - 3^x \ln 3}{1} = \ln 5 - \ln 3 = \ln\frac{5}{3}. The answer is exact: ln⁡53\ln\frac{5}{3}, not a decimal. A student who writes (5x)′=x⋅5x−1(5^x)' = x \cdot 5^{x-1} applies the power rule to an exponential and gets 01\frac{0}{1} 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 ±∞±∞\frac{\pm\infty}{\pm\infty}. Its most useful consequence is the growth ranking of the elementary functions as x→∞x \to \infty: for every p>0p > 0, ln⁡x≪xp≪ex\ln x \ll x^p \ll e^x, where u≪vu \ll v means uv→0\frac{u}{v} \to 0. A power of ln⁡x\ln x loses to any power of xx, and any power of xx loses to exe^x.

The figure shows y=x3y = x^3 and y=exy = e^x for 0≤x≤60 \le x \le 6.

123456255075100125150175200225y = x³y = eˣx³ ahead herex
  • a) Find lim⁡x→∞(ln⁡x)2x\lim_{x\to\infty} \frac{(\ln x)^2}{x}, checking the form at each round.
  • b) Find lim⁡x→∞exx4\lim_{x\to\infty} \frac{e^x}{x^4}.
  • c) Find lim⁡x→∞ln⁡(x3+1)ln⁡(x2+5)\lim_{x\to\infty} \frac{\ln(x^3 + 1)}{\ln(x^2 + 5)}.
  • d) Find lim⁡x→0+ln⁡(sin⁡x)ln⁡x\lim_{x\to 0^+} \frac{\ln(\sin x)}{\ln x}.
  • e) Without a calculator, compare e3e^3 with 2727 and e5e^5 with 125125, and say what the figure shows between x=3x = 3 and x=5x = 5. Then prove that lim⁡x→∞x3ex=0\lim_{x\to\infty} \frac{x^3}{e^x} = 0 and explain why the figure does not contradict it.

Type your answers, the page tells you right or wrong 0/7

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) 00, after two rounds
  • b) ∞\infty, after four rounds
  • c) 32\frac{3}{2}
  • d) 11
  • e) e3<27e^3 < 27 and e5>125e^5 > 125: x3x^3 is ahead at 33, behind at 55. x3ex→0\frac{x^3}{e^x} \to 0: the limit only speaks of large xx.

a) As x→∞x \to \infty, (ln⁡x)2→∞(\ln x)^2 \to \infty and x→∞x \to \infty: form ∞∞\frac{\infty}{\infty}. Round 1, with the chain rule on the square: 2ln⁡x⋅1x1=2ln⁡xx\frac{2\ln x \cdot \frac{1}{x}}{1} = \frac{2\ln x}{x}. Check again: ∞∞\frac{\infty}{\infty}, so the rule may be used once more. Round 2: 2/x1=2x→0\frac{2/x}{1} = \frac{2}{x} \to 0. The limit is 00. Each round is licensed by its own form: writing ∞∞\frac{\infty}{\infty} twice is not a formality, it is the permit for the second derivative quotient.

b) Form ∞∞\frac{\infty}{\infty}. Round 1: ex4x3\frac{e^x}{4x^3}, still ∞∞\frac{\infty}{\infty}. Round 2: ex12x2\frac{e^x}{12x^2}, still ∞∞\frac{\infty}{\infty}. Round 3: ex24x\frac{e^x}{24x}, still ∞∞\frac{\infty}{\infty}. Round 4: ex24→∞\frac{e^x}{24} \to \infty. So exx4→∞\frac{e^x}{x^4} \to \infty. Each round lowers the power by one and leaves exe^x unchanged; the rule also allows a limit equal to ∞\infty. 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 ∞\infty: form ∞∞\frac{\infty}{\infty}. By the rule, with the chain rule on each inner polynomial: 3x2x3+12xx2+5=3x(x2+5)2(x3+1)\frac{\frac{3x^2}{x^3 + 1}}{\frac{2x}{x^2 + 5}} = \frac{3x(x^2 + 5)}{2(x^3 + 1)}. This is now a rational function, and dividing top and bottom by x3x^3 gives 3(1+5/x2)2(1+1/x3)→32\frac{3(1 + 5/x^2)}{2(1 + 1/x^3)} \to \frac{3}{2}. Simplify BETWEEN rounds: differentiating 3x2x3+1\frac{3x^2}{x^3+1} again with the quotient rule would be a waste of ten lines. The answer is the ratio of the degrees, because ln⁡(x3+1)\ln(x^3 + 1) behaves like 3ln⁡x3\ln x and ln⁡(x2+5)\ln(x^2 + 5) like 2ln⁡x2\ln x.

d) As x→0+x \to 0^+, sin⁡x→0+\sin x \to 0^+, so ln⁡(sin⁡x)→−∞\ln(\sin x) \to -\infty, and ln⁡x→−∞\ln x \to -\infty: form −∞−∞\frac{-\infty}{-\infty}, covered by the rule. Round 1: cos⁡x/sin⁡x1/x=xcos⁡xsin⁡x\frac{\cos x / \sin x}{1/x} = \frac{x \cos x}{\sin x}. This is of the form 00\frac{0}{0}; rather than a second round, split it: xsin⁡x⋅cos⁡x\frac{x}{\sin x} \cdot \cos x, and xsin⁡x→1\frac{x}{\sin x} \to 1 (one round of the rule: 1cos⁡x→1\frac{1}{\cos x} \to 1). So the limit is 1⋅1=11 \cdot 1 = 1. The logarithm flattens everything: sin⁡x\sin x and xx differ, but their logarithms have the same size near 00.

e) Since e<3e < 3, e3<27e^3 < 27. Since e>2.7e > 2.7, e5>2.75e^5 > 2.7^5, and 2.72=7.292.7^2 = 7.29 and 2.74=7.292>532.7^4 = 7.29^2 > 53, so 2.75>53×2.7>143>1252.7^5 > 53 \times 2.7 > 143 > 125. So at x=3x = 3 the cubic is ahead, x3>exx^3 > e^x, and at x=5x = 5 the exponential has passed it, as the figure shows: after a first crossing near x=2x = 2, the curves cross again between 44 and 55 (at 44 the cubic still leads, e4<2.724<64e^4 < 2.72^4 < 64), and never after that. For the limit: form ∞∞\frac{\infty}{\infty}; three rounds give 3x2ex\frac{3x^2}{e^x}, 6xex\frac{6x}{e^x}, 6ex→0\frac{6}{e^x} \to 0, the form ∞∞\frac{\infty}{\infty} being checked before each. No contradiction: a limit at infinity says nothing about x=3x = 3, it describes what happens for ALL xx large enough. Concluding from a table of small values that x3x^3 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\frac{0}{0} or ∞∞\frac{\infty}{\infty}. A product f⋅gf \cdot g with f→0f \to 0 and g→±∞g \to \pm\infty is first written f1/g\frac{f}{1/g} or g1/f\frac{g}{1/f}, and the choice matters: one of the two makes the next quotient simpler, the other makes it worse. A difference f−gf - g with f,g→∞f, g \to \infty 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 lim⁡x→0+sin⁡x ln⁡x\lim_{x\to 0^+} \sin x \, \ln x. Try both ways of writing it as a quotient, and keep the one that works.
  • b) Find lim⁡x→−∞xex\lim_{x\to -\infty} x e^x.
  • c) Find lim⁡x→1+(1ln⁡x−1x−1)\lim_{x\to 1^+} \left(\frac{1}{\ln x} - \frac{1}{x - 1}\right).
  • d) Find lim⁡x→(π/2)−(sec⁡x−tan⁡x)\lim_{x\to (\pi/2)^-} (\sec x - \tan x).
  • e) Find lim⁡x→∞[ln⁡(2x+1)−ln⁡(x+3)]\lim_{x\to\infty} \left[\ln(2x + 1) - \ln(x + 3)\right].

Type your answers, the page tells you right or wrong 0/6

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) ln⁡xcsc⁡x\frac{\ln x}{\csc x} works: the limit is 00.
  • b) xe−x→0\frac{x}{e^{-x}} \to 0
  • c) 12\frac{1}{2}
  • d) 00
  • e) ln⁡2\ln 2

a) Form 0⋅(−∞)0 \cdot (-\infty). First way: sin⁡x1/ln⁡x\frac{\sin x}{1/\ln x}, of the form 00\frac{0}{0}; the rule gives cos⁡x−1x(ln⁡x)2=−x(ln⁡x)2cos⁡x\frac{\cos x}{-\frac{1}{x(\ln x)^2}} = -x(\ln x)^2 \cos x, a product of the same kind as before and harder. Abandon it. Second way: ln⁡x1/sin⁡x=ln⁡xcsc⁡x\frac{\ln x}{1/\sin x} = \frac{\ln x}{\csc x}, of the form −∞∞\frac{-\infty}{\infty}; the rule gives 1/x−csc⁡xcot⁡x=−sin⁡xx⋅tan⁡x\frac{1/x}{-\csc x \cot x} = -\frac{\sin x}{x} \cdot \tan x, and since sin⁡xx→1\frac{\sin x}{x} \to 1 and tan⁡x→0\tan x \to 0, the limit is −1⋅0=0-1 \cdot 0 = 0. The rule of thumb: keep the LOGARITHM upstairs, because its derivative 1x\frac{1}{x} is simpler than it, while 1ln⁡x\frac{1}{\ln x} has an uglier derivative.

b) Form (−∞)⋅0(-\infty) \cdot 0. Write xex=xe−xx e^x = \frac{x}{e^{-x}}: as x→−∞x \to -\infty, x→−∞x \to -\infty and e−x→∞e^{-x} \to \infty, form −∞∞\frac{-\infty}{\infty}. By the rule, 1−e−x=−ex→0\frac{1}{-e^{-x}} = -e^x \to 0. So xex→0x e^x \to 0, from below since xex<0x e^x < 0 for x<0x < 0. The other choice, ex1/x\frac{e^x}{1/x}, is of the form 00\frac{0}{0} and the rule turns it into ex−1/x2=−x2ex\frac{e^x}{-1/x^2} = -x^2 e^x: 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+x \to 1^+, both 1ln⁡x\frac{1}{\ln x} and 1x−1\frac{1}{x - 1} tend to +∞+\infty: form ∞−∞\infty - \infty. Common denominator: x−1−ln⁡x(x−1)ln⁡x\frac{x - 1 - \ln x}{(x - 1)\ln x}, of the form 00\frac{0}{0}. Round 1: 1−1xln⁡x+x−1x\frac{1 - \frac{1}{x}}{\ln x + \frac{x - 1}{x}}; multiply top and bottom by xx: x−1xln⁡x+x−1\frac{x - 1}{x\ln x + x - 1}, still 00\frac{0}{0}. Round 2: 1ln⁡x+1+1→12\frac{1}{\ln x + 1 + 1} \to \frac{1}{2}. The difference of two quantities that both blow up is 12\frac{1}{2}, not 00: 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)−x \to (\pi/2)^-, sec⁡x→∞\sec x \to \infty and tan⁡x→∞\tan x \to \infty: form ∞−∞\infty - \infty. Common denominator, since both have cos⁡x\cos x downstairs: sec⁡x−tan⁡x=1−sin⁡xcos⁡x\sec x - \tan x = \frac{1 - \sin x}{\cos x}, of the form 00\frac{0}{0}. By the rule, −cos⁡x−sin⁡x=cos⁡xsin⁡x→01=0\frac{-\cos x}{-\sin x} = \frac{\cos x}{\sin x} \to \frac{0}{1} = 0. The last quotient is NOT indeterminate, so the computation stops there. Answer: 00.

e) Form ∞−∞\infty - \infty. Here no derivative is needed: by the law of logarithms, ln⁡(2x+1)−ln⁡(x+3)=ln⁡2x+1x+3\ln(2x + 1) - \ln(x + 3) = \ln\frac{2x + 1}{x + 3}. Inside, 2x+1x+3=2+1/x1+3/x→2\frac{2x + 1}{x + 3} = \frac{2 + 1/x}{1 + 3/x} \to 2, and ln⁡\ln is continuous at 22, so the limit is ln⁡2\ln 2. Turning the difference into a quotient is the whole method for ∞−∞\infty - \infty; sometimes the quotient is then easy, and the rule is not needed at all. Answering 00 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\frac{0}{0}, 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=tan⁡x−xx3y = \frac{\tan x - x}{x^3} for 0<∣x∣≤1.20 < |x| \le 1.2: the function is not defined at 00, and its graph has a hole.

-1-0.8-0.6-0.4-0.20.20.40.60.811.20.10.20.30.40.50.60.70.80.91hole at (0, 1/3)y = (tan x - x)/x³x
  • a) Find lim⁡x→0tan⁡x−xx3\lim_{x\to 0} \frac{\tan x - x}{x^3} and locate the hole of the figure.
  • b) Find lim⁡x→0ex+e−x−2x2\lim_{x\to 0} \frac{e^x + e^{-x} - 2}{x^2}.
  • c) A student writes: lim⁡x→0ex−1−xx2+x=lim⁡x→0ex−12x+1=lim⁡x→0ex2=12\lim_{x\to 0} \frac{e^x - 1 - x}{x^2 + x} = \lim_{x\to 0} \frac{e^x - 1}{2x + 1} = \lim_{x\to 0} \frac{e^x}{2} = \frac{1}{2}. Find the error and the correct limit.
  • d) Find lim⁡x→0x−sin⁡xx−tan⁡x\lim_{x\to 0} \frac{x - \sin x}{x - \tan x}, simplifying after the first round.

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
d)
Show the solution

Answers

  • a) 13\frac{1}{3}: the hole is at (0,13)\left(0, \frac{1}{3}\right).
  • b) 11, after two rounds
  • c) After one round the form is 01\frac{0}{1}: the limit is 00, not 12\frac{1}{2}.
  • d) −12-\frac{1}{2}

a) Form 00\frac{0}{0}, since tan⁡0−0=0\tan 0 - 0 = 0. Round 1: sec⁡2x−13x2=tan⁡2x3x2\frac{\sec^2 x - 1}{3x^2} = \frac{\tan^2 x}{3x^2}, by the identity sec⁡2x−1=tan⁡2x\sec^2 x - 1 = \tan^2 x. Still 00\frac{0}{0}, but a second derivative of sec⁡2x\sec^2 x is not needed: tan⁡2x3x2=13(tan⁡xx)2\frac{\tan^2 x}{3x^2} = \frac{1}{3}\left(\frac{\tan x}{x}\right)^2, and tan⁡xx\frac{\tan x}{x} is 00\frac{0}{0} with, by the rule, sec⁡2x1→1\frac{\sec^2 x}{1} \to 1. So the limit is 13⋅12=13\frac{1}{3} \cdot 1^2 = \frac{1}{3}. The figure agrees: the curve is even, rises from about 0.330.33 near 00 to about 0.790.79 at x=±1.2x = \pm 1.2, and the hole sits at (0,13)\left(0, \frac{1}{3}\right). Three blind rounds would work too, with 2sec⁡2xtan⁡x2\sec^2 x \tan x and then its derivative: the identity saves two error-prone lines.

b) At 00: 1+1−2=01 + 1 - 2 = 0 over 00, form 00\frac{0}{0}. Round 1, chain rule on e−xe^{-x}: ex−e−x2x\frac{e^x - e^{-x}}{2x}, form 00\frac{0}{0} again since e0−e0=0e^0 - e^0 = 0. Round 2: ex+e−x2→1+12=1\frac{e^x + e^{-x}}{2} \to \frac{1 + 1}{2} = 1. The sign in round 1 is the trap: (e−x)′=−e−x(e^{-x})' = -e^{-x}, and a student who forgets the minus finds ex+e−x2x→20\frac{e^x + e^{-x}}{2x} \to \frac{2}{0}, an infinite limit for a function that is visibly bounded near 00.

c) The first round is legitimate: at 00 the form is 1−1−00=00\frac{1 - 1 - 0}{0} = \frac{0}{0}, and it gives ex−12x+1\frac{e^x - 1}{2x + 1}. But now the numerator tends to 00 and the denominator to 11: the form is 01\frac{0}{1}, NOT indeterminate, and the limit is 00. The second round was not allowed: its hypothesis, a form 00\frac{0}{0} or ∞∞\frac{\infty}{\infty}, is false, and it produced 12\frac{1}{2}, a wrong answer. Check: for x=0.01x = 0.01, ex−1−xe^x - 1 - x is about x22=0.00005\frac{x^2}{2} = 0.00005 while x2+x≈0.01x^2 + x \approx 0.01, a quotient near 0.0050.005, close to 00. 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\frac{0}{0}. Round 1: 1−cos⁡x1−sec⁡2x=1−cos⁡x−tan⁡2x\frac{1 - \cos x}{1 - \sec^2 x} = \frac{1 - \cos x}{-\tan^2 x}, still 00\frac{0}{0}. Simplify instead of differentiating: tan⁡2x=sin⁡2xcos⁡2x\tan^2 x = \frac{\sin^2 x}{\cos^2 x} and sin⁡2x=(1−cos⁡x)(1+cos⁡x)\sin^2 x = (1 - \cos x)(1 + \cos x), so for xx near 00, x≠0x \ne 0, the quotient is −(1−cos⁡x)cos⁡2x(1−cos⁡x)(1+cos⁡x)=−cos⁡2x1+cos⁡x→−12-\frac{(1 - \cos x)\cos^2 x}{(1 - \cos x)(1 + \cos x)} = -\frac{\cos^2 x}{1 + \cos x} \to -\frac{1}{2}. The factor 1−cos⁡x1 - \cos x that caused the 00\frac{0}{0} cancels. Blind rounds would reach the same −12-\frac{1}{2} after two more derivatives of sec⁡2x\sec^2 x; 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)y = f(x)^{g(x)} with f(x)>0f(x) > 0, three forms are indeterminate: 1∞1^\infty, 000^0 and ∞0\infty^0. The method is always the same. Write ln⁡y=g(x)ln⁡f(x)\ln y = g(x)\ln f(x), a product of the form 0⋅∞0 \cdot \infty; rewrite it as a quotient and find lim⁡ln⁡y=L\lim \ln y = L; then, because the exponential is continuous, lim⁡y=eL\lim y = e^L.

The figure shows y=(cos⁡x)1/x2y = (\cos x)^{1/x^2} on (−π2,π2)\left(-\frac{\pi}{2}, \frac{\pi}{2}\right) without 00, and a dashed horizontal line.

-1.5-1-0.50.511.50.10.20.30.40.50.60.70.80.91y = e^(-1/2)y = (cos x)^(1/x²)x
  • a) Find lim⁡x→0+xsin⁡x\lim_{x\to 0^+} x^{\sin x}. You may use Exercise 3 a).
  • b) Find lim⁡x→0(cos⁡x)1/x2\lim_{x\to 0} (\cos x)^{1/x^2}, and give the exact height of the dashed line.
  • c) Find lim⁡x→∞(ex+x)1/x\lim_{x\to\infty} (e^x + x)^{1/x}.
  • d) Find lim⁡x→0+(1+sin⁡4x)cot⁡x\lim_{x\to 0^+} (1 + \sin 4x)^{\cot x}.
  • e) A student writes: 00=10^0 = 1, so every limit of the form 000^0 equals 11. Compute x1/ln⁡xx^{1/\ln x} for 0<x<10 < x < 1 and conclude.

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) ln⁡y=sin⁡xln⁡x→0\ln y = \sin x \ln x \to 0, so the limit is e0=1e^0 = 1.
  • b) ln⁡y→−12\ln y \to -\frac{1}{2}, so the limit is e−1/2=1ee^{-1/2} = \frac{1}{\sqrt e}, the height of the line.
  • c) ln⁡y→1\ln y \to 1, so the limit is ee.
  • d) ln⁡y→4\ln y \to 4, so the limit is e4e^4.
  • e) x1/ln⁡x=ex^{1/\ln x} = e for every xx in (0,1)(0, 1): a form 000^0 with limit ee.

a) As x→0+x \to 0^+ the base x→0+x \to 0^+ and the exponent sin⁡x→0\sin x \to 0: form 000^0. Let y=xsin⁡xy = x^{\sin x}, so ln⁡y=sin⁡xln⁡x\ln y = \sin x \ln x, of the form 0⋅(−∞)0 \cdot (-\infty). By Exercise 3 a), rewritten as ln⁡xcsc⁡x\frac{\ln x}{\csc x} and one round of the rule, ln⁡y→0\ln y \to 0. The exponential is continuous at 00, so y=eln⁡y→e0=1y = e^{\ln y} \to e^0 = 1. The answer is 11 HERE because the logarithm tends to 00, not because 000^0 is 11: part e) shows the difference.

b) As x→0x \to 0, cos⁡x→1\cos x \to 1 and 1x2→∞\frac{1}{x^2} \to \infty: form 1∞1^\infty. With y=(cos⁡x)1/x2y = (\cos x)^{1/x^2} (defined for ∣x∣<π2|x| < \frac{\pi}{2}, where cos⁡x>0\cos x > 0), ln⁡y=ln⁡(cos⁡x)x2\ln y = \frac{\ln(\cos x)}{x^2}, of the form 00\frac{0}{0}. Round 1: −sin⁡x/cos⁡x2x=−12⋅tan⁡xx→−12\frac{-\sin x/\cos x}{2x} = -\frac{1}{2} \cdot \frac{\tan x}{x} \to -\frac{1}{2}, since tan⁡xx→1\frac{\tan x}{x} \to 1 (Exercise 4 a). So y→e−1/2=1ey \to e^{-1/2} = \frac{1}{\sqrt e}, about 0.610.61 with e≈2.72e \approx 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)\left(0, e^{-1/2}\right). The frequent error is to stop at ln⁡y→−12\ln y \to -\frac{1}{2} and answer −12-\frac{1}{2}: a power of a positive number is never negative, and the last line must exponentiate.

c) As x→∞x \to \infty, the base ex+x→∞e^x + x \to \infty and the exponent 1x→0\frac{1}{x} \to 0: form ∞0\infty^0. ln⁡y=ln⁡(ex+x)x\ln y = \frac{\ln(e^x + x)}{x}, form ∞∞\frac{\infty}{\infty}. Round 1: ex+1ex+x\frac{e^x + 1}{e^x + x}, form ∞∞\frac{\infty}{\infty} again. A second round gives exex+1\frac{e^x}{e^x + 1} and a third exex=1\frac{e^x}{e^x} = 1; faster, divide top and bottom of ex+1ex+x\frac{e^x + 1}{e^x + x} by exe^x: 1+e−x1+xe−x→1+01+0=1\frac{1 + e^{-x}}{1 + x e^{-x}} \to \frac{1 + 0}{1 + 0} = 1, since xe−x=xex→0x e^{-x} = \frac{x}{e^x} \to 0. So ln⁡y→1\ln y \to 1 and y→ey \to e. The term xx is negligible next to exe^x, and (ex)1/x=e(e^x)^{1/x} = e exactly: the limit says the xx does not matter.

d) As x→0+x \to 0^+, 1+sin⁡4x→11 + \sin 4x \to 1 and cot⁡x→∞\cot x \to \infty: form 1∞1^\infty. ln⁡y=cot⁡xln⁡(1+sin⁡4x)=ln⁡(1+sin⁡4x)tan⁡x\ln y = \cot x \ln(1 + \sin 4x) = \frac{\ln(1 + \sin 4x)}{\tan x}, form 00\frac{0}{0}. Round 1, chain rule twice on the numerator: 4cos⁡4x1+sin⁡4xsec⁡2x→4⋅1/11=4\frac{\frac{4\cos 4x}{1 + \sin 4x}}{\sec^2 x} \to \frac{4 \cdot 1 / 1}{1} = 4. So y→e4y \to e^4. Writing cot⁡x=1tan⁡x\cot x = \frac{1}{\tan x} is the move that turns the product into a quotient; the inner function 4x4x must bring its factor 44, and it is exactly that 44 which ends up in the exponent of the answer.

e) For 0<x<10 < x < 1, ln⁡x≠0\ln x \ne 0 and x1/ln⁡x=e1ln⁡x⋅ln⁡x=e1=ex^{1/\ln x} = e^{\frac{1}{\ln x} \cdot \ln x} = e^1 = e. As x→0+x \to 0^+ the base tends to 00 and the exponent 1ln⁡x\frac{1}{\ln x} tends to 0−0^-: the form is 000^0, yet the function is the CONSTANT ee, and its limit is ee, not 11. The student confuses the number 000^0, which some texts define as 11 for convenience, with the FORM 000^0, which is a statement about two functions that both tend to 00 and says nothing about their race. The same holds for 1∞1^\infty (part b gave e−1/2e^{-1/2}) and ∞0\infty^0 (part c gave ee).

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\frac{0}{0} or ∞∞\frac{\infty}{\infty}, IF g′≠0g' \ne 0 near the point, and IF lim⁡f′g′\lim \frac{f'}{g'} exists, THEN lim⁡fg\lim \frac{f}{g} 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≤300 < x \le 30, the quotient x+sin⁡xx\frac{x + \sin x}{x} in blue and the quotient of the derivatives, 1+cos⁡x1 + \cos x, dashed in orange.

510152025300.511.522.5f'/g' = 1 + cos xf/g = (x + sin x)/xx
  • a) Show that x+sin⁡xx\frac{x + \sin x}{x} is of the form ∞∞\frac{\infty}{\infty} as x→∞x \to \infty 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 x2+1x\frac{\sqrt{x^2 + 1}}{x} as x→∞x \to \infty and describe what happens. Find the limit at ∞\infty, then at −∞-\infty.
  • c) Find lim⁡x→0+e−1/xx\lim_{x\to 0^+} \frac{e^{-1/x}}{x}. Show that the rule makes it worse, and use the substitution t=1xt = \frac{1}{x}.
  • d) Find lim⁡x→0x2sin⁡(1/x)sin⁡x\lim_{x\to 0} \frac{x^2 \sin(1/x)}{\sin x}, after checking whether the rule can decide it.
  • e) A student proves lim⁡x→0sin⁡xx=1\lim_{x\to 0} \frac{\sin x}{x} = 1 by L'Hospital's rule, then uses that limit to prove that (sin⁡x)′=cos⁡x(\sin x)' = \cos x. What is wrong with this argument?

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) 1+cos⁡x1\frac{1 + \cos x}{1} has no limit; x+sin⁡xx=1+sin⁡xx→1\frac{x + \sin x}{x} = 1 + \frac{\sin x}{x} \to 1. The rule concludes nothing.
  • b) The rule returns xx2+1\frac{x}{\sqrt{x^2 + 1}}, then the original quotient: a loop. Limits 11 at ∞\infty and −1-1 at −∞-\infty.
  • c) The rule gives e−1/xx2\frac{e^{-1/x}}{x^2}, worse; tet→0\frac{t}{e^t} \to 0, so the limit is 00.
  • d) f′g′\frac{f'}{g'} has no limit; xsin⁡x⋅xsin⁡1x→1⋅0=0\frac{x}{\sin x} \cdot x\sin\frac{1}{x} \to 1 \cdot 0 = 0.
  • e) Circular: the rule needs (sin⁡x)′=cos⁡x(\sin x)' = \cos x, the very result the limit is used to prove.

a) As x→∞x \to \infty, x+sin⁡x≥x−1→∞x + \sin x \ge x - 1 \to \infty and x→∞x \to \infty: form ∞∞\frac{\infty}{\infty}. The quotient of the derivatives is 1+cos⁡x1\frac{1 + \cos x}{1}, which oscillates between 00 and 22 forever, the dashed curve of the figure: it has no limit. Yet x+sin⁡xx=1+sin⁡xx\frac{x + \sin x}{x} = 1 + \frac{\sin x}{x}, and −1x≤sin⁡xx≤1x-\frac{1}{x} \le \frac{\sin x}{x} \le \frac{1}{x} with both bounds tending to 00, so by the squeeze theorem the limit is 11: the blue curve settles on the line y=1y = 1. The rule's third hypothesis, the existence of lim⁡f′g′\lim \frac{f'}{g'}, fails, so the rule concludes NOTHING, neither a value nor the nonexistence of the limit. Writing the limit does not exist because 1+cos⁡x1 + \cos x has none reverses the implication and costs the whole question.

b) Form ∞∞\frac{\infty}{\infty}. Round 1: xx2+11=xx2+1\frac{\frac{x}{\sqrt{x^2 + 1}}}{1} = \frac{x}{\sqrt{x^2 + 1}}, form ∞∞\frac{\infty}{\infty}. Round 2: 1xx2+1=x2+1x\frac{1}{\frac{x}{\sqrt{x^2 + 1}}} = \frac{\sqrt{x^2 + 1}}{x}, the starting quotient. The rule turns in a circle and will never finish. Algebra instead: for x>0x > 0, x=x2x = \sqrt{x^2}, so x2+1x=x2+1x2=1+1x2→1\frac{\sqrt{x^2 + 1}}{x} = \sqrt{\frac{x^2 + 1}{x^2}} = \sqrt{1 + \frac{1}{x^2}} \to 1. For x<0x < 0, x=−x2x = -\sqrt{x^2}, so the quotient is −1+1x2→−1-\sqrt{1 + \frac{1}{x^2}} \to -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 xx.

c) As x→0+x \to 0^+, −1x→−∞-\frac{1}{x} \to -\infty, so e−1/x→0e^{-1/x} \to 0: form 00\frac{0}{0}. By the rule, with the chain rule, (e−1/x)′=1x2e−1/x(e^{-1/x})' = \frac{1}{x^2}e^{-1/x}, and the new quotient is e−1/xx2\frac{e^{-1/x}}{x^2}: the same exponential over a WORSE power, and each further round adds a power of 1x\frac{1}{x}. Substitute t=1xt = \frac{1}{x}, so t→∞t \to \infty as x→0+x \to 0^+: e−1/xx=te−t=tet\frac{e^{-1/x}}{x} = t e^{-t} = \frac{t}{e^t}, form ∞∞\frac{\infty}{\infty}, and one round gives 1et→0\frac{1}{e^t} \to 0. The limit is 00. When xx appears only through 1x\frac{1}{x}, the substitution turns a hopeless quotient into a standard one.

d) As x→0x \to 0, ∣x2sin⁡1x∣≤x2→0|x^2 \sin\frac{1}{x}| \le x^2 \to 0 and sin⁡x→0\sin x \to 0: form 00\frac{0}{0}. The derivative of the top is 2xsin⁡1x−cos⁡1x2x\sin\frac{1}{x} - \cos\frac{1}{x} (product and chain rules), and f′g′=2xsin⁡(1/x)−cos⁡(1/x)cos⁡x\frac{f'}{g'} = \frac{2x\sin(1/x) - \cos(1/x)}{\cos x} has no limit, since cos⁡1x\cos\frac{1}{x} oscillates between −1-1 and 11. The rule is silent. Split instead: x2sin⁡(1/x)sin⁡x=xsin⁡x⋅xsin⁡1x\frac{x^2 \sin(1/x)}{\sin x} = \frac{x}{\sin x} \cdot x\sin\frac{1}{x}. The first factor tends to 11 and the second to 00 by the squeeze theorem, ∣xsin⁡1x∣≤∣x∣|x\sin\frac{1}{x}| \le |x|. The limit is 00. Same lesson as a): the failure of f′g′\frac{f'}{g'} proves nothing about fg\frac{f}{g}.

e) L'Hospital's rule on sin⁡xx\frac{\sin x}{x} uses the derivative (sin⁡x)′=cos⁡x(\sin x)' = \cos x. But in the course, that derivative is PROVED from the limit lim⁡h→0sin⁡hh=1\lim_{h\to 0}\frac{\sin h}{h} = 1, through the definition lim⁡h→0sin⁡(x+h)−sin⁡xh\lim_{h\to 0}\frac{\sin(x + h) - \sin x}{h}. 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 sin⁡xx\frac{\sin x}{x} 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 00 and the limit is finite, the numerator MUST tend to 00 too, otherwise the form is c0\frac{c}{0} with c≠0c \ne 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 aa for which lim⁡x→0sin⁡3x+axx3\lim_{x\to 0} \frac{\sin 3x + ax}{x^3} is finite, then compute that limit.
  • b) In a), what happens to the limit when a≠−3a \ne -3? Distinguish a>−3a > -3 and a<−3a < -3.
  • c) Find aa and bb such that lim⁡x→0e2x−a−bxx2\lim_{x\to 0} \frac{e^{2x} - a - bx}{x^2} is finite, and compute it.
  • d) Let g(x)=ln⁡(1+2x)−2xx2g(x) = \frac{\ln(1 + 2x) - 2x}{x^2} for x>−12x > -\frac{1}{2}, x≠0x \ne 0. What value must g(0)g(0) take for gg to be continuous at 00?
  • e) Find a>0a > 0 such that lim⁡x→∞(x+ax−a)x=e\lim_{x\to\infty} \left(\frac{x + a}{x - a}\right)^x = e.

Type your answers, the page tells you right or wrong 0/9

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) a=−3a = -3, and the limit is −92-\frac{9}{2}.
  • b) +∞+\infty if a>−3a > -3, −∞-\infty if a<−3a < -3 (on both sides of 00).
  • c) a=1a = 1, b=2b = 2, and the limit is 22.
  • d) g(0)=−2g(0) = -2
  • e) The limit is e2ae^{2a}, so a=12a = \frac{1}{2}.

a) The denominator x3→0x^3 \to 0 and the numerator sin⁡3x+ax→0\sin 3x + ax \to 0 for every aa: form 00\frac{0}{0}. Round 1: 3cos⁡3x+a3x2\frac{3\cos 3x + a}{3x^2}. The denominator still tends to 00 and the numerator tends to 3+a3 + a; for a finite limit this must be 00, so a=−3a = -3. With a=−3a = -3 the form is 00\frac{0}{0} again. Round 2: −9sin⁡3x6x\frac{-9\sin 3x}{6x}, still 00\frac{0}{0}. Round 3: −27cos⁡3x6→−276=−92\frac{-27\cos 3x}{6} \to -\frac{27}{6} = -\frac{9}{2}. The limit is −92-\frac{9}{2}. The condition on aa comes from checking the form at round 2: the check is not a formality here, it IS the equation.

b) If a≠−3a \ne -3, after round 1 the quotient 3cos⁡3x+a3x2\frac{3\cos 3x + a}{3x^2} has a numerator tending to 3+a≠03 + a \ne 0 and a denominator tending to 0+0^+, since 3x2>03x^2 > 0 on both sides. The form 3+a0+\frac{3 + a}{0^+} is not indeterminate: the limit is +∞+\infty if 3+a>03 + a > 0, that is a>−3a > -3, and −∞-\infty if a<−3a < -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 aa, so the limit of the original quotient equals this one.

c) The denominator x2→0x^2 \to 0 and the numerator tends to 1−a1 - a. For a finite limit, 1−a=01 - a = 0: a=1a = 1. Now form 00\frac{0}{0}; round 1: 2e2x−b2x\frac{2e^{2x} - b}{2x}, whose numerator tends to 2−b2 - b while the denominator tends to 00: so b=2b = 2. Form 00\frac{0}{0}; round 2: 4e2x2→2\frac{4e^{2x}}{2} \to 2. So a=1a = 1, b=2b = 2, and the limit is 22. Two unknowns, two conditions, each one read on the numerator just before a round of the rule.

d) gg is continuous at 00 exactly when g(0)=lim⁡x→0g(x)g(0) = \lim_{x\to 0} g(x). Form 00\frac{0}{0}, since ln⁡1−0=0\ln 1 - 0 = 0. Round 1: 21+2x−22x\frac{\frac{2}{1 + 2x} - 2}{2x}. Simplify: 21+2x−2=−4x1+2x\frac{2}{1 + 2x} - 2 = \frac{-4x}{1 + 2x}, so the quotient is −4x2x(1+2x)=−21+2x→−2\frac{-4x}{2x(1 + 2x)} = \frac{-2}{1 + 2x} \to -2 for x≠0x \ne 0. So g(0)=−2g(0) = -2. Simplifying after round 1 avoids a second round, and avoids differentiating a quotient of quotients.

e) Form 1∞1^\infty: the base x+ax−a→1\frac{x + a}{x - a} \to 1 and the exponent x→∞x \to \infty. With yy the expression, for x>ax > a, ln⁡y=xln⁡x+ax−a=ln⁡(x+a)−ln⁡(x−a)1/x\ln y = x\ln\frac{x + a}{x - a} = \frac{\ln(x + a) - \ln(x - a)}{1/x}, of the form 00\frac{0}{0}. Round 1: 1x+a−1x−a−1x2=−2ax2−a2−1x2=2ax2x2−a2→2a\frac{\frac{1}{x + a} - \frac{1}{x - a}}{-\frac{1}{x^2}} = \frac{\frac{-2a}{x^2 - a^2}}{-\frac{1}{x^2}} = \frac{2ax^2}{x^2 - a^2} \to 2a. So y→e2ay \to e^{2a}, and e2a=ee^{2a} = e gives a=12a = \frac{1}{2}. 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, lim⁡x→af(x)g(x)=lim⁡x→a(f(x)g(x))′\lim_{x\to a} \frac{f(x)}{g(x)} = \lim_{x\to a} \left(\frac{f(x)}{g(x)}\right)', computed with the quotient rule.
  • b) The rule gives the right answer for every quotient: lim⁡x→0cos⁡xx+1=lim⁡x→0−sin⁡x1=0\lim_{x\to 0} \frac{\cos x}{x + 1} = \lim_{x\to 0} \frac{-\sin x}{1} = 0.
  • c) If f(x)→0f(x) \to 0 and g(x)→0g(x) \to 0, then f(x)g(x)→1\frac{f(x)}{g(x)} \to 1, because the two are equally small.
  • d) x→0+x \to 0^+ and e1/x→∞e^{1/x} \to \infty, and zero times anything is zero, so lim⁡x→0+xe1/x=0\lim_{x\to 0^+} x e^{1/x} = 0.
  • e) Since exe^x grows faster than any power, ex>x10e^x > x^{10} for every x>0x > 0.

Type your answers, the page tells you right or wrong 0/5

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) False: f′g′\frac{f'}{g'}, not (fg)′\left(\frac{f}{g}\right)'. For e3x−1x\frac{e^{3x} - 1}{x} the limit is 33, not 92\frac{9}{2}.
  • b) False: the form is 11\frac{1}{1}, and the limit is 11.
  • c) False: x2x→0\frac{x^2}{x} \to 0, xx2\frac{x}{x^2} is unbounded, 5xx→5\frac{5x}{x} \to 5.
  • d) False: xe1/x=ettx e^{1/x} = \frac{e^t}{t} with t=1xt = \frac{1}{x}, and the limit is ∞\infty.
  • e) False at x=10x = 10: e10<310<1010e^{10} < 3^{10} < 10^{10}. True for all xx large enough.

a) FALSE. The rule differentiates the numerator and the denominator SEPARATELY: lim⁡fg=lim⁡f′g′\lim \frac{f}{g} = \lim \frac{f'}{g'}, under its hypotheses. The derivative of the quotient, (fg)′=f′g−fg′g2\left(\frac{f}{g}\right)' = \frac{f'g - fg'}{g^2}, is another function with another limit. Take e3x−1x\frac{e^{3x} - 1}{x} at 00, form 00\frac{0}{0}: the rule gives 3e3x1→3\frac{3e^{3x}}{1} \to 3, the correct limit. The quotient rule gives 3xe3x−e3x+1x2\frac{3xe^{3x} - e^{3x} + 1}{x^2}, of the form 00\frac{0}{0}, and one legitimate round of the rule on it gives 9xe3x2x→92\frac{9xe^{3x}}{2x} \to \frac{9}{2}: that is the SLOPE of the quotient near 00, not its limit. Correct statement: under the hypotheses of the rule, lim⁡x→af(x)g(x)=lim⁡x→af′(x)g′(x)\lim_{x\to a} \frac{f(x)}{g(x)} = \lim_{x\to a} \frac{f'(x)}{g'(x)}, top and bottom differentiated one at a time.

b) FALSE. At 00, cos⁡0=1\cos 0 = 1 and 0+1=10 + 1 = 1: the form is 11\frac{1}{1}, not indeterminate, and the limit is 11 by the quotient law. The rule, applied without its hypothesis, gives 00, which is wrong. Correct statement: the rule applies only to the forms 00\frac{0}{0} and ±∞±∞\frac{\pm\infty}{\pm\infty}, and the form is written down before each application.

c) FALSE. 00\frac{0}{0} is indeterminate precisely because two functions that tend to 00 can do so at different rates: x2x=x→0\frac{x^2}{x} = x \to 0, xx2=1x\frac{x}{x^2} = \frac{1}{x} is unbounded near 00, and 5xx=5\frac{5x}{x} = 5. Correct statement: if f(x)→0f(x) \to 0 and g(x)→0g(x) \to 0, the limit of fg\frac{f}{g} can be any number, infinite, or nonexistent, and it is decided by comparing the rates, which is exactly what f′g′\frac{f'}{g'} does.

d) FALSE. 0⋅∞0 \cdot \infty is indeterminate: the zero factor shrinks while the other grows, and here the exponential wins. With t=1x→∞t = \frac{1}{x} \to \infty: xe1/x=ettx e^{1/x} = \frac{e^t}{t}, form ∞∞\frac{\infty}{\infty}, and one round gives et1→∞\frac{e^t}{1} \to \infty. So lim⁡x→0+xe1/x=∞\lim_{x\to 0^+} x e^{1/x} = \infty. 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=10x = 10: e10<310=59049e^{10} < 3^{10} = 59049, while 101010^{10} is ten billion, so e10<1010e^{10} < 10^{10}. The growth ranking is a statement about LIMITS: x10ex→0\frac{x^{10}}{e^x} \to 0 (ten rounds of the rule, each on a form ∞∞\frac{\infty}{\infty}), which means that ex>x10e^x > x^{10} for all xx beyond some point, not for all x>0x > 0. At x=1x = 1, e>1e > 1, so the two curves cross at least twice. Correct statement: for every p>0p > 0, ex>xpe^x > x^p for all xx large enough.

Exercise 9: Compounding more and more often: the limit, and how fast the gap closes

A deposit of 1000010000 dollars earns interest at the nominal annual rate r=4%r = 4\%. If the interest is compounded xx times a year, each period adds rx\frac{r}{x} of the balance, and after tt years the balance is B=10000(1+rx)xtB = 10000\left(1 + \frac{r}{x}\right)^{xt} dollars. Banks compound yearly, monthly, daily; continuous compounding is what happens as x→∞x \to \infty. Here xx is treated as a positive REAL variable, so that the rule can be used.

The figure shows, after one year, the balance beyond 1040010400 dollars, B(x)−10400B(x) - 10400, for 1≤x≤241 \le x \le 24, with the dots x=1,2,4,12x = 1, 2, 4, 12. No calculator: every answer is exact, or an estimate built from exact pieces.

24681012141618202224246810ceiling: continuous compoundingcompounded x times a yearx (times a year)B(x) - 10400 (dollars)
  • a) After one year, compute the balance exactly for x=1x = 1, x=2x = 2 and x=4x = 4 (to the cent).
  • b) Name the form of (1+rx)x\left(1 + \frac{r}{x}\right)^{x} as x→∞x \to \infty, and prove that its limit is ere^r by applying the rule directly at infinity. Deduce the balance after tt years under continuous compounding.
  • c) At 4%4\% compounded continuously, what is the exact balance after 2525 years? Estimate it with e≈2.72e \approx 2.72.
  • d) Prove that lim⁡u→0+u−ln⁡(1+u)u2=12\lim_{u\to 0^+} \frac{u - \ln(1 + u)}{u^2} = \frac{1}{2}.
  • e) Let D(x)=x[r−xln⁡(1+rx)]D(x) = x\left[r - x\ln\left(1 + \frac{r}{x}\right)\right]. Show that D(x)→r22D(x) \to \frac{r^2}{2}, then that x[er−(1+rx)x]→r2er2x\left[e^r - \left(1 + \frac{r}{x}\right)^x\right] \to \frac{r^2 e^r}{2}. Deduce how many dollars continuous compounding pays, in one year, beyond monthly compounding, using e0.04≈1.04e^{0.04} \approx 1.04.

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Show the solution

Answers

  • a) 1040010400, 1040410404 and 10406.0410406.04 dollars
  • b) Form 1∞1^\infty; xln⁡(1+rx)→rx\ln\left(1 + \frac{r}{x}\right) \to r, so the limit is ere^r; after tt years, 10000ert10000e^{rt} dollars.
  • c) 10000e10000e dollars, about 2720027200 dollars
  • d) One round: 12(1+u)→12\frac{1}{2(1 + u)} \to \frac{1}{2}
  • e) Gap ≈10000 r2er2x≈8.32x\approx \frac{10000\,r^2 e^r}{2x} \approx \frac{8.32}{x} dollars: about 0.690.69 dollars for monthly compounding.

a) x=1x = 1: 10000×1.04=1040010000 \times 1.04 = 10400. x=2x = 2: 10000×1.022=10000×1.0404=1040410000 \times 1.02^2 = 10000 \times 1.0404 = 10404. x=4x = 4: 10000×1.01410000 \times 1.01^4; square twice, 1.012=1.02011.01^2 = 1.0201 and 1.02012=1.040604011.0201^2 = 1.04060401, so the balance is 10406.040110406.0401, that is 10406.0410406.04 dollars. On the figure these are the dots at heights 00, 44 and 6.046.04: each doubling of the frequency pays less than the previous one.

b) As x→∞x \to \infty the base 1+rx→11 + \frac{r}{x} \to 1 and the exponent x→∞x \to \infty: form 1∞1^\infty, NOT 11. Take the logarithm: xln⁡(1+rx)=ln⁡(1+r/x)1/xx\ln\left(1 + \frac{r}{x}\right) = \frac{\ln(1 + r/x)}{1/x}, form 00\frac{0}{0} as x→∞x \to \infty. By the rule, with the chain rule on the inner function 1+rx1 + \frac{r}{x}, whose derivative is −rx2-\frac{r}{x^2}: −r/x21+r/x−1/x2=r1+r/x→r\frac{\frac{-r/x^2}{1 + r/x}}{-1/x^2} = \frac{r}{1 + r/x} \to r. The exponential is continuous, so (1+rx)x→er\left(1 + \frac{r}{x}\right)^x \to e^r. After tt years, (1+rx)xt=[(1+rx)x]t→ert\left(1 + \frac{r}{x}\right)^{xt} = \left[\left(1 + \frac{r}{x}\right)^x\right]^t \to e^{rt}, since y↦yty \mapsto y^t is continuous at er>0e^r > 0: continuous compounding gives 10000ert10000e^{rt} dollars. Writing 1∞=11^\infty = 1 here would say that compounding more often pays nothing, which the figure contradicts.

c) rt=0.04×25=1rt = 0.04 \times 25 = 1, so the balance is 10000e1=10000e10000e^1 = 10000e dollars, exactly. With e≈2.72e \approx 2.72, about 2720027200 dollars. The exact answer is 10000e10000e; 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 \to 0^+, u−ln⁡(1+u)→0−ln⁡1=0u - \ln(1 + u) \to 0 - \ln 1 = 0 and u2→0u^2 \to 0: form 00\frac{0}{0}. Round 1: 1−11+u2u=u1+u2u=12(1+u)→12\frac{1 - \frac{1}{1 + u}}{2u} = \frac{\frac{u}{1 + u}}{2u} = \frac{1}{2(1 + u)} \to \frac{1}{2}. Simplifying the fraction before taking the limit avoids a second round. Note that u−ln⁡(1+u)>0u - \ln(1 + u) > 0 for u>0u > 0: the function u−ln⁡(1+u)u - \ln(1 + u) is 00 at 00 and has derivative u1+u>0\frac{u}{1 + u} > 0.

e) Put u=rxu = \frac{r}{x}, so u→0+u \to 0^+ as x→∞x \to \infty and x=rux = \frac{r}{u}: D=ru[r−ruln⁡(1+u)]=r2⋅u−ln⁡(1+u)u2→r22D = \frac{r}{u}\left[r - \frac{r}{u}\ln(1 + u)\right] = r^2 \cdot \frac{u - \ln(1 + u)}{u^2} \to \frac{r^2}{2} by d). By d) again D>0D > 0. Now (1+rx)x=exln⁡(1+r/x)=er−D/x\left(1 + \frac{r}{x}\right)^x = e^{x\ln(1 + r/x)} = e^{r - D/x}, so with s=Dx→0+s = \frac{D}{x} \to 0^+: x[er−er−s]=er⋅D⋅1−e−ssx\left[e^r - e^{r - s}\right] = e^r \cdot D \cdot \frac{1 - e^{-s}}{s}. The last factor is 00\frac{0}{0} and one round gives e−s1→1\frac{e^{-s}}{1} \to 1. So the product tends to er⋅r22⋅1e^r \cdot \frac{r^2}{2} \cdot 1: a form ∞⋅0\infty \cdot 0 with a finite limit. In dollars, the gap is about 10000 r2er2x=8 e0.04x≈8.32x\frac{10000\,r^2 e^r}{2x} = \frac{8\,e^{0.04}}{x} \approx \frac{8.32}{x}, since 10000×0.0016=1610000 \times 0.0016 = 16. Monthly, x=12x = 12: about 8.3212≈0.69\frac{8.32}{12} \approx 0.69 dollars a year on 1000010000 dollars; daily, about 22 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)=ex−1xf(x) = \frac{e^x - 1}{x} for x≠0x \ne 0, and f(0)=1f(0) = 1. This is the shape of a long final exam question: continuity, a derivative computed by its definition, the sign of f′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 ff is continuous at 00.
  • b) Compute f′(0)f'(0) from the definition of the derivative.
  • c) Compute f′(x)f'(x) for x≠0x \ne 0, then lim⁡x→0f′(x)\lim_{x\to 0} f'(x). Compare with b).
  • d) Let N(x)=(x−1)ex+1N(x) = (x - 1)e^x + 1. Study the sign of NN, and deduce that ff is increasing on R\mathbb{R}.
  • e) Find lim⁡x→∞f(x)\lim_{x\to\infty} f(x) and lim⁡x→−∞f(x)\lim_{x\to -\infty} f(x), and give the range of ff.

Type your answers, the page tells you right or wrong 0/8

a)
b)
c)
d)
e)
Range ,
Show the solution

Answers

  • a) lim⁡x→0ex−1x=1=f(0)\lim_{x\to 0} \frac{e^x - 1}{x} = 1 = f(0)
  • b) f′(0)=lim⁡h→0eh−1−hh2=12f'(0) = \lim_{h\to 0} \frac{e^h - 1 - h}{h^2} = \frac{1}{2}
  • c) f′(x)=(x−1)ex+1x2f'(x) = \frac{(x - 1)e^x + 1}{x^2}, and f′(x)→12=f′(0)f'(x) \to \frac{1}{2} = f'(0)
  • d) N(0)=0N(0) = 0, N′(x)=xexN'(x) = xe^x: N>0N > 0 for x≠0x \ne 0, so f′>0f' > 0 everywhere.
  • e) ∞\infty (form ∞∞\frac{\infty}{\infty}) and 00 (form −1−∞\frac{-1}{-\infty}, not indeterminate); range (0,∞)(0, \infty).

a) As x→0x \to 0, ex−1→0e^x - 1 \to 0 and x→0x \to 0: form 00\frac{0}{0}. By the rule, lim⁡x→0ex1=1\lim_{x\to 0} \frac{e^x}{1} = 1. Since f(0)=1f(0) = 1, lim⁡x→0f(x)=f(0)\lim_{x\to 0} f(x) = f(0), and ff is continuous at 00. The three conditions of continuity are all visible: f(0)f(0) is defined, the limit exists, and the two are equal. For x≠0x \ne 0, ff is a quotient of continuous functions with a nonzero denominator, hence continuous: ff is continuous on R\mathbb{R}.

b) By definition, f′(0)=lim⁡h→0f(h)−f(0)h=lim⁡h→0eh−1h−1h=lim⁡h→0eh−1−hh2f'(0) = \lim_{h\to 0} \frac{f(h) - f(0)}{h} = \lim_{h\to 0} \frac{\frac{e^h - 1}{h} - 1}{h} = \lim_{h\to 0} \frac{e^h - 1 - h}{h^2}. Form 00\frac{0}{0}. Round 1: eh−12h\frac{e^h - 1}{2h}, form 00\frac{0}{0} again. Round 2: eh2→12\frac{e^h}{2} \to \frac{1}{2}. So f′(0)=12f'(0) = \frac{1}{2}. The quotient rule cannot be used at 00, where ff is not given by the formula: the definition is the only way, and the rule is what makes it computable.

c) For x≠0x \ne 0, by the quotient rule: f′(x)=ex⋅x−(ex−1)⋅1x2=(x−1)ex+1x2f'(x) = \frac{e^x \cdot x - (e^x - 1) \cdot 1}{x^2} = \frac{(x - 1)e^x + 1}{x^2}. As x→0x \to 0, the numerator tends to −1+1=0-1 + 1 = 0 and the denominator to 00: form 00\frac{0}{0}. Round 1: ex+(x−1)ex2x=xex2x=ex2\frac{e^x + (x - 1)e^x}{2x} = \frac{xe^x}{2x} = \frac{e^x}{2} for x≠0x \ne 0, which tends to 12\frac{1}{2}. The two computations agree: lim⁡x→0f′(x)=12=f′(0)\lim_{x\to 0} f'(x) = \frac{1}{2} = f'(0), so f′f' is itself continuous at 00. Simplifying xex2x\frac{xe^x}{2x} is legitimate because x≠0x \ne 0; a second round would also work but costs a line.

d) N(0)=−1+1=0N(0) = -1 + 1 = 0 and N′(x)=ex+(x−1)ex=xexN'(x) = e^x + (x - 1)e^x = xe^x, which is negative for x<0x < 0 and positive for x>0x > 0. So NN decreases on (−∞,0](-\infty, 0] and increases on [0,∞)[0, \infty): its minimum is N(0)=0N(0) = 0, and N(x)>0N(x) > 0 for every x≠0x \ne 0. Hence f′(x)=N(x)x2>0f'(x) = \frac{N(x)}{x^2} > 0 for x≠0x \ne 0, and f′(0)=12>0f'(0) = \frac{1}{2} > 0: f′>0f' > 0 on R\mathbb{R}, so ff is increasing on R\mathbb{R}. The numerator NN is exactly the one whose limit gave the 00\frac{0}{0} of c): the same function serves twice.

e) As x→∞x \to \infty: ex−1→∞e^x - 1 \to \infty and x→∞x \to \infty, form ∞∞\frac{\infty}{\infty}; one round gives ex1→∞\frac{e^x}{1} \to \infty. As x→−∞x \to -\infty: ex−1→0−1=−1e^x - 1 \to 0 - 1 = -1 and x→−∞x \to -\infty. The form is −1−∞\frac{-1}{-\infty}, which is NOT indeterminate: the quotient tends to 00, through positive values since the top and the bottom are both negative. The rule must not be used here; applied anyway it gives ex1→0\frac{e^x}{1} \to 0, the right number by luck and a method error on the paper. So the line y=0y = 0 is a horizontal asymptote on the left. Since ff is continuous and increasing, with limits 00 at −∞-\infty and ∞\infty at ∞\infty, the Intermediate Value Theorem gives the range (0,∞)(0, \infty). The figure of the solution shows the curve rising from the asymptote through the filled point (0,1)(0, 1), with its tangent of slope 12\frac{1}{2}.

-6-5-4-3-2-1123123456asymptote y = 0 on the lefty = f(x)slope 1/2 at (0, 1)x

© Ahmed Squalli Houssaini. Exercise set published at www.letuteurscientifique.ca/en/exercices/math140-lhopital. Free for personal and classroom use; republishing it elsewhere requires written permission (legal notice).

See also

Struggling with MATH 140?

I tutor first-year calculus at McGill and Concordia, in English or in French, in Montreal or online. Get in touch for a first session.

Site by Studio Squalli