Exercise 11
when
Not cross-checked
This solution has not been cross-checked against the answer printed in NCERT.
NCERT’s answer
\(\displaystyle \log \left(x^{2}+y^{2}\right)+2 \tan ^{-1} \frac{y}{x}=\frac{\pi}{2}+\log 2\)
Write the equation as \(\displaystyle \frac{dy}{dx}=\frac{y-x}{x+y}\); numerator and denominator are homogeneous of degree $\displaystyle 1$, so the equation is homogeneous.Put \(\displaystyle y=vx\), \(\displaystyle \frac{dy}{dx}=v+x\frac{dv}{dx}\):
\[v+x\frac{dv}{dx}=\frac{vx-x}{x+vx}=\frac{v-1}{1+v},\]
\[x\frac{dv}{dx}=\frac{v-1-v\left(1+v\right)}{1+v}=-\frac{1+v^{2}}{1+v}.\]
Separating the variables and splitting the left side,
\[\frac{1+v}{1+v^{2}}\,dv=-\frac{dx}{x}\quad\Longrightarrow\quad\int\frac{dv}{1+v^{2}}+\int\frac{v\,dv}{1+v^{2}}=-\int\frac{dx}{x},\]
\[\tan^{-1}v+\frac12\log\left(1+v^{2}\right)=-\log|x|+\mathrm C.\]
With \(\displaystyle v=\frac yx\), \(\displaystyle \frac12\log\left(1+\frac{y^{2}}{x^{2}}\right)=\frac12\log\left(x^{2}+y^{2}\right)-\log|x|\), and the \(\displaystyle \log|x|\) terms cancel:
\[\tan^{-1}\frac yx+\frac12\log\left(x^{2}+y^{2}\right)=\mathrm C.\]
Apply the condition \(\displaystyle y=1\) when \(\displaystyle x=1\):
\[\tan^{-1}1+\frac12\log 2=\mathrm C\quad\Longrightarrow\quad\mathrm C=\frac{\pi}{4}+\frac12\log 2.\]
The particular solution is
\[\tan^{-1}\left(\frac yx\right)+\frac12\log\left(x^{2}+y^{2}\right)=\frac{\pi}{4}+\frac12\log 2,\]
or equivalently \(\displaystyle \log\left(x^{2}+y^{2}\right)+2\tan^{-1}\left(\frac yx\right)=\frac{\pi}{2}+\log 2\).