Internal problem ID [54]
Book: Differential equations and linear algebra, 3rd ed., Edwards and Penney
Section: Section 1.5. Linear first order equations. Page 56
Problem number: 1.
ODE order: 1.
ODE degree: 1.
CAS Maple gives this as type [_quadrature]
Solve \begin {gather*} \boxed {y+y^{\prime }-2=0} \end {gather*} With initial conditions \begin {align*} [y \relax (0) = 0] \end {align*}
✓ Solution by Maple
Time used: 0.015 (sec). Leaf size: 12
dsolve([y(x)+diff(y(x),x) = 2,y(0) = 0],y(x), singsol=all)
\[ y \relax (x ) = 2-2 \,{\mathrm e}^{-x} \]
✓ Solution by Mathematica
Time used: 0.024 (sec). Leaf size: 14
DSolve[{y[x]+y'[x] == 2,y[0]==0},y[x],x,IncludeSingularSolutions -> True]
\begin{align*} y(x)\to 2-2 e^{-x} \\ \end{align*}