The differential equation for where A and B are arbitrary constants is
Let us find the differential equation by differentiating y with respect to x twice
Why twice because we have to eliminate two constants A and B
y = A cos αx + B sin αx
Differentiating
Differentiating again
But y = A cos αx + B sin αx