Since this is a non-homogeneous problem, we must find a particular solution and a homogeneous solution. Let and be the particular and homogeneous solutions, resp.
Particular solution
We will first find the particular solution by assuming a oscillatory solution of the same frequency as the right hand side of the differential equation:

where are constants to be determined.

Separating the parts of the equation that are multiplied by and , we find that we must solve the following equations for :

Thus the particular solution is:

Homogeneous solution
Now will find the solution to the homogeneous equation, , which satisfies:

As is standard in homogeneous constant coefficient problems, we substitute into the above equation and get

Factoring and solving for gives

Thus, the homogeneous solution is given by

where the constants , will be chosen to satisfy the initial condition.
Initial conditions
Putting both the particular and homogeneous solution together we obtain the full solution:

Now, apply the initial conditions: .

Final answer
Thus, the solution to the initial value problem is

|