We have the differential equation dxdy=x−yx+y−2. To simplify, we substitute X=x−1 and Y=y−1 so that x=X+1, y=Y+1, and dXdY=dxdy. The equation becomes dXdY=(X+1)−(Y+1)(X+1)+(Y+1)−2=X−YX+Y.
Now we use the substitution Y=vX so that dXdY=v+XdXdv. Substituting gives v+XdXdv=X−vXX+vX=1−v1+v. Hence XdXdv=1−v1+v−v=1−v1+v−v+v2=1−v1+v2.
Separating variables, we get 1+v21−vdv=XdX. We split the left side as 1+v21dv−1+v2vdv=XdX. Integrating both sides gives tan−1(v)−21ln(1+v2)=ln∣X∣+C.
Substituting back v=XY=x−1y−1, we obtain tan−1(x−1y−1)−21ln(1+(x−1)2(y−1)2)=ln∣x−1∣+C. Now 21ln(1+(x−1)2(y−1)2)=21ln((x−1)2(x−1)2+(y−1)2)=21ln((x−1)2+(y−1)2)−ln∣x−1∣.
Substituting this back, the equation simplifies to tan−1(x−1y−1)−21ln((x−1)2+(y−1)2)+ln∣x−1∣=ln∣x−1∣+C, which gives tan−1(x−1y−1)=21ln((x−1)2+(y−1)2)+C.
We use the condition that the curve passes through (2,1). Substituting x=2,y=1: tan−1(0)=21ln(1)+C, so C=0. The solution curve is therefore tan−1(x−1y−1)=21ln((x−1)2+(y−1)2).
Now we apply the condition that the curve passes through (k+1,2). Substituting x=k+1,y=2: tan−1(k1)=21ln(k2+1). Multiplying both sides by 2 gives 2tan−1(k1)=ln(k2+1)=loge(k2+1).
Hence, the correct answer is Option A.