62.12.21 problem Ex 22

Internal problem ID [12867]
Book : An elementary treatise on differential equations by Abraham Cohen. DC heath publishers. 1906
Section : Chapter 2, differential equations of the first order and the first degree. Article 19. Summary. Page 29
Problem number : Ex 22
Date solved : Tuesday, January 28, 2025 at 08:24:38 PM
CAS classification : [_rational]

\begin{align*} \left (x^{2}+y^{2}\right ) \left (x +y^{\prime } y\right )&=\left (x^{2}+y^{2}+x \right ) \left (-y+x y^{\prime }\right ) \end{align*}

Solution by Maple

Time used: 0.007 (sec). Leaf size: 45

dsolve((x^2+y(x)^2)*(x+y(x)*diff(y(x),x))=(x^2+y(x)^2+x)*(x*diff(y(x),x)-y(x)),y(x), singsol=all)
 
\[ y = -\cot \left (\operatorname {RootOf}\left (-2 \textit {\_Z} -\ln \left (\csc \left (\textit {\_Z} \right )^{2} x^{2}\right )+2 \ln \left (2 \csc \left (\textit {\_Z} \right )^{2} x^{2}+\cot \left (\textit {\_Z} \right ) x +x \right )+2 c_{1} \right )\right ) x \]

Solution by Mathematica

Time used: 0.484 (sec). Leaf size: 212

DSolve[(x^2+y[x]^2)*(x+y[x]*D[y[x],x])==(x^2+y[x]^2+x)*(x*D[y[x],x]-y[x]),y[x],x,IncludeSingularSolutions -> True]
 
\[ \text {Solve}\left [\int _1^{y(x)}\left (\frac {-x-K[2]}{2 \left (x^2+K[2]^2\right )}-\int _1^x\left (-\frac {K[2] (K[2]-K[1])}{\left (K[1]^2+K[2]^2\right )^2}+\frac {1}{2 \left (K[1]^2+K[2]^2\right )}-\frac {(4 K[1]+1) (4 K[2]-1)}{2 \left (2 K[1]^2+K[1]+2 K[2]^2-K[2]\right )^2}\right )dK[1]+\frac {4 K[2]-1}{2 \left (2 x^2+x+2 K[2]^2-K[2]\right )}\right )dK[2]+\int _1^x\left (\frac {4 K[1]+1}{2 \left (2 K[1]^2+K[1]+2 y(x)^2-y(x)\right )}+\frac {y(x)-K[1]}{2 \left (K[1]^2+y(x)^2\right )}\right )dK[1]=c_1,y(x)\right ] \]