1.26 problem 2(p)

Internal problem ID [3027]

Book: Theory and solutions of Ordinary Differential equations, Donald Greenspan, 1960
Section: Exercises, page 14
Problem number: 2(p).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

\[ \boxed {y^{\prime } \cos \left (x \right )+y \sin \left (x \right )=1} \] With initial conditions \begin {align*} [y \left (0\right ) = 0] \end {align*}

Solution by Maple

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

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

\[ y \left (x \right ) = \sin \left (x \right ) \]

Solution by Mathematica

Time used: 0.047 (sec). Leaf size: 7

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

\[ y(x)\to \sin (x) \]