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 ,
differentiate both sides with respect to
Then solve it by separating the variables ..