55.1.6 problem HW 1 problem 11

Internal problem ID [8702]
Book : Selected problems from homeworks from different courses
Section : Math 2520, summer 2021. Differential Equations and Linear Algebra. Normandale college, Bloomington, Minnesota
Problem number : HW 1 problem 11
Date solved : Sunday, March 30, 2025 at 01:24:06 PM
CAS classification : [[_homogeneous, `class G`], _rational, _Bernoulli]

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

Maple. Time used: 0.002 (sec). Leaf size: 17
ode:=diff(y(x),x)+2*y(x)/x = 6*y(x)^2*x^4; 
dsolve(ode,y(x), singsol=all);
 
\[ y = \frac {1}{\left (-2 x^{3}+c_1 \right ) x^{2}} \]
Mathematica. Time used: 0.146 (sec). Leaf size: 24
ode=D[y[x],x]+2*y[x]/x==6*y[x]^2*x^4; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)\to \frac {1}{-2 x^5+c_1 x^2} \\ y(x)\to 0 \\ \end{align*}
Sympy. Time used: 0.213 (sec). Leaf size: 14
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-6*x**4*y(x)**2 + Derivative(y(x), x) + 2*y(x)/x,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {1}{x^{2} \left (C_{1} - 2 x^{3}\right )} \]