Celeb Glow
general | April 21, 2026

Finding the general solution of the differential equation $y' = xy$

$\begingroup$

Find the general solution of the differential equation: $y' = xy$.

Disagreeing with my friend on this, what's your take?

$\endgroup$ 3

2 Answers

$\begingroup$

The general solution to this ODE is $y(x)=C e^\frac{x^2}{2}$. This solution can be found using separation of variables.

$\endgroup$ $\begingroup$

$$\frac{dy}{dx}=-xy$$

$$\frac{1}{y}\frac{dy}{dx}=-x $$

$$\frac{1}{y}dy=-x dx \iff \int\frac{1}{y}=\int-x$$

$$\ln (y)+c=\frac{-(x^2)}{2} +c$$

$$2\ln(y)+c=-x^2+c$$

$$\ln y^2 = x^2 + c \iff y^2 = Ce^{x^2}\iff y = ce^{\frac{x^2}{2}}$$

$\endgroup$ 4

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy