Notation and meaning
Differentiate \(y\) once and you get \(\dfrac{dy}{dx}\). Differentiate that again and you get the second derivative. Keep going for the third, fourth and so on.
| Order | Leibniz notation | Other ways to write it |
|---|---|---|
| First | \(\dfrac{dy}{dx}\) | \(y'\), \(y_1\), \(f'(x)\) |
| Second | \(\dfrac{d^2y}{dx^2}\) | \(y''\), \(y_2\), \(f''(x)\) |
| Third | \(\dfrac{d^3y}{dx^3}\) | \(y'''\), \(y_3\), \(f'''(x)\) |
| \(n\)th | \(\dfrac{d^ny}{dx^n}\) | \(y_n\), \(f^{(n)}(x)\) |
\(\dfrac{d^2y}{dx^2}\) is read "d two y by d x squared". It is not \(\left(\dfrac{dy}{dx}\right)^2\).
What the second derivative tells you
- How the slope is changing. If \(\dfrac{d^2y}{dx^2} > 0\), the slope is increasing and the curve bends upwards, like a cup. If it is negative, the curve bends downwards.
- Acceleration. If \(s\) is distance and \(t\) is time, \(\dfrac{ds}{dt}\) is velocity and \(\dfrac{d^2s}{dt^2}\) is acceleration.
- Maxima and minima. The second derivative test uses its sign to decide whether a turning point is a maximum or a minimum.
"Show that" questions
Board papers often give you \(y\) and ask you to prove an equation linking \(y\), \(y_1\) and \(y_2\). Two habits make these much easier:
- Clear the fractions and roots before differentiating a second time. If \(y_1\) has \(\sqrt{1 - x^2}\) underneath, multiply it across first. Then differentiate.
- Square if a root won't go away. Squaring both sides, then differentiating, avoids differentiating a square root.
Examples 5 and 6 below use both habits.
Solved examples
Example 1: A polynomial
EasyFind \(\dfrac{d^2y}{dx^2}\) if \(y = x^4 - 3x^2 + 2\).
- \(\dfrac{dy}{dx} = 4x^3 - 6x\).
- Differentiate again: \(12x^2 - 6\).
Answer\(\dfrac{d^2y}{dx^2} = 12x^2 - 6\)
Example 2: Velocity and acceleration
EasyA particle moves so that \(s = t^3 - 6t^2 + 9t\) metres after \(t\) seconds. Find its acceleration at \(t = 1\).
- Velocity \(v = \dfrac{ds}{dt} = 3t^2 - 12t + 9\).
- Acceleration \(a = \dfrac{d^2s}{dt^2} = 6t - 12\). At \(t = 1\): \(6 - 12 = -6\).
Answer\(-6\ \text{m/s}^2\). The particle is slowing down.
Example 3: A differential equation
EasyIf \(y = A\cos 3x + B\sin 3x\), show that \(\dfrac{d^2y}{dx^2} + 9y = 0\).
- \(\dfrac{dy}{dx} = -3A\sin 3x + 3B\cos 3x\).
- \(\dfrac{d^2y}{dx^2} = -9A\cos 3x - 9B\sin 3x = -9y\).
Answer\(\dfrac{d^2y}{dx^2} + 9y = 0\) ✓
Example 4: Exponential times trig
MediumIf \(y = e^x(\sin x + \cos x)\), show that \(y_2 - 2y_1 + 2y = 0\).
- \(y_1 = e^x(\sin x + \cos x) + e^x(\cos x - \sin x) = 2e^x\cos x\).
- \(y_2 = 2e^x\cos x - 2e^x\sin x = 2e^x(\cos x - \sin x)\).
- \(y_2 - 2y_1 + 2y = e^x\big[2\cos x - 2\sin x - 4\cos x + 2\sin x + 2\cos x\big] = 0\).
Answer\(y_2 - 2y_1 + 2y = 0\) ✓
Example 5: Clear the root first
MediumIf \(y = \sin^{-1}x\), show that \((1 - x^2)y_2 - x\,y_1 = 0\).
- \(y_1 = \dfrac{1}{\sqrt{1 - x^2}}\), so \(\sqrt{1 - x^2}\;y_1 = 1\).
- Differentiate this product: \(\sqrt{1 - x^2}\;y_2 - \dfrac{x}{\sqrt{1 - x^2}}\,y_1 = 0\).
- Multiply through by \(\sqrt{1 - x^2}\).
Answer\((1 - x^2)y_2 - x\,y_1 = 0\) ✓
Example 6: Square, then differentiate
Exam levelIf \(y = e^{m\sin^{-1}x}\), show that \((1 - x^2)y_2 - x\,y_1 - m^2y = 0\).
- \(y_1 = e^{m\sin^{-1}x}\cdot\dfrac{m}{\sqrt{1 - x^2}} = \dfrac{my}{\sqrt{1 - x^2}}\).
- Square to remove the root: \((1 - x^2)y_1^2 = m^2y^2\).
- Differentiate: \(-2x\,y_1^2 + (1 - x^2)\,2y_1y_2 = 2m^2y\,y_1\).
- Divide by \(2y_1\).
Answer\((1 - x^2)y_2 - x\,y_1 - m^2y = 0\) ✓
Example 7: Parametric second derivative
Exam levelIf \(x = at^2\) and \(y = 2at\), find \(\dfrac{d^2y}{dx^2}\).
- \(\dfrac{dy}{dx} = \dfrac{dy/dt}{dx/dt} = \dfrac{2a}{2at} = \dfrac{1}{t}\).
- For the second derivative, differentiate \(\dfrac{1}{t}\) with respect to \(x\), not \(t\): \(\dfrac{d}{dx}\left(\dfrac{1}{t}\right) = \dfrac{d}{dt}\left(\dfrac{1}{t}\right)\cdot\dfrac{dt}{dx} = -\dfrac{1}{t^2}\cdot\dfrac{1}{2at}\).
Answer\(\dfrac{d^2y}{dx^2} = -\dfrac{1}{2at^3}\)
Example 8: Spotting a pattern
MediumFind the first three derivatives of \(y = \log x\), and guess the \(n\)th.
- \(y_1 = \dfrac{1}{x}\), \(y_2 = -\dfrac{1}{x^2}\), \(y_3 = \dfrac{2}{x^3}\).
- Each step multiplies by a new whole number and flips the sign: \(y_4 = -\dfrac{6}{x^4}\).
- The general pattern is \(y_n = \dfrac{(-1)^{n-1}(n - 1)!}{x^n}\). Finding \(n\)th derivatives like this is called successive differentiation.
Answer\(y_3 = \dfrac{2}{x^3}\), and \(y_n = \dfrac{(-1)^{n-1}(n - 1)!}{x^n}\)
In a "show that" question, look at the equation you have to reach before you start. If it has \((1 - x^2)y_2\) in it, that is a strong hint to multiply \(y_1\) by \(\sqrt{1 - x^2}\) or to square, before differentiating again.
Common mistakes
1. Confusing \(\dfrac{d^2y}{dx^2}\) with \(\left(\dfrac{dy}{dx}\right)^2\)
For \(y = x^3\): \(\dfrac{d^2y}{dx^2} = 6x\), but \(\left(\dfrac{dy}{dx}\right)^2 = 9x^4\). They are not the same thing.
2. The parametric trap
With \(x\) and \(y\) both in terms of \(t\), differentiating \(\dfrac{dy}{dx}\) with respect to \(t\) is only half the job. You must then multiply by \(\dfrac{dt}{dx}\), as in Example 7.
3. Differentiating a messy first derivative
If \(y_1\) has fractions or roots, simplify or rearrange first. Differentiating \(\dfrac{my}{\sqrt{1 - x^2}}\) directly works, but it is long and easy to get wrong.
Practice questions
Try each one on paper before you open the answer.
Q1Find \(y_2\) if \(y = x^3\log x\).
\(y_1 = 3x^2\log x + x^2\), so \(y_2 = 6x\log x + 3x + 2x = 6x\log x + 5x\).
Q2Find \(\dfrac{d^2y}{dx^2}\) if \(y = \tan x\).
\(\dfrac{dy}{dx} = \sec^2 x\), so \(\dfrac{d^2y}{dx^2} = 2\sec x\cdot\sec x\tan x = 2\sec^2 x\tan x\).
Q3Find \(y_2\) if \(y = e^x\cos x\).
\(y_1 = e^x(\cos x - \sin x)\), so \(y_2 = e^x(\cos x - \sin x - \sin x - \cos x) = -2e^x\sin x\).
Q4If \(y = a\cos(\log x) + b\sin(\log x)\), show that \(x^2y_2 + x\,y_1 + y = 0\).
\(x\,y_1 = -a\sin(\log x) + b\cos(\log x)\).
Differentiate: \(x\,y_2 + y_1 = \dfrac{-a\cos(\log x) - b\sin(\log x)}{x} = -\dfrac{y}{x}\). Multiply by \(x\). ✓
Q5If \(y = (\sin^{-1}x)^2\), show that \((1 - x^2)y_2 - x\,y_1 = 2\).
\(y_1 = \dfrac{2\sin^{-1}x}{\sqrt{1 - x^2}}\), so \((1 - x^2)y_1^2 = 4y\).
Differentiate: \(-2x\,y_1^2 + 2(1 - x^2)y_1y_2 = 4y_1\). Divide by \(2y_1\). ✓
Q6If \(x = a\cos t\) and \(y = a\sin t\), find \(\dfrac{d^2y}{dx^2}\).
\(\dfrac{dy}{dx} = \dfrac{a\cos t}{-a\sin t} = -\cot t\).
\(\dfrac{d^2y}{dx^2} = \operatorname{cosec}^2 t\cdot\dfrac{dt}{dx} = \operatorname{cosec}^2 t\cdot\left(-\dfrac{1}{a\sin t}\right) = -\dfrac{1}{a\sin^3 t}\).
Bring it to a free demo class and work through it with Vipul Sir. Book on WhatsApp.
Frequently asked questions
What does the second derivative tell you?
How fast the slope is changing. A positive second derivative means the curve bends upwards; a negative one means it bends downwards. In motion problems it is the acceleration.
What do y₁ and y₂ mean?
They are short for the first and second derivatives: \(y_1 = \dfrac{dy}{dx}\) and \(y_2 = \dfrac{d^2y}{dx^2}\). Many Indian textbooks and board papers use this notation.
How do I find d²y/dx² for parametric equations?
First find \(\dfrac{dy}{dx} = \dfrac{dy/dt}{dx/dt}\). Then differentiate that with respect to \(t\) and multiply by \(\dfrac{dt}{dx}\).
How many times can a function be differentiated?
As many times as the derivatives keep existing. Polynomials eventually give 0. Functions like \(e^x\), \(\sin x\) and \(\log x\) can be differentiated forever, which is why their \(n\)th derivatives follow patterns.