75.12.6 problem 280

Internal problem ID [16801]
Book : A book of problems in ordinary differential equations. M.L. KRASNOV, A.L. KISELYOV, G.I. MARKARENKO. MIR, MOSCOW. 1983
Section : Section 12. Miscellaneous problems. Exercises page 93
Problem number : 280
Date solved : Monday, March 31, 2025 at 03:21:43 PM
CAS classification : [_exact, _rational]

\begin{align*} 3 x y^{2}-x^{2}+\left (3 x^{2} y-6 y^{2}-1\right ) y^{\prime }&=0 \end{align*}

Maple. Time used: 0.004 (sec). Leaf size: 769
ode:=3*x*y(x)^2-x^2+(3*x^2*y(x)-6*y(x)^2-1)*diff(y(x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\begin{align*} \text {Solution too large to show}\end{align*}

Mathematica. Time used: 8.181 (sec). Leaf size: 570
ode=(3*x*y[x]^2-x^2)+(3*x^2*y[x]-6*y[x]^2-1)*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to \frac {x^2}{4}-\frac {\sqrt [3]{-\frac {27 x^6}{4}+36 x^3+27 x^2+\sqrt {4 \left (6-\frac {9 x^4}{4}\right )^3+\left (-\frac {27 x^6}{4}+36 x^3+27 x^2+108 c_1\right ){}^2}+108 c_1}}{6 \sqrt [3]{2}}+\frac {6-\frac {9 x^4}{4}}{3\ 2^{2/3} \sqrt [3]{-\frac {27 x^6}{4}+36 x^3+27 x^2+\sqrt {4 \left (6-\frac {9 x^4}{4}\right )^3+\left (-\frac {27 x^6}{4}+36 x^3+27 x^2+108 c_1\right ){}^2}+108 c_1}} \\ y(x)\to \frac {x^2}{4}+\frac {\left (1-i \sqrt {3}\right ) \sqrt [3]{-\frac {27 x^6}{4}+36 x^3+27 x^2+\sqrt {4 \left (6-\frac {9 x^4}{4}\right )^3+\left (-\frac {27 x^6}{4}+36 x^3+27 x^2+108 c_1\right ){}^2}+108 c_1}}{12 \sqrt [3]{2}}-\frac {\left (1+i \sqrt {3}\right ) \left (6-\frac {9 x^4}{4}\right )}{6\ 2^{2/3} \sqrt [3]{-\frac {27 x^6}{4}+36 x^3+27 x^2+\sqrt {4 \left (6-\frac {9 x^4}{4}\right )^3+\left (-\frac {27 x^6}{4}+36 x^3+27 x^2+108 c_1\right ){}^2}+108 c_1}} \\ y(x)\to \frac {x^2}{4}+\frac {\left (1+i \sqrt {3}\right ) \sqrt [3]{-\frac {27 x^6}{4}+36 x^3+27 x^2+\sqrt {4 \left (6-\frac {9 x^4}{4}\right )^3+\left (-\frac {27 x^6}{4}+36 x^3+27 x^2+108 c_1\right ){}^2}+108 c_1}}{12 \sqrt [3]{2}}-\frac {\left (1-i \sqrt {3}\right ) \left (6-\frac {9 x^4}{4}\right )}{6\ 2^{2/3} \sqrt [3]{-\frac {27 x^6}{4}+36 x^3+27 x^2+\sqrt {4 \left (6-\frac {9 x^4}{4}\right )^3+\left (-\frac {27 x^6}{4}+36 x^3+27 x^2+108 c_1\right ){}^2}+108 c_1}} \\ \end{align*}
Sympy
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x**2 + 3*x*y(x)**2 + (3*x**2*y(x) - 6*y(x)**2 - 1)*Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
Timed Out