6.10 problem 134

Internal problem ID [15036]

Book: A book of problems in ordinary differential equations. M.L. KRASNOV, A.L. KISELYOV, G.I. MARKARENKO. MIR, MOSCOW. 1983
Section: Section 6. Linear equations of the first order. The Bernoulli equation. Exercises page 54
Problem number: 134.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_separable]

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

Solution by Maple

Time used: 0.016 (sec). Leaf size: 5

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

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

Solution by Mathematica

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

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

\[ y(x)\to 1 \]