Solving RC filter by differential equation
For steady state sinusoidal response, the exponential term goes to zero and you are left with sine and cosine terms that can be expressed as amplitude and phase angle. The same result can be obtained by using Laplace analysis (replace C with the reactance 1/sC , followed by \$s\rightarrow j\omega\$) to find the steady state response.