Topper Copies

Solve the following initial value problem using laplace transform. $$\frac{d^2y}{dx^2} + 9y = r(x), \qquad y(0) = 0, y'(0) = 4,$$ where $r(x) = \begin{cases} 8\sin x & \text{if } 0 < x < \pi \\ 0 & \text{if } x \geq \pi \end{cases}$

Tarun Kumar Yadav, AIR 49, 2025

Given $y = f(x)$ is the solⁿ of diffⁿ eqⁿ

Let $\mathcal{L}\{y\} = f(s)$ i.e laplace transformation of y is $f(s)$

then $\mathcal{L}\left\{\frac{d^2y}{dx^2}\right\} = s^2 f(s) - sf(0) - f'(0)$

then $\mathcal{L}\left\{\frac{d^2y}{dx^2} + 9y\right\} = s^2 f(s) - 4 + 9 f(s)$

$= (s^2+9) f(s) - 4$ ——— (2)

On the right hand side

Consider $I = \int_0^{\pi} e^{-st} \sin t \, dt$

then integrating by parts

$I = \left[ e^{-st}(-\cos t) \right]_0^{\pi} - \int_0^{\pi} (-s) e^{-st} (-\cos t)\, dt$

$I = \left[ e^{-s\pi} + 1 \right] - s \int_0^{\pi} e^{-st} \cos t \, dt$

$I = \left[ e^{-s\pi} + 1 \right] - s \left\{ \left[ (e^{-st})(\sin t) \right]_0^{\pi} - \int_0^{\pi} (-s) e^{-st} \sin t \, dt \right\}$

$I = (1 + e^{-s\pi}) - s^2 \int_0^{\pi} e^{-st} \sin t \, dt$

$I = (1 + e^{-s\pi}) - s^2 I \Rightarrow I = \dfrac{1 + e^{-s\pi}}{1 + s^2}$

thus $\mathcal{L}\{r(x)\} = \dfrac{s(1 + e^{-s\pi})}{1 + s^2}$ ———— (3)

from (2) and (3)

$(s^2 + 9) f(s) - 4 = \dfrac{s(1 + e^{-s\pi})}{1 + s^2}$

i.e $(s^2+9) f(s) = 4 + \frac{8}{1+s^2} + \frac{8e^{-\pi s}}{1+s^2}$

i.e $f(s) = \frac{4}{s^2+9} + \frac{8}{(1+s^2)(9+s^2)} + \frac{8e^{-\pi s}}{(1+s^2)(9+s^2)}$

$f(s) = \frac{4}{s^2+3^2} + \frac{1}{s^2+1} - \frac{1}{s^2+3^2} + 8e^{-\pi s}\left[\frac{1}{s^2+1} - \frac{1}{s^2+3^2}\right]$

Considering $\mathcal{L}\{\sin at\} = \frac{a}{s^2+a^2}$ we have

taking laplace inverse on both sides

$\mathcal{L}^{-1}\{f(s)\} = \mathcal{L}^{-1}\left\{\frac{4}{s^2+3^2}\right\} + \mathcal{L}^{-1}\left\{\frac{1}{s^2+1}\right\} - \mathcal{L}^{-1}\left\{\frac{1}{s^2+3^2}\right\}$

$+ \mathcal{L}^{-1}\left\{8e^{-\pi s}\left[\frac{1}{s^2+1^2} - \frac{1}{s^2+3^2}\right]\right\}$

$y = \frac{4}{3}\sin 3t + \sin t - \frac{1}{3}\sin 3t$

$+ \left[\sin t - \frac{\sin 3t}{3}\right] . 8 H(t-\pi)$

where $H(t-\pi) = \begin{cases} 1 & \text{if } t \geq \pi \\ 0 & \text{otherwise} \end{cases}$

thus

equivalently

Ans