7.42 problem 42

Internal problem ID [13144]

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: 42.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_quadrature]

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

Solution by Maple

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

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

\[ y \left (x \right ) = -x^{2}-\cos \left (x \right )+c_{1} \]

Solution by Mathematica

Time used: 0.009 (sec). Leaf size: 17

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

\[ y(x)\to -x^2-\cos (x)+c_1 \]