1.53 problem 54

Internal problem ID [3198]

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: 54.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.042 (sec). Leaf size: 15

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

\[ y(x)\to -\cos (x)+c_1 \sin (x) \]