To expand (1+2x−x2)4, we first rewrite it as a binomial: [(1+2x)+(−x2)]4.
Step 1: Apply the Binomial Theorem with a=(1+2x) and b=(−x2):
(1+2x−x2)4=4C0(1+2x)4+4C1(1+2x)3(−x2)+4C2(1+2x)2(−x2)2+4C3(1+2x)(−x2)3+4C4(−x2)4
Step 2: Expand each (1+2x)n term using binomial theorem:
(1+2x)4=1+2x+23x2+2x3+16x4
(1+2x)3=1+23x+43x2+8x3
(1+2x)2=1+x+4x2
(1+2x)=1+2x
Step 3: Substitute and simplify each term:
=1(1+2x+23x2+2x3+16x4)+4(1+23x+43x2+8x3)(−x2)+6(1+x+4x2)(x24)+4(1+2x)(−x38)+1(x416)
=(1+2x+23x2+2x3+16x4)+(−x8−12−6x−x2)+(x224+x24+6)+(−x332−x216)+x416
Step 4: Combine like terms:
=16x4+2x3+2x2−4x−5+x16+x28−x332+x416