I have the term: $(1 + 2x - x^2)^4.$
The question asks me to find the coefficient of $x^5$.
My solution:
$\sum\limits_{i=0}^4 {4 \choose r} (1)^{4-r}(2x-x^2)^r$
I then factored out x from $(2x-x^2)$, getting $x(2-x)$.
Then, since the terms with the x's are being raised to the $r$th power, I did:
$(x(2-x))^r$, or $x^r(2-x)^r$
I know that I'm dealing with x's, so since I want the exponent to be 5 as the question says, I focus on the x's and multiply them together to get $x^{2r}$, and then I equated 2r to 5. Solving, I got r = 5/2 which can't be because I'm dealing with a binomial coefficient - integers only.
What did I do wrong? My logic makes sense to me, but I don't see why I'm incorrect here.
Thanks.