7.41 problem 41

Internal problem ID [13143]

Book: Ordinary Differential Equations. An introduction to the fundamentals. Kenneth B. Howell. second edition. CRC Press. FL, USA. 2020
Section: Chapter 8. Review exercises for part of part II. page 143
Problem number: 41.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [[_linear, `class A`]]

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

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.048 (sec). Leaf size: 26

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

\[ y(x)\to \frac {2 \sin (x)}{5}-\frac {\cos (x)}{5}+c_1 e^{-2 x} \]