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

Question

Solve the differential equation

d3ydx33d2ydx2+4dydx2y=ex+cosx.\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 Bcosx+CsinxB\cos x+C\sin x for the cosx\cos x piece (no resonance because ±i\pm i are not roots of the auxiliary).

Solution

Step 1 — Solve the homogeneous part

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

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

Polynomial division: m33m2+4m2=(m1)(m22m+2)m^3-3m^2+4m-2=(m-1)(m^2-2m+2).

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

Complementary function:

yc=c1ex+ex(c2cosx+c3sinx).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 D33D2+4D2=(D1)(D22D+2)D^3-3D^2+4D-2=(D-1)(D^2-2D+2).

Apply (D1)(D22D+2)(D-1)(D^2-2D+2) to AxexAxe^x. First (D22D+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). (D22D+2)(Axex)=Aex[(2+x)2(1+x)+2x]=Aex[2+x22x+2x]=Aexx=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 (D1)(Axex)=Aex+AxexAxex=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 cosx\cos x

Try yp,2=Bcosx+Csinxy_{p,2}=B\cos x+C\sin x.

yp,2=Bsinx+Ccosx.y_{p,2}'=-B\sin x+C\cos x. yp,2=BcosxCsinx.y_{p,2}''=-B\cos x-C\sin x. yp,2=BsinxCcosx.y_{p,2}'''=B\sin x-C\cos x.

Substitute: yp,23yp,2+4yp,22yp,2y_{p,2}'''-3y_{p,2}''+4y_{p,2}'-2y_{p,2} =(BsinxCcosx)3(BcosxCsinx)+4(Bsinx+Ccosx)2(Bcosx+Csinx)=(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) =sinx(B+3C4B2C)+cosx(C+3B+4C2B)=\sin x(B+3C-4B-2C)+\cos x(-C+3B+4C-2B) =sinx(3B+C)+cosx(B+3C).=\sin x(-3B+C)+\cos x(B+3C).

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

yp,2=110cosx+310sinx=cosx+3sinx10.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(c2cosx+c3sinx)+xex+cosx+3sinx10.  \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 — 13 years, mapped. Get the take-away PDF free.