Internal problem ID [2701]
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: 66.
ODE order: 1.
ODE degree: 1.
CAS Maple gives this as type [_linear]
Solve \begin {gather*} \boxed {y^{\prime }-\left (\sin ^{2}\relax (x )-y\right ) \cos \relax (x )=0} \end {gather*}
✓ Solution by Maple
Time used: 0.0 (sec). Leaf size: 23
dsolve(diff(y(x),x)=( sin(x)^2-y(x))*cos(x),y(x), singsol=all)
\[ y \relax (x ) = \frac {5}{2}-2 \sin \relax (x )-\frac {\cos \left (2 x \right )}{2}+{\mathrm e}^{-\sin \relax (x )} c_{1} \]
✓ Solution by Mathematica
Time used: 0.113 (sec). Leaf size: 30
DSolve[y'[x]==( Sin[x]^2-y[x])*Cos[x],y[x],x,IncludeSingularSolutions -> True]
\begin{align*} y(x)\to -2 \sin (x)-\frac {1}{2} \cos (2 x)+c_1 e^{-\sin (x)}+\frac {5}{2} \\ \end{align*}