Step 1: Write the equation as dy/dx:
From \( x^{2}\,dy + y(x+y)\,dx = 0 \) we get
\[ \dfrac{dy}{dx} = -\dfrac{y(x+y)}{x^{2}} = -\dfrac{y}{x} - \dfrac{y^{2}}{x^{2}} \]
The right side depends only on \( y/x \), so the equation is homogeneous.
Step 2: Substitute y = vx:
Put \( y = vx \). Then \( \dfrac{dy}{dx} = v + x\dfrac{dv}{dx} \).
\[ v + x\dfrac{dv}{dx} = -v - v^{2} \]
\[ x\dfrac{dv}{dx} = -v^{2} - 2v = -v(v+2) \]
Step 3: Separate the variables:
\[ \dfrac{dv}{v(v+2)} = -\dfrac{dx}{x} \]
Split the left side into partial fractions.
\[ \dfrac{1}{v(v+2)} = \dfrac{1}{2}\left(\dfrac{1}{v} - \dfrac{1}{v+2}\right) \]
Step 4: Integrate both sides:
\[ \dfrac{1}{2}\left(\log|v| - \log|v+2|\right) = -\log|x| + \log|c_1| \]
\[ \log\left|\dfrac{v}{v+2}\right| = \log\left|\dfrac{c_2}{x^{2}}\right| \Rightarrow \dfrac{v}{v+2} = \dfrac{C}{x^{2}} \]
Step 5: Go back to x and y:
Replace \( v = y/x \). Then \( \dfrac{v}{v+2} = \dfrac{y}{y + 2x} \).
\[ \dfrac{y}{y+2x} = \dfrac{C}{x^{2}} \Rightarrow x^{2}y = C(y + 2x) \]
Final Answer:
The general solution is
\[ \boxed{x^{2}y = C\,(y + 2x)} \]
where \( C \) is an arbitrary constant.