3.3 problem 2 (C)

Internal problem ID [12297]

Book: Ordinary Differential Equations by Charles E. Roberts, Jr. CRC Press. 2010
Section: Chapter 2. The Initial Value Problem. Exercises 2.1, page 40
Problem number: 2 (C).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_quadrature]

\[ \boxed {y^{\prime }+y=1} \]

Solution by Maple

Time used: 0.015 (sec). Leaf size: 12

dsolve(diff(y(x),x)=1-y(x),y(x), singsol=all)
 

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

Solution by Mathematica

Time used: 0.035 (sec). Leaf size: 20

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

\begin{align*} y(x)\to 1+c_1 e^{-x} y(x)\to 1 \end{align*}