1.5 problem 2 (b)

Internal problem ID [5916]

Book: An introduction to Ordinary Differential Equations. Earl A. Coddington. Dover. NY 1961
Section: Chapter 1.3 Introduction– Linear equations of First Order. Page 38
Problem number: 2 (b).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

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

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

\[ y \left (x \right ) = \sin \left (x \right )-1+c_{1} {\mathrm e}^{-\sin \left (x \right )} \]

Solution by Mathematica

Time used: 0.049 (sec). Leaf size: 18

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

\[ y(x)\to \sin (x)+c_1 e^{-\sin (x)}-1 \]