← 2017 Paper 1

UPSC 2017 Maths Optional Paper 1 Q8b — Step-by-Step Solution

17 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 the following initial value problem using Laplace transform:

d2ydx2+9y=r(x),y(0)=0, y′(0)=4,\frac{d^2y}{dx^2}+9y=r(x),\qquad y(0)=0,\ y'(0)=4,

where r(x)={8sin⁡xif 0<x<π0if x≥π.r(x)=\begin{cases}8\sin x & \text{if } 0<x<\pi\\ 0 & \text{if } x\ge\pi.\end{cases}

Technique

Laplace transform; write forcing via Heaviside, use sin⁡x=−sin⁡(x−π)\sin x=-\sin(x-\pi) for the second-shift theorem; partial fractions 1(s2+1)(s2+9)=18(1s2+1−1s2+9)\tfrac1{(s^2+1)(s^2+9)}=\tfrac18(\tfrac1{s^2+1}-\tfrac1{s^2+9}).

Solution

Step 1 — Write the forcing with a Heaviside step

r(x)=8sin⁡x [1−H(x−π)]=8sin⁡x−8sin⁡x H(x−π).r(x)=8\sin x\,\big[1-H(x-\pi)\big]=8\sin x-8\sin x\,H(x-\pi).

For the second-shift theorem we need a function of (x−π)(x-\pi). Since sin⁡x=sin⁡((x−π)+π)=−sin⁡(x−π)\sin x=\sin\big((x-\pi)+\pi\big)=-\sin(x-\pi),

r(x)=8sin⁡x+8sin⁡(x−π) H(x−π).r(x)=8\sin x+8\sin(x-\pi)\,H(x-\pi).

Step 2 — Transform the ODE

Let Y(s)=L{y}Y(s)=\mathcal L\{y\}. With y(0)=0, y′(0)=4y(0)=0,\ y'(0)=4,

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

Using L{sin⁡x}=1s2+1\mathcal L\{\sin x\}=\dfrac{1}{s^2+1} and L{sin⁡(x−π)H(x−π)}=e−πss2+1\mathcal L\{\sin(x-\pi)H(x-\pi)\}=\dfrac{e^{-\pi s}}{s^2+1}:

(s2+9)Y−4=8s2+1+8e−πss2+1.(s^2+9)Y-4=\frac{8}{s^2+1}+\frac{8e^{-\pi s}}{s^2+1}. Y=4s2+9+8(s2+1)(s2+9)+8e−πs(s2+1)(s2+9).Y=\frac{4}{s^2+9}+\frac{8}{(s^2+1)(s^2+9)}+\frac{8e^{-\pi s}}{(s^2+1)(s^2+9)}.

Step 3 — Partial fractions

8(s2+1)(s2+9)=8⋅18(1s2+1−1s2+9)=1s2+1−1s2+9.\frac{8}{(s^2+1)(s^2+9)}=8\cdot\frac1{8}\Big(\frac{1}{s^2+1}-\frac{1}{s^2+9}\Big)=\frac{1}{s^2+1}-\frac{1}{s^2+9}.

Step 4 — Invert term by term

First two terms (no shift):

L−1 ⁣{4s2+9}=43sin⁡3x,L−1 ⁣{1s2+1−1s2+9}=sin⁡x−13sin⁡3x.\mathcal L^{-1}\!\Big\{\frac{4}{s^2+9}\Big\}=\frac43\sin 3x,\qquad \mathcal L^{-1}\!\Big\{\frac1{s^2+1}-\frac1{s^2+9}\Big\}=\sin x-\frac13\sin 3x.

Sum of the un-shifted part:

y0(x)=43sin⁡3x+sin⁡x−13sin⁡3x=sin⁡x+sin⁡3x.y_0(x)=\frac43\sin3x+\sin x-\frac13\sin3x=\sin x+\sin 3x.

Shifted term: L−1{8e−πs(s2+1)(s2+9)}=g(x−π) H(x−π)\mathcal L^{-1}\Big\{\dfrac{8e^{-\pi s}}{(s^2+1)(s^2+9)}\Big\}=g(x-\pi)\,H(x-\pi) where g(x)=sin⁡x−13sin⁡3xg(x)=\sin x-\tfrac13\sin 3x. Note g(x−π)=sin⁡(x−π)−13sin⁡(3x−3π)=−sin⁡x+13sin⁡3xg(x-\pi)=\sin(x-\pi)-\tfrac13\sin(3x-3\pi)=-\sin x+\tfrac13\sin3x. So the shifted contribution for x>πx>\pi is −sin⁡x+13sin⁡3x-\sin x+\tfrac13\sin 3x.

Step 5 — Assemble (piecewise)

y(x)=(sin⁡x+sin⁡3x)+(−sin⁡x+13sin⁡3x)H(x−π).y(x)=\big(\sin x+\sin 3x\big)+\big(-\sin x+\tfrac13\sin 3x\big)H(x-\pi).

Answer

  y(x)={sin⁡x+sin⁡3x,0≤x≤π,43sin⁡3x,x≥π.  \boxed{\;y(x)=\begin{cases}\sin x+\sin 3x, & 0\le x\le \pi,\\[4pt]\dfrac43\sin 3x, & x\ge \pi.\end{cases}\;}
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.