81.6.2 problem 2

Internal problem ID [18606]
Book : A short course on differential equations. By Donald Francis Campbell. Maxmillan company. London. 1907
Section : Chapter V. Homogeneous linear differential equations. Exact equations. Exercises at page 69
Problem number : 2
Date solved : Thursday, March 13, 2025 at 12:25:05 PM
CAS classification : [[_2nd_order, _with_linear_symmetries]]

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

Maple. Time used: 0.005 (sec). Leaf size: 18
ode:=x^2*diff(diff(y(x),x),x)+3*x*diff(y(x),x)-8*y(x) = x; 
dsolve(ode,y(x), singsol=all);
 
\[ y \left (x \right ) = c_{2} x^{2}+\frac {c_{1}}{x^{4}}-\frac {x}{5} \]
Mathematica. Time used: 0.014 (sec). Leaf size: 23
ode=x^2*D[y[x],{x,2}]+3*x*D[y[x],x]-8*y[x]==x; 
ic={}; 
DSolve[{ode,ic},y[x],x,IncludeSingularSolutions->True]
 
\[ y(x)\to \frac {c_1}{x^4}+c_2 x^2-\frac {x}{5} \]
Sympy. Time used: 0.224 (sec). Leaf size: 15
from sympy import * 
x = symbols("x") 
y = Function("y") 
ode = Eq(x**2*Derivative(y(x), (x, 2)) + 3*x*Derivative(y(x), x) - x - 8*y(x),0) 
ics = {} 
dsolve(ode,func=y(x),ics=ics)
 
\[ y{\left (x \right )} = \frac {C_{1}}{x^{4}} + C_{2} x^{2} - \frac {x}{5} \]