I am unsure if I am getting the correct answer to my problem, I have to find y

\(\displaystyle \frac{dy}{dx} = y\cos(x)\) which goes to

\(\displaystyle \int\frac{1}{\cos(x)\cdot dx} = \int\frac{y}{dy}\) then

\(\displaystyle ln(\cos(x)) + c = y^2\) therefore

\(\displaystyle y = \sqrt{ln(\cos(x)) + c}\)

Is this correct, if not where am i going wrong?

Thanks