Let \( x = x(y) \) be the solution of the differential equation \( y^2 \, dx + \left( x - \frac{1}{y} \right) dy = 0 \). If \( x(1) = 1 \), then \( x\!\left(\frac{1}{2}\right) \) is:
\( 3 + e \)
\( \frac{3}{2} + e \)
\( 3 - e \)
\( \frac{1}{2} + e \)