3.12 problem 16

Internal problem ID [12940]

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.4 page 61
Problem number: 16.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_quadrature]

\[ \boxed {y^{\prime }+y=2} \] With initial conditions \begin {align*} [y \left (0\right ) = 1] \end {align*}

Solution by Maple

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

dsolve([diff(y(t),t)=2-y(t),y(0) = 1],y(t), singsol=all)
 

\[ y \left (t \right ) = 2-{\mathrm e}^{-t} \]

Solution by Mathematica

Time used: 0.039 (sec). Leaf size: 14

DSolve[{y'[t]==2-y[t],{y[0]==1}},y[t],t,IncludeSingularSolutions -> True]
 

\[ y(t)\to 2-e^{-t} \]