11.11 problem 302

Internal problem ID [3558]

Book: Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section: Various 11
Problem number: 302.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [`y=_G(x,y')`]

\[ \boxed {\left (x^{2}+1\right ) y^{\prime }+\sin \left (y\right ) x \cos \left (y\right )-x \left (x^{2}+1\right ) \cos \left (y\right )^{2}=0} \]

Solution by Maple

Time used: 0.015 (sec). Leaf size: 191

dsolve((x^2+1)*diff(y(x),x)+x*sin(y(x))*cos(y(x)) = x*(x^2+1)*cos(y(x))^2,y(x), singsol=all)
 

\[ y \left (x \right ) = \frac {\arctan \left (\frac {6 \sqrt {x^{2}+1}\, x^{4}+12 \sqrt {x^{2}+1}\, x^{2}+18 c_{1} x^{2}+6 \sqrt {x^{2}+1}+18 c_{1}}{\sqrt {x^{2}+1}\, \left (x^{6}+6 \sqrt {x^{2}+1}\, c_{1} x^{2}+3 x^{4}+6 \sqrt {x^{2}+1}\, c_{1} +9 c_{1}^{2}+12 x^{2}+10\right )}, -\frac {x^{6}+6 \sqrt {x^{2}+1}\, c_{1} x^{2}+3 x^{4}+6 \sqrt {x^{2}+1}\, c_{1} +9 c_{1}^{2}-6 x^{2}-8}{x^{6}+6 \sqrt {x^{2}+1}\, c_{1} x^{2}+3 x^{4}+6 \sqrt {x^{2}+1}\, c_{1} +9 c_{1}^{2}+12 x^{2}+10}\right )}{2} \]

Solution by Mathematica

Time used: 8.716 (sec). Leaf size: 97

DSolve[(1+x^2)y'[x]+x Sin[y[x]] Cos[y[x]]==x(1+x^2) (Cos[y[x]])^2,y[x],x,IncludeSingularSolutions -> True]
 

\begin{align*} y(x)\to \arctan \left (\frac {x^4+2 x^2-6 c_1 \sqrt {x^2+1}+1}{3 x^2+3}\right ) y(x)\to -\frac {1}{2} \pi \sqrt {\frac {1}{x^2+1}} \sqrt {x^2+1} y(x)\to \frac {1}{2} \pi \sqrt {\frac {1}{x^2+1}} \sqrt {x^2+1} \end{align*}