ODE
\[ x y'''(x)-y''(x)-x y'(x)+y(x)=1-x^2 \] ODE Classification
[[_3rd_order, _with_linear_symmetries]]
Book solution method
TO DO
Mathematica ✓
cpu = 0.237125 (sec), leaf count = 28
\[\left \{\left \{y(x)\to x^2+c_1 x-c_2 \cosh (x)+i c_3 \sinh (x)+3\right \}\right \}\]
Maple ✓
cpu = 0.065 (sec), leaf count = 22
\[[y \left (x \right ) = x^{2}+3+\textit {\_C1} x +\textit {\_C2} \,{\mathrm e}^{x}+\textit {\_C3} \,{\mathrm e}^{-x}]\] Mathematica raw input
DSolve[y[x] - x*y'[x] - y''[x] + x*y'''[x] == 1 - x^2,y[x],x]
Mathematica raw output
{{y[x] -> 3 + x^2 + x*C[1] - C[2]*Cosh[x] + I*C[3]*Sinh[x]}}
Maple raw input
dsolve(x*diff(diff(diff(y(x),x),x),x)-diff(diff(y(x),x),x)-x*diff(y(x),x)+y(x) = -x^2+1, y(x))
Maple raw output
[y(x) = x^2+3+_C1*x+_C2*exp(x)+_C3*exp(-x)]