83.47.7 problem Ex 7 page 87

Internal problem ID [19505]
Book : A Text book for differentional equations for postgraduate students by Ray and Chaturvedi. First edition, 1958. BHASKAR press. INDIA
Section : Book Solved Excercises. Chapter VI. Homogeneous linear equations with variable coefficients
Problem number : Ex 7 page 87
Date solved : Thursday, March 13, 2025 at 02:43:00 PM
CAS classification : [[_3rd_order, _exact, _linear, _nonhomogeneous]]

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

Maple. Time used: 0.001 (sec). Leaf size: 39
ode:=x^3*diff(diff(diff(y(x),x),x),x)+2*x^2*diff(diff(y(x),x),x)+2*y(x) = 10*x+10/x; 
dsolve(ode,y(x), singsol=all);
 
\[ y \left (x \right ) = \frac {5 x^{2} \sin \left (\ln \left (x \right )\right ) c_3 +5 x^{2} \cos \left (\ln \left (x \right )\right ) c_{2} +25 x^{2}+10 \ln \left (x \right )+c_{1} +8}{5 x} \]
Mathematica. Time used: 0.091 (sec). Leaf size: 42
ode=x^3*D[y[x],{x,3}]+2*x^2*D[y[x],{x,2}]+2*y[x]==10*(x+1/x); 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \frac {25 x^2+10 \log (x)+8+5 c_3}{5 x}+c_2 x \cos (\log (x))+c_1 x \sin (\log (x)) \]
Sympy. Time used: 0.457 (sec). Leaf size: 29
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x**3*Derivative(y(x), (x, 3)) + 2*x**2*Derivative(y(x), (x, 2)) - 10*x + 2*y(x) - 10/x,0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {C_{1} + x^{2} \left (C_{2} \sin {\left (\log {\left (x \right )} \right )} + C_{3} \cos {\left (\log {\left (x \right )} \right )} + 5\right ) + 2 \log {\left (x \right )}}{x} \]