5.17 problem 22

Internal problem ID [559]

Book: Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section: Section 2.6. Page 100
Problem number: 22.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_separable]

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

Solution by Maple

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

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

\[ y \relax (x ) = \arcsin \left (\frac {{\mathrm e}^{-x}}{c_{1} x^{2}}\right ) \]

Solution by Mathematica

Time used: 49.685 (sec). Leaf size: 23

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

\begin{align*} y(x)\to \csc ^{-1}\left (x^2 e^{x-c_1}\right ) \\ y(x)\to 0 \\ \end{align*}