Given,
dxdy+2x−12x−y(2y−1)=0
Rearranging,
dxdy=−2y(2x−1)2x(2y−1)
2y−12ydy=−2x−12xdx
Integrating both sides,
∫2y−12ydy=−∫2x−12xdx
Using
∫2t−12tdt=ln21ln(2t−1)
we get
ln(2y−1)+ln(2x−1)=C
(2y−1)(2x−1)=k
Using the condition
y(1)=1
we get
(21−1)(21−1)=k
k=1
Hence,
(2y−1)(2x−1)=1
Now, at
x=2
(2y−1)(4−1)=1
3(2y−1)=1
2y=34
y=log234
y=2−log23
Hence,
2−log23