Factor. $\displaystyle x^5 + x + 1$.
I'm trying my hand on these types of expressions. In the book, it mentions that for these types you should rewrite the $x$ term such as $2x-x$. But I don't know how to make any use of this technique.
What is this type of factoring called by the way?
As Gerry suggests, we can add and subtract $\;+ x^2 - x^2 = 0 $ without changing the expression:
$$\begin{align} x^5 + x + 1 & = (x^5-x^2)+(x^2+x+1)\\ \\ & = x^2(x^3 - 1) + (x^2 + x + 1) \\ \\ & = x^2(x-1)\color{blue}{\bf (x^2 + x + 1)} + \color{blue}{\bf (x^2 + x + 1)}\end{align}$$
Now factor out the common factor...which gives us $$\Big(x^2(x-1) + 1\Big)(x^2 + x + 1) = (x^3 - x^2 + 1)(x^2 + x + 1)$$