1.64 problem 65

Internal problem ID [2700]

Book: Differential equations for engineers by Wei-Chau XIE, Cambridge Press 2010
Section: Chapter 2. First-Order and Simple Higher-Order Differential Equations. Page 78
Problem number: 65.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

\[ y \left (x \right ) = \left (-\sin \left (x \right )+x +c_{1} \right ) \left (\cos \left (x \right )+1\right ) \]

Solution by Mathematica

Time used: 0.09 (sec). Leaf size: 24

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

\begin{align*} y(x)\to \cos ^2\left (\frac {x}{2}\right ) (2 x-2 \sin (x)+c_1) \\ \end{align*}