Math Calculators, Lessons and Formulas

It is time to solve your math problem

mathportal.org
« Limits of Trigonometric Functions
Limits: (lesson 5 of 5)

Lhospital Rule

L'Hospital's Rule for 00\frac{0}{0}


Suppose that limf(x)=limg(x)=0\lim f(x) = \lim g(x) = 0. Then

If limf(x)g(x)=L\lim \frac{f'(x)}{g'(x)} = L, then limf(x)g(x)=limf(x)g(x)=L\lim \frac{f(x)}{g(x)} = \lim \frac{f'(x)}{g'(x)} = L.

If limf(x)g(x)\lim \frac{f'(x)}{g'(x)} tends to \infty in the limit, then so does f(x)g(x)\frac{f(x)}{g(x)}.

Here is a case of 00\frac{0}{0}.

Example 1:

limx0sinxx=limx0(sinx)x=limx0cosx1=cos0=1 \mathop {\lim }\limits_{x \to 0} \frac{\sin x}{x} = \mathop {\lim }\limits_{x \to 0} \frac{(\sin x)'}{x'} = \mathop {\lim }\limits_{x \to 0} \frac{\cos x}{1} = \cos 0 = 1

Example 2:

limx1lnxx1=limx1(lnx)(x1)=limx11x1=limx11x=1 \mathop {\lim }\limits_{x \to 1} \frac{{\ln x}}{{x - 1}} = \mathop {\lim }\limits_{x \to 1} \frac{{(\ln x)'}}{{(x - 1)'}} = \mathop {\lim }\limits_{x \to 1} \frac{{\frac{1}{x}}}{1} = \mathop {\lim }\limits_{x \to 1} \frac{1}{x} = 1

Example 3:

limx0ex1x2=limx0(ex1)(x2)=limx0ex2x= \mathop {\lim }\limits_{x \to 0} \frac{{{e^x} - 1}}{{{x^2}}} = \mathop {\lim }\limits_{x \to 0} \frac{{({e^x} - 1)'}}{{({x^2})'}} = \mathop {\lim }\limits_{x \to 0} \frac{{{e^x}}}{{2x}} = \infty

Example 4:

Sometimes it is necessary to use L'Hospital's Rule several times in the same problem.

limx01cosxx2=limx0sinx2x=limx0cosx2=12 \mathop {\lim }\limits_{x \to 0} \frac{{1 - \cos x}}{{{x^2}}} = \mathop {\lim }\limits_{x \to 0} \frac{{\sin x}}{{2x}} = \mathop {\lim }\limits_{x \to 0} \frac{{\cos x}}{2} = \frac{1}{2}

Example 5:

Here is a more elaborate example involving the indeterminate form 00\frac{0}{0}. Applying the rule a single time still results in an indeterminate form. In this case, the limit may be evaluated by applying L'Hospital's rule three times:

limx02sinxsin2xxsinx==limx02cosx2cos2x1cosx==limx02sinx+4sin2xsinx==limx02cosx+8cos2xcosx==2cos0+8cos0cos0==6 \begin{aligned} &\mathop {\lim }\limits_{x \to 0} \frac{{2\sin x - \sin 2x}}{{x - \sin x}} = \\ &= \mathop {\lim }\limits_{x \to 0} \frac{{2\cos x - 2\cos 2x}}{{1 - \cos x}} = \\ &= \mathop {\lim }\limits_{x \to 0} \frac{{ - 2\sin x + 4\sin 2x}}{{\sin x}} = \\ &= \mathop {\lim }\limits_{x \to 0} \frac{{ - 2\cos x + 8\cos 2x}}{{\cos x}} = \\ &= \frac{{ - 2\cos 0 + 8\cos 0}}{{\cos 0}} = \\ &= 6 \end{aligned}


L'Hospital's Rule for \frac{\infty }{\infty }

Suppose limf(x)=limg(x)=\lim f(x) = \lim g(x) = \infty. Then

If limf(x)g(x)=L\lim \frac{f'(x)}{g'(x)} = L, then limf(x)g(x)=limf(x)g(x)=L\lim \frac{f(x)}{g(x)} = \lim \frac{f'(x)}{g'(x)} = L.

If limf(x)g(x)\lim \frac{f'(x)}{g'(x)} tends to ++ \infty or - \infty in the limit, then so does f(x)g(x)\frac{f(x)}{g(x)}.

Here is a case of \frac{\infty }{\infty }

Example 6:

limxxlnx=limx1/(2x)1/x=limxx2= \mathop {\lim }\limits_{x \to \infty } \frac{{\sqrt x }}{{\ln x}} = \mathop {\lim }\limits_{x \to \infty } \frac{{1/(2\sqrt x )}}{{1/x}} = \mathop {\lim }\limits_{x \to \infty } \frac{{\sqrt x }}{2} = \infty

Example 7:

limxxnex=limxxnex=limxnxn1ex=nlimxxn1ex \mathop {\lim }\limits_{x \to \infty } {x^n}{e^{ - x}} = \mathop {\lim }\limits_{x \to \infty } \frac{{{x^n}}}{{{e^x}}} = \mathop {\lim }\limits_{x \to \infty } \frac{{n{x^{n - 1}}}}{{{e^x}}} = n\mathop {\lim }\limits_{x \to \infty } \frac{{{x^{n - 1}}}}{{{e^x}}}

Iterate the above until the exponent is 0. Then one sees that the limit is 0.

Example 8:

This one also involves \frac{\infty }{\infty }:

limx0+(xlnx)=limx0+lnx1/x=limx0+1/x1/x2=limx0+x=0 \mathop {\lim }\limits_{x \to 0 + } (x\ln x) = \mathop {\lim }\limits_{x \to 0 + } \frac{{\ln x}}{{1/x}} = \mathop {\lim }\limits_{x \to 0 + } \frac{{1/x}}{{ - 1/{x^2}}} = \mathop {\lim }\limits_{x \to 0 + } - x = 0

Basic indeterminate forms (all others reduce to these):

00 and \frac{0}{0} \text{ and } \frac{\infty }{\infty }

Other indeterminate forms:

0   1   0   00   \infty ^0 \ \ \ 1^\infty \ \ \ 0 \cdot \infty \ \ \ 0^0 \ \ \ \infty - \infty

Example 9:

To handle a case of \infty - \infty, the difference of two functions is converted to a quotient:

limxxx2x=limx(x+x2x)(xx2x)x+x2x==limxx2(x2x)x+x2x==limxxx+x2x==limx11+2x12x2x=11+1=12 \begin{aligned} &\mathop {\lim }\limits_{x \to \infty } x - \sqrt {{x^2} - x} = \mathop {\lim }\limits_{x \to \infty } \frac{{(x + \sqrt {{x^2} - x} )(x - \sqrt {{x^2} - x} )}}{{x + \sqrt {{x^2} - x} }} = \\ &= \mathop {\lim }\limits_{x \to \infty } \frac{{{x^2} - ({x^2} - x)}}{{x + \sqrt {{x^2} - x} }} = \\ &= \mathop {\lim }\limits_{x \to \infty } \frac{x}{{x + \sqrt {{x^2} - x} }} = \\ &= \mathop {\lim }\limits_{x \to \infty } \frac{1}{{1 + \frac{{2x - 1}}{{2\sqrt {{x^2} - x} }}}} = \frac{1}{{1 + 1}} = \frac{1}{2} \end{aligned}

Example 10:

To handle a case of 000^0, the difference of two functions is converted to a quotient:

limx0xx=limx0eln(xx)=limx0exlnx=limx0e0=1\mathop {\lim }\limits_{x \to 0} {x^x} = \mathop {\lim }\limits_{x \to 0} {e^{\ln ({x^x})}} = \mathop {\lim }\limits_{x \to 0} {e^{x\ln x}} = \mathop {\lim }\limits_{x \to 0} {e^0} = 1

When NOT to use L'Hospital's rule

limx0cosxxlimx0(cosx)x\mathop {\lim }\limits_{x \to 0} \frac{\cos x}{x} \ne \mathop {\lim }\limits_{x \to 0} \frac{(\cos x)'}{x'}

because limx0cosx=10\mathop {\lim }\limits_{x \to 0} \cos x = 1 \color{red}{\ne} 0