Internal problem ID [10552]
Book: Differential Equations by Shepley L. Ross. Third edition. John Willey. New Delhi.
2004.
Section: Chapter 1, Differential equations and their solutions. Exercises page 13
Problem number: 1(a).
ODE order: 1.
ODE degree: 1.
CAS Maple gives this as type [[_linear, `class A`]]
\[ \boxed {y^{\prime }+y-x -1=0} \]
✓ Solution by Maple
Time used: 0.0 (sec). Leaf size: 12
dsolve(diff(y(x),x)+y(x)=1+x,y(x), singsol=all)
\[ y \left (x \right ) = x +{\mathrm e}^{-x} c_{1} \]
✓ Solution by Mathematica
Time used: 0.028 (sec). Leaf size: 15
DSolve[y'[x]+y[x]==1+x,y[x],x,IncludeSingularSolutions -> True]
\begin{align*} y(x)\to x+c_1 e^{-x} \\ \end{align*}