4.25.41 \(y''(x)-2 y'(x)+y(x)=8 e^{3 x} x^2\)

ODE
\[ y''(x)-2 y'(x)+y(x)=8 e^{3 x} x^2 \] ODE Classification

[[_2nd_order, _linear, _nonhomogeneous]]

Book solution method
TO DO

Mathematica
cpu = 0.175978 (sec), leaf count = 32

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

Maple
cpu = 0.023 (sec), leaf count = 29

\[[y \left (x \right ) = \textit {\_C2} \,{\mathrm e}^{x}+{\mathrm e}^{x} \textit {\_C1} x +\left (2 x^{2}-4 x +3\right ) {\mathrm e}^{3 x}]\] Mathematica raw input

DSolve[y[x] - 2*y'[x] + y''[x] == 8*E^(3*x)*x^2,y[x],x]

Mathematica raw output

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

Maple raw input

dsolve(diff(diff(y(x),x),x)-2*diff(y(x),x)+y(x) = 8*x^2*exp(3*x), y(x))

Maple raw output

[y(x) = _C2*exp(x)+exp(x)*_C1*x+(2*x^2-4*x+3)*exp(3*x)]