71.3.3 problem 2 (C)

Internal problem ID [14353]
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)
Date solved : Tuesday, January 28, 2025 at 06:27:25 AM
CAS classification : [_quadrature]

\begin{align*} y^{\prime }&=1-y \end{align*}

Solution by Maple

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

dsolve(diff(y(x),x)=1-y(x),y(x), singsol=all)
 
\[ y = 1+c_{1} {\mathrm e}^{-x} \]

Solution by Mathematica

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

DSolve[D[y[x],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*}