Skip to main content
Examonaut

Topic 2 · Lesson 2 of 4

Limits, L'Hospital's rule and Leibnitz's theorem

Limits from series

A limit such as lim⁡x→01−cos⁡3xx2\lim_{x \to 0} \frac{1 - \cos 3x}{x^2} has the form 00\frac{0}{0}: substituting x=0x = 0 tells you nothing. Replace each function by its series, simplify, and then let x→0x \to 0:

1−cos⁡3xx2=9x22−81x424+…x2=92−27x28+⋯→92\frac{1 - \cos 3x}{x^2} = \frac{\frac{9x^2}{2} - \frac{81x^4}{24} + \dots}{x^2} = \frac{9}{2} - \frac{27x^2}{8} + \dots \to \frac{9}{2}

The key step is to divide the top and bottom by the lowest power of xx that appears, so that the leading terms become constants. Keep enough terms: the series must reach that lowest power in both the numerator and the denominator.

For a limit at x=ax = a, use the Taylor series about aa. For example, sin⁡x=1−12(x−π2)2+…\sin x = 1 - \frac{1}{2}\left(x - \frac{\pi}{2}\right)^2 + \dots about π2\frac{\pi}{2}, so 1−sin⁡x(x−π2)2→12\frac{1 - \sin x}{\left(x - \frac{\pi}{2}\right)^2} \to \frac{1}{2} as x→π2x \to \frac{\pi}{2}.

L'Hospital's rule

If f(a)=g(a)=0f(a) = g(a) = 0 (or both tend to infinity), 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)}

provided the second limit exists. Differentiate the top and the bottom separately; this is not the quotient rule. If the new fraction is still 00\frac{0}{0}, apply the rule again.

Worked example

L'Hospital's rule twice

Find lim⁡x→0x−ln⁡(1+x)x2\lim_{x \to 0} \frac{x - \ln(1 + x)}{x^2}.

Show solution
  1. At x=0x = 0 it is 00\frac{0}{0}. Differentiate: 1−11+x2x\frac{1 - \frac{1}{1 + x}}{2x}, still 00\frac{0}{0}.
  2. Again: 1(1+x)22→12\frac{\frac{1}{(1 + x)^2}}{2} \to \frac{1}{2}.

The series method agrees: x−ln⁡(1+x)=x22−x33+…x - \ln(1 + x) = \frac{x^2}{2} - \frac{x^3}{3} + \dots.

Other indeterminate forms must be rearranged first. For x2ln⁡xx^2\ln x as x→0+x \to 0^+ (a "0×∞0 \times \infty" form), write it as ln⁡xx−2\frac{\ln x}{x^{-2}}, which is ∞∞\frac{\infty}{\infty}: the rule gives 1/x−2x−3=−x22→0\frac{1/x}{-2x^{-3}} = -\frac{x^2}{2} \to 0. A difference such as 1x−cot⁡x\frac{1}{x} - \cot x (∞−∞\infty - \infty) must first be written as a single fraction.

Leibnitz's theorem

To differentiate a product nn times, use

dndxn(uv)=∑r=0n(nr)drudxrdn−rvdxn−r=uv(n)+(n1)u′v(n−1)+(n2)u′′v(n−2)+⋯+u(n)v\frac{d^n}{dx^n}(uv) = \sum_{r=0}^{n} \binom{n}{r}\frac{d^ru}{dx^r}\frac{d^{n-r}v}{dx^{n-r}} = uv^{(n)} + \binom{n}{1}u'v^{(n-1)} + \binom{n}{2}u''v^{(n-2)} + \dots + u^{(n)}v

The coefficients are the binomial coefficients, just as in (a+b)n(a + b)^n. Choose uu to be the factor whose derivatives run out (a polynomial), so most terms are zero.

Worked example

Leibnitz's theorem

Find dndxn(xe2x)\frac{d^n}{dx^n}\left(xe^{2x}\right).

Show solution
  1. Take u=xu = x (so u′=1u' = 1, and higher derivatives are 0) and v=e2xv = e^{2x} (so v(k)=2ke2xv^{(k)} = 2^ke^{2x}).
  2. dndxn(xe2x)=x×2ne2x+(n1)×1×2n−1e2x=2n−1e2x(2x+n)\frac{d^n}{dx^n}(xe^{2x}) = x \times 2^ne^{2x} + \binom{n}{1} \times 1 \times 2^{n-1}e^{2x} = 2^{n-1}e^{2x}(2x + n).

Recurrence relations and Maclaurin series

Leibnitz's theorem is most powerful on a differential equation. Suppose y=ex2y = e^{x^2}, so that dydx=2xy\frac{dy}{dx} = 2xy. Differentiating this nn times, the only non-zero derivatives of 2x2x are 2x2x itself and 22:

y(n+1)=2xy(n)+(n1)×2y(n−1)=2xy(n)+2ny(n−1)y^{(n+1)} = 2xy^{(n)} + \binom{n}{1} \times 2y^{(n-1)} = 2xy^{(n)} + 2ny^{(n-1)}

At x=0x = 0: y(n+1)(0)=2ny(n−1)(0)y^{(n+1)}(0) = 2ny^{(n-1)}(0). Starting from y(0)=1y(0) = 1 and y′(0)=0y'(0) = 0, every odd derivative is 0, y′′(0)=2y''(0) = 2 and y(4)(0)=6×2=12y^{(4)}(0) = 6 \times 2 = 12, giving the Maclaurin series

ex2=1+x2+1224x4+⋯=1+x2+12x4+…e^{x^2} = 1 + x^2 + \frac{12}{24}x^4 + \dots = 1 + x^2 + \frac{1}{2}x^4 + \dots

which agrees with putting x2x^2 into the series for exe^x. The same method works for functions such as arctan⁡x\arctan x and (arcsin⁡x)2(\arcsin x)^2, whose series are hard to find any other way.

Practise this topic

Both are part of Premium.