Concept of Second Order Derivative

Let y=f(x)y = f(x) be a differentiable function. Its first derivative with respect to xx is dydx=f(x).\frac{dy}{dx} = f'(x). If f(x)f'(x) is itself differentiable, then we can differentiate once again with respect to xx. This gives the second order derivative of yy with respect to xx.

Notation: The second order derivative is written in any of the following forms:

  • d2ydx2\frac{d^2y}{dx^2}
  • f(x)f''(x)
  • yy''
  • D2yD^2y

Mathematically, d2ydx2=ddx(dydx).\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right). It measures the rate of change of the first derivative.


Second Order Derivative of Parametric Functions

A common mistake is to think that for parametric equations x=f(t)x=f(t) and y=g(t)y=g(t), d2ydx2=g(t)f(t).\frac{d^2y}{dx^2} = \frac{g''(t)}{f''(t)}. This is not correct.

To find the second derivative correctly:

  1. First compute dydx=dy/dtdx/dt.\frac{dy}{dx} = \frac{dy/dt}{dx/dt}. Suppose this becomes some function of tt, say h(t)h(t).
  2. Then differentiate this with respect to xx using the chain rule: d2ydx2=ddx(dydx)=ddt[h(t)]dtdx.\frac{d^2y}{dx^2} = \frac{d}{dx}\left(\frac{dy}{dx}\right) = \frac{d}{dt}[h(t)] \cdot \frac{dt}{dx}. Since dtdx=1dx/dt,\frac{dt}{dx} = \frac{1}{dx/dt}, we get d2ydx2=ddt(dydx)dx/dt.\frac{d^2y}{dx^2} = \frac{\frac{d}{dt}\left(\frac{dy}{dx}\right)}{dx/dt}.

Always remember: after differentiating with respect to tt, divide by dxdt\frac{dx}{dt}.


3. Proving Differential Equations

Many problems in this topic ask you to prove an identity involving yy, dydx\frac{dy}{dx}, and d2ydx2\frac{d^2y}{dx^2}. Such relations are called differential equations.

Useful strategies

  • Direct substitution: Find yy' and yy'', then substitute them into the required expression and simplify.
  • Smart manipulation: Sometimes it is better to first rearrange the first derivative into a simpler form and then differentiate again. This often avoids complicated quotient-rule work.

In board and entrance exam problems, both methods are useful depending on the form of the function.


Solved Examples

Example 1: Basic Second Order Derivative

Find d2ydx2\frac{d^2y}{dx^2} if y=x3+tanxy = x^3 + \tan x.

Solution: Step 1: Differentiate once. dydx=ddx(x3)+ddx(tanx)=3x2+sec2x.\frac{dy}{dx} = \frac{d}{dx}(x^3) + \frac{d}{dx}(\tan x) = 3x^2 + \sec^2 x.

Step 2: Differentiate again. d2ydx2=ddx(3x2)+ddx(sec2x)=6x+ddx(sec2x).\frac{d^2y}{dx^2} = \frac{d}{dx}(3x^2) + \frac{d}{dx}(\sec^2 x) = 6x + \frac{d}{dx}(\sec^2 x).

Step 3: Use the chain rule on sec2x\sec^2 x. ddx(sec2x)=2secxddx(secx)=2secx(secxtanx)=2sec2xtanx.\frac{d}{dx}(\sec^2 x) = 2\sec x\cdot \frac{d}{dx}(\sec x) = 2\sec x(\sec x\tan x)=2\sec^2 x\tan x.

Step 4: Therefore, d2ydx2=6x+2sec2xtanx.\frac{d^2y}{dx^2} = 6x + 2\sec^2 x\tan x.

Answer: 6x+2sec2xtanx6x + 2\sec^2 x\tan x


Example 2: Product Rule

Find the second order derivative of y=x2exy = x^2 e^x.

Solution: Step 1: Differentiate once using the product rule. dydx=x2ddx(ex)+exddx(x2)=x2ex+2xex=ex(x2+2x).\frac{dy}{dx} = x^2\frac{d}{dx}(e^x) + e^x\frac{d}{dx}(x^2) = x^2 e^x + 2x e^x = e^x(x^2+2x).

Step 2: Differentiate again. d2ydx2=ddx[ex(x2+2x)].\frac{d^2y}{dx^2} = \frac{d}{dx}\big[e^x(x^2+2x)\big]. Applying the product rule again, d2ydx2=ex(x2+2x)+ex(2x+2).\frac{d^2y}{dx^2} = e^x(x^2+2x) + e^x(2x+2).

Step 3: Factor out exe^x. d2ydx2=ex(x2+2x+2x+2)=ex(x2+4x+2).\frac{d^2y}{dx^2} = e^x\big(x^2+2x+2x+2\big)=e^x(x^2+4x+2).

Answer: ex(x2+4x+2)e^x(x^2 + 4x + 2)


Example 3: Logarithmic Function

Find d2ydx2\frac{d^2y}{dx^2} for y=log(logx)y = \log(\log x).

Solution: Step 1: Differentiate once using the chain rule. dydx=1logxddx(logx)=1logx1x=1xlogx.\frac{dy}{dx} = \frac{1}{\log x}\cdot \frac{d}{dx}(\log x)=\frac{1}{\log x}\cdot \frac{1}{x}=\frac{1}{x\log x}.

Step 2: Write the first derivative as dydx=(xlogx)1.\frac{dy}{dx}=(x\log x)^{-1}. Then differentiate again: d2ydx2=(xlogx)2ddx(xlogx).\frac{d^2y}{dx^2} = - (x\log x)^{-2}\cdot \frac{d}{dx}(x\log x).

Step 3: Differentiate xlogxx\log x using the product rule. ddx(xlogx)=x1x+logx1=1+logx.\frac{d}{dx}(x\log x)=x\cdot \frac{1}{x}+\log x \cdot 1 = 1+\log x.

Step 4: Substitute back. d2ydx2=1+logx(xlogx)2.\frac{d^2y}{dx^2} = -\frac{1+\log x}{(x\log x)^2}.

Answer: 1+logx(xlogx)2-\frac{1 + \log x}{(x \log x)^2}


Example 4: Proving a Differential Equation

If y=Asinx+Bcosxy = A \sin x + B \cos x, prove that d2ydx2+y=0\frac{d^2y}{dx^2} + y = 0.

Solution: Step 1: Differentiate once. dydx=AcosxBsinx.\frac{dy}{dx} = A\cos x - B\sin x.

Step 2: Differentiate again. d2ydx2=AsinxBcosx.\frac{d^2y}{dx^2} = -A\sin x - B\cos x.

Step 3: Add yy to yy''. d2ydx2+y=(AsinxBcosx)+(Asinx+Bcosx)=0.\frac{d^2y}{dx^2} + y = (-A\sin x - B\cos x) + (A\sin x + B\cos x)=0.

Hence proved.

Answer: Proved.


Example 5: Proving with Exponential Functions

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

Solution: Step 1: Differentiate once. dydx=3(2e2x)+2(3e3x)=6e2x+6e3x.\frac{dy}{dx}=3(2e^{2x})+2(3e^{3x})=6e^{2x}+6e^{3x}.

Step 2: Differentiate again. d2ydx2=12e2x+18e3x.\frac{d^2y}{dx^2}=12e^{2x}+18e^{3x}.

Step 3: Substitute into the given expression. d2ydx25dydx+6y\frac{d^2y}{dx^2} - 5\frac{dy}{dx} + 6y =(12e2x+18e3x)5(6e2x+6e3x)+6(3e2x+2e3x).=(12e^{2x}+18e^{3x})-5(6e^{2x}+6e^{3x})+6(3e^{2x}+2e^{3x}).

Step 4: Simplify the coefficients. =e2x(1230+18)+e3x(1830+12)=0+0=0.= e^{2x}(12-30+18)+e^{3x}(18-30+12)=0+0=0.

Hence proved.

Answer: Proved.


Example 6: Finding Second Derivative in Terms of yy Alone

If y=cos1xy = \cos^{-1} x, find d2ydx2\frac{d^2y}{dx^2} in terms of yy alone.

Solution: Step 1: From y=cos1x,y = \cos^{-1}x, we get x=cosy.x = \cos y.

Step 2: Differentiate with respect to yy. dxdy=siny.\frac{dx}{dy} = -\sin y. Hence, dydx=1dx/dy=1siny=cscy.\frac{dy}{dx} = \frac{1}{dx/dy} = -\frac{1}{\sin y} = -\csc y.

Step 3: Differentiate again with respect to xx. Since the expression is in terms of yy, use the chain rule: d2ydx2=ddx(cscy)=ddy(cscy)dydx.\frac{d^2y}{dx^2} = \frac{d}{dx}(-\csc y)=\frac{d}{dy}(-\csc y)\cdot \frac{dy}{dx}. Now, ddy(cscy)=cscycoty.\frac{d}{dy}(-\csc y)=\csc y\cot y. So, d2ydx2=cscycoty(cscy)=csc2ycoty.\frac{d^2y}{dx^2}=\csc y\cot y\cdot (-\csc y)=-\csc^2 y\cot y.

Answer: csc2ycoty-\csc^2 y \cot y


Example 7: Second Derivative of Parametric Equations

Find d2ydx2\frac{d^2y}{dx^2}, if x=at2x = at^2 and y=2aty = 2at.

Solution: Step 1: Differentiate with respect to tt. dxdt=2at,dydt=2a.\frac{dx}{dt}=2at, \qquad \frac{dy}{dt}=2a.

Step 2: Find the first derivative. dydx=2a2at=1t=t1.\frac{dy}{dx}=\frac{2a}{2at}=\frac{1}{t}=t^{-1}.

Step 3: Differentiate dydx\frac{dy}{dx} with respect to tt. ddt(dydx)=ddt(t1)=t2.\frac{d}{dt}\left(\frac{dy}{dx}\right)=\frac{d}{dt}(t^{-1})=-t^{-2}.

Step 4: Divide by dx/dtdx/dt to get the second derivative. d2ydx2=t22at=12at3.\frac{d^2y}{dx^2}=\frac{-t^{-2}}{2at}=-\frac{1}{2at^3}.

Answer: 12at3-\frac{1}{2at^3}


Example 8: Inverse Trigonometric Differential Equation Proof

If y=(sin1x)2y = (\sin^{-1} x)^2, show that (1x2)d2ydx2xdydx2=0(1 - x^2)\frac{d^2y}{dx^2} - x\frac{dy}{dx} - 2 = 0.

Solution: Step 1: Differentiate once. dydx=2sin1x11x2.\frac{dy}{dx} = 2\sin^{-1}x \cdot \frac{1}{\sqrt{1-x^2}}. Let y1=dydxy_1 = \frac{dy}{dx}. Then, 1x2y1=2sin1x.\sqrt{1-x^2}\, y_1 = 2\sin^{-1}x.

Step 2: Square both sides. (1x2)y12=4(sin1x)2=4y.(1-x^2)y_1^2 = 4(\sin^{-1}x)^2 = 4y.

Step 3: Differentiate implicitly with respect to xx. ddx[(1x2)y12]=ddx(4y).\frac{d}{dx}\big[(1-x^2)y_1^2\big] = \frac{d}{dx}(4y). Using the product rule, (2x)y12+(1x2)2y1y2=4y1,(-2x)y_1^2 + (1-x^2)\cdot 2y_1 y_2 = 4y_1, where y2=d2ydx2y_2 = \frac{d^2y}{dx^2}.

Step 4: Divide throughout by 2y12y_1. xy1+(1x2)y2=2.-xy_1 + (1-x^2)y_2 = 2.

Step 5: Rearrange. (1x2)y2xy12=0.(1-x^2)y_2 - xy_1 - 2 = 0. Thus, (1x2)d2ydx2xdydx2=0.(1 - x^2)\frac{d^2y}{dx^2} - x\frac{dy}{dx} - 2 = 0.

Answer: Proved.


Example 9: Second Order Derivative of Implicit Function

If x2+y2=a2x^2 + y^2 = a^2, find d2ydx2\frac{d^2y}{dx^2}.

Solution: Step 1: Differentiate implicitly. 2x+2ydydx=02x + 2y\frac{dy}{dx}=0 so dydx=xy.\frac{dy}{dx} = -\frac{x}{y}.

Step 2: Differentiate again. d2ydx2=ddx(xy).\frac{d^2y}{dx^2} = \frac{d}{dx}\left(-\frac{x}{y}\right). Using the quotient rule, d2ydx2=(y1xyy2).\frac{d^2y}{dx^2} = -\left(\frac{y\cdot 1 - x\cdot y'}{y^2}\right).

Step 3: Substitute y=xyy' = -\frac{x}{y}. d2ydx2=(yx(xy)y2)=(y+x2yy2).\frac{d^2y}{dx^2} = -\left(\frac{y - x\left(-\frac{x}{y}\right)}{y^2}\right)= -\left(\frac{y + \frac{x^2}{y}}{y^2}\right).

Step 4: Simplify. d2ydx2=x2+y2y3.\frac{d^2y}{dx^2} = -\frac{x^2+y^2}{y^3}. Since x2+y2=a2x^2+y^2=a^2, d2ydx2=a2y3.\frac{d^2y}{dx^2} = -\frac{a^2}{y^3}.

Answer: a2y3-\frac{a^2}{y^3}


Example 10: Parametric Trigonometric Second Derivative

Find d2ydx2\frac{d^2y}{dx^2}, if x=acosθx = a\cos\theta and y=bsinθy = b\sin\theta.

Solution: Step 1: Differentiate with respect to θ\theta. dxdθ=asinθ,dydθ=bcosθ.\frac{dx}{d\theta} = -a\sin\theta, \qquad \frac{dy}{d\theta} = b\cos\theta.

Step 2: Find the first derivative. dydx=bcosθasinθ=bacotθ.\frac{dy}{dx} = \frac{b\cos\theta}{-a\sin\theta} = -\frac{b}{a}\cot\theta.

Step 3: Differentiate dydx\frac{dy}{dx} with respect to θ\theta. ddθ(bacotθ)=ba(csc2θ)=bacsc2θ.\frac{d}{d\theta}\left(-\frac{b}{a}\cot\theta\right)= -\frac{b}{a}(-\csc^2\theta)=\frac{b}{a}\csc^2\theta.

Step 4: Divide by dx/dθdx/d\theta. d2ydx2=bacsc2θasinθ=ba21sin3θ=ba2csc3θ.\frac{d^2y}{dx^2} = \frac{\frac{b}{a}\csc^2\theta}{-a\sin\theta} = -\frac{b}{a^2}\cdot \frac{1}{\sin^3\theta} = -\frac{b}{a^2}\csc^3\theta.

Answer: ba2csc3θ-\frac{b}{a^2}\csc^3\theta