7.7 problem 7

Internal problem ID [12692]

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.9 page 133
Problem number: 7.
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_linear]

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

Solution by Maple

Time used: 0.0 (sec). Leaf size: 18

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

\[ y \left (t \right ) = \frac {t^{2}+2 t +3}{1+t} \]

Solution by Mathematica

Time used: 0.047 (sec). Leaf size: 19

DSolve[{y'[t]==-y[t]/(1+t)+2,{y[0]==3}},y[t],t,IncludeSingularSolutions -> True]
 

\[ y(t)\to \frac {t^2+2 t+3}{t+1} \]