Issues with 1st order differential equation (integrating factor)

35 Views Asked by At

I've tried it a few times and I keep coming up with a different answer to the textbook.

The problem is: $2\frac{dy}{dx} - 10xy - 5x = 0$

I have come up with $y = Ce^{-\frac{5x^2}{2}}$

Whereas the textbook says it should be: $y = -\frac{1}{2} + Ce^{\frac{5x^2}{2}}$

I'm not sure how its coming up with this answer when dividing by the integrating factor of $e^{\frac{5x^2}{2}}$ to get $y$ on its own.

Any help is appreciated.