72.5.27 problem 23

Internal problem ID [14713]
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.6 page 89
Problem number : 23
Date solved : Tuesday, January 28, 2025 at 07:12:23 AM
CAS classification : [_quadrature]

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

With initial conditions

\begin{align*} y \left (0\right )&=2 \end{align*}

Solution by Maple

Time used: 0.065 (sec). Leaf size: 17

dsolve([diff(y(t),t)=y(t)^2-4*y(t)+2,y(0) = 2],y(t), singsol=all)
 
\[ y = 2-\sqrt {2}\, \tanh \left (\sqrt {2}\, t \right ) \]

Solution by Mathematica

Time used: 0.023 (sec). Leaf size: 46

DSolve[{D[y[t],t]==y[t]^2-4*y[t]+2,{y[0]==2}},y[t],t,IncludeSingularSolutions -> True]
 
\[ y(t)\to \frac {-\left (\sqrt {2}-2\right ) e^{2 \sqrt {2} t}+2+\sqrt {2}}{e^{2 \sqrt {2} t}+1} \]