71.2.4 problem 4

Internal problem ID [14257]
Book : Ordinary Differential Equations by Charles E. Roberts, Jr. CRC Press. 2010
Section : Chapter 1. Introduction. Exercises 1.3, page 27
Problem number : 4
Date solved : Wednesday, March 05, 2025 at 10:41:34 PM
CAS classification : [_separable]

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

Maple. Time used: 0.002 (sec). Leaf size: 16
ode:=diff(y(x),x) = x*y(x)^(1/2); 
dsolve(ode,y(x), singsol=all);
 
\[ \sqrt {y}-\frac {x^{2}}{4}-c_{1} = 0 \]
Mathematica. Time used: 0.118 (sec). Leaf size: 24
ode=D[y[x],x]==x*y[x]^(1/2); 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to \frac {1}{16} \left (x^2+2 c_1\right ){}^2 \\ y(x)\to 0 \\ \end{align*}
Sympy. Time used: 0.196 (sec). Leaf size: 19
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x*sqrt(y(x)) + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {C_{1}^{2}}{4} + \frac {C_{1} x^{2}}{4} + \frac {x^{4}}{16} \]