← 2021 Paper 1

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

10 marks · Section B

Laplace transform applied to IVP for second-order linear ODE with constant coefficients · ODEs · asked 10× in 13 yrs · Read the full method →

Question

Solve d2ydx2+4y=e2xsin2x\dfrac{d^2 y}{dx^2}+4y=e^{-2x}\sin 2x, y(0)=y(0)=0y(0)=y'(0)=0, using Laplace transform.

Technique

Laplace transform with shift L{e2xsin2x}=2/((s+2)2+4)\mathcal L\{e^{-2x}\sin 2x\}=2/((s+2)^2+4); partial fractions; inverse via standard pairs.

Solution

Step 1 — Take Laplace transform

L{y}=s2Ysy(0)y(0)=s2Y\mathcal L\{y''\}=s^2 Y-sy(0)-y'(0)=s^2 Y. L{y}=Y\mathcal L\{y\}=Y. L{e2xsin2x}=2(s+2)2+4\mathcal L\{e^{-2x}\sin 2x\}=\dfrac{2}{(s+2)^2+4} (shift theorem: L{sin2x}=2/(s2+4)\mathcal L\{\sin 2x\}=2/(s^2+4), shift ss+2s\to s+2).

Equation: (s2+4)Y=2(s+2)2+4=2s2+4s+8(s^2+4)Y=\dfrac{2}{(s+2)^2+4}=\dfrac{2}{s^2+4s+8}.

Y=2(s2+4)(s2+4s+8)Y=\dfrac{2}{(s^2+4)(s^2+4s+8)}.

Step 2 — Partial fractions

2(s2+4)(s2+4s+8)=As+Bs2+4+Cs+Ds2+4s+8\dfrac{2}{(s^2+4)(s^2+4s+8)}=\dfrac{As+B}{s^2+4}+\dfrac{Cs+D}{s^2+4s+8}.

2=(As+B)(s2+4s+8)+(Cs+D)(s2+4)2=(As+B)(s^2+4s+8)+(Cs+D)(s^2+4).

Expand: (As+B)(s2+4s+8)=As3+4As2+8As+Bs2+4Bs+8B(As+B)(s^2+4s+8)=As^3+4As^2+8As+Bs^2+4Bs+8B =As3+(4A+B)s2+(8A+4B)s+8B=As^3+(4A+B)s^2+(8A+4B)s+8B.

(Cs+D)(s2+4)=Cs3+Ds2+4Cs+4D(Cs+D)(s^2+4)=Cs^3+Ds^2+4Cs+4D.

Sum: s3s^3: A+C=0A+C=0. s2s^2: 4A+B+D=04A+B+D=0. s1s^1: 8A+4B+4C=08A+4B+4C=0. s0s^0: 8B+4D=28B+4D=2.

From A+C=0A+C=0: C=AC=-A. Sub into s1s^1: 8A+4B4A=04A+4B=0B=A8A+4B-4A=0\Rightarrow 4A+4B=0\Rightarrow B=-A.

Sub into s0s^0: 8(A)+4D=28A+4D=2D=(2+8A)/4=1/2+2A8(-A)+4D=2\Rightarrow -8A+4D=2\Rightarrow D=(2+8A)/4=1/2+2A.

Sub into s2s^2: 4A+(A)+(1/2+2A)=05A+1/2=0A=1/104A+(-A)+(1/2+2A)=0\Rightarrow 5A+1/2=0\Rightarrow A=-1/10.

Then B=1/10B=1/10, C=1/10C=1/10, D=1/21/5=3/10D=1/2-1/5=3/10.

So Y=s/10+1/10s2+4+s/10+3/10s2+4s+8Y=\dfrac{-s/10+1/10}{s^2+4}+\dfrac{s/10+3/10}{s^2+4s+8} =1101ss2+4+110s+3s2+4s+8=\dfrac{1}{10}\cdot\dfrac{1-s}{s^2+4}+\dfrac{1}{10}\cdot\dfrac{s+3}{s^2+4s+8}.

Step 3 — Invert

First term: 1ss2+4=1s2+4ss2+4sin2x2cos2x\dfrac{1-s}{s^2+4}=\dfrac{1}{s^2+4}-\dfrac{s}{s^2+4}\xrightarrow{}\dfrac{\sin 2x}{2}-\cos 2x.

So 110(sin2x2cos2x)\dfrac{1}{10}\cdot(\dfrac{\sin 2x}{2}-\cos 2x).

Second term: Complete square: s2+4s+8=(s+2)2+4s^2+4s+8=(s+2)^2+4.

s+3(s+2)2+4=(s+2)+1(s+2)2+4=s+2(s+2)2+4+1(s+2)2+4\dfrac{s+3}{(s+2)^2+4}=\dfrac{(s+2)+1}{(s+2)^2+4}=\dfrac{s+2}{(s+2)^2+4}+\dfrac{1}{(s+2)^2+4}.

Invert: e2xcos2x+12e2xsin2xe^{-2x}\cos 2x+\dfrac{1}{2}e^{-2x}\sin 2x.

So 110[e2xcos2x+12e2xsin2x]\dfrac{1}{10}[e^{-2x}\cos 2x+\dfrac{1}{2}e^{-2x}\sin 2x].

Step 4 — Combine

y(x)=110 ⁣[sin2x2cos2x+e2xcos2x+12e2xsin2x].y(x)=\dfrac{1}{10}\!\left[\dfrac{\sin 2x}{2}-\cos 2x+e^{-2x}\cos 2x+\dfrac{1}{2}e^{-2x}\sin 2x\right].

Simplify:

Answer

  y(x)=120[sin2x+e2xsin2x]+110[e2xcos2xcos2x]=sin2x(1+e2x)20+cos2x(e2x1)10.  \boxed{\;y(x)=\dfrac{1}{20}[\sin 2x+e^{-2x}\sin 2x]+\dfrac{1}{10}[e^{-2x}\cos 2x-\cos 2x]=\dfrac{\sin 2x(1+e^{-2x})}{20}+\dfrac{\cos 2x(e^{-2x}-1)}{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.