49.1.3 problem HW 1 problem 7(a)

Internal problem ID [9985]
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 7(a)
Date solved : Tuesday, September 30, 2025 at 06:45:39 PM
CAS classification : [_linear]

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