Now let us consider a harmonic oscillator with discontinuous forcing,
where is given by
That is, We may consider this to be a mass-spring system sliding on a table, where the mass is one unit, the spring constant is 5, and the damping coefficient is 2. When the table is tilted so that gravity provides a force of 5 units when stretching the spring. At time the table is suddenly returned to the level position.
Taking the Laplace transform of both sides of we obtain
where Substituting the initial conditions and evaluating the Laplace transform on the right, we have
Solving for we have
and
Using partial fractions, we can rewrite the first term as
The inverse Laplace transform of is 1. To find the inverse Laplace transform of the second term, we complete the square of the denominator,
Consequently,
and
We can compute the inverse Laplace transform of
using the Heaviside function and the inverse Laplace transform that we just calculated to obtain
Therefore, the solution to our original initial value problem is