29.33.8 problem 970

Internal problem ID [5547]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 33
Problem number : 970
Date solved : Sunday, March 30, 2025 at 08:35:52 AM
CAS classification : [_quadrature]

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

Maple. Time used: 0.008 (sec). Leaf size: 49
ode:=y(x)^2*diff(y(x),x)^2 = a^2; 
dsolve(ode,y(x), singsol=all);
 
\begin{align*} y &= \sqrt {2 a x +c_1} \\ y &= -\sqrt {2 a x +c_1} \\ y &= \sqrt {-2 a x +c_1} \\ y &= -\sqrt {-2 a x +c_1} \\ \end{align*}
Mathematica. Time used: 0.225 (sec). Leaf size: 85
ode=y[x]^2(D[y[x],x])^2==a^2; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to -\sqrt {2} \sqrt {-a x+c_1} \\ y(x)\to \sqrt {2} \sqrt {-a x+c_1} \\ y(x)\to -\sqrt {2} \sqrt {a x+c_1} \\ y(x)\to \sqrt {2} \sqrt {a x+c_1} \\ \end{align*}
Sympy. Time used: 1.023 (sec). Leaf size: 51
from sympy import * 
x = symbols("x") 
a = symbols("a") 
y = Function("y") 
ode = Eq(-a**2 + y(x)**2*Derivative(y(x), x)**2,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ \left [ y{\left (x \right )} = - \sqrt {C_{1} - 2 a x}, \ y{\left (x \right )} = \sqrt {C_{1} - 2 a x}, \ y{\left (x \right )} = - \sqrt {C_{1} + 2 a x}, \ y{\left (x \right )} = \sqrt {C_{1} + 2 a x}\right ] \]