71.1.18 problem 32

Internal problem ID [14256]
Book : Ordinary Differential Equations by Charles E. Roberts, Jr. CRC Press. 2010
Section : Chapter 1. Introduction. Exercises page 14
Problem number : 32
Date solved : Monday, March 31, 2025 at 12:14:25 PM
CAS classification : [[_2nd_order, _missing_y]]

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

Maple. Time used: 0.003 (sec). Leaf size: 11
ode:=x^2*diff(diff(y(x),x),x)-x*diff(y(x),x) = 0; 
dsolve(ode,y(x), singsol=all);
 
\[ y = c_2 \,x^{2}+c_1 \]
Mathematica. Time used: 0.024 (sec). Leaf size: 17
ode=x^2*D[y[x],{x,2}]-x*D[y[x],x]==0; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \frac {c_1 x^2}{2}+c_2 \]
Sympy. Time used: 0.129 (sec). Leaf size: 8
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x**2*Derivative(y(x), (x, 2)) - x*Derivative(y(x), x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = C_{1} + C_{2} x^{2} \]