$x=x_0\cos(\omega t)$ describes the object that is at $x=x_0$ at $t=0$.
$$\begin{align*}
\frac{dx}{dt}&=\frac{d}{dt} x_0\cos(\omega t + \phi)\\
v&= -\omega x_0\sin(\omega t + \phi)\\
a&= -\omega^2 x_0\cos(\omega t + \phi)=-\omega^2 x
\end{align*}$$
e.g. For an object on a spring undergoing simple harmonic motion,
$$\begin{align*}
F&=-kx\\
ma&= -kx\\
a&= -\frac{k}{m}x\\
\therefore \frac{k}{m}&=\omega^2\\
\omega &= \sqrt{\frac{k}{m}}
\end{align*}$$
To find the electric field given Electric Potential at a certain radial distance,
$$E_r=-\frac{\delta V}{\delta r}$$