5.14 problem 14

Internal problem ID [11651]

Book: Differential Equations by Shepley L. Ross. Third edition. John Willey. New Delhi. 2004.
Section: Chapter 2, section 2.3 (Linear equations). Exercises page 56
Problem number: 14.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.173 (sec). Leaf size: 21

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

\[ y(x)\to \frac {-2 \sin (x)+c_1}{\cos (2 x)-3} \]