48.1.6 problem Example 3.6

Internal problem ID [7507]
Book : THEORY OF DIFFERENTIAL EQUATIONS IN ENGINEERING AND MECHANICS. K.T. CHAU, CRC Press. Boca Raton, FL. 2018
Section : Chapter 3. Ordinary Differential Equations. Section 3.2 FIRST ORDER ODE. Page 114
Problem number : Example 3.6
Date solved : Monday, January 27, 2025 at 03:03:02 PM
CAS classification : [_exact]

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

Solution by Maple

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

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

Solution by Mathematica

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

DSolve[(Exp[x]+y[x])+(x-2*Sin[y[x]])*D[y[x],x]==0,y[x],x,IncludeSingularSolutions -> True]
 
\[ \text {Solve}\left [x y(x)+2 \cos (y(x))+e^x=c_1,y(x)\right ] \]