62.12.3 problem Ex 3

Internal problem ID [12770]
Book : An elementary treatise on differential equations by Abraham Cohen. DC heath publishers. 1906
Section : Chapter 2, differential equations of the first order and the first degree. Article 19. Summary. Page 29
Problem number : Ex 3
Date solved : Wednesday, March 05, 2025 at 08:28:15 PM
CAS classification : [_linear]

\begin{align*} y^{\prime }-x^{2} y&=x^{5} \end{align*}

Maple. Time used: 0.002 (sec). Leaf size: 19
ode:=diff(y(x),x)-x^2*y(x) = x^5; 
dsolve(ode,y(x), singsol=all);
 
\[ y = -x^{3}-3+c_{1} {\mathrm e}^{\frac {x^{3}}{3}} \]
Mathematica. Time used: 0.124 (sec). Leaf size: 24
ode=D[y[x],x]-x^2*y[x]==x^5; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to -x^3+c_1 e^{\frac {x^3}{3}}-3 \]
Sympy. Time used: 0.248 (sec). Leaf size: 15
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(-x**5 - x**2*y(x) + Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} e^{\frac {x^{3}}{3}} - x^{3} - 3 \]