1.26 problem 2(p)

Internal problem ID [2518]

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]

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

Solution by Maple

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

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

\[ y \relax (x ) = \sin \relax (x ) \]

Solution by Mathematica

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

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

\begin{align*} y(x)\to \sin (x) \\ \end{align*}