Navigation

L'Hôpital's Rule and indeterminate forms

6 L'Hôpital's Rule and indeterminate forms

24 problems · hints, answers and solutions shown beside each one

1Stage 1Conceptual

Do you understand the idea? Usually little or no calculation.

In Questions 1 to 20, you are asked to give pairs of functions that combine to make indeterminate forms. Remember that an indeterminate form is indeterminate precisely because its limit can take on a number of values.

Q1Stage 1

Give two functions f(x)f(x) and g(x)g(x) with the following properties:

  1. lim⁡x→∞f(x)=∞\ds\lim_{x \to \infty} f(x)=\infty

  2. lim⁡x→∞g(x)=∞\ds\lim_{x \to \infty} g(x)=\infty

  3. lim⁡x→∞f(x)g(x)=2.5\ds\lim_{x \to \infty} \dfrac{f(x)}{g(x)}=2.5

Hint

Try making one function a multiple of the other.

Answer

There are many possible answers. Here is one: f(x)=5xf(x)=5x, g(x)=2xg(x)=2x.

Full solution

There are many possible answers. Consider these: f(x)=5xf(x)=5x, g(x)=2xg(x)=2x. Then lim⁡x→∞f(x)=lim⁡x→∞g(x)=∞\ds\lim_{x \rightarrow\infty}f(x)=\ds\lim_{x\to\infty}g(x)=\infty, and lim⁡x→∞f(x)g(x)=lim⁡x→∞5x2x=lim⁡x→∞52=52=2.5\ds\lim_{x\to\infty}\frac{f(x)}{g(x)}=\ds\lim_{x\to\infty}\frac{5x}{2x}=\ds\lim_{x\to\infty}\frac{5}{2}=\frac{5}{2}=2.5.

Q2Stage 1

Give two functions f(x)f(x) and g(x)g(x) with the following properties:

  1. lim⁡x→∞f(x)=∞\ds\lim_{x \to \infty} f(x)=\infty

  2. lim⁡x→∞g(x)=∞\ds\lim_{x \to \infty} g(x)=\infty

  3. lim⁡x→∞f(x)g(x)=0\ds\lim_{x \to \infty} \dfrac{f(x)}{g(x)}=0

Hint

Try making one function a multiple of the other, but not a constant multiple.

Answer

There are many possible answers. Here is one: f(x)=xf(x)=x, g(x)=x2g(x)=x^2.

Full solution

There are many possible answers. Consider these: f(x)=xf(x)=x, g(x)=x2g(x)=x^2. Then lim⁡x→∞f(x)=lim⁡x→∞g(x)=∞\ds\lim_{x \rightarrow\infty}f(x)=\ds\lim_{x\to\infty}g(x)=\infty, and lim⁡x→∞f(x)g(x)=lim⁡x→∞xx2=lim⁡x→∞1x=0\ds\lim_{x\to\infty}\frac{f(x)}{g(x)}=\ds\lim_{x\to\infty}\frac{x}{x^2}=\ds\lim_{x\to\infty}\frac{1}{x}=0.

2Stage 2Procedural

Practising the skill itself, until applying it is automatic.

Q3Stage 2Past exam · 2009H

Evaluate lim⁡x→1x3−ex−1sin⁡(πx)\lim\limits_{x\rightarrow 1}\dfrac{x^3-e^{x-1}}{\sin(\pi x)}.

Hint

Plugging in x=1x=1 to the numerator and denominator makes both zero. This is exactly one of the indeterminate forms where l'H^opital's rule can be directly applied.

Answer

−2π-\dfrac{2}{\pi}

Full solution

If we plug in x=1x=1 to the numerator and the denominator, we find they are both zero. So, we have an indeterminate form appropriate for L'H^opital's Rule.

lim⁡x→1x3−ex−1sin⁡(πx)⏟num→0den→0=lim⁡x→13x2−ex−1πcos⁡(πx)=−2π\begin{align*} \lim\limits_{x\rightarrow 1}\underbrace{\frac{x^3-e^{x-1}}{\sin(\pi x)}}_{\atp {\mathrm{num} \to 0} {\mathrm{den} \to 0}} =\lim\limits_{x\rightarrow 1}\frac{3x^2-e^{x-1}}{\pi\cos(\pi x)} =-\frac{2}{\pi}\end{align*}
Q4Stage 2Past exam · 2010H

Evaluate lim⁡x→0+log⁡xx\lim\limits_{x\rightarrow 0+}\dfrac{\log x}{x}. (Remember: in these notes, log⁡\log means logarithm base ee.)

Hint

Is this an indeterminate form?

Answer

−∞-\infty

Full solution

Be careful– this is not an indeterminate form! As x→0+x\rightarrow 0+, the numerator log⁡x→−∞\log x\rightarrow-\infty. That is, the numerator is becoming an increasingly huge, negative number. As x→0+x\rightarrow 0+, the denominator x→0+x\rightarrow 0+, which only serves to make the total fraction even larger, and still negative. So, lim⁡x→0+log⁡xx=−∞\lim\limits_{x\rightarrow 0^+}\dfrac{\log x}{x} =-\infty. Remark: if we had tried to use l'H^opital's Rule here, we would have come up with the wrong answer. If we differentiate the numerator and the denominator, the fraction becomes 1x1=1x\dfrac{\frac{1}{x}}{1}=\frac{1}{x}, and lim⁡x→0+1x=∞\ds\lim_{x \to 0^+}\frac{1}{x}=\infty. The reason we cannot apply l'H^opital's Rule is that we do not have an indeterminate form, like both numerator and denominator going to infinity, or both numerator and denominator going to zero.

Q5Stage 2Past exam · 2012H

Evaluate lim⁡x→∞(log⁡x)2e−x\lim\limits_{x\rightarrow\infty}(\log x)^2e^{-x}.

Hint

First, rearrange the expression to a more natural form (without a negative exponent).

Answer

0

Full solution

We rearrange the expression to a more natural form:

lim⁡x→∞(log⁡x)2e−x=lim⁡x→∞(log⁡x)2ex⏟num→∞den→∞\begin{align*}\lim_{x\rightarrow\infty}(\log x)^2e^{-x} &=\lim_{x\rightarrow\infty}\underbrace{\dfrac{(\log x)^2}{e^{x}}}_{\atp {\mathrm{num}\to\infty} {\mathrm{den}\to\infty}}\end{align*}

Both the numerator and denominator go to infinity as xx goes to infinity. So, we can apply l'H^opital's Rule. In fact, we end up applying it twice.

=lim⁡x→∞2log⁡xxex⏟num→∞den→∞=lim⁡x→∞2/xxex+ex\begin{align*}&=\lim_{x\rightarrow\infty}\underbrace{\dfrac{2\log x}{xe^{x}}}_{\atp {\mathrm{num}\to\infty} {\mathrm{den}\to\infty}} \\ &=\lim_{x\rightarrow\infty}\dfrac{2/x}{xe^{x}+e^x}\end{align*}

The numerator gets smaller and smaller while the denominator gets larger and larger, so:

=0\begin{align*}&={0}\end{align*}
Q6Stage 2Past exam · 1997D

Evaluate lim⁡x→∞x2e−x\lim\limits_{x\rightarrow\infty}x^2e^{-x}.

Hint

If at first you don't succeed, try, try again.

Answer

0

Full solution
lim⁡x→∞x2e−x=lim⁡x→∞x2ex⏟num→∞den→∞=lim⁡x→∞2xex⏟num→∞den→∞=lim⁡x→∞2ex⏟num→∞den→∞=0\lim_{x\rightarrow\infty}x^2e^{-x} =\lim_{x\rightarrow\infty}\underbrace{\frac{x^2}{e^{x}}}_{\atp {\mathrm{num}\to \infty} {\mathrm{den}\to \infty}} =\lim_{x\rightarrow\infty}\underbrace{\frac{2x}{e^{x}}}_{\atp {\mathrm{num}\to\infty} {\mathrm{den}\to\infty}} =\lim_{x\rightarrow\infty}\underbrace{\frac{2}{e^{x}}}_{\atp {\mathrm{num}\to\infty} {\mathrm{den}\to\infty}} ={0}
Q7Stage 2Past exam · 1997D

Evaluate lim⁡x→0x−xcos⁡xx−sin⁡x\lim\limits_{x\rightarrow 0}\dfrac{x-x\cos x}{x-\sin x}.

Hint

Keep at it!

Answer

3

Full solution
lim⁡x→0x−xcos⁡xx−sin⁡x⏟num→0den→0=lim⁡x→01−cos⁡x+xsin⁡x1−cos⁡x⏟num→0den→0=lim⁡x→0sin⁡x+sin⁡x+xcos⁡xsin⁡x⏟num→0den→0=lim⁡x→02cos⁡x+cos⁡x−xsin⁡xcos⁡x=3\begin{align*} \lim_{x\rightarrow 0}\underbrace{\frac{x-x\cos x}{x-\sin x}}_{\atp {\mathrm{num}\to0} {\mathrm{den}\to0}} &= \lim_{x\rightarrow 0}\underbrace{\frac{1-\cos x+x\sin x}{1-\cos x}}_{\atp {\mathrm{num}\to0} {\mathrm{den}\to0}} = \lim_{x\rightarrow 0}\underbrace{\frac{\sin x+\sin x+x\cos x}{\sin x}}_{\atp {\mathrm{num}\to0} {\mathrm{den}\to0}}\\ &= \lim_{x\rightarrow 0}\frac{2\cos x+\cos x-x\sin x}{\cos x} ={3} \end{align*}
Q8Stage 2

Evaluate lim⁡x→0x6+4x4x2cos⁡x\ds\lim_{x \to 0}\dfrac{\sqrt{x^6+4x^4}}{x^2\cos x}.

Hint

Rather than use l'H^opital, try factoring out x2x^2 from the numerator and denominator.

Answer

22

Full solution

If we plug in x=0x=0 to the numerator and denominator, both are zero, so this is a candidate for l'H^opital's Rule. However, an easier way to evaluate the limit is to factor x2x^2 from the numerator and denominator, and cancel.

lim⁡x→0x6+4x4x2cos⁡x=lim⁡x→0x4x2+4x2cos⁡x=lim⁡x→0x2x2+4x2cos⁡x=lim⁡x→0x2+4cos⁡x=02+4cos⁡(0)=2\begin{align*} \lim_{x\to0}\frac{\sqrt{x^6+4x^4}}{x^2\cos x} &=\lim_{x\to0}\frac{\sqrt{x^4}\sqrt{x^2+4}}{x^2\cos x}\\ &=\lim_{x\to0}\frac{x^2\sqrt{x^2+4}}{x^2\cos x}\\ &=\lim_{x\to0}\frac{\sqrt{x^2+4}}{\cos x}\\ &=\frac{\sqrt{0^2+4}}{\cos(0)}=2 \end{align*}
Q9Stage 2Past exam · 1997A

Evaluate lim⁡x→∞(log⁡x)2x\lim\limits_{x\rightarrow\infty}\dfrac{(\log x)^2}{x}.

Hint

Keep going!

Answer

0

Full solution
lim⁡x→∞(log⁡x)2x⏟num→∞den→∞=lim⁡x→∞2(log⁡x)1x1=2lim⁡x→∞log⁡xx⏟num→∞den→∞=2lim⁡x→∞1x1=0\begin{align*}\lim_{x\rightarrow\infty}\underbrace{\frac{(\log x)^2}{x}}_{\atp {\mathrm{num}\to\infty} {\mathrm{den}\to\infty}} &=\lim_{x\rightarrow\infty}\frac{2(\log x)\frac{1}{x}}{1} =2\lim_{x\rightarrow\infty}\underbrace{\frac{\log x}{x}}_{\atp {\mathrm{num}\to\infty} {\mathrm{den}\to\infty}} = 2\lim_{x\rightarrow\infty}\frac{\frac{1}{x}}{1}={0} \end{align*}
Q10Stage 2Past exam · 1997A

Evaluate lim⁡x→01−cos⁡xsin⁡2x\lim\limits_{x\rightarrow0}\dfrac{1-\cos x}{\sin^2 x}.

Answer

12\frac{1}{2}

Full solution
lim⁡x→01−cos⁡xsin⁡2x⏟num→0den→0=lim⁡x→0sin⁡x2sin⁡xcos⁡x=lim⁡x→012cos⁡x=12\begin{align*} \lim_{x\rightarrow0}\underbrace{\frac{1-\cos x}{\sin^2 x}}_{\atp {\mathrm{num}\to0} {\mathrm{den}\to0}} &= \lim_{x\rightarrow0}\frac{\sin x}{2\sin x\cos x} =\lim_{x\rightarrow0}\frac{1}{2\cos x} ={\frac{1}{2}} \end{align*}
Q11Stage 2

Evaluate lim⁡x→0xsec⁡x\ds\lim_{x \to 0}\dfrac{x}{\sec x}.

Hint

Try plugging in x=0x=0. Is this an indeterminate form?

Answer

0

Full solution

If we plug in x=0x=0, the numerator is zero, and the denominator is
sec⁡0=1cos⁡0=11=1\sec 0 = \dfrac{1}{\cos 0}=\dfrac{1}{1}=1. So the limit is 01=0\dfrac{0}{1}=0.

Be careful: you cannot use l'H^opital's Rule here, because the fraction does not give an indeterminate form. If you try to differentiate the numerator and the denominator, you get an expression whose limit does not exist:
lim⁡x→01sec⁡xtan⁡x=lim⁡x→0cos⁡x⋅cos⁡xsin⁡x=DNE\ds\lim_{x \to 0}\dfrac{1}{\sec x \tan x}=\ds\lim_{x \to 0}\cos x\cdot \dfrac{\cos x}{\sin x}=DNE.

Q12Stage 2

Evaluate lim⁡x→0csc⁡x⋅tan⁡x⋅(x2+5)ex\ds\lim_{x\to0}\dfrac{\csc x\cdot \tan x\cdot (x^2+5)}{e^x}.

Hint

Simplify the trigonometric part first.

Answer

55

Full solution

If we plug x=0x=0 into the denominator, we get 1. However, the numerator is an indeterminate form: tan⁡0=0\tan 0 =0, while lim⁡x→0+csc⁡x=∞\ds\lim_{x \to 0^+}\csc x=\infty and lim⁡x→0−csc⁡x=−∞\ds\lim_{x \to 0^-}\csc x=-\infty. If we use csc⁡x=1sin⁡x\csc x = \frac{1}{\sin x}, our expression becomes

lim⁡x→0tan⁡x⋅(x2+5)sin⁡x⋅ex\begin{align*}\lim_{x\to0}\frac{\tan x\cdot (x^2+5)}{\sin x \cdot e^x}&\end{align*}

Since plugging in x=0x=0 makes both the numerator and the denominator equal to zero, this is a candidate for l'H^ospital's Rule. However, a much easier way is to simplify the trig first.

lim⁡x→0tan⁡x⋅(x2+5)sin⁡x⋅ex=lim⁡x→0sin⁡x⋅(x2+5)cos⁡x⋅sin⁡x⋅ex=lim⁡x→0x2+5cos⁡x⋅ex=02+5cos⁡(0)⋅e0=5\begin{align*}\lim_{x\to0}\frac{\tan x\cdot (x^2+5)}{\sin x \cdot e^x}&= \lim_{x\to0}\frac{\sin x\cdot (x^2+5)}{\cos x \cdot\sin x \cdot e^x}\\&= \lim_{x\to0}\frac{x^2+5}{\cos x \cdot e^x}\\ &=\frac{0^2+5}{\cos(0)\cdot e^0}=5\end{align*}
Q13Stage 2Past exam · 2010H

Evaluate lim⁡x→0sin⁡(x3+3x2)sin⁡2x\lim\limits_{x\rightarrow 0}\dfrac{\sin(x^3+3x^2)}{\sin^2x}.

Hint

If it is too difficult to take a derivative for l'H^opital's Rule, try splitting up the function into smaller chunks and evaluating their limits independently.

Answer

3

Full solution

If we plug in x=0x=0, both numerator and denominator become zero. So, we have exactly one of the indeterminate forms that l'H^opital's Rule applies to.

lim⁡x→0sin⁡(x3+3x2)sin⁡2x⏟num→0den→0=lim⁡x→0(3x2+6x)cos⁡(x3+3x2)2sin⁡xcos⁡x\begin{align*}\lim_{x\rightarrow 0}\underbrace{\dfrac{\sin(x^3+3x^2)}{\sin^2x}}_{\atp {\mathrm{num}\to0} {\mathrm{den}\to 0}} &= \lim_{x\rightarrow 0}\dfrac{(3x^2+6x)\cos(x^3+3x^2)}{2\sin x\cos x}\end{align*}

If we plug in x=0x=0, still we find that both the numerator and the denominator go to zero. We could jump in with another iteration of l'H^opital's Rule. However, the derivatives would be a little messy, so we use limit laws and break up the fraction into the product of two fractions. If both limits exist:

lim⁡x→0(3x2+6x)cos⁡(x3+3x2)2sin⁡xcos⁡x=(lim⁡x→0x2+2xsin⁡x)⋅(lim⁡x→03cos⁡(x3+3x2)2cos⁡x)\begin{align*}\lim_{x\rightarrow 0}\dfrac{(3x^2+6x)\cos(x^3+3x^2)}{2\sin x\cos x}&=\left(\lim_{x\rightarrow 0}\dfrac{x^2+2x}{\sin x}\right)\cdot \left(\lim_{x\rightarrow 0}\dfrac{3\cos(x^3+3x^2)}{2\cos x}\right)\end{align*}

We can evaluate the right-hand limit by simply plugging in x=0x=0:

=32lim⁡x→0x2+2xsin⁡x⏟num→0den→0=32lim⁡x→02x+2cos⁡x=32(21)=3\begin{align*}&=\dfrac{3}{2}\lim_{x\rightarrow 0}\underbrace{\dfrac{x^2+2x}{\sin x}}_ {\atp {\mathrm{num}\to0} {\mathrm{den}\to 0}} \\ &= \dfrac{3}{2}\lim_{x\rightarrow 0}\dfrac{2x+2}{\cos x}\\ &=\frac{3}{2}\left(\frac{2}{1}\right)=3\end{align*}
Q14Stage 2Past exam · 1996D

Evaluate lim⁡x→1log⁡(x3)x2−1\lim\limits_{x\rightarrow1}\dfrac{\log(x^3)}{x^2-1}.

Answer

32\frac{3}{2}

Full solution
lim⁡x→1log⁡(x3)x2−1=lim⁡x→13log⁡(x)x2−1⏟num→0den→0=lim⁡x→13/x2x=32\lim_{x\rightarrow1}\frac{\log(x^3)}{x^2-1} =\lim_{x\rightarrow1}\underbrace{\frac{3\log(x)}{x^2-1}}_{\atp {\mathrm{num}\to0} {\mathrm{den}\to0}} =\lim_{x\rightarrow1}\frac{3/x}{2x} =\frac{3}{2}
Q15Stage 2Past exam · 1996D

Evaluate lim⁡x→0e−1/x2x4\lim\limits_{x\rightarrow 0}\dfrac{e^{-1/x^2}}{x^4}.

Hint

Try manipulating the function to get it into a nicer form

Answer

0

Full solution
  • Solution 1.

    lim⁡x→0e−1/x2x4=lim⁡x→01x4e1/x2⏟num→∞den→∞=lim⁡x→0−4x5−2x3e1/x2=lim⁡x→02x2e1/x2⏟num→∞den→∞=lim⁡x→0−4x3−2x3e1/x2=lim⁡x→02e1/x2=0\lim_{x\rightarrow 0}\frac{e^{-1/x^2}}{x^4} =\lim_{x\rightarrow 0}\underbrace{\frac{\frac{1}{x^4}}{e^{1/x^2}}}_{\atp {\mathrm{num}\to\infty} {\mathrm{den}\to\infty}} =\lim_{x\rightarrow 0}\frac{\frac{-4}{x^5}}{\frac{-2}{x^3}e^{1/x^2}} =\lim_{x\rightarrow 0}\underbrace{\frac{\frac{2}{x^2}}{e^{1/x^2}}}_{\atp {\mathrm{num}\to\infty} {\mathrm{den}\to\infty}} =\lim_{x\rightarrow 0}\frac{\frac{-4}{x^3}}{\frac{-2}{x^3}e^{1/x^2}} =\lim_{x\rightarrow 0}\frac{2}{e^{1/x^2}} ={0}

    since, as x→0x\rightarrow 0, the exponent 1x2→∞\frac{1}{x^2}\rightarrow\infty so that e1/x2→∞e^{1/x^2}\rightarrow\infty and e−1/x2→0e^{-1/x^2}\rightarrow 0.

  • Solution 2.

    lim⁡x→0e−1/x2x4=lim⁡t=1x2→∞e−tt−2=lim⁡t→∞t2et⏟num→∞den→∞=lim⁡t→∞2tet⏟num→∞den→∞=lim⁡t→∞2et=0\lim_{x\rightarrow 0}\frac{e^{-1/x^2}}{x^4} =\lim_{t=\frac{1}{x^2}\rightarrow \infty}\frac{e^{-t}}{t^{-2}} =\lim_{t\rightarrow \infty}\underbrace{\frac{t^2}{e^{t}}}_{\atp {\mathrm{num}\to\infty} {\mathrm{den}\to\infty}} =\lim_{t\rightarrow \infty}\underbrace{\frac{2t}{e^{t}}}_{\atp {\mathrm{num}\to\infty} {\mathrm{den}\to\infty}} =\lim_{t\rightarrow \infty}\frac{2}{e^{t}} ={0}
Q16Stage 2Past exam · 1998H

Evaluate lim⁡x→0xextan⁡(3x)\lim\limits_{x\rightarrow 0} \dfrac{xe^x}{\tan (3x)}.

Answer

13\frac{1}{3}

Full solution
lim⁡x→0xextan⁡(3x)⏟num→0den→0=lim⁡x→0ex+xex3sec⁡2(3x)=13\lim_{x\rightarrow 0}\underbrace{\frac{xe^x}{\tan (3x)}}_{\atp {\mathrm{num}\to0} {\mathrm{den}\to0}} = \lim_{x\rightarrow 0}\frac{e^x+xe^x}{3\sec^2 (3x)} =\frac{1}{3}
Q17Stage 2Past exam · 2009H

Find cc so that lim⁡x→01+cx−cos⁡xex2−1\lim\limits_{x\rightarrow 0} \dfrac{1+cx-\cos x}{ e^{x^2}-1} exists.

Hint

If the denominator tends to zero, and the limit exists, what must be the limit of the numerator?

Answer

c=0c=0

Full solution

Both the numerator and denominator converge to 00 as x→0x\rightarrow 0. So, by l'H^opital,

lim⁡x→01+cx−cos⁡xex2−1⏟num→0den→0=lim⁡x→0c+sin⁡x2xex2\lim_{x\rightarrow 0}\underbrace{\frac{1+cx-\cos x}{ e^{x^2}-1}}_{\atp {\mathrm{num}\to 0}{\mathrm{den}\to 0}} =\lim_{x\rightarrow 0}\frac{c+\sin x}{ 2xe^{x^2}}

The new denominator still converges to 00 as x→0x\rightarrow 0. For the limit to exist, the same must be true for the new numerator. This tells us that if c≠0c \neq 0, the limit does not exist. We should check whether the limit exists when c=0c=0. Using l'H^opital:

lim⁡x→0sin⁡x2xex2⏟num→0den→0=lim⁡x→0cos⁡xex2(4x2+2)=11(0+2)=12.\lim_{x \to 0}\underbrace{\frac{\sin x}{2xe^{x^2}}}_{\atp {\mathrm{num}\to 0}{\mathrm{den}\to 0}}=\lim_{x \to 0}\frac{\cos x}{e^{x^2}(4x^2+2)}=\frac{1}{1(0+2)}=\frac{1}{2}.

So, the limit exists when c=0c=0.

3Stage 3Application

Further than practice: several ideas at once, or an unfamiliar situation.

Q18Stage 3Past exam · 2010H

Evaluate lim⁡x→0eksin⁡(x2)−(1+2x2)x4\lim\limits_{x\rightarrow 0}\dfrac{e^{k\sin(x^2)}-(1+2x^2)}{x^4}, where kk is a constant.

Hint

Start with one application of l'H^opital's Rule. After that, you need to consider three distinct cases: k>2k>2, k<2k<2, and k=2k=2.

Answer

lim⁡x→0eksin⁡(x2)−(1+2x2)x4={−∞k<22k=2∞k>2\lim\limits_{x\rightarrow 0}\dfrac{e^{k\sin(x^2)}-(1+2x^2)}{x^4}=\left\{\begin{array}{rl} -\infty&k<2\\ 2&k=2\\ \infty&k>2 \end{array}\right.

Full solution

The first thing we notice is, regardless of kk, when we plug in x=0x=0 both numerator and denominator become zero. Let's use this fact, and apply l'H^opital's Rule.

lim⁡x→0eksin⁡(x2)−(1+2x2)x4⏟num→0den→0=lim⁡x→02kxcos⁡(x2)eksin⁡(x2)−4x4x3=lim⁡x→02kcos⁡(x2)eksin⁡(x2)−44x2\begin{align*}\lim\limits_{x\rightarrow 0}\underbrace{\dfrac{e^{k\sin(x^2)}-(1+2x^2)}{x^4}}_{\atp {\mathrm{num}\to0} {\mathrm{den}\to0}} &=\lim_{x\rightarrow 0}\dfrac{2kx\cos(x^2)e^{k\sin(x^2)}-4x}{4x^3}\\ &=\lim_{x\rightarrow 0}\dfrac{2k\cos(x^2)e^{k\sin(x^2)}-4}{4x^2}\end{align*}

When we plug in x=0x=0, the denominator becomes 0, and the numerator becomes 2k−42k-4. So, we'll need some cases, because the behaviour of the limit depends on kk.

For k=2k=2:

lim⁡x→02kcos⁡(x2)eksin⁡(x2)−44x2=lim⁡x→04cos⁡(x2)e2sin⁡(x2)−44x2⏟num→0den→0=lim⁡x→0−8xsin⁡(x2)e2sin⁡(x2)+16xcos⁡2(x2)e2sin⁡(x2)8x=lim⁡x→0[−sin⁡(x2)e2sin⁡(x2)+2cos⁡2(x2)e2sin⁡(x2)]=2\begin{align*}\lim_{x\rightarrow 0}\dfrac{2k\cos(x^2)e^{k\sin(x^2)}-4}{4x^2}&= \lim_{x\rightarrow 0}\underbrace{\dfrac{4\cos(x^2)e^{2\sin(x^2)}-4}{4x^2}}_{\atp {\mathrm{num}\to0} {\mathrm{den}\to0}}\\ &= \lim_{x\rightarrow 0}\dfrac{-8x\sin(x^2)e^{2\sin(x^2)} +16x\cos^2(x^2)e^{2\sin(x^2)}}{8x}\cr &= \lim_{x\rightarrow 0}\big[-\sin(x^2)e^{2\sin(x^2)} +2\cos^2(x^2)e^{2\sin(x^2)}\big]\cr &=2\end{align*}

For k>2k>2, the numerator goes to 2k−42k-4, which is a positive constant, while the denominator goes to 00 from the right, so:

lim⁡x→02kcos⁡(x2)eksin⁡(x2)−44x2=∞\begin{align*}\lim_{x\rightarrow 0}\dfrac{2k\cos(x^2)e^{k\sin(x^2)}-4}{4x^2}&= \infty\end{align*}

For k<2k<2, the numerator goes to 2k−42k-4, which is a negative constant, while the denominator goes to 00 from the right, so:

lim⁡x→02kcos⁡(x2)eksin⁡(x2)−44x2=−∞\begin{align*}\lim_{x\rightarrow 0}\dfrac{2k\cos(x^2)e^{k\sin(x^2)}-4}{4x^2}&= -\infty\end{align*}
Q19Stage 3

Suppose an algorithm, given an input with with nn variables, will terminate in at most S(n)=5n4−13n3−4n+log⁡(n)S(n)=5n^4-13n^3-4n+\log (n) steps. A researcher writes that the algorithm will terminate in roughly at most A(n)=5n4A(n)=5n^4 steps. Show that the percentage error involved in using A(n)A(n) instead of S(n)S(n) tends to zero as nn gets very large. What happens to the absolute error?

Remark: this is a very common kind of approximation. When people deal with functions that give very large numbers, often they don't care about the exact large number–they only want a ballpark. So, a complicated function might be replaced by an easier function that doesn't give a large relative error.

Hint

Percentage error: 100∣exact−approxexact∣100\left|\frac{\text{exact}-\text{approx}}{\text{exact}}\right|. Absolute error: ∣exact−approx∣|\text{exact}-\text{approx}|.

Answer
  • We want to find the limit as nn goes to infinity of the percentage error, lim⁡n→∞100∣S(n)−A(n)∣∣S(n)∣\ds\lim_{n \rightarrow \infty} 100\frac{|S(n)-A(n)|}{|S(n)|}. Since A(n)A(n) is a nicer function than S(n)S(n), let's simplify: lim⁡n→∞100∣S(n)−A(n)∣∣S(n)∣=100∣1−lim⁡n→∞A(n)S(n)∣\ds\lim_{n \rightarrow \infty} 100\frac{|S(n)-A(n)|}{|S(n)|} = 100\left|1-\ds\lim_{n \to \infty}\frac{A(n)}{S(n)}\right|.

    We figure out this limit the natural way:

    100∣1−lim⁡n→∞A(n)S(n)∣=100∣1−lim⁡n→∞5n45n4−13n3−4n+log⁡(n)⏟num→∞den→∞∣=100∣1−lim⁡n→∞20n320n3−39n2−4+1n∣=100∣1−lim⁡n→∞n3n3⋅2020−39n−4n3+1n4∣=100∣1−1∣=0\begin{align*} 100\left|1-\ds\lim_{n \to \infty}\frac{A(n)}{S(n)}\right|&= 100\left|1-\ds\lim_{n \rightarrow \infty}\underbrace{\frac{5n^4}{5n^4-13n^3-4n+\log (n)}}_{\atp {\mathrm{num}\to\infty} {\mathrm{den}\to\infty}}\right|\\ &= 100\left|1-\ds\lim_{n \rightarrow \infty}\frac{20n^3}{20n^3-39n^2-4+\frac{1}{n}}\right|\\ &= 100\left|1-\ds\lim_{n \rightarrow \infty}\frac{n^3}{n^3}\cdot\frac{20}{20-\frac{39}{n}-\frac{4}{n^3}+\frac{1}{n^4}}\right|\\ &=100|1-1|=0 \end{align*}

    So, as nn gets larger and larger, the relative error in the approximation gets closer and closer to 0.

  • Now, let's look at the absolute error.

    lim⁡n→∞∣S(n)−A(n)∣=lim⁡n→∞∣−13n3−4n+log⁡n∣=∞\begin{align*} \lim_{n \rightarrow \infty} \left| S(n)-A(n)\right|&=\lim_{n \rightarrow \infty} |-13n^3-4n+\log n|=\infty \end{align*}

    So although the error gets small relative to the giant numbers we're talking about, the absolute error grows without bound.

Full solution
  • We want to find the limit as nn goes to infinity of the percentage error, lim⁡n→∞100∣S(n)−A(n)∣∣S(n)∣\ds\lim_{n \rightarrow \infty} 100\frac{|S(n)-A(n)|}{|S(n)|}. Since A(n)A(n) is a nicer function than S(n)S(n), let's simplify: lim⁡n→∞100∣S(n)−A(n)∣∣S(n)∣=100∣1−lim⁡n→∞A(n)S(n)∣\ds\lim_{n \rightarrow \infty} 100\frac{|S(n)-A(n)|}{|S(n)|} = 100\left|1-\ds\lim_{n \to \infty}\frac{A(n)}{S(n)}\right|.

    We figure out this limit the natural way:

    100∣1−lim⁡n→∞A(n)S(n)∣=100∣1−lim⁡n→∞5n45n4−13n3−4n+log⁡(n)⏟num→∞den→∞∣=100∣1−lim⁡n→∞20n320n3−39n2−4+1n∣=100∣1−lim⁡n→∞n3n3⋅2020−39n−4n3+1n4∣=100∣1−1∣=0\begin{align*} 100\left|1-\ds\lim_{n \to \infty}\frac{A(n)}{S(n)}\right|&= 100\left|1-\ds\lim_{n \rightarrow \infty}\underbrace{\frac{5n^4}{5n^4-13n^3-4n+\log (n)}}_{\atp {\mathrm{num}\to\infty} {\mathrm{den}\to\infty}}\right|\\ &= 100\left|1-\ds\lim_{n \rightarrow \infty}\frac{20n^3}{20n^3-39n^2-4+\frac{1}{n}}\right|\\ &= 100\left|1-\ds\lim_{n \rightarrow \infty}\frac{n^3}{n^3}\cdot\frac{20}{20-\frac{39}{n}-\frac{4}{n^3}+\frac{1}{n^4}}\right|\\ &=100|1-1|=0 \end{align*}

    So, as nn gets larger and larger, the relative error in the approximation gets closer and closer to 0.

  • Now, let's look at the absolute error.

    lim⁡n→∞∣S(n)−A(n)∣=lim⁡n→∞∣−13n3−4n+log⁡n∣=∞\begin{align*} \lim_{n \rightarrow \infty} \left| S(n)-A(n)\right|&=\lim_{n \rightarrow \infty} |-13n^3-4n+\log n|=\infty \end{align*}

    So although the error gets small relative to the giant numbers we're talking about, the absolute error grows without bound.

The two standard indeterminate forms we've seen are 00\frac00 and ∞∞\frac{\infty}{\infty}, but these are not the only indeterminate forms. In Questions 20 to 24, you will see indeterminate forms that, broadly speaking, involve a function raised to function. You saw something similar when we talked about logarithmic differentiation (section 4.4); similar algebraic manipulation will come in handy.

Q20Stage 3

Give two functions f(x)f(x) and g(x)g(x) with the following properties:

  1. lim⁡x→∞f(x)=1\ds\lim_{x \to \infty} f(x)=1

  2. lim⁡x→∞g(x)=∞\ds\lim_{x \to \infty} g(x)=\infty

  3. lim⁡x→∞[f(x)]g(x)=5\ds\lim_{x \to \infty} [f(x)]^{g(x)}=5

Hint

Try modifying the function from Example 6.3.4.

Answer

There are many possible answers. Here is one: f(x)=1+1xf(x)=1+\frac{1}{x}, g(x)=xlog⁡5g(x)=x\log 5 (recall we use log⁡\log to mean logarithm base ee).

Full solution

From Example 6.3.4, we know that lim⁡x→0(1+x)ax=ea\ds\lim_{x \to 0} (1+x)^{\frac{a}{x}}=e^a, so lim⁡x→0(1+x)log⁡5x=elog⁡5=5\ds\lim_{x \to 0} (1+x)^{\frac{\log 5}{x}}=e^{\log 5}=5. However, this is the limit as xx goes to 0, which is not what we were asked. So, we modify the functions by replacing xx with 1x\frac{1}{x}. If x→0+x \to 0^+, then 1x→∞\frac{1}{x} \to \infty.

Taking f(x)=1+1xf(x)=1+\frac{1}{x} and g(x)=xlog⁡5g(x)=x\log 5, we see:
(i) lim⁡x→∞f(x)=lim⁡x→∞(1+1x)=1\ds\lim_{x \to \infty} f(x)=\ds\lim_{x \to \infty } \left(1+\frac{1}{x}\right)=1
(ii) lim⁡x→∞g(x)=lim⁡x→∞xlog⁡5=∞\ds\lim_{x \to \infty} g(x)=\ds\lim_{x \to \infty} x\log 5=\infty
(iii) Let us name 1x=X\dfrac{1}{x}=X. Then as x→∞x \to \infty, X→0+X \to 0^+, so:
lim⁡x→∞[f(x)]g(x)=lim⁡x→∞[1+1x]xlog⁡5=lim⁡x→∞[1+1x]log⁡51x=lim⁡X→0+[1+X]log⁡5X=elog⁡5=5\ds\lim_{x \to \infty} [f(x)]^{g(x)}=\ds\lim_{x \to \infty} \left[1+\frac{1}{x}\right]^{x\log 5}=\lim_{x \to \infty} \left[1+\frac{1}{x}\right]^{\frac{\log 5}{\frac{1}{x}}}= \lim_{X \to 0^+} \left[1+X\right]^{\frac{\log 5}{X}}=e^{\log 5}=5, where in the penultimate step, we used the result of Example 6.3.4.

Q21Stage 3

Evaluate lim⁡x→0sin⁡2xx2\lim\limits_{x \to 0}\sqrt[x^2]{\sin^2 x}.

Hint

lim⁡x→0sin⁡2xx2=(sin⁡2x)1x2\lim\limits_{x \to 0}\sqrt[x^2]{\sin^2 x}=(\sin^2 x)^{\frac{1}{x^2}}; what form is this?

Answer

0

Full solution

lim⁡x→0sin⁡2x=0\ds\lim_{x \to 0} \sin^2 x = 0, and lim⁡x→01x2=∞\ds\lim_{x \to 0}\frac{1}{x^2}=\infty, so we have the form 0∞0^\infty. (Note that sin⁡2x\sin^2 x is positive, so our root is defined.) This is not an indeterminate form: lim⁡x→0sin⁡2xx2=0\lim\limits_{x \to 0}\sqrt[x^2]{\sin^2 x}=0.

Q22Stage 3

Evaluate lim⁡x→0cos⁡xx2\lim\limits_{x \to 0}\sqrt[x^2]{\cos x}.

Hint

lim⁡x→0cos⁡xx2=lim⁡x→0(cos⁡x)1x2\lim\limits_{x \to 0}\sqrt[x^2]{\cos x} = \ds\lim_{x \to 0}(\cos x)^{\frac{1}{x^2}}

Answer

1e\frac{1}{\sqrt{e}}

Full solution

lim⁡x→0cos⁡x=1\ds\lim_{x \to 0} \cos x =1 and lim⁡x→01x2=∞\ds\lim_{x \to 0}\frac{1}{x^2}=\infty, so lim⁡x→0(cos⁡x)1x2\ds\lim_{x \to 0}(\cos x)^{\frac{1}{x^2}} has the indeterminate form 1∞1^\infty. We want to use l'H^opital, but we need to get our function into a fractional indeterminate form. So, we'll use a logarithm.

y:=(cos⁡x)1x2log⁡y=log⁡((cos⁡x)1x2)=1x2log⁡(cos⁡x)=log⁡cos⁡xx2lim⁡x→0log⁡y=lim⁡x→0log⁡cos⁡xx2⏟num→0den→0=lim⁡x→0−sin⁡xcos⁡x2x=lim⁡x→0−tan⁡x2x⏟num→0den→0=lim⁡x→0−sec⁡2x2=lim⁡x→0−12cos⁡2x=−12Therefore, lim⁡x→0y=lim⁡x→0elog⁡y=e−1/2=1e\begin{align*} y:&=(\cos x)^{\frac{1}{x^2}}\\ \log y &= \log \left((\cos x)^{\frac{1}{x^2}}\right)=\frac{1}{x^2}\log(\cos x)=\frac{\log \cos x}{x^2}\\ \lim_{x \to 0}\log y &=\lim_{x \to 0}\underbrace{\frac{\log \cos x}{x^2}}_{\atp {\mathrm{num}\to0} {\mathrm{den}\to 0}} = \lim_{x \to 0} \frac{\frac{-\sin x}{\cos x}}{2x}= \lim_{x \to 0} \underbrace{\frac{-\tan x}{2x}}_{\atp {\mathrm{num}\to0} {\mathrm{den}\to 0}} = \lim_{x \to 0}\frac{-\sec^2x}{2}\\ &=\lim_{x \to 0}\frac{-1}{2\cos^2 x}=-\frac{1}{2}\\ \text{Therefore, } \lim_{x \to 0} y &=\lim_{x \to 0}e^{\log y}=e^{-1/2}=\frac{1}{\sqrt{e}} \end{align*}
Q23Stage 3

Evaluate lim⁡x→0+exlog⁡x\ds\lim_{x \to 0^+} e^{x \log x}.

Hint

logarithms

Answer

1

Full solution
  • Solution 1

    y:=exlog⁡x=(ex)log⁡xlim⁡x→0+y=lim⁡x→0+(ex)log⁡x\begin{align*}y:&= e^{x \log x} = (e^x)^{\log x} \\ \lim_{x \to 0^+} y &=\lim_{x \to 0^+} (e^x)^{\log x}\end{align*}

    This has the form 1−∞=11∞1^{-\infty} = \frac{1}{1^\infty}, and 1∞1^{\infty} is an indeterminate form. We want to use l'H^opital, but we need to get a different indeterminate form. So, we'll use logarithms.

    lim⁡x→0+log⁡y=lim⁡x→0+log⁡((ex)log⁡x)=lim⁡x→0+log⁡xlog⁡(ex)=lim⁡x→0+(log⁡x)⋅x\begin{align*}\lim_{x \to 0^+} \log y &=\lim_{x \to 0 ^+} \log\left((e^x)^{\log x} \right) =\lim_{x \to 0 ^+} \log x \log\left(e^x \right)=\lim_{x \to 0 ^+} (\log x)\cdot x\end{align*}

    This has the indeterminate form 0⋅∞0 \cdot \infty, so we need one last adjustment before we can use l'H^opital's Rule.

    =lim⁡x→0+log⁡x1x⏟num→−∞den→∞=lim⁡x→0+1x−1x2=lim⁡x→0+−x=0\begin{align*}&=\lim_{x \to 0 ^+} \underbrace{\frac{\log x}{\frac{1}{x}}}_{\atp {\mathrm{num} \to -\infty} {\mathrm{den} \to \infty}} =\lim_{x \to 0 ^+}\frac{\frac{1}{x}}{\frac{-1}{x^2}} =\lim_{x \to 0 ^+}-x=0\end{align*}

    Now, we can figure out what happens to our original function, yy:

    lim⁡x→0+y=lim⁡x→0+elog⁡y=e0=1\begin{align*}\lim_{x \to 0^+} y &=\lim_{x \to 0^+} e^{\log y} = e^0=1\end{align*}
  • Solution 2

    y:=exlog⁡x=(elog⁡x)x=xxlim⁡x→0+y=lim⁡x→0+xx\begin{align*}y:&=e^{x\log x}=\left(e^{\log x}\right)^x=x^x\\ \lim_{x \to 0^+} y &=\lim_{x \to 0^+}x^x\end{align*}

    We have the indeterminate form 000^0. We want to use l'H^opital, but we need a different indeterminate form. So, we'll use logarithms.

    lim⁡x→0+log⁡y=lim⁡x→0+log⁡(xx)=lim⁡x→0+xlog⁡x\begin{align*}\lim_{x \to 0^+}\log y &=\lim_{x \to 0^+}\log(x^x)=\lim_{x \to 0^+}x\log x\end{align*}

    Now we have the indeterminate form 0⋅∞0 \cdot \infty, so we need one last adjustment before we can use l'H^opital's Rule.

    lim⁡x→0+y=lim⁡x→0+log⁡x1x⏟num→0den→−∞=lim⁡x→0+1x−1x2=lim⁡x→0+−x=0\begin{align*}\lim_{x \to 0^+} y &=\lim_{x \to 0^+}\underbrace{\frac{\log x}{\frac{1}{x}}}_{\atp {\mathrm{num}\to 0} {\mathrm{den} \to -\infty}} =\lim_{x \to 0^+}\frac{\frac{1}{x}}{\frac{-1}{x^2}} =\lim_{x \to 0^+}-x=0\end{align*}

    Now, we can figure out what happens to our original function, yy:

    lim⁡x→0+y=lim⁡x→0+elog⁡y=e0=1\begin{align*}\lim_{x \to 0^+} y &=\lim_{x \to 0^+} e^{\log y} = e^0=1\end{align*}
Q24Stage 3

Evaluate lim⁡x→0[−log⁡(x2)]x\ds\lim_{x \rightarrow 0} \left[-\log(x^2)\right]^x.

Hint

Introduce yet another logarithm.

Answer

1

Full solution

First, note that the function exists near 0: x2x^2 is positive, so log⁡(x2)\log(x^2) exists; near 0, log⁡x2\log x^2 is negative, so −log⁡(x2)-\log(x^2) is positive, so [−log⁡(x2)]x\left[-\log(x^2)\right]^x exists even when xx is negative.

Since lim⁡x→0−log⁡(x2)=∞\ds\lim_{x \rightarrow 0} -\log(x^2)=\infty and lim⁡x→0x=0\ds\lim_{x \rightarrow 0}x=0, we have the indeterminate form ∞0\infty^0. We need l'H^opital, but we need to manipulate our function into an appropriate form. We do this using logarithms.

y:=[−log⁡(x2)]xlog⁡y=log⁡([−log⁡(x2)]x)=x⏟→0⋅log⁡(−log⁡(x2)⏟→∞)⏟→∞=log⁡(−log⁡(x2))1xlim⁡x→0log⁡y=lim⁡x→0log⁡(−log⁡(x2))1x⏟num→∞den→±∞=lim⁡x→0−2x−log⁡(x2)−1x2=lim⁡x→0−2xlog⁡(x2)⏟num→0den→−∞=0\begin{align*}y:&=\left[-\log(x^2)\right]^x\\ \log y &= \log \left( \left[-\log(x^2)\right]^x\right)= \underbrace{x}_{\to 0}\cdot\underbrace{\log\left(\underbrace{-\log(x^2)}_{\to\infty} \right)}_{\to\infty}=\frac{\log\left(-\log(x^2)\right)}{\frac{1}{x}}\\ \lim_{x \to 0}\log y &=\lim_{x \to 0} \underbrace{\frac{\log\left(-\log(x^2)\right)}{\frac{1}{x}}}_{\atp {\mathrm{num}\to \infty} {\mathrm{den}\to \pm\infty}} =\lim_{x \to 0} \frac{\frac{-\frac{2}{x}}{-\log(x^2)}}{\frac{-1}{x^2}} =\lim_{x \to 0} \underbrace{\frac{-2x}{\log(x^2)}}_{\atp {\mathrm{num}\to0} {\mathrm{den}\to-\infty}}=0\end{align*}

Now, we're ready to figure out our original limit.

lim⁡x→0y=lim⁡x→0elog⁡y=e0=1\begin{align*}\lim_{x\to 0} y &= \lim_{x \to 0} e^{\log y}=e^0=1\end{align*}

My list

nothing marked yet

Loading…

Open the whole list →

Your tutor can open this list with you. It follows your account, so it is there on whichever device you study on.

From the UBC Math 100 open textbook project, © Joel Feldman, Andrew Rechnitzer, Elyse Yeager and others. Licensed CC BY-NC-SA 4.0; this HTML adaptation is released under the same licence. Full attribution.