Solution:
Concept: In both parts dxdy is a function of xy, so we put y=vx; then dxdy=v+xdxdv. After integrating, the given point fixes the constant.
Step 1 — Part (i): substitute y=vx.
We make dxdy the subject and divide the top and bottom by x2.
dxdy=2x22xy+y2
v+xdxdv=v+2v2
xdxdv=2v2
Step 2 — Part (i): separate and integrate.
We multiply by v22 and divide by x, then integrate.
v22dv=xdx
−v2=log∣x∣+c
−y2x=log∣x∣+c
Step 3 — Part (i): use x=1, y=2.
We substitute. Since log1=0, we get c at once.
−22=0+c
c=−1
Step 4 — Part (i): solve for y.
We put c=−1 and make y the subject.
−y2x=log∣x∣−1
y2x=1−log∣x∣
y=1−log∣x∣2x
Step 5 — Part (ii): substitute y=vx.
We divide by xdx, so the right side becomes a function of xy.
dxdy=ey/x+xy
v+xdxdv=ev+v
xdxdv=ev
Step 6 — Part (ii): separate and integrate.
We multiply by e−v and divide by x. The given point has x>0, so we write logx.
e−vdv=xdx
−e−v=logx+c
Step 7 — Part (ii): use x=1, y=1.
At this point v=1 and log1=0.
−e−1=0+c
c=−e1
−e−y/x=logx−e1
Therefore, (i) y=1−log∣x∣2x; (ii) −e−y/x=logx−e1, for x>0.