To put this into some context, I was considering the general equation for damped harmonic motion:
$\ddot z +2\gamma\dot z +\omega_0^2z=0$
and specifically there limiting cases where the the damping force (to which the second term corresponds) is zero, and where the restoring force (to which the last term corresponds) is zero.
In the second case, I yield the differential equation
$\ddot z +2\gamma\dot z=0$
and I solved this in the following way:
I split $\ddot z$ into $\frac{d}{dt}\dot z$ and then separated the vairables:
$\int\frac{1}{\dot z}d\dot z =\int-2\gamma dt$
which gives the exponential solution expected.
Now I am considering the case where there is simple harmonic motion with no damping, i.e. the case that gives rise to the differential equation:
$\ddot x +\omega_0^2 x=0$
I can't figre out- is there a way to solve this without just assuming an exponential solution and finding the constants in the solution? For example, in the equation above I was able to solve it by separating the variables. I'm not so sure this would work here where we have a second derivative of x and x itself, but i'm not sure.
Also, I would be grateful if anyone could recommend an online resource or book that explains how to solve different types of integrals and differential equations well. I have been trying to study this for some time but haven't come across anything that seems very complete, and perhaps something that has some worked examples?