29.27.24 problem 790

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

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

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