Parametric and second derivatives
In some problems x x x and y y y are both given as functions of a third variable t t t , typically time or angle , rather than y y y being given as a function of x x x . Examples: a particle moving along a curve, or a circle parametrised as ( cos θ , sin θ ) (\cos\theta, \sin\theta) ( cos θ , sin θ ) . The parametric derivative formula expresses d y d x \dfrac{dy}{dx} d x d y without first eliminating the parameter.
A second derivative d 2 y d x 2 \dfrac{d^2 y}{dx^2} d x 2 d 2 y is the derivative of d y d x \dfrac{dy}{dx} d x d y , taken with respect to x x x again. Higher orders follow the same pattern.
Parametric derivative
If x = f ( t ) x = f(t) x = f ( t ) and y = g ( t ) y = g(t) y = g ( t ) are differentiable functions of t t t , with f ′ ( t ) ≠ 0 f'(t) \neq 0 f ′ ( t ) = 0 , then
d y d x = d y / d t d x / d t = g ′ ( t ) f ′ ( t ) . \frac{dy}{dx} = \frac{dy/dt}{dx/dt} = \frac{g'(t)}{f'(t)}. d x d y = d x / d t d y / d t = f ′ ( t ) g ′ ( t ) .
This follows from the chain rule: d y d t = d y d x ⋅ d x d t \dfrac{dy}{dt} = \dfrac{dy}{dx}\cdot \dfrac{dx}{dt} d t d y = d x d y ⋅ d t d x .
Worked example
For the cycloid x = a ( t − sin t ) , y = a ( 1 − cos t ) x = a(t - \sin t), y = a(1 - \cos t) x = a ( t − sin t ) , y = a ( 1 − cos t ) :
d x d t = a ( 1 − cos t ) \dfrac{dx}{dt} = a(1 - \cos t) d t d x = a ( 1 − cos t ) , d y d t = a sin t \dfrac{dy}{dt} = a \sin t d t d y = a sin t .
d y d x = a sin t a ( 1 − cos t ) = sin t 1 − cos t = 2 sin ( t / 2 ) cos ( t / 2 ) 2 sin 2 ( t / 2 ) = cot ( t / 2 ) \dfrac{dy}{dx} = \dfrac{a \sin t}{a(1 - \cos t)} = \dfrac{\sin t}{1 - \cos t} = \dfrac{2 \sin(t/2)\cos(t/2)}{2 \sin^2(t/2)} = \cot(t/2) d x d y = a ( 1 − cos t ) a sin t = 1 − cos t sin t = 2 sin 2 ( t /2 ) 2 sin ( t /2 ) cos ( t /2 ) = cot ( t /2 ) .
d 2 y d x 2 = d d x ( d y d x ) = d d t ( d y d x ) ⋅ d t d x = ( d y / d x ) t ′ d x / d t \dfrac{d^2 y}{dx^2} = \dfrac{d}{dx}\left(\dfrac{dy}{dx}\right) = \dfrac{d}{dt}\left(\dfrac{dy}{dx}\right) \cdot \dfrac{dt}{dx} = \dfrac{(dy/dx)'_t}{dx/dt} d x 2 d 2 y = d x d ( d x d y ) = d t d ( d x d y ) ⋅ d x d t = d x / d t ( d y / d x ) t ′ .
In words: differentiate d y d x \dfrac{dy}{dx} d x d y as a function of t t t , then divide by d x d t \dfrac{dx}{dt} d t d x .
Higher-order derivatives
f ′ ′ ( x ) f''(x) f ′′ ( x ) , f ′ ′ ′ ( x ) f'''(x) f ′′′ ( x ) , f ( n ) ( x ) f^{(n)}(x) f ( n ) ( x ) , repeated differentiation. Standard formulas:
d n d x n ( x k ) = k ( k − 1 ) ⋯ ( k − n + 1 ) x k − n \dfrac{d^n}{dx^n}(x^k) = k(k-1)\cdots(k - n + 1) x^{k - n} d x n d n ( x k ) = k ( k − 1 ) ⋯ ( k − n + 1 ) x k − n for k ≥ n k \ge n k ≥ n .
d n d x n ( e a x ) = a n e a x \dfrac{d^n}{dx^n}(e^{ax}) = a^n e^{ax} d x n d n ( e a x ) = a n e a x .
d n d x n ( sin x ) = sin ( x + n π / 2 ) \dfrac{d^n}{dx^n}(\sin x) = \sin(x + n\pi/2) d x n d n ( sin x ) = sin ( x + nπ /2 ) .
d n d x n ( cos x ) = cos ( x + n π / 2 ) \dfrac{d^n}{dx^n}(\cos x) = \cos(x + n\pi/2) d x n d n ( cos x ) = cos ( x + nπ /2 ) .
d n d x n ( ln x ) = ( − 1 ) n − 1 ( n − 1 ) ! x n \dfrac{d^n}{dx^n}(\ln x) = \dfrac{(-1)^{n-1}(n-1)!}{x^n} d x n d n ( ln x ) = x n ( − 1 ) n − 1 ( n − 1 )! .
Worked examples
Example 1. If x = a cos θ , y = a sin θ x = a\cos\theta, y = a\sin\theta x = a cos θ , y = a sin θ , find d y d x \dfrac{dy}{dx} d x d y and d 2 y d x 2 \dfrac{d^2 y}{dx^2} d x 2 d 2 y .
d x d θ = − a sin θ \dfrac{dx}{d\theta} = -a\sin\theta d θ d x = − a sin θ , d y d θ = a cos θ \dfrac{dy}{d\theta} = a\cos\theta d θ d y = a cos θ . So d y d x = − cot θ \dfrac{dy}{dx} = -\cot\theta d x d y = − cot θ .
d d θ ( − cot θ ) = csc 2 θ \dfrac{d}{d\theta}(-\cot\theta) = \csc^2\theta d θ d ( − cot θ ) = csc 2 θ . Divide by d x d θ = − a sin θ \dfrac{dx}{d\theta} = -a\sin\theta d θ d x = − a sin θ : d 2 y d x 2 = − csc 2 θ a sin θ = − 1 a sin 3 θ \dfrac{d^2 y}{dx^2} = -\dfrac{\csc^2\theta}{a\sin\theta} = -\dfrac{1}{a \sin^3\theta} d x 2 d 2 y = − a sin θ csc 2 θ = − a sin 3 θ 1 .
Example 2. If x = t 2 , y = t 3 x = t^2, y = t^3 x = t 2 , y = t 3 , find d y d x \dfrac{dy}{dx} d x d y and d 2 y d x 2 \dfrac{d^2 y}{dx^2} d x 2 d 2 y .
d x d t = 2 t \dfrac{dx}{dt} = 2t d t d x = 2 t , d y d t = 3 t 2 \dfrac{dy}{dt} = 3t^2 d t d y = 3 t 2 . So d y d x = 3 t 2 \dfrac{dy}{dx} = \dfrac{3t}{2} d x d y = 2 3 t .
d d t ( 3 t / 2 ) = 3 / 2 \dfrac{d}{dt}(3t/2) = 3/2 d t d ( 3 t /2 ) = 3/2 . Divide by 2 t 2t 2 t : d 2 y d x 2 = 3 4 t \dfrac{d^2 y}{dx^2} = \dfrac{3}{4t} d x 2 d 2 y = 4 t 3 .
Example 3. If y = a sin x + b cos x y = a\sin x + b\cos x y = a sin x + b cos x , show y ′ ′ + y = 0 y'' + y = 0 y ′′ + y = 0 .
y ′ = a cos x − b sin x y' = a\cos x - b\sin x y ′ = a cos x − b sin x . y ′ ′ = − a sin x − b cos x = − y y'' = -a\sin x - b\cos x = -y y ′′ = − a sin x − b cos x = − y . So y ′ ′ + y = 0 y'' + y = 0 y ′′ + y = 0 .
Example 4. Find the n n n -th derivative of f ( x ) = sin x f(x) = \sin x f ( x ) = sin x .
f ( n ) ( x ) = sin ( x + n π / 2 ) f^{(n)}(x) = \sin(x + n\pi/2) f ( n ) ( x ) = sin ( x + nπ /2 ) .
Example 5. If y = e a sin − 1 x y = e^{a \sin^{-1} x} y = e a s i n − 1 x , show ( 1 − x 2 ) y ′ ′ − x y ′ − a 2 y = 0 (1 - x^2) y'' - x y' - a^2 y = 0 ( 1 − x 2 ) y ′′ − x y ′ − a 2 y = 0 .
y ′ = e a sin − 1 x ⋅ a 1 − x 2 = a y 1 − x 2 y' = e^{a \sin^{-1} x} \cdot \dfrac{a}{\sqrt{1 - x^2}} = \dfrac{a y}{\sqrt{1 - x^2}} y ′ = e a s i n − 1 x ⋅ 1 − x 2 a = 1 − x 2 a y . So y ′ 1 − x 2 = a y y' \sqrt{1 - x^2} = ay y ′ 1 − x 2 = a y , square: ( 1 − x 2 ) ( y ′ ) 2 = a 2 y 2 (1 - x^2)(y')^2 = a^2 y^2 ( 1 − x 2 ) ( y ′ ) 2 = a 2 y 2 .
Differentiate: − 2 x ( y ′ ) 2 + 2 ( 1 − x 2 ) y ′ y ′ ′ = 2 a 2 y y ′ -2 x (y')^2 + 2(1 - x^2) y' y'' = 2 a^2 y y' − 2 x ( y ′ ) 2 + 2 ( 1 − x 2 ) y ′ y ′′ = 2 a 2 y y ′ . Divide by 2 y ′ 2 y' 2 y ′ (assuming nonzero): − x y ′ + ( 1 − x 2 ) y ′ ′ = a 2 y -x y' + (1 - x^2) y'' = a^2 y − x y ′ + ( 1 − x 2 ) y ′′ = a 2 y , i.e., ( 1 − x 2 ) y ′ ′ − x y ′ − a 2 y = 0 (1 - x^2) y'' - x y' - a^2 y = 0 ( 1 − x 2 ) y ′′ − x y ′ − a 2 y = 0 . ■ \blacksquare ■
Example 6. Find d 2 y d x 2 \dfrac{d^2 y}{dx^2} d x 2 d 2 y for y = x log x y = x \log x y = x log x .
y ′ = log x + 1 y' = \log x + 1 y ′ = log x + 1 . y ′ ′ = 1 / x y'' = 1/x y ′′ = 1/ x .
Try it yourself
If x = a t 2 , y = 2 a t x = at^2, y = 2at x = a t 2 , y = 2 a t , find d y d x \dfrac{dy}{dx} d x d y .
If x = 3 cos t , y = 4 sin t x = 3 \cos t, y = 4 \sin t x = 3 cos t , y = 4 sin t , find d y d x \dfrac{dy}{dx} d x d y and d 2 y d x 2 \dfrac{d^2 y}{dx^2} d x 2 d 2 y .
Find the n n n -th derivative of cos x \cos x cos x .
Find the n n n -th derivative of e a x e^{ax} e a x .
If y = tan − 1 x y = \tan^{-1} x y = tan − 1 x , find y ′ ′ y'' y ′′ .
If y = a cos ( log x ) + b sin ( log x ) y = a\cos(\log x) + b\sin(\log x) y = a cos ( log x ) + b sin ( log x ) , show x 2 y ′ ′ + x y ′ + y = 0 x^2 y'' + x y' + y = 0 x 2 y ′′ + x y ′ + y = 0 .
If y = sin − 1 x y = \sin^{-1} x y = sin − 1 x , find y ′ ′ y'' y ′′ and show ( 1 − x 2 ) y ′ ′ − x y ′ = 0 (1 - x^2) y'' - x y' = 0 ( 1 − x 2 ) y ′′ − x y ′ = 0 .
Find d 2 y d x 2 \dfrac{d^2 y}{dx^2} d x 2 d 2 y for y = ln ( sin x ) y = \ln(\sin x) y = ln ( sin x ) .
If x = a ( θ − sin θ ) , y = a ( 1 − cos θ ) x = a(\theta - \sin\theta), y = a(1 - \cos\theta) x = a ( θ − sin θ ) , y = a ( 1 − cos θ ) (the cycloid), compute d 2 y d x 2 \dfrac{d^2 y}{dx^2} d x 2 d 2 y at θ = π / 2 \theta = \pi/2 θ = π /2 .
If y = e x cos x y = e^x \cos x y = e x cos x , show y ′ ′ − 2 y ′ + 2 y = 0 y'' - 2 y' + 2 y = 0 y ′′ − 2 y ′ + 2 y = 0 .
Find the 5 5 5 -th derivative of ln x \ln x ln x .
If x = sec θ , y = tan θ x = \sec\theta, y = \tan\theta x = sec θ , y = tan θ , find d y d x \dfrac{dy}{dx} d x d y .
If y = x x y = x^x y = x x , find y ′ ′ y'' y ′′ at x = 1 x = 1 x = 1 .
Find d 2 y d x 2 \dfrac{d^2 y}{dx^2} d x 2 d 2 y for x = a cos 3 t , y = a sin 3 t x = a \cos^3 t, y = a \sin^3 t x = a cos 3 t , y = a sin 3 t (the astroid).
Pitfalls / Tricks
For parametric d 2 y d x 2 \dfrac{d^2 y}{dx^2} d x 2 d 2 y , don't divide the second derivatives directly. Differentiate d y d x \dfrac{dy}{dx} d x d y with respect to t t t first, then divide by d x d t \dfrac{dx}{dt} d t d x .
The n n n -th derivative of sin and cos shifts by n π / 2 n\pi/2 nπ /2 , a clean formula.
For functions involving sin − 1 \sin^{-1} sin − 1 or cos − 1 \cos^{-1} cos − 1 , deriving a differential equation that the function satisfies is a common JEE technique.
Next, the existence theorems for derivatives.