\((x + y)\,dy + (x - y)\,dx = 0;\ y = 1\) when \(x = 1\)
Show solutionHide solution
The equation is \[ (x+y)\,dy+(x-y)\,dx=0. \] It is homogeneous; put \(y=vx\), so \(dy=v\,dx+x\,dv\). Substitution gives \[ (x+vx)(v\,dx+x\,dv)+(x-vx)\,dx=0. \] Simplifying, \[ (v^2+1)\,dx+x(1+v)\,dv=0. \] Near the initial point \(x\ne0\), and since \(1+v^2>0\), separate variables: \[ \frac{dx}{x}+\frac{1+v}{1+v^2}\,dv=0. \] Integrating, \[ \ln|x|+\tan^{-1}v+\frac12\ln(1+v^2)=C. \] With \(v=y/x\), \[ \ln|x|+\tan^{-1}\frac yx+\frac12\ln\left(1+\frac{y^2}{x^2}\right)=C. \] On the branch containing \((1,1)\) (so \(x>0\) near that point, using the principal value of \(\tan^{-1}\)), this simplifies to \[ \frac12\ln(x^2+y^2)+\tan^{-1}\frac yx=C. \] Since \(y=1\) when \(x=1\), \[ C=\frac12\ln(1^2+1^2)+\tan^{-1}(1)=\frac12\ln2+\frac{\pi}{4}. \] Hence the particular solution is \[ \boxed{\frac12\ln(x^2+y^2)+\tan^{-1}\frac yx=\frac12\ln2+\frac{\pi}{4}} \] for the branch near \((1,1)\). Equivalently, \[ \boxed{\ln\frac{x^2+y^2}{2}+2\tan^{-1}\frac yx=\frac{\pi}{2}}. \] A branch-free polar form is obtained by writing \(x=r\cos\theta,\ y=r\sin\theta\), where \(\theta\) is chosen continuously to equal \(\pi/4\) at \((1,1)\). Then the equation reduces to \(dr+r\,d\theta=0\), so \[ \ln r+\theta=\ln\sqrt2+\frac{\pi}{4}. \] This describes the continuation across \(x=0\), away from the origin \(r=0\).
Verification: differentiating the implicit expression gives \[ d\left(\frac12\ln(x^2+y^2)+\tan^{-1}\frac yx\right) =\frac{x-y}{x^2+y^2}\,dx+\frac{x+y}{x^2+y^2}\,dy, \] so its zero level curves satisfy the original differential equation, and substituting \(x=1,y=1\) gives the chosen constant.