We can expand the product by multiplying each term of the first polynomial by each term of the second polynomial and then simplifying.
(x2+x+1)(x2−x+1)=x2(x2−x+1)+x(x2−x+1)+1(x2−x+1) Now we distribute each term:
=x4−x3+x2+x3−x2+x+x2−x+1 Combining like terms, we have:
=x4+(−x3+x3)+(x2−x2+x2)+(x−x)+1 =x4+0x3+x2+0x+1 =x4+x2+1 Alternatively, we can rewrite the expression as
(x2+1+x)(x2+1−x)=(x2+1)2−x2 Using the formula (a+b)(a−b)=a2−b2, where a=x2+1 and b=x. (x2+1)2−x2=(x4+2x2+1)−x2=x4+x2+1