Say for example I've got the equation of a SHM as: $$x = A \cos (\omega t + \phi)$$ where $A$ is the amplitude.
How do I find the time period of this motion?
I tried by finding the second order differential of the given equation.
$a = \dfrac {d^2 x}{d t^2} = - A \omega ^2 \cos (\omega t + \phi)$
Comparing it with the general equation for acceleration $a = - \omega ^2 x$, we can find $\omega$ from here.
But that is where the problem is coming. It makes no sense if I write $\omega = \omega \sqrt {A}$.
What is the correct method to find the time period of the SHM? What am I missing?