1.2 problem 1

Internal problem ID [3265]

Book: Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section: Various 1
Problem number: 1.
ODE order: 1.
ODE degree: 1.

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

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

Solution by Maple

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

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

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

Solution by Mathematica

Time used: 0.079 (sec). Leaf size: 28

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

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