29.13.16 problem 370

Internal problem ID [4970]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Various 13
Problem number : 370
Date solved : Sunday, March 30, 2025 at 04:27:00 AM
CAS classification : [_rational, [_Riccati, _special]]

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

Maple. Time used: 0.003 (sec). Leaf size: 24
ode:=x^4*diff(y(x),x)+a^2+x^4*y(x)^2 = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {-a \tan \left (\frac {a \left (c_1 x -1\right )}{x}\right )+x}{x^{2}} \]
Mathematica. Time used: 0.521 (sec). Leaf size: 94
ode=x^4 D[y[x],x]+a^2+x^4 y[x]^2==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to \frac {2 a^2 c_1 e^{\frac {2 i a}{x}}+i a \left (e^2+2 c_1 x e^{\frac {2 i a}{x}}\right )+e^2 x}{x^2 \left (e^2+2 i a c_1 e^{\frac {2 i a}{x}}\right )} \\ y(x)\to \frac {x-i a}{x^2} \\ \end{align*}
Sympy. Time used: 4.616 (sec). Leaf size: 58
from sympy import * 
x = symbols("x") 
a = symbols("a") 
y = Function("y") 
ode = Eq(a**2 + x**4*y(x)**2 + x**4*Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {i a e^{\frac {2 i a \left (C_{1} x - 1\right )}{x}} + i a + x e^{\frac {2 i a \left (C_{1} x - 1\right )}{x}} - x}{x^{2} \left (e^{\frac {2 i a \left (C_{1} x - 1\right )}{x}} - 1\right )} \]