10.2.3 problem 3

Internal problem ID [1131]
Book : Elementary differential equations and boundary value problems, 10th ed., Boyce and DiPrima
Section : Section 2.2. Page 48
Problem number : 3
Date solved : Monday, January 27, 2025 at 04:35:06 AM
CAS classification : [_separable]

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

Solution by Maple

Time used: 0.003 (sec). Leaf size: 12

dsolve(sin(x)*y(x)^2+diff(y(x),x) = 0,y(x), singsol=all)
 
\[ y = \frac {1}{-\cos \left (x \right )+c_1} \]

Solution by Mathematica

Time used: 0.115 (sec). Leaf size: 19

DSolve[Sin[x]*y[x]^2+D[y[x],x]== 0,y[x],x,IncludeSingularSolutions -> True]
 
\begin{align*} y(x)\to -\frac {1}{\cos (x)+c_1} \\ y(x)\to 0 \\ \end{align*}