Value of $X^4 + 9x^3+35X^2-X+4$ for $X=-5+2\sqrt{-4}$

You could consider carrying out polynomial long division, dividing the given polynomial by the minimal polynomial of $-5+4i$, which is $x^2+10x+41$. Viz:

$x^4+9x^3+35x^2-x+4=(x^2-x-4)(x^2+10x+41)+160$

We know that if $x=-5+4i$, then $x^2+10x+41$ vanishes, so the given polynomial evaluates to $160$ there.


When evaluating polynomials, usually the first method taught is to simply replace each $x$ you see with the prescribed value. While this works in general, it can feel time consuming.

Depending on specific scenarios, one can find tricks to make things easier (e.g. factoring or polynomial long division as in @$\pi$r8's answer above).

There is however a general method that works in every case that is more efficient than the grade-school method of replacing the $x$'s, calculating each of the powers of $x$ separately, multiplying and then adding.

It is known as Horner's Method.

The gist of it is that you can instead write the polynomial in the form $a_0+x(a_1+x(a_2+\dots+(x(a_{n-1}+a_nx))\dots )$

For your specific polynomial, you have:

$x^4+9x^3+35x^2-x+4=4+x(-1+x(35+x(9+x)))$

Now, evaluate from the innermost parenthesis outwards. This is still tedious for your desired $x$ value so I will not do it here, but the number of arithmetic operations involved decreases from being on the order of $O(n^2)$ to instead being on the order of $O(n)$. (specifically evaluating a polynomial of degree $n$ can take at most $\frac{n^2+3n}{2}$ steps using the grade-school method and at most $2n$ steps using Horner's method)