4.43.38 \(y'''(x)-4 y''(x)+5 y'(x)-2 y(x)=x\)

ODE
\[ y'''(x)-4 y''(x)+5 y'(x)-2 y(x)=x \] ODE Classification

[[_3rd_order, _with_linear_symmetries]]

Book solution method
TO DO

Mathematica
cpu = 0.0105896 (sec), leaf count = 35

\[\left \{\left \{y(x)\to c_1 e^x+x \left (c_2 e^x-\frac {1}{2}\right )+c_3 e^{2 x}-\frac {5}{4}\right \}\right \}\]

Maple
cpu = 0.011 (sec), leaf count = 24

\[ \left \{ y \left ( x \right ) =-{\frac {x}{2}}-{\frac {5}{4}}+{\it \_C1}\,{{\rm e}^{x}}+{{\rm e}^{2\,x}}{\it \_C2}+{\it \_C3}\,x{{\rm e}^{x}} \right \} \] Mathematica raw input

DSolve[-2*y[x] + 5*y'[x] - 4*y''[x] + y'''[x] == x,y[x],x]

Mathematica raw output

{{y[x] -> -5/4 + E^x*C[1] + x*(-1/2 + E^x*C[2]) + E^(2*x)*C[3]}}

Maple raw input

dsolve(diff(diff(diff(y(x),x),x),x)-4*diff(diff(y(x),x),x)+5*diff(y(x),x)-2*y(x) = x, y(x),'implicit')

Maple raw output

y(x) = -1/2*x-5/4+_C1*exp(x)+exp(2*x)*_C2+_C3*x*exp(x)