← 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 10× in 13 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)={8sinxif 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 sinx=sin(xπ)\sin x=-\sin(x-\pi) for the second-shift theorem; partial fractions 1(s2+1)(s2+9)=18(1s2+11s2+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)=8sinx[1H(xπ)]=8sinx8sinxH(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 sinx=sin((xπ)+π)=sin(xπ)\sin x=\sin\big((x-\pi)+\pi\big)=-\sin(x-\pi),

r(x)=8sinx+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}=s2Ysy(0)y(0)=s2Y4.\mathcal L\{y''\}=s^2Y-sy(0)-y'(0)=s^2Y-4.

Using L{sinx}=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)Y4=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)=818(1s2+11s2+9)=1s2+11s2+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):

L1 ⁣{4s2+9}=43sin3x,L1 ⁣{1s2+11s2+9}=sinx13sin3x.\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)=43sin3x+sinx13sin3x=sinx+sin3x.y_0(x)=\frac43\sin3x+\sin x-\frac13\sin3x=\sin x+\sin 3x.

Shifted term: L1{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)=sinx13sin3xg(x)=\sin x-\tfrac13\sin 3x. Note g(xπ)=sin(xπ)13sin(3x3π)=sinx+13sin3xg(x-\pi)=\sin(x-\pi)-\tfrac13\sin(3x-3\pi)=-\sin x+\tfrac13\sin3x. So the shifted contribution for x>πx>\pi is sinx+13sin3x-\sin x+\tfrac13\sin 3x.

Step 5 — Assemble (piecewise)

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

Answer

  y(x)={sinx+sin3x,0xπ,43sin3x,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 — 13 years, mapped. Get the take-away PDF free.