23.4.107 problem 107

Internal problem ID [6409]
Book : Ordinary differential equations and their solutions. By George Moseley Murphy. 1960
Section : Part II. Chapter 4. THE NONLINEAR EQUATION OF SECOND ORDER, page 380
Problem number : 107
Date solved : Tuesday, September 30, 2025 at 02:56:22 PM
CAS classification : [[_2nd_order, _missing_y]]

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