What successive differentiation means
Before you start: you should be comfortable with higher-order derivatives and the chain rule.
Differentiate \(y\) once and you get \(y_1\). Differentiate again and you get \(y_2\), and so on. Doing this over and over is successive differentiation. In engineering maths the question is usually not "find \(y_3\)" but "find \(y_n\)": one formula that works for every \(n\) at once.
\[y_n = \frac{d^n y}{dx^n} = D^n y = y^{(n)}\]
The idea
Work out \(y_1\), \(y_2\), \(y_3\). Look at what changes from one to the next. Write the pattern with \(n\) in it, and check it against \(y_1\).
For a handful of standard functions the pattern is clean, and those results are worth knowing by heart. Everything else in this lesson is about turning a harder function into a sum of these standard ones.
Standard nth derivatives
| \(y\) | \(y_n\) |
|---|---|
| \((ax+b)^m\) | \(m(m-1)\cdots(m-n+1)\,a^n(ax+b)^{m-n}\) |
| \(\dfrac{1}{ax+b}\) | \(\dfrac{(-1)^n\,n!\,a^n}{(ax+b)^{n+1}}\) |
| \(\log(ax+b)\) | \(\dfrac{(-1)^{n-1}(n-1)!\,a^n}{(ax+b)^n}\) |
| \(e^{ax}\) | \(a^n e^{ax}\) |
| \(a^{mx}\) | \(m^n(\log a)^n\,a^{mx}\) |
| \(\sin(ax+b)\) | \(a^n\sin\left(ax+b+\dfrac{n\pi}{2}\right)\) |
| \(\cos(ax+b)\) | \(a^n\cos\left(ax+b+\dfrac{n\pi}{2}\right)\) |
| \(e^{ax}\sin(bx+c)\) | \(r^n e^{ax}\sin(bx+c+n\phi)\) |
| \(e^{ax}\cos(bx+c)\) | \(r^n e^{ax}\cos(bx+c+n\phi)\) |
In the last two rows \(r = \sqrt{a^2+b^2}\) and \(\phi = \tan^{-1}\dfrac{b}{a}\).
Where they come from
Powers. Each derivative brings the current power down and multiplies by \(a\): \(y_1 = ma(ax+b)^{m-1}\), \(y_2 = m(m-1)a^2(ax+b)^{m-2}\). After \(n\) steps you have \(n\) falling factors. If \(m\) is a positive integer, \(y_m = m!\,a^m\) and every derivative after that is 0.
Reciprocal. Put \(m = -1\). The factors are \((-1)(-2)\cdots(-n) = (-1)^n n!\), and the power becomes \(-1-n\).
Logarithm. One derivative gives \(y_1 = \dfrac{a}{ax+b}\). The other \(n-1\) derivatives come from the reciprocal formula with \(n-1\) in place of \(n\). That is why the log formula has \((n-1)!\).
Sine and cosine. \(\dfrac{d}{dx}\sin(ax+b) = a\cos(ax+b)\), and that equals \(a\sin\left(ax+b+\dfrac{\pi}{2}\right)\). So each derivative multiplies by \(a\) and adds \(\dfrac{\pi}{2}\) to the angle.
Exponential times sine. For \(y = e^{ax}\sin(bx+c)\), the product rule gives
\[y_1 = e^{ax}\big[a\sin(bx+c) + b\cos(bx+c)\big]\]
Put \(a = r\cos\phi\) and \(b = r\sin\phi\). The bracket is \(r\sin(bx+c+\phi)\), so \(y_1 = r\,e^{ax}\sin(bx+c+\phi)\). That has the same shape as \(y\), with an extra factor \(r\) and \(\phi\) added to the angle. Repeat \(n\) times. (The formula \(\phi = \tan^{-1}\frac{b}{a}\) assumes \(a > 0\). In general pick \(\phi\) with \(\cos\phi = \frac{a}{r}\), \(\sin\phi = \frac{b}{r}\).)
Breaking a function into standard pieces
Most exam functions are not in the table. The trick is to rewrite them as a sum of table entries, because the \(n\)th derivative of a sum is the sum of the \(n\)th derivatives.
- Rational function? Split it into partial fractions of the form \(\dfrac{A}{x - p}\). Each piece uses the reciprocal formula.
- Power or product of sines and cosines? Use an identity to turn it into single sines and cosines.
- Apply the table to each piece and add.
| Trig form | Rewrite as |
|---|---|
| \(\sin^2 x\) | \(\tfrac{1}{2}(1 - \cos 2x)\) |
| \(\cos^2 x\) | \(\tfrac{1}{2}(1 + \cos 2x)\) |
| \(\sin^3 x\) | \(\tfrac{1}{4}(3\sin x - \sin 3x)\) |
| \(\cos^3 x\) | \(\tfrac{1}{4}(3\cos x + \cos 3x)\) |
| \(2\sin A\cos B\) | \(\sin(A+B) + \sin(A-B)\) |
| \(2\cos A\cos B\) | \(\cos(A+B) + \cos(A-B)\) |
| \(2\sin A\sin B\) | \(\cos(A-B) - \cos(A+B)\) |
Products like \(x^2e^x\) can't be split this way. For those you need Leibniz's theorem.
Solved examples
Example 1: A reciprocal
EasyFind \(y_n\) if \(y = \dfrac{1}{2x+3}\).
- This is \(\dfrac{1}{ax+b}\) with \(a = 2\), \(b = 3\).
- Check the pattern with \(n = 1\): \(y_1 = -\dfrac{2}{(2x+3)^2}\), and the formula gives \(\dfrac{(-1)^1\,1!\,2}{(2x+3)^2}\). ✓
Answer\(y_n = \dfrac{(-1)^n\,n!\,2^n}{(2x+3)^{n+1}}\)
Example 2: A logarithm
EasyFind \(y_n\) if \(y = \log(3x+2)\).
- Here \(a = 3\), \(b = 2\). Use the log formula, which has \((n-1)!\), not \(n!\).
- Check with \(n = 1\): \(y_1 = \dfrac{3}{3x+2}\). The formula gives \(\dfrac{(-1)^0\,0!\,3}{3x+2}\). ✓
Answer\(y_n = \dfrac{(-1)^{n-1}(n-1)!\,3^n}{(3x+2)^n}\)
Example 3: Exponential times sine
MediumFind \(y_n\) if \(y = e^{3x}\sin 4x\).
- Here \(a = 3\), \(b = 4\), \(c = 0\). So \(r = \sqrt{9+16} = 5\) and \(\phi = \tan^{-1}\dfrac{4}{3}\).
- So \(y_n = 5^n e^{3x}\sin(4x + n\phi)\).
- Check \(n = 2\) directly: \(y_2 = e^{3x}(24\cos 4x - 7\sin 4x)\). Since \(\sin 2\phi = \dfrac{24}{25}\) and \(\cos 2\phi = -\dfrac{7}{25}\), the formula \(25e^{3x}\sin(4x + 2\phi)\) gives the same thing. ✓
Answer\(y_n = 5^n e^{3x}\sin\left(4x + n\tan^{-1}\dfrac{4}{3}\right)\)
Example 4: A square of sine
MediumFind \(y_n\) if \(y = \sin^2 x\).
- Rewrite: \(y = \tfrac{1}{2} - \tfrac{1}{2}\cos 2x\).
- The constant disappears after the first derivative. For the cosine, \(a = 2\): \(D^n\cos 2x = 2^n\cos\left(2x + \dfrac{n\pi}{2}\right)\).
- So \(y_n = -\tfrac{1}{2}\cdot 2^n\cos\left(2x + \dfrac{n\pi}{2}\right)\). Check \(n = 1\): \(-\cos\left(2x + \dfrac{\pi}{2}\right) = \sin 2x\), which is \(2\sin x\cos x\). ✓
Answer\(y_n = -2^{n-1}\cos\left(2x + \dfrac{n\pi}{2}\right)\)
Example 5: A product of cosines
MediumFind \(y_n\) if \(y = \cos x\cos 2x\).
- \(2\cos 2x\cos x = \cos 3x + \cos x\), so \(y = \tfrac{1}{2}(\cos 3x + \cos x)\).
- Apply the cosine formula with \(a = 3\) and with \(a = 1\).
Answer\[y_n = \tfrac{1}{2}\left[3^n\cos\left(3x + \frac{n\pi}{2}\right) + \cos\left(x + \frac{n\pi}{2}\right)\right]\]
Example 6: A cube of sine
Exam levelFind the \(n\)th derivative of \(\sin^3 x\).
- From \(\sin 3x = 3\sin x - 4\sin^3 x\): \(\sin^3 x = \tfrac{1}{4}(3\sin x - \sin 3x)\).
- Differentiate each sine \(n\) times: \(D^n\sin x = \sin\left(x + \dfrac{n\pi}{2}\right)\) and \(D^n\sin 3x = 3^n\sin\left(3x + \dfrac{n\pi}{2}\right)\).
Answer\[y_n = \tfrac{1}{4}\left[3\sin\left(x + \frac{n\pi}{2}\right) - 3^n\sin\left(3x + \frac{n\pi}{2}\right)\right]\]
Example 7: Partial fractions
Exam levelFind \(y_n\) if \(y = \dfrac{1}{x^2 - a^2}\).
- Factor: \(x^2 - a^2 = (x-a)(x+a)\). Partial fractions give \(y = \dfrac{1}{2a}\left[\dfrac{1}{x-a} - \dfrac{1}{x+a}\right]\).
- Check: \(\dfrac{1}{x-a} - \dfrac{1}{x+a} = \dfrac{2a}{x^2-a^2}\). ✓
- Each piece is \(\dfrac{1}{x+b}\) with coefficient of \(x\) equal to 1, so \(D^n\dfrac{1}{x-a} = \dfrac{(-1)^n n!}{(x-a)^{n+1}}\).
Answer\[y_n = \frac{(-1)^n\,n!}{2a}\left[\frac{1}{(x-a)^{n+1}} - \frac{1}{(x+a)^{n+1}}\right]\]
Example 8: Partial fractions with a numerator
Exam levelFind \(y_n\) if \(y = \dfrac{x}{(x-1)(x-2)}\).
- Write \(\dfrac{x}{(x-1)(x-2)} = \dfrac{A}{x-1} + \dfrac{B}{x-2}\). Cover-up: \(A = \dfrac{1}{1-2} = -1\), \(B = \dfrac{2}{2-1} = 2\).
- So \(y = \dfrac{2}{x-2} - \dfrac{1}{x-1}\).
- Differentiate each piece \(n\) times with the reciprocal formula.
Answer\[y_n = (-1)^n\,n!\left[\frac{2}{(x-2)^{n+1}} - \frac{1}{(x-1)^{n+1}}\right]\]
I tell students to test every \(y_n\) answer with \(n = 1\) before moving on. It takes ten seconds, and it catches almost every sign slip and every missing \(a^n\). If your formula doesn't give \(y_1\), it is wrong for every \(n\).
Common mistakes
1. Dropping the factor \(a^n\)
\(D^n\sin 3x = 3^n\sin\left(3x + \dfrac{n\pi}{2}\right)\), not \(\sin\left(3x + \dfrac{n\pi}{2}\right)\) and not \(3\sin\left(3x + \dfrac{n\pi}{2}\right)\). The chain rule brings out a 3 every single time.
2. Mixing up the log and reciprocal formulas
For \(\log(ax+b)\) it is \((-1)^{n-1}(n-1)!\) on top and \((ax+b)^n\) below. The version with \((-1)^n n!\) and power \(n+1\) belongs to \(\dfrac{1}{ax+b}\). Test with \(n = 1\) if you forget.
3. Taking the nth derivative of a product factor by factor
\(D^n(\sin x\cos 2x)\) is not \(D^n\sin x\cdot D^n\cos 2x\). Turn the product into a sum first: \(\sin x\cos 2x = \tfrac{1}{2}(\sin 3x - \sin x)\).
Practice questions
Try each one on paper before you open the answer.
Q1Find \(y_n\) if \(y = 2^{3x}\).
This is \(a^{mx}\) with \(a = 2\), \(m = 3\): \(y_n = 3^n(\log 2)^n\,2^{3x} = (3\log 2)^n\,2^{3x}\).
Q2Find \(y_n\) if \(y = \cos(2x+5)\).
\(y_n = 2^n\cos\left(2x + 5 + \dfrac{n\pi}{2}\right)\).
Q3Find \(y_n\) if \(y = \dfrac{1}{(2x+1)^2}\).
Use \((ax+b)^m\) with \(m = -2\). The factors are \((-2)(-3)\cdots(-n-1) = (-1)^n(n+1)!\).
So \(y_n = \dfrac{(-1)^n(n+1)!\,2^n}{(2x+1)^{n+2}}\).
Q4Find \(y_n\) if \(y = e^x\cos x\).
\(a = b = 1\), so \(r = \sqrt 2\) and \(\phi = \tan^{-1}1 = \dfrac{\pi}{4}\).
\(y_n = 2^{n/2}e^x\cos\left(x + \dfrac{n\pi}{4}\right)\).
Q5Find \(y_n\) if \(y = \sin x\sin 2x\).
\(2\sin 2x\sin x = \cos x - \cos 3x\), so \(y = \tfrac{1}{2}(\cos x - \cos 3x)\).
\[y_n = \tfrac{1}{2}\left[\cos\left(x + \frac{n\pi}{2}\right) - 3^n\cos\left(3x + \frac{n\pi}{2}\right)\right]\]
Q6Find \(y_n\) if \(y = \dfrac{1}{x^2 + 3x + 2}\).
\(x^2 + 3x + 2 = (x+1)(x+2)\), and \(y = \dfrac{1}{x+1} - \dfrac{1}{x+2}\).
\[y_n = (-1)^n\,n!\left[\frac{1}{(x+1)^{n+1}} - \frac{1}{(x+2)^{n+1}}\right]\]
Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.
Frequently asked questions
What is successive differentiation?
Differentiating a function again and again: \(y_1\), \(y_2\), \(y_3\), and so on. The usual aim is a general formula for the \(n\)th derivative \(y_n\).
What is the nth derivative of sin x?
\(\sin\left(x + \dfrac{n\pi}{2}\right)\). Each derivative shifts the angle by \(\dfrac{\pi}{2}\). For \(\cos x\) it is \(\cos\left(x + \dfrac{n\pi}{2}\right)\).
What is the nth derivative of log x?
\(\dfrac{(-1)^{n-1}(n-1)!}{x^n}\). For \(\dfrac{1}{x}\) it is \(\dfrac{(-1)^n n!}{x^{n+1}}\).
How do you find the nth derivative of a product?
If a trig identity turns the product into a sum, use that. If not, as with \(x^2e^x\) or \(x\log x\), use Leibniz's theorem.