72.1.5 problem 8

Internal problem ID [14605]
Book : DIFFERENTIAL EQUATIONS by Paul Blanchard, Robert L. Devaney, Glen R. Hall. 4th edition. Brooks/Cole. Boston, USA. 2012
Section : Chapter 1. First-Order Differential Equations. Exercises section 1.2. page 33
Problem number : 8
Date solved : Tuesday, January 28, 2025 at 06:44:16 AM
CAS classification : [_quadrature]

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

Solution by Maple

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

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

Solution by Mathematica

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

DSolve[D[y[t],t]==2-y[t],y[t],t,IncludeSingularSolutions -> True]
 
\begin{align*} y(t)\to 2+c_1 e^{-t} \\ y(t)\to 2 \\ \end{align*}