There is a mistake in your solution

It is wrong because you can find it from the integrand is not just a function of , it is a function of and

To solve this differential equation ,

, substitute

differentiate both sides with respect to

therefore ,

Then solve it by separating the variables ..