I was given the equation of motion for a damped oscillator is
$$\frac{{\rm d}^2x}{{\rm d}t^2} + \frac{b}{m}\frac{{\rm d}x}{{\rm d}t} + \frac{k}{m}x= 0$$ and the solution of the motion equation is
$$x(t)=A \exp\left(-(b/2m)t\right)\cos(\omega t+\phi).$$ Now how do I go from the solution of the motion equation to this, while using the first and second derivative to solve: $$ω=\sqrt{\frac{k}{m} - \frac{b^2}{4 m^2}}.$$ I feel like I can do it just that I get confused on what is the derivative for A, $\omega$, and $\phi$. Any help will be appreciated thank you.