7.3.31 problem 31

Internal problem ID [71]
Book : Elementary Differential Equations. By C. Henry Edwards, David E. Penney and David Calvis. 6th edition. 2008
Section : Chapter 1. First order differential equations. Section 1.4 (separable equations). Problems at page 43
Problem number : 31
Date solved : Friday, February 07, 2025 at 07:47:47 AM
CAS classification : [_quadrature]

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

With initial conditions

\begin{align*} y \left (a \right )&=b \end{align*}

Solution by Maple

Time used: 0.014 (sec). Leaf size: 27

dsolve([diff(y(x),x)= 2*sqrt(y(x)),y(a) = b],y(x), singsol=all)
 
\[ y = \left (-2 a +2 x \right ) \sqrt {b}+a^{2}-2 x a +x^{2}+b \]

Solution by Mathematica

Time used: 0.098 (sec). Leaf size: 33

DSolve[{D[y[x],x]== 2*Sqrt[y[x]],{y[a]==b}},y[x],x,IncludeSingularSolutions -> True]
 
\begin{align*} y(x)\to \left (a+\sqrt {b}-x\right )^2 \\ y(x)\to \left (-a+\sqrt {b}+x\right )^2 \\ \end{align*}