The Green's function for the differential equation \(\rm\frac{d^2x}{dt^2}\) + x = f(t), satisfying the initial conditions x(0) = \(\rm\frac{dx}{dt}\)(0) = 0, is
G(t, τ) = \(\begin{cases}0 & \text { for } \quad 0<\rm t<\tau \\ \sin (\rm t−\tau) & \text { for } \quad \rm t>\tau\end{cases}\)
The solution of the differential equation when the source f(t) = θ(t) (the Heaviside step function) is
1
sin t
2
1 − sin t
3
1 − cos t
4
cos2t − 1