← 2022 Paper 1

UPSC 2022 Maths Optional Paper 1 Q7b — Step-by-Step Solution

15 marks · Section B

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

Question

Solve y′′−3y′+2y=h(t)y''-3y'+2y=h(t) via Laplace transform, where h(t)={2,0<t<40,t>4h(t)=\begin{cases}2,&0<t<4\\ 0,&t>4\end{cases}, y(0)=0, y′(0)=0y(0)=0,\,y'(0)=0.

Technique

Standard Laplace transform with Heaviside step source; partial fractions; second shifting theorem.

Solution

Setup. h(t)=2−2u(t−4)h(t)=2-2u(t-4) where u(⋅)u(\cdot) is the Heaviside step.

Laplace: L{h(t)}=2s−2se−4s=2(1−e−4s)s\mathcal L\{h(t)\}=\dfrac{2}{s}-\dfrac{2}{s}e^{-4s}=\dfrac{2(1-e^{-4s})}{s}.

Step 1 — Take Laplace transform of ODE

L{y′′}=s2Y−sy(0)−y′(0)=s2Y\mathcal L\{y''\}=s^2 Y-sy(0)-y'(0)=s^2 Y. L{y′}=sY−y(0)=sY\mathcal L\{y'\}=sY-y(0)=sY. L{y}=Y\mathcal L\{y\}=Y.

ODE in ss-domain: s2Y−3sY+2Y=2(1−e−4s)ss^2 Y-3sY+2Y=\dfrac{2(1-e^{-4s})}{s}.

Y(s2−3s+2)=2(1−e−4s)sY(s^2-3s+2)=\dfrac{2(1-e^{-4s})}{s},

Y=2(1−e−4s)s(s2−3s+2)=2(1−e−4s)s(s−1)(s−2)Y=\dfrac{2(1-e^{-4s})}{s(s^2-3s+2)}=\dfrac{2(1-e^{-4s})}{s(s-1)(s-2)}.

Step 2 — Partial fractions on 1s(s−1)(s−2)\dfrac{1}{s(s-1)(s-2)}

1s(s−1)(s−2)=As+Bs−1+Cs−2\dfrac{1}{s(s-1)(s-2)}=\dfrac{A}{s}+\dfrac{B}{s-1}+\dfrac{C}{s-2}.

So 1s(s−1)(s−2)=1/2s−1s−1+1/2s−2\dfrac{1}{s(s-1)(s-2)}=\dfrac{1/2}{s}-\dfrac{1}{s-1}+\dfrac{1/2}{s-2}.

Step 3 — Inverse transform of “constant” part

L−1 ⁣{2s(s−1)(s−2)}=2 ⁣[1/2s−1s−1+1/2s−2]→L−11−2et+e2t=(et−1)2\mathcal L^{-1}\!\left\{\dfrac{2}{s(s-1)(s-2)}\right\}=2\!\left[\dfrac{1/2}{s}-\dfrac{1}{s-1}+\dfrac{1/2}{s-2}\right]\xrightarrow{\mathcal L^{-1}}1-2e^t+e^{2t}=(e^t-1)^2. Hmm let me redo.

2⋅1/2s→12\cdot\dfrac{1/2}{s}\xrightarrow{}1. 2⋅−1s−1→−2et2\cdot\dfrac{-1}{s-1}\xrightarrow{}-2e^t. 2⋅1/2s−2→e2t2\cdot\dfrac{1/2}{s-2}\xrightarrow{}e^{2t}.

Sum: 1−2et+e2t=(1−et)21-2e^t+e^{2t}=(1-e^t)^2? Check: (1−et)2=1−2et+e2t(1-e^t)^2=1-2e^t+e^{2t} ✓.

So the “constant” part contributes f(t):=1−2et+e2tf(t):=1-2e^t+e^{2t}.

Step 4 — Inverse transform of e−4se^{-4s} part

L−1 ⁣{e−4s⋅F(s)}=f(t−4)⋅u(t−4)\mathcal L^{-1}\!\left\{e^{-4s}\cdot F(s)\right\}=f(t-4)\cdot u(t-4) (second shifting theorem), where ff is the inverse of FF.

L−1 ⁣{2e−4ss(s−1)(s−2)}=f(t−4)u(t−4)=[1−2et−4+e2(t−4)]u(t−4)\mathcal L^{-1}\!\left\{\dfrac{2 e^{-4s}}{s(s-1)(s-2)}\right\}=f(t-4)u(t-4)=[1-2e^{t-4}+e^{2(t-4)}]u(t-4).

Step 5 — Combine (note the −- sign in YY)

Y=2s(s−1)(s−2)−2e−4ss(s−1)(s−2)Y=\dfrac{2}{s(s-1)(s-2)}-\dfrac{2e^{-4s}}{s(s-1)(s-2)}.

y(t)=f(t)−f(t−4)u(t−4)=[1−2et+e2t]−[1−2et−4+e2(t−4)]u(t−4).y(t)=f(t)-f(t-4)u(t-4)=[1-2e^t+e^{2t}]-[1-2e^{t-4}+e^{2(t-4)}]u(t-4).

Answer

  y(t)=1−2et+e2t−[1−2et−4+e2(t−4)]u(t−4).  \boxed{\;y(t)=1-2e^t+e^{2t}-[1-2e^{t-4}+e^{2(t-4)}]u(t-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.