29.30.24 problem 884

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

\begin{align*} 4 x {y^{\prime }}^{2}&=\left (a -3 x \right )^{2} \end{align*}

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