I have the expression
1 + Exp[-2 x] (-1 - 2 x (1 + x))
I used Expand
to get the x's to multiply within the parentheses, this gives
1 - Exp[-2 x] - 2 Exp[-2 x] x - 2 Exp[-2 x] x^2
I'm expected to get this into the form
1 - Exp[-2 x]*(1 + 2 x + 2 x^2)
I would expect
Collect[1 - Exp[-2 x] - 2 Exp[-2 x] x - 2 Exp[-2 x] x^2, -Exp[-2x]]
to do this but it only returns the expanded form again.