Step 1: Put the equation in the form \(\frac{dy}{dx} = f(x, y)\).
From \(2xy + y^2 - 2x^2\frac{dy}{dx} = 0\) we get
\[ \frac{dy}{dx} = \frac{2xy + y^2}{2x^2} \]
Step 2: Identify the type.
Every term in the numerator and denominator has degree 2. So the right side depends only on \(\frac{y}{x}\), and the equation is homogeneous. We use the substitution \(y = vx\).
Step 3: Substitute \(y = vx\).
Then \(\dfrac{dy}{dx} = v + x\dfrac{dv}{dx}\). The right side becomes
\[ \frac{2x(vx) + v^2x^2}{2x^2} = \frac{2v + v^2}{2} = v + \frac{v^2}{2} \]
So
\[ v + x\frac{dv}{dx} = v + \frac{v^2}{2} \quad\Rightarrow\quad x\frac{dv}{dx} = \frac{v^2}{2} \]
Step 4: Separate the variables.
\[ \frac{dv}{v^2} = \frac{dx}{2x} \]
Step 5: Integrate both sides.
\[ -\frac{1}{v} = \frac{1}{2}\log|x| + C \]
Now put back \(v = \frac{y}{x}\):
\[ -\frac{x}{y} = \frac{1}{2}\log|x| + C \]
Step 6: Use the condition \(y = 2\) when \(x = 1\).
\[ -\frac{1}{2} = \frac{1}{2}\log 1 + C \]
Since \(\log 1 = 0\), we get \(C = -\frac{1}{2}\).
Step 7: Write the particular solution.
\[ -\frac{x}{y} = \frac{1}{2}\log|x| - \frac{1}{2} \quad\Rightarrow\quad \frac{x}{y} = \frac{1 - \log|x|}{2} \]
So \(y = \dfrac{2x}{1 - \log|x|}\). Near \(x = 1\) the value of \(x\) is positive, so \(|x| = x\).
Final Answer:
The particular solution is
\[ \boxed{y = \frac{2x}{1 - \log x}} \]