The given differential equation is: \(x \, dy - y \, dx = \sqrt{x^2 + y^2} \, dx.\)
We can rearrange this equation as:
\(x \, dy = y \, dx + \sqrt{x^2 + y^2} \, dx.\)
Dividing the entire equation by \(dx\), we obtain:
\(x \frac{dy}{dx} = y + \sqrt{x^2 + y^2}.\)
This is a first-order linear differential equation. To isolate variables, consider:
\(x \frac{dy}{dx} = y + \sqrt{x^2 + y^2}\)
\(\frac{dy}{dx} = \frac{y + \sqrt{x^2 + y^2}}{x}\)
Rearrange to integrate both sides:
\(\int dy = \int \frac{y + \sqrt{x^2 + y^2}}{x} \, dx\)
Integrating the right-hand side by separation, we have:
\(\int \frac{dy}{dx} \, dx = \int \left(\frac{y}{x} + \frac{\sqrt{x^2 + y^2}}{x}\right) dx\)
From the integration of each component, we can determine:
\(\int \frac{dy}{dx} \, dx = y\) and \(\int \frac{y}{x} \, dx = y \ln |x|\)
Substituting back and solving, this simplifies to:
\(y + \sqrt{x^2 + y^2} = cx^2\)
This matches the given option \( y + \sqrt{x^2 + y^2} = cx^2\), demonstrating it is the correct general solution by integration.