We are given the differential equation dxdy=2y2x+y−2x with the condition y(0)=1 and we must find y(1).
First we simplify the right-hand side. We have 2x+y=2x⋅2y, so
2y2x+y−2x=2y2x⋅2y−2x=2x⋅2y2y−1=2x(1−2y1).
Thus the equation becomes dxdy=2x(1−2−y).
To separate the variables we divide by 1−2−y and multiply by dx, obtaining
1−2−ydy=2xdx.
Now we integrate both sides. For the left side we set u=2−y, so lnu=−yln2⟹y=−ln2lnu, hence dy=−ln21udu.
Substituting into the integral gives
∫1−2−ydy=−ln21∫u(1−u)du.
We use partial fractions: u(1−u)1=u1+1−u1, so
−ln21∫(u1+1−u1)du=−ln21(ln∣u∣−ln∣1−u∣)=ln21lnu1−u.
Replacing u by 2−y gives
∫1−2−ydy=ln21ln(2y−1).
For the right side we use the standard formula ∫axdx=lnaax+C. With a=2 we get
∫2xdx=ln22x+C.
Equating the two antiderivatives and multiplying through by ln2 yields
ln(2y−1)=2x+C1,
where C1 is a constant.
We apply the initial condition y(0)=1. Substituting x=0,y=1 gives
ln(21−1)=ln1=0=20+C1=1+C1,
so C1=−1.
Thus
ln(2y−1)=2x−1.
Exponentiating both sides we obtain
2y−1=e2x−1,so2y=1+e2x−1.
Taking logarithm base 2 finally gives
y=log2(1+e2x−1).
Now we need y(1). Putting x=1 makes 2x=2, hence
y(1)=log2(1+e2−1)=log2(1+e).
Hence, the correct answer is Option D.