Showing that x-1 is a factor of a cubic polynomial