Solve the differential equation
Split the problem in two. For a linear equation with constant coefficients, the general solution is : the general solution of the homogeneous equation plus any one particular solution of the full equation. Both parts are needed — omitting or dropping the arbitrary constants both give wrong answers.
Solve the homogeneous equation. Setting the right side to zero and trying gives the characteristic equation
A purely imaginary conjugate pair corresponds to oscillation with no decay, so
Choose a trial particular solution. The right side is the constant , so try a constant, . Since a constant has zero derivatives, and substitution gives
so . (This works because is not a root of the characteristic equation — otherwise the trial would have needed an extra factor of .)
Assemble the general solution.
Interpret the answer. The solution oscillates with period and amplitude about the equilibrium level . That is the steady state the constant forcing imposes: the homogeneous part supplies the wobble, the particular part sets the centre line.
Verify by substitution. With : , so
Numerically with , , a central second difference of step gives at ✓.
Need to solve a different problem like this? Open the solver →