← 2023 Paper 1

UPSC 2023 Maths Optional Paper 1 Q6a — 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 the differential equation

d3ydx3−3d2ydx2+4dydx−2y=ex+cos⁡x.\frac{d^3 y}{dx^3}-3\frac{d^2 y}{dx^2}+4\frac{dy}{dx}-2y=e^x+\cos x.

Technique

Auxiliary polynomial; resonance modification (xexx e^x) for the exe^x piece since 11 is a root; trigonometric ansatz Bcos⁡x+Csin⁡xB\cos x+C\sin x for the cos⁡x\cos x piece (no resonance because ±i\pm i are not roots of the auxiliary).

Solution

Step 1 — Solve the homogeneous part

Auxiliary equation: m3−3m2+4m−2=0m^3-3m^2+4m-2=0.

Try m=1m=1: 1−3+4−2=01-3+4-2=0 ✓. So (m−1)(m-1) is a factor.

Polynomial division: m3−3m2+4m−2=(m−1)(m2−2m+2)m^3-3m^2+4m-2=(m-1)(m^2-2m+2).

Roots of m2−2m+2=0m^2-2m+2=0: m=1±im=1\pm i.

Complementary function:

yc=c1ex+ex(c2cos⁡x+c3sin⁡x).y_c=c_1 e^x+e^x(c_2\cos x+c_3\sin x).

Step 2 — Particular integral for exe^x

Since m=1m=1 is a simple root of the auxiliary equation, try yp,1=Axexy_{p,1}=A x e^x.

The operator can be written D3−3D2+4D−2=(D−1)(D2−2D+2)D^3-3D^2+4D-2=(D-1)(D^2-2D+2).

Apply (D−1)(D2−2D+2)(D-1)(D^2-2D+2) to AxexAxe^x. First (D2−2D+2)(Axex)(D^2-2D+2)(Axe^x): D(Axex)=Aex+Axex=Aex(1+x).D(Axe^x)=Ae^x+Axe^x=Ae^x(1+x). D2(Axex)=Aex(1+x)+Aex=Aex(2+x).D^2(Axe^x)=Ae^x(1+x)+Ae^x=Ae^x(2+x). (D2−2D+2)(Axex)=Aex[(2+x)−2(1+x)+2x]=Aex[2+x−2−2x+2x]=Aex⋅x=Axex.(D^2-2D+2)(Axe^x)=Ae^x[(2+x)-2(1+x)+2x]=Ae^x[2+x-2-2x+2x]=Ae^x\cdot x=Axe^x.

Then (D−1)(Axex)=Aex+Axex−Axex=Aex(D-1)(Axe^x)=Ae^x+Axe^x-Axe^x=Ae^x.

Set this equal to exe^x: A=1A=1, so yp,1=xexy_{p,1}=xe^x.

Step 3 — Particular integral for cos⁡x\cos x

Try yp,2=Bcos⁡x+Csin⁡xy_{p,2}=B\cos x+C\sin x.

yp,2′=−Bsin⁡x+Ccos⁡x.y_{p,2}'=-B\sin x+C\cos x. yp,2′′=−Bcos⁡x−Csin⁡x.y_{p,2}''=-B\cos x-C\sin x. yp,2′′′=Bsin⁡x−Ccos⁡x.y_{p,2}'''=B\sin x-C\cos x.

Substitute: yp,2′′′−3yp,2′′+4yp,2′−2yp,2y_{p,2}'''-3y_{p,2}''+4y_{p,2}'-2y_{p,2} =(Bsin⁡x−Ccos⁡x)−3(−Bcos⁡x−Csin⁡x)+4(−Bsin⁡x+Ccos⁡x)−2(Bcos⁡x+Csin⁡x)=(B\sin x-C\cos x)-3(-B\cos x-C\sin x)+4(-B\sin x+C\cos x)-2(B\cos x+C\sin x) =sin⁡x(B+3C−4B−2C)+cos⁡x(−C+3B+4C−2B)=\sin x(B+3C-4B-2C)+\cos x(-C+3B+4C-2B) =sin⁡x(−3B+C)+cos⁡x(B+3C).=\sin x(-3B+C)+\cos x(B+3C).

Set equal to cos⁡x\cos x: −3B+C=0, B+3C=1-3B+C=0,\,B+3C=1. From the first: C=3BC=3B. Substitute: B+9B=1⇒B=110, C=310B+9B=1\Rightarrow B=\tfrac{1}{10},\,C=\tfrac{3}{10}.

yp,2=110cos⁡x+310sin⁡x=cos⁡x+3sin⁡x10.y_{p,2}=\tfrac{1}{10}\cos x+\tfrac{3}{10}\sin x=\tfrac{\cos x+3\sin x}{10}.

Step 4 — General solution

Answer

  y=c1ex+ex(c2cos⁡x+c3sin⁡x)+xex+cos⁡x+3sin⁡x10.  \boxed{\;y=c_1 e^x+e^x(c_2\cos x+c_3\sin x)+xe^x+\frac{\cos x+3\sin x}{10}.\;}
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.