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

Stage 1 · Conceptual

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. limxf(x)=\ds\lim_{x \to \infty} f(x)=\infty

  2. limxg(x)=\ds\lim_{x \to \infty} g(x)=\infty

  3. limxf(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 limxf(x)=limxg(x)=\ds\lim_{x \rightarrow\infty}f(x)=\ds\lim_{x\to\infty}g(x)=\infty, and limxf(x)g(x)=limx5x2x=limx52=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. limxf(x)=\ds\lim_{x \to \infty} f(x)=\infty

  2. limxg(x)=\ds\lim_{x \to \infty} g(x)=\infty

  3. limxf(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 limxf(x)=limxg(x)=\ds\lim_{x \rightarrow\infty}f(x)=\ds\lim_{x\to\infty}g(x)=\infty, and limxf(x)g(x)=limxxx2=limx1x=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.

Stage 2 · Procedural

Q3Stage 2Past exam · 2009H

Evaluate limx1x3ex1sin(π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.

limx1x3ex1sin(πx)num0den0=limx13x2ex1π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 limx0+logxx\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 x0+x\rightarrow 0+, the numerator logx\log x\rightarrow-\infty. That is, the numerator is becoming an increasingly huge, negative number. As x0+x\rightarrow 0+, the denominator x0+x\rightarrow 0+, which only serves to make the total fraction even larger, and still negative. So, $\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 limx0+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 limx(logx)2ex\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:

limx(logx)2ex=limx(logx)2exnumden\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.

=limx2logxxexnumden=limx2/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 limxx2ex\lim\limits_{x\rightarrow\infty}x^2e^{-x}.

Hint

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

Answer

0

Full solution
limxx2ex=limxx2exnumden=limx2xexnumden=limx2exnumden=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 limx0xxcosxxsinx\lim\limits_{x\rightarrow 0}\dfrac{x-x\cos x}{x-\sin x}.

Hint

Keep at it!

Answer

3

Full solution
limx0xxcosxxsinxnum0den0=limx01cosx+xsinx1cosxnum0den0=limx0sinx+sinx+xcosxsinxnum0den0=limx02cosx+cosxxsinxcosx=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 limx0x6+4x4x2cosx\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.

limx0x6+4x4x2cosx=limx0x4x2+4x2cosx=limx0x2x2+4x2cosx=limx0x2+4cosx=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 limx(logx)2x\lim\limits_{x\rightarrow\infty}\dfrac{(\log x)^2}{x}.

Hint

Keep going!

Answer

0

Full solution
limx(logx)2xnumden=limx2(logx)1x1=2limxlogxxnumden=2limx1x1=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 limx01cosxsin2x\lim\limits_{x\rightarrow0}\dfrac{1-\cos x}{\sin^2 x}.

Answer

12\frac{1}{2}

Full solution
limx01cosxsin2xnum0den0=limx0sinx2sinxcosx=limx012cosx=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 limx0xsecx\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
sec0=1cos0=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:
limx01secxtanx=limx0cosxcosxsinx=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 limx0cscxtanx(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: tan0=0\tan 0 =0, while limx0+cscx=\ds\lim_{x \to 0^+}\csc x=\infty and limx0cscx=\ds\lim_{x \to 0^-}\csc x=-\infty. If we use cscx=1sinx\csc x = \frac{1}{\sin x}, our expression becomes

limx0tanx(x2+5)sinxex\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.

limx0tanx(x2+5)sinxex=limx0sinx(x2+5)cosxsinxex=limx0x2+5cosxex=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 limx0sin(x3+3x2)sin2x\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.

limx0sin(x3+3x2)sin2xnum0den0=limx0(3x2+6x)cos(x3+3x2)2sinxcosx\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:

limx0(3x2+6x)cos(x3+3x2)2sinxcosx=(limx0x2+2xsinx)(limx03cos(x3+3x2)2cosx)\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:

=32limx0x2+2xsinxnum0den0=32limx02x+2cosx=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 limx1log(x3)x21\lim\limits_{x\rightarrow1}\dfrac{\log(x^3)}{x^2-1}.

Answer

32\frac{3}{2}

Full solution
limx1log(x3)x21=limx13log(x)x21num0den0=limx13/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 limx0e1/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.

    limx0e1/x2x4=limx01x4e1/x2numden=limx04x52x3e1/x2=limx02x2e1/x2numden=limx04x32x3e1/x2=limx02e1/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 x0x\rightarrow 0, the exponent 1x2\frac{1}{x^2}\rightarrow\infty so that e1/x2e^{1/x^2}\rightarrow\infty and e1/x20e^{-1/x^2}\rightarrow 0.

  • Solution 2.

    limx0e1/x2x4=limt=1x2ett2=limtt2etnumden=limt2tetnumden=limt2et=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\limits_{x\rightarrow 0} \dfrac{xe^x}{\tan (3x)}$.

Answer

13\frac{1}{3}

Full solution
limx0xextan(3x)num0den0=limx0ex+xex3sec2(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\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 x0x\rightarrow 0. So, by l'H^opital,

limx01+cxcosxex21num0den0=limx0c+sinx2xex2\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 x0x\rightarrow 0. For the limit to exist, the same must be true for the new numerator. This tells us that if c0c \neq 0, the limit does not exist. We should check whether the limit exists when c=0c=0. Using l'H^opital:

limx0sinx2xex2num0den0=limx0cosxex2(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.

Stage 3 · Application

Q18Stage 3Past exam · 2010H

Evaluate limx0eksin(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\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.

limx0eksin(x2)(1+2x2)x4num0den0=limx02kxcos(x2)eksin(x2)4x4x3=limx02kcos(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 2k42k-4. So, we'll need some cases, because the behaviour of the limit depends on kk.

For k=2k=2:

limx02kcos(x2)eksin(x2)44x2=limx04cos(x2)e2sin(x2)44x2num0den0=limx08xsin(x2)e2sin(x2)+16xcos2(x2)e2sin(x2)8x=limx0[sin(x2)e2sin(x2)+2cos2(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 2k42k-4, which is a positive constant, while the denominator goes to 00 from the right, so:

limx02kcos(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 2k42k-4, which is a negative constant, while the denominator goes to 00 from the right, so:

limx02kcos(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)=5n413n34n+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: 100exactapproxexact100\left|\frac{\text{exact}-\text{approx}}{\text{exact}}\right|. Absolute error: exactapprox|\text{exact}-\text{approx}|.

Answer
  • We want to find the limit as nn goes to infinity of the percentage error, limn100S(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: limn100S(n)A(n)S(n)=1001limnA(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:

    1001limnA(n)S(n)=1001limn5n45n413n34n+log(n)numden=1001limn20n320n339n24+1n=1001limnn3n3202039n4n3+1n4=10011=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.

    limnS(n)A(n)=limn13n34n+logn=\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, limn100S(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: limn100S(n)A(n)S(n)=1001limnA(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:

    1001limnA(n)S(n)=1001limn5n45n413n34n+log(n)numden=1001limn20n320n339n24+1n=1001limnn3n3202039n4n3+1n4=10011=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.

    limnS(n)A(n)=limn13n34n+logn=\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. limxf(x)=1\ds\lim_{x \to \infty} f(x)=1

  2. limxg(x)=\ds\lim_{x \to \infty} g(x)=\infty

  3. limx[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)=xlog5g(x)=x\log 5 (recall we use log\log to mean logarithm base ee).

Full solution

From Example 6.3.4, we know that limx0(1+x)ax=ea\ds\lim_{x \to 0} (1+x)^{\frac{a}{x}}=e^a, so limx0(1+x)log5x=elog5=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 x0+x \to 0^+, then 1x\frac{1}{x} \to \infty.

Taking f(x)=1+1xf(x)=1+\frac{1}{x} and g(x)=xlog5g(x)=x\log 5, we see:
(i) limxf(x)=limx(1+1x)=1\ds\lim_{x \to \infty} f(x)=\ds\lim_{x \to \infty } \left(1+\frac{1}{x}\right)=1
(ii) limxg(x)=limxxlog5=\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 xx \to \infty, X0+X \to 0^+, so:
$\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 limx0sin2xx2\lim\limits_{x \to 0}\sqrt[x^2]{\sin^2 x}.

Hint

limx0sin2xx2=(sin2x)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

limx0sin2x=0\ds\lim_{x \to 0} \sin^2 x = 0, and limx01x2=\ds\lim_{x \to 0}\frac{1}{x^2}=\infty, so we have the form 00^\infty. (Note that sin2x\sin^2 x is positive, so our root is defined.) This is not an indeterminate form: limx0sin2xx2=0\lim\limits_{x \to 0}\sqrt[x^2]{\sin^2 x}=0.

Q22Stage 3

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

Hint

limx0cosxx2=limx0(cosx)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

limx0cosx=1\ds\lim_{x \to 0} \cos x =1 and limx01x2=\ds\lim_{x \to 0}\frac{1}{x^2}=\infty, so limx0(cosx)1x2\ds\lim_{x \to 0}(\cos x)^{\frac{1}{x^2}} has the indeterminate form 11^\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:=(cosx)1x2logy=log((cosx)1x2)=1x2log(cosx)=logcosxx2limx0logy=limx0logcosxx2num0den0=limx0sinxcosx2x=limx0tanx2xnum0den0=limx0sec2x2=limx012cos2x=12Therefore, limx0y=limx0elogy=e1/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 limx0+exlogx\ds\lim_{x \to 0^+} e^{x \log x}.

Hint

logarithms

Answer

1

Full solution
  • Solution 1

    y:=exlogx=(ex)logxlimx0+y=limx0+(ex)logx\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=111^{-\infty} = \frac{1}{1^\infty}, and 11^{\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.

    limx0+logy=limx0+log((ex)logx)=limx0+logxlog(ex)=limx0+(logx)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 00 \cdot \infty, so we need one last adjustment before we can use l'H^opital's Rule.

    =limx0+logx1xnumden=limx0+1x1x2=limx0+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:

    limx0+y=limx0+elogy=e0=1\begin{align*}\lim_{x \to 0^+} y &=\lim_{x \to 0^+} e^{\log y} = e^0=1\end{align*}
  • Solution 2

    y:=exlogx=(elogx)x=xxlimx0+y=limx0+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.

    limx0+logy=limx0+log(xx)=limx0+xlogx\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 00 \cdot \infty, so we need one last adjustment before we can use l'H^opital's Rule.

    limx0+y=limx0+logx1xnum0den=limx0+1x1x2=limx0+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:

    limx0+y=limx0+elogy=e0=1\begin{align*}\lim_{x \to 0^+} y &=\lim_{x \to 0^+} e^{\log y} = e^0=1\end{align*}
Q24Stage 3

Evaluate limx0[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, logx2\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 limx0log(x2)=\ds\lim_{x \rightarrow 0} -\log(x^2)=\infty and limx0x=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)]xlogy=log([log(x2)]x)=x0log(log(x2))=log(log(x2))1xlimx0logy=limx0log(log(x2))1xnumden±=limx02xlog(x2)1x2=limx02xlog(x2)num0den=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.

limx0y=limx0elogy=e0=1\begin{align*}\lim_{x\to 0} y &= \lim_{x \to 0} e^{\log y}=e^0=1\end{align*}

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.