Mark M. answered 04/27/21
Retired math prof. Calc 1, 2 and AP Calculus tutoring experience.
The Maclaurin Series for ex is 1 + x + x2/2! + x3/3! + x4/4! + ...
So, the Maclaurin Series for e-3x is 1 + (-3x) + (-3x)2/2! + (-3x)3/3! + ...
Therefore, f(x) = x2e-3x = x2(1 - 3x + 9x2/2! - 27x3/3! + ...) = x2 - 3x3 + 32x4 /2! - 33x5/3! + ...
= ∑(n=0 to infinity) [(-3)nxn+2 / n!]