We have dxdy=xy−1+x−y. Let us rearrange the right-hand side:
xy−y+x−1=y(x−1)+(x−1)=(x−1)(y+1)
So the differential equation becomes dxdy=(x−1)(y+1).
Separating variables: y+1dy=(x−1)dx
Integrating both sides: ln∣y+1∣=2x2−x+C
Using the initial condition y(0)=0: ln∣0+1∣=0−0+C, so C=0.
Therefore, ln(y+1)=2x2−x, which gives y+1=ex2/2−x, i.e., y=ex2/2−x−1.
At x=1: y(1)=e1/2−1−1=e−1/2−1.
Hence, the correct answer is Option A.