73.14.17 problem 21.14 (c)

Internal problem ID [15356]
Book : Ordinary Differential Equations. An introduction to the fundamentals. Kenneth B. Howell. second edition. CRC Press. FL, USA. 2020
Section : Chapter 21. Nonhomogeneous equations in general. Additional exercises page 391
Problem number : 21.14 (c)
Date solved : Monday, March 31, 2025 at 01:35:17 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

\begin{align*} x^{2} y^{\prime \prime }-4 x y^{\prime }+6 y&=22 x +24 \end{align*}

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