← 2021 Paper 1

UPSC 2021 Maths Optional Paper 1 Q6b — Step-by-Step Solution

15 marks · Section B

Linear ODE with constant coefficients · ODEs · asked 4× in 13 yrs · Read the full method →

Question

Solve completely d2ydx2+(tanx3cosx)dydx+2ycos2x=cos4x\dfrac{d^2 y}{dx^2}+(\tan x-3\cos x)\dfrac{dy}{dx}+2y\cos^2 x=\cos^4 x, demonstrating all steps.

Technique

Substitution t=sinxt=\sin x converts non-constant-coefficient to constant-coefficient y3y+2y=1t2y''-3y'+2y=1-t^2; standard CF + polynomial PI.

Solution

Strategy. This is a non-constant-coefficient linear ODE. Try a substitution to simplify. Let t=g(x)t=g(x) for some gg to make the ODE constant-coefficient.

Step 1 — Recognise potential substitution

Coefficient of yy' has tanx3cosx\tan x-3\cos x; coefficient of yy has cos2x\cos^2 x; RHS has cos4x\cos^4 x.

Try t=sinxt=\sin x, so dt/dx=cosxdt/dx=\cos x.

dydx=dydtcosx\dfrac{dy}{dx}=\dfrac{dy}{dt}\cdot\cos x.

d2ydx2=ddx ⁣(cosxdydt)=sinxdydt+cosxddxdydt=sinxdydt+cos2xd2ydt2\dfrac{d^2 y}{dx^2}=\dfrac{d}{dx}\!\left(\cos x\dfrac{dy}{dt}\right)=-\sin x\dfrac{dy}{dt}+\cos x\cdot\dfrac{d}{dx}\dfrac{dy}{dt}=-\sin x\dfrac{dy}{dt}+\cos^2 x\dfrac{d^2 y}{dt^2}.

Substitute into the ODE:

[sinxyt+cos2xytt]+(tanx3cosx)cosxyt+2ycos2x=cos4x[-\sin x\,y_t+\cos^2 x\,y_{tt}]+(\tan x-3\cos x)\cos x\,y_t+2y\cos^2 x=\cos^4 x.

Expand: sinxyt+cos2xytt+sinxyt3cos2xyt+2cos2xy=cos4x-\sin x\,y_t+\cos^2 x\,y_{tt}+\sin x\,y_t-3\cos^2 x\,y_t+2\cos^2 x\,y=\cos^4 x.

The sinxyt\sin x\,y_t terms cancel: cos2xytt3cos2xyt+2cos2xy=cos4x\cos^2 x\,y_{tt}-3\cos^2 x\,y_t+2\cos^2 x\,y=\cos^4 x.

Divide by cos2x\cos^2 x: ytt3yt+2y=cos2x=1sin2x=1t2y_{tt}-3y_t+2y=\cos^2 x=1-\sin^2 x=1-t^2.

Step 2 — Solve constant-coefficient ODE

y3y+2y=1t2y''-3y'+2y=1-t^2 (where =d/dt'=d/dt).

CF: Roots of D23D+2=(D1)(D2)D^2-3D+2=(D-1)(D-2): D=1,2D=1,2. yc=C1et+C2e2ty_c=C_1 e^t+C_2 e^{2t}.

PI for 1t21-t^2: Try yp=at2+bt+cy_p=at^2+bt+c.

yp=2at+by_p'=2at+b, yp=2ay_p''=2a.

2a3(2at+b)+2(at2+bt+c)=1t22a-3(2at+b)+2(at^2+bt+c)=1-t^2,

2at2+(2b6a)t+(2a3b+2c)=1t22at^2+(2b-6a)t+(2a-3b+2c)=1-t^2.

Match:

yp=t223t254y_p=-\dfrac{t^2}{2}-\dfrac{3t}{2}-\dfrac{5}{4}.

Step 3 — Convert back to xx

t=sinxt=\sin x.

y=C1esinx+C2e2sinxsin2x23sinx254y=C_1 e^{\sin x}+C_2 e^{2\sin x}-\dfrac{\sin^2 x}{2}-\dfrac{3\sin x}{2}-\dfrac{5}{4}.

Answer

  y=C1esinx+C2e2sinx12sin2x32sinx54.  \boxed{\;y=C_1 e^{\sin x}+C_2 e^{2\sin x}-\dfrac{1}{2}\sin^2 x-\dfrac{3}{2}\sin x-\dfrac{5}{4}.\;}
We post more of this — worked solutions, CSAT trap breakdowns, guide chapters — a few times a week on Telegram. Free, no sign-in. Join

This solution is part of the Maths Coverage Map — 13 years, mapped. Get the take-away PDF free.