35.9.14 problem 7, using elementary method

Internal problem ID [6249]
Book : Mathematical Methods in the Physical Sciences. third edition. Mary L. Boas. John Wiley. 2006
Section : Chapter 12, Series Solutions of Differential Equations. Section 1. Miscellaneous problems. page 564
Problem number : 7, using elementary method
Date solved : Sunday, March 30, 2025 at 10:44:40 AM
CAS classification : [[_Emden, _Fowler]]

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

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