Show that
satisfies the differential equation
Plan the verification. To confirm a proposed solution, differentiate it twice, substitute into the equation, and check that the left side reduces to zero identically — for every , not just at sample points.
Differentiate once, applying the chain rule. The inner function is , whose derivative is , so each term picks up a factor of :
Note the sign swap: differentiates to , but differentiates to .
Differentiate again. Each term picks up another factor of , and the signs swap once more:
So two differentiations produce and a net sign reversal — the hallmark of sine and cosine.
Factor out -k^2 and recognise the original function.
since the bracket is exactly .
Substitute into the equation.
The identity holds for all and all , so the function is a genuine solution.
Note what this means physically and structurally. is simple harmonic motion, and spans its full two-dimensional solution space — so is the member with both coefficients equal to . It can be rewritten in amplitude-phase form as , revealing amplitude and period .
Verify numerically. With , a second-order central difference of step gives values matching at to four significant figures ✓, and the amplitude-phase rewrite agrees with the original at every test point ✓.
Need to solve a different problem like this? Open the solver →