Examples
x2-x+x-1x2−x+x−1
Step 1
Add -x−x and xx.
x2+0-1x2+0−1
Step 2
Add x2x2 and 00.
x2-1x2−1
Step 3
Rewrite 11 as 1212.
x2-12x2−12
Step 4
Since both terms are perfect squares, factor using the difference of squares formula, a2-b2=(a+b)(a-b)a2−b2=(a+b)(a−b) where a=xa=x and b=1b=1.
(x+1)(x-1)(x+1)(x−1)