Internal problem ID [12598]
Book: Ordinary Differential Equations by Charles E. Roberts, Jr. CRC Press. 2010
Section: Chapter 1. Introduction. Exercises 1.3, page 27
Problem number: 2.
ODE order: 1.
ODE degree: 1.
CAS Maple gives this as type [[_linear, `class A`]]
\[ \boxed {y^{\prime }+y=x^{2}+2 x -1} \]
✓ Solution by Maple
Time used: 0.0 (sec). Leaf size: 15
dsolve(diff(y(x),x)+y(x)=x^2+2*x-1,y(x), singsol=all)
\[ y \left (x \right ) = x^{2}-1+c_{1} {\mathrm e}^{-x} \]
✓ Solution by Mathematica
Time used: 0.088 (sec). Leaf size: 18
DSolve[y'[x]+y[x]==x^2+2*x-1,y[x],x,IncludeSingularSolutions -> True]
\[ y(x)\to x^2+c_1 e^{-x}-1 \]