Group the first two terms and the last two terms.
Factor out the greatest common factor (GCF) from each group.
Factor the polynomial by factoring out the greatest common factor, .
Rewrite as .
Since both terms are perfect cubes, factor using the sum of cubes formula, where and .
Simplify.
Multiply by .
One to any power is one.
Remove unnecessary parentheses.
Factor x^4-x^3+x-1