29.29.23 problem 845

Internal problem ID [5428]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 29
Problem number : 845
Date solved : Tuesday, March 04, 2025 at 09:39:03 PM
CAS classification : [[_homogeneous, `class A`], _rational, _dAlembert]

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

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