2.6 problem 6

Internal problem ID [2585]

Book: Differential equations with applications and historial notes, George F. Simmons, 1971
Section: Chapter 2, section 8, page 41
Problem number: 6.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_separable]

Solve \begin {gather*} \boxed {\cos \relax (x ) \left (\cos ^{2}\relax (y)\right )+2 \sin \relax (x ) \sin \relax (y) \cos \relax (y) y^{\prime }=0} \end {gather*}

Solution by Maple

Time used: 0.2 (sec). Leaf size: 31

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

\begin{align*} y \relax (x ) = \frac {\pi }{2} \\ y \relax (x ) = \arccos \left (\sqrt {c_{1} \sin \relax (x )}\right ) \\ y \relax (x ) = \pi -\arccos \left (\sqrt {c_{1} \sin \relax (x )}\right ) \\ \end{align*}

Solution by Mathematica

Time used: 1.99 (sec). Leaf size: 73

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

\begin{align*} y(x)\to -\frac {\pi }{2} \\ y(x)\to \frac {\pi }{2} \\ y(x)\to -\text {ArcCos}\left (-\frac {1}{4} c_1 \sqrt {\sin (x)}\right ) \\ y(x)\to \text {ArcCos}\left (-\frac {1}{4} c_1 \sqrt {\sin (x)}\right ) \\ y(x)\to -\frac {\pi }{2} \\ y(x)\to \frac {\pi }{2} \\ \end{align*}