I want to use laplace transforms to solve the following:
$$\frac{d^2 y}{dt^2}+16 y = f(t) = \left\{\begin{array} 1 1&t\lt\pi\\0&t\geq \pi\end{array}\right.\text{ with } y(0)=0 \text{ and } \frac{dy}{dt}(0)=0$$
Can I have some direction on solving this? I have heard I can use a shifting theorem. Is there a way to do this without using said shifting theorem?
A link to the right thing would be sufficient for my thanks!
You can define a piecewise function using the Heaviside Unit Step Function and then take the Laplace Transform of that.
In general, if:
$$f(t)= \left\{\begin{array} fg(t) &0 \le t < a\\h(t) &t \ge a \end{array}\right.$$
then:
$$f(t) = g(t) - g(t)u(t-a) + h(t) u(t-a)$$
In your example, we have:
$$\tag 1 f(t) = 1 - (1)u(t- \pi) + (0) u(t- \pi) = 1 - 1~u(t- \pi)$$
Of course, you can do this other ways and here is an example (use the definition straight off), Laplace transform of unit step function.
The Laplace Transform of $(1)$ is given by:
$$\mathscr{L} (1 - 1~u(t-\pi)) = \dfrac{1}{s} - \dfrac{e^{-\pi s}}{s} = \dfrac{1 - e^{-\pi s}}{s}$$
The Laplace Transform of the other part with initial conditions yields:
Putting it all together yields:
$$y(s) = \dfrac{1 - e^{-\pi s}}{s(s^2 + 16)}$$
I will assume you can take it from here.