The equation is:
$$y'' + 3y = u_4(t)\cos(5(t-4)), \quad y(0) = 0, \quad y'(0) = -2$$ Here $u_4$ is the Heaviside function with activation switch at $t=4$.
I can get all the way to the partial fraction decomposition but then we get strange coefficients like $45/999$ for $S$ and so on!
Can someone help me? That surely can't be right!
First I get $L(y)$ which ends up being $$L(y) = e^{-4s}\frac{s}{(s^2+25)(s^2+3)}-\frac{2}{s^2+3}$$
Then I try doing partial fraction decomposition on the first bit by making $(s/((s^2+25)(s^2+3)) $equal to$ (As+B)/(s^2+25) + (Cs+D)/(s^2+3)$ but then I get the awkward coefficients..
We are given:
$$y'' + 3y = u_4(t) \cos(5(t-4)) = u(t-4) \cos(5(t-4)), y(0) = 0, y'(0) = -2$$
We have:
From this we write:
$$(s^2 + 3)y(s) = \frac{s~e^{-4 s}}{s^2+25} - 2$$
Solving for $y(s)$ yields:
$y(s) = \dfrac{1}{s^2+3}\left( \dfrac{e^{-4 s} s}{s^2+25}-2\right) = -\dfrac{2}{s^2+3} +\dfrac{e^{-4 s} s}{\left(s^2+3\right) \left(s^2+25\right)}$, so
$$y(s) = -\dfrac{2}{s^2+3}+ e^{-4 s}\left( \dfrac{s}{22 \left(s^2+3\right)}-\dfrac{s}{22 \left(s^2+25\right)}\right)$$
The inverse Laplace transform, using a Table of Laplace Transforms is given by:
$$\mathscr{L}^{-1}(y(s)) = y(t) = -\frac{2 \sin \left(\sqrt{3} t\right)}{\sqrt{3}} + \frac{1}{22} u(t-4) \left(\cos \left(\sqrt{3} (t-4)\right)-\cos (5 (t-4))\right)$$