The given differential equation can be written as:
xy dx = (x² + y²) dy
Dividing both sides by xy², we get:
(dx / y) = ((x² + y²) / xy²) dy
Rewriting the equation:
(dx / y) = (x / y²) dy + (1 / x) dy
Let u = x / y, then x = uy and dx = u dy + y du.
Substituting these into the equation gives:
(u dy + y du) / y = (u² + 1) / u dy
This simplifies to:
u dy + du = (u² + 1) / u dy
Rearranging terms and integrating:
du = ((u² + 1) / u - u) dy = (1 / u) dy
Integrating both sides:
∫ du = ∫ (1 / u) dy
which results in:
u = ln(y) + C
Given that y(0) = 1, solve for C. Substituting u = x / y back:
x / y = ln(y) + C
Squaring both sides to eliminate the logarithm leads to:
y² = ex² y²