On integrating, we have
which equals 12ex2+c\frac{1}{2}e^{x^{2}}+c. Dividing both sides by ex2e^{x^{2}}, we obtain solutions y=12+ce-x2y={\frac{1}{2}+ce^{-x^{2}}} where cc is an arbitrary constant.
Let’s verify that this gives a solution of the equation: we have dydx=-2cxe-x2,\frac{dy}{dx}={-2cxe^{-x^{2}},} so
as required.