θ(t - 5) = 1 if t ≥ 5 and 0 otherwise, so the Laplace transform of the second derivative term is

Compute the remaining integral by parts.


Integrating by parts again with similar choice of u and dv gives

Recall that


where Q(s) is the Laplace transform of q(t).
It follows that
![L_s\left\{q''(t) \theta(t-5)\right\} = (s^2 Q(s) - s q(0) - q'(0)) - \left[(q'(5))/(e^(5s)) - q'(0) + s \left((q(5))/(e^(5s)) - q(0) + s \int_0^5 q(t) e^(-st) \, dt\right) \right]](https://img.qammunity.org/2023/formulas/mathematics/college/jhyxghza6rz4g7f70gv4rfdp1v81tsegly.png)
or

Similarly, you can show that

and

There's not much more one can say without knowing anything more about q(t) …