Check whether $(x+1)$ is a factor of the polynomial $x⁴+x³+x²-5x+1$ .Justify your answer? What I did was:
$$\begin{align*}(x+1)&=0 \\\implies x &= -1 \end{align*}$$
Then, $x^4+x^3+x^2-5x+1= (-1^4)+(-1^3)+(-1^2)-(-5)+1=7$
The answers should be $0$, shouldn't it?
Hint:
If $(x+1)$ is a factor of $x^4+x^3+x^2-5x+1$, then you can write $$x^4+x^3+x^2-5x+1=(x+1)g(x)$$ where $g(x)$ is a polynomial of degree $3$. Now, what happens if you let $x=-1$? (Compare RHS and LHS)