\( -e^{-x}(2 x-x^{2})+e^{-x}(2-2 x)\)
\( e^{-x}(2-2 x)-e^{-x}(2 x-x^{2})\)
\( e^{-x}[(2-2 x)-e^{-x}(2 x-x^{2}]\)
\( e^{-x}[(2-2 x-(2 x-x^{2})]\)
\( e^{-x}[(2-2 x-2 x+x^{2})]\)
\( e^{-x}[x^{2}-4x+2]\)
\( e^{-x}\left(-2 x+x^{2}+2-2 x\right) \)
\( e^{-x}[x^{2}-4x+2]\)