Leibnitz's theorem and L'Hospital's rule

Leibnitz's theorem and L'Hospital's rule

Spec 2.3–4 · Edexcel A-Level Further Maths: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • Leibnitz's theorem: (uv)(n)=∑r=0n(nr)u(r)v(n−r)(uv)^{(n)}=\sum_{r=0}^{n}\binom nr u^{(r)}v^{(n-r)}.
  • Choose uu to be the polynomial factor, so most terms vanish.
  • L'Hospital's rule: for 00\frac00 or ∞∞\frac\infty\infty, lim⁡fg=lim⁡f′g′\lim\frac fg=\lim\frac{f'}{g'} (differentiate top and bottom separately).
  • Apply the rule again if the form is still indeterminate; never when it is not.

Leibnitz's theorem

The nnth derivative of uvuv has binomial coefficients, pairing u(r)u^{(r)} with v(n−r)v^{(n-r)}.

Leibnitz's theorem gives the nnth derivative of a product y=uvy=uv. The coefficients are binomial coefficients, because the pattern mirrors the expansion of (a+b)n(a+b)^n.

For n=2n=2 it gives u′′v+2u′v′+uv′′u''v+2u'v'+uv'', and for n=3n=3, u′′′v+3u′′v′+3u′v′′+uv′′′u'''v+3u''v'+3u'v''+uv'''.

Choose uu to be the factor that becomes zero after a few differentiations, such as a polynomial.

  • (uv)(n)(uv)^{(n)}∑r=0n(nr)u(r)v(n−r)\sum_{r=0}^{n}\binom nr u^{(r)}v^{(n-r)}

What is the coefficient of u′′v′′′u''v''' in the 5th derivative of uvuv?

Worked example with Leibnitz

Write out the derivatives of uu and vv in two columns, then combine only the surviving terms.

Write out u,u′,u′′,…u,u',u'',\ldots and v,v′,v′′,…v,v',v'',\ldots in two columns before combining.

A pattern valid for all nn can be found whenever one factor is a polynomial: only the surviving terms appear, because higher derivatives of the polynomial are 00.

u=x2u=x^2

  • u′=2xu'=2x
  • u′′=2u''=2
  • u′′′=0u'''=0

v=e3xv=\mathrm{e}^{3x}

  • v′=3e3xv'=3\mathrm{e}^{3x}
  • v′′=9e3xv''=9\mathrm{e}^{3x}
  • v(k)=3ke3xv^{(k)}=3^k\mathrm{e}^{3x}

Worked example

Find y′′y'' and y(n)y^{(n)} for y=x2e3xy=x^2\mathrm{e}^{3x}.

Why do only three terms survive for y=x2e3xy=x^2\mathrm{e}^{3x}?

L'Hospital's rule

Differentiate the numerator and denominator separately and take the limit again.

L'Hospital's rule: if f(x)→0f(x)\to0 and g(x)→0g(x)\to0, or both tend to ±∞\pm\infty, as x→ax\to a, then lim⁡f(x)g(x)=lim⁡f′(x)g′(x)\lim\frac{f(x)}{g(x)}=\lim\frac{f'(x)}{g'(x)}, provided the right-hand limit exists.

The rule applies to an indeterminate form such as 00\frac00 or ∞∞\frac\infty\infty.

Differentiate the numerator and denominator separately. Do not use the quotient rule.

  1. 1

    Check the form

    00\frac00 or ∞∞\frac\infty\infty

  2. 2

    Differentiate

    top and bottom separately

  3. 3

    Take the limit

    of f′g′\frac{f'}{g'}

  4. 4

    Repeat if needed

    while the form is still indeterminate

Using L'Hospital's rule

Worked example

Find lim⁡x→0sin⁡3xsin⁡5x\lim_{x\to0}\frac{\sin3x}{\sin5x}.

Find lim⁡x→0ex−1x\lim_{x\to0}\frac{\mathrm{e}^x-1}{x}.

Repeated applications

Apply the rule again, checking the form at every step.

If the new quotient is still indeterminate, apply the rule again. This is a repeated application.

You may simplify between steps. Check the form (00\frac00 or ∞∞\frac\infty\infty) at every step, and stop as soon as the limit can be read off by substitution.

Still 00\frac00 after one step

  • Differentiate top and bottom again
  • Check the form again

Limit can be read off

  • Substitute and stop
  • Do not differentiate further

Worked example

Find lim⁡x→02sin⁡x−sin⁡2xx−sin⁡x\lim_{x\to0}\frac{2\sin x-\sin2x}{x-\sin x}.

After one application you get 2cos⁡x−2cos⁡2x1−cos⁡x\frac{2\cos x-2\cos2x}{1-\cos x}. What should you do?

Other forms, and when it fails

Only use it for indeterminate forms; rearrange others first, often with logarithms.

Forms such as 1∞1^\infty and 0×∞0\times\infty are rearranged first, often with the logarithm trick: take ln⁡\ln to get 00\frac00 or ∞∞\frac\infty\infty.

For exx2\frac{\mathrm{e}^x}{x^2} as x→∞x\to\infty apply the rule twice to get ex2→∞\frac{\mathrm{e}^x}2\to\infty.

The rule must not be used if the form is not indeterminate: 1+cos⁡xx2\frac{1+\cos x}{x^2} tends to 20+=+∞\frac2{0^+}=+\infty, but a blind application gives −12-\frac12, which is wrong.

Use the rule

  • 00\frac00 or ∞∞\frac\infty\infty
  • Example: sin⁡3xsin⁡5x\frac{\sin3x}{\sin5x} at 00

Do not use it

  • Numerator tends to a non-zero constant
  • Example: 1+cos⁡xx2\frac{1+\cos x}{x^2}, which tends to +∞+\infty

Worked example

Find lim⁡x→∞(1+ax)x\lim_{x\to\infty}\left(1+\frac ax\right)^x.

Can L'Hospital's rule be used on lim⁡x→01+cos⁡xx2\lim_{x\to0}\frac{1+\cos x}{x^2}?

Try an exam question

Use L'Hospital's rule to find lim⁡x→0ex−1−xx2\lim_{x\to0}\frac{\mathrm{e}^x-1-x}{x^2}.

[4 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Use Leibnitz's theorem to find d2ydx2\dfrac{\mathrm{d}^2y}{\mathrm{d}x^2}.

1 mark, marked against the mark scheme

Revision notes