53.4.7 problem 7

Internal problem ID [8495]
Book : Elementary differential equations. By Earl D. Rainville, Phillip E. Bedient. Macmilliam Publishing Co. NY. 6th edition. 1981.
Section : CHAPTER 16. Nonlinear equations. Section 101. Independent variable missing. EXERCISES Page 324
Problem number : 7
Date solved : Wednesday, March 05, 2025 at 06:01:13 AM
CAS classification : [[_2nd_order, _missing_x], [_2nd_order, _reducible, _mu_y_y1]]

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

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