3.6 problem 3 (F)

Internal problem ID [12620]

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: 3 (F).
ODE order: 1.
ODE degree: 1.

CAS Maple gives this as type [_quadrature]

\[ \boxed {y^{\prime }+y^{2}=4} \]

Solution by Maple

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

dsolve(diff(y(x),x)=4-y(x)^2,y(x), singsol=all)
 

\[ y \left (x \right ) = \frac {2 c_{1} {\mathrm e}^{4 x}+2}{-1+c_{1} {\mathrm e}^{4 x}} \]

Solution by Mathematica

Time used: 0.278 (sec). Leaf size: 45

DSolve[y'[x]==4-y[x]^2,y[x],x,IncludeSingularSolutions -> True]
                                                                                    
                                                                                    
 

\begin{align*} y(x)\to \frac {2 \left (e^{4 x}-e^{4 c_1}\right )}{e^{4 x}+e^{4 c_1}} \\ y(x)\to -2 \\ y(x)\to 2 \\ \end{align*}