← 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 14 yrs · Read the full method →

Question

Solve completely d2ydx2+(tan⁡x−3cos⁡x)dydx+2ycos⁡2x=cos⁡4x\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=sin⁡xt=\sin x converts non-constant-coefficient to constant-coefficient y′′−3y′+2y=1−t2y''-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 y′y' has tan⁡x−3cos⁡x\tan x-3\cos x; coefficient of yy has cos⁡2x\cos^2 x; RHS has cos⁡4x\cos^4 x.

Try t=sin⁡xt=\sin x, so dt/dx=cos⁡xdt/dx=\cos x.

dydx=dydt⋅cos⁡x\dfrac{dy}{dx}=\dfrac{dy}{dt}\cdot\cos x.

d2ydx2=ddx ⁣(cos⁡xdydt)=−sin⁡xdydt+cos⁡x⋅ddxdydt=−sin⁡xdydt+cos⁡2xd2ydt2\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:

[−sin⁡x yt+cos⁡2x ytt]+(tan⁡x−3cos⁡x)cos⁡x yt+2ycos⁡2x=cos⁡4x[-\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: −sin⁡x yt+cos⁡2x ytt+sin⁡x yt−3cos⁡2x yt+2cos⁡2x y=cos⁡4x-\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 sin⁡x yt\sin x\,y_t terms cancel: cos⁡2x ytt−3cos⁡2x yt+2cos⁡2x y=cos⁡4x\cos^2 x\,y_{tt}-3\cos^2 x\,y_t+2\cos^2 x\,y=\cos^4 x.

Divide by cos⁡2x\cos^2 x: ytt−3yt+2y=cos⁡2x=1−sin⁡2x=1−t2y_{tt}-3y_t+2y=\cos^2 x=1-\sin^2 x=1-t^2.

Step 2 — Solve constant-coefficient ODE

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

CF: Roots of D2−3D+2=(D−1)(D−2)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 1−t21-t^2: Try yp=at2+bt+cy_p=at^2+bt+c.

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

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

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

Match:

yp=−t22−3t2−54y_p=-\dfrac{t^2}{2}-\dfrac{3t}{2}-\dfrac{5}{4}.

Step 3 — Convert back to xx

t=sin⁡xt=\sin x.

y=C1esin⁡x+C2e2sin⁡x−sin⁡2x2−3sin⁡x2−54y=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=C1esin⁡x+C2e2sin⁡x−12sin⁡2x−32sin⁡x−54.  \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 — 14 years, mapped. Get the take-away PDF free.