Internal problem ID [3692]
Book: Ordinary differential equations and their solutions. By George Moseley Murphy.
1960
Section: Various 15
Problem number: 438.
ODE order: 1.
ODE degree: 1.
CAS Maple gives this as type [[_linear, `class A`]]
\[ \boxed {-y^{\prime }-y=x -1} \]
✓ Solution by Maple
Time used: 0.0 (sec). Leaf size: 15
dsolve(1-diff(y(x),x) = x+y(x),y(x), singsol=all)
\[ y \left (x \right ) = -x +2+{\mathrm e}^{-x} c_{1} \]
✓ Solution by Mathematica
Time used: 0.041 (sec). Leaf size: 18
DSolve[1-y'[x]==x+y[x],y[x],x,IncludeSingularSolutions -> True]
\[ y(x)\to -x+c_1 e^{-x}+2 \]