The Second Derivative

If y=f(x)y = f(x) is differentiable and its derivative f′(x)f'(x) is itself differentiable, differentiating again gives the second order derivative:

d2ydx2=ddx(dydx)\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right)

also written y′′y'', y2y_2, or f′′(x)f''(x). Nothing new is needed to compute it — every tool of the chapter (product rule, chain rule, implicit, parametric) simply gets applied a second time.

Quick specimens: y=x2+3x+2y = x^2 + 3x + 2 gives y′=2x+3y' = 2x + 3 and y′′=2y'' = 2; y=x20y = x^{20} gives y′′=20⋅19 x18=380x18y'' = 20 \cdot 19\,x^{18} = 380x^{18}; y=log⁡xy = \log x gives y′=1xy' = \frac{1}{x} and y′′=−1x2y'' = -\frac{1}{x^2}.

The exam staple: proving differential relations

Board papers rarely ask for y′′y'' alone — they ask you to prove that yy satisfies a relation involving yy, y′y' and y′′y''. The recipe: compute y′y' and y′′y'', substitute into the left side, and watch everything cancel.

  1. y=Asin⁡x+Bcos⁡xy = A\sin x + B\cos x: here y′′=−Asin⁡x−Bcos⁡x=−yy'' = -A\sin x - B\cos x = -y, so y′′+y=0y'' + y = 0
  2. y=3e2x+2e3xy = 3e^{2x} + 2e^{3x}: each exponential ekxe^{kx} contributes k2k^2 on double differentiation, and the combination satisfies y′′−5y′+6y=0y'' - 5y' + 6y = 0 (the numbers 22 and 33 are exactly the roots of k2−5k+6=0k^2 - 5k + 6 = 0 — a useful pattern-check).
  3. y=sin⁡−1xy = \sin^{-1} x: from y′=11−x2y' = \frac{1}{\sqrt{1 - x^2}}, one more differentiation and a clean-up gives (1−x2)y′′−xy′=0(1 - x^2)y'' - xy' = 0

A powerful shortcut for relation proofs: after the first differentiation, clear the radicals or denominators, then differentiate the cleaned equation implicitly. For y=sin⁡−1xy = \sin^{-1} x: write 1−x2 y′=1\sqrt{1 - x^2}\,y' = 1, differentiate both sides, and the target relation appears at once — no messy second quotient rule.

Parametric second derivatives — the trap

For x=f(t)x = f(t), y=g(t)y = g(t), the second derivative is not d2y/dt2d2x/dt2\frac{d^2y/dt^2}{d^2x/dt^2}. Differentiate dydx\frac{dy}{dx} (a function of tt) with respect to xx via the chain rule:

d2ydx2=ddt(dydx)⋅1dx/dt\frac{d^2y}{dx^2} = \frac{d}{dt}\left(\frac{dy}{dx}\right)\cdot\frac{1}{dx/dt}

— differentiate the slope w.r.t. the parameter, then divide by dxdt\frac{dx}{dt} once more.

Solved Examples

Example 1 — A straight double differentiation

Find d2ydx2\dfrac{d^2y}{dx^2} if y=x3+tan⁡xy = x^3 + \tan x.

Step 1 — first derivative: y′=3x2+sec⁡2xy' = 3x^2 + \sec^2 x.

Step 2 — second derivative (chain rule on sec⁡2x\sec^2 x): y′′=6x+2sec⁡x⋅sec⁡xtan⁡xy'' = 6x + 2\sec x \cdot \sec x\tan x.

Answer: y′′=6x+2sec⁡2xtan⁡xy'' = 6x + 2\sec^2 x\tan x.

Example 2 — The sine-cosine relation

If y=Asin⁡x+Bcos⁡xy = A\sin x + B\cos x, prove that d2ydx2+y=0\dfrac{d^2y}{dx^2} + y = 0.

Step 1 — differentiate twice: y′=Acos⁡x−Bsin⁡xy' = A\cos x - B\sin x, then y′′=−Asin⁡x−Bcos⁡xy'' = -A\sin x - B\cos x.

Step 2 — recognise: y′′=−yy'' = -y exactly.

Answer: y′′+y=0y'' + y = 0. ∎ Both constants vanish from the relation — that is the point: every combination Asin⁡x+Bcos⁡xA\sin x + B\cos x satisfies the same equation.

Example 3 — The exponential relation

If y=3e2x+2e3xy = 3e^{2x} + 2e^{3x}, prove that d2ydx2−5dydx+6y=0\dfrac{d^2y}{dx^2} - 5\dfrac{dy}{dx} + 6y = 0.

Step 1 — differentiate twice: y′=6e2x+6e3xy' = 6e^{2x} + 6e^{3x} and y′′=12e2x+18e3xy'' = 12e^{2x} + 18e^{3x}.

Step 2 — substitute: y′′−5y′+6y=(12−30+18)e2x+(18−30+12)e3x=0y'' - 5y' + 6y = (12 - 30 + 18)e^{2x} + (18 - 30 + 12)e^{3x} = 0

Answer: proved. ∎ Pattern: ekxe^{kx} passes through y′′−5y′+6yy'' - 5y' + 6y as the factor k2−5k+6=(k−2)(k−3)k^2 - 5k + 6 = (k-2)(k-3), which vanishes precisely at k=2,3k = 2, 3 — the exponents in yy.

Example 4 — The inverse-sine relation via the clean-up trick

If y=sin⁡−1xy = \sin^{-1} x, show that (1−x2)d2ydx2−xdydx=0(1 - x^2)\dfrac{d^2y}{dx^2} - x\dfrac{dy}{dx} = 0.

Step 1 — first derivative: y′=11−x2y' = \dfrac{1}{\sqrt{1 - x^2}}.

Step 2 — clear the radical: 1−x2  y′=1\sqrt{1 - x^2}\; y' = 1.

Step 3 — differentiate the cleaned equation (product rule): 1−x2  y′′+y′⋅−x1−x2=0\sqrt{1 - x^2}\;y'' + y'\cdot\frac{-x}{\sqrt{1 - x^2}} = 0

Step 4 — multiply through by 1−x2\sqrt{1 - x^2}: (1−x2)y′′−xy′=0(1 - x^2)y'' - xy' = 0. ∎

Answer: proved — the clean-up trick avoided differentiating a quotient with a radical, and delivered the relation in one line.

Example 5 — Second derivative of a product

Find y′′y'' if y=xcos⁡xy = x\cos x.

Step 1 — product rule once: y′=cos⁡x−xsin⁡xy' = \cos x - x\sin x.

Step 2 — product rule again: y′′=−sin⁡x−(sin⁡x+xcos⁡x)=−xcos⁡x−2sin⁡xy'' = -\sin x - (\sin x + x\cos x) = -x\cos x - 2\sin x.

Answer: y′′=−(xcos⁡x+2sin⁡x)y'' = -(x\cos x + 2\sin x) — note the pattern: the original function reappears with a minus, plus a cross term.

Example 6 — Parametric second derivative done right

If x=a(cos⁡t+tsin⁡t)x = a(\cos t + t\sin t) and y=a(sin⁡t−tcos⁡t)y = a(\sin t - t\cos t), find d2ydx2\dfrac{d^2y}{dx^2}.

Step 1 — first derivatives w.r.t. tt: dxdt=a tcos⁡t\frac{dx}{dt} = a\,t\cos t and dydt=a tsin⁡t\frac{dy}{dt} = a\,t\sin t (the ±sin⁡t\pm\sin t, ∓cos⁡t\mp\cos t pairs cancel).

Step 2 — slope: dydx=tan⁡t\frac{dy}{dx} = \tan t.

Step 3 — differentiate the slope w.r.t. tt, divide by dxdt\frac{dx}{dt}: d2ydx2=sec⁡2ta tcos⁡t=sec⁡3ta t\frac{d^2y}{dx^2} = \frac{\sec^2 t}{a\,t\cos t} = \frac{\sec^3 t}{a\,t}

Answer: sec⁡3tat\dfrac{\sec^3 t}{at} — computed the honest way; dividing the second tt-derivatives directly would give a wrong (and dimensionally senseless) answer.