43.16.4 problem 1(d)

Internal problem ID [8988]
Book : An introduction to Ordinary Differential Equations. Earl A. Coddington. Dover. NY 1961
Section : Chapter 4. Linear equations with Regular Singular Points. Page 149
Problem number : 1(d)
Date solved : Tuesday, September 30, 2025 at 06:00:56 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} x^{2} y^{\prime \prime }-5 x y^{\prime }+9 y&=x^{2} \end{align*}
Maple. Time used: 0.004 (sec). Leaf size: 18
ode:=x^2*diff(diff(y(x),x),x)-5*x*diff(y(x),x)+9*y(x) = x^2; 
dsolve(ode,y(x), singsol=all);
 
\[ y = x^{2} \left (\ln \left (x \right ) c_1 x +c_2 x +1\right ) \]
Mathematica. Time used: 0.013 (sec). Leaf size: 22
ode=x^2*D[y[x],{x,2}]-5*x*D[y[x],x]+9*y[x]==x^2; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\begin{align*} y(x)&\to x^2 (c_1 x+3 c_2 x \log (x)+1) \end{align*}
Sympy. Time used: 0.137 (sec). Leaf size: 17
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x**2*Derivative(y(x), (x, 2)) - x**2 - 5*x*Derivative(y(x), x) + 9*y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = x^{2} \left (C_{1} x + C_{2} x \log {\left (x \right )} + 1\right ) \]