Given the following function

We want to find its roots. Since we already know that (x + 1) and (x - 2) are factors of this polynomial, we can divide our polynomial by those factors and factorize the result to get the other roots.
Let's start by dividing by the first factor

To divide a polynomial by other, we start by dividing the leading term of the dividend by the leading term of the divisor(this will be the first term of our result)

Then, we ultiply it by the divisor

Subtracting this result from the dividend, we have

This means that our division is

Repeating the whole process of division with the second term, we have

From this result, we can rewrite our function as

Repeating this same process with the other know factor, the other division we have to solve is

Then, our function is

Then, to find the roots we need to solve the following equation

Since we have a product of 3 terms, the result will be zero if and only if one of the terms is zero. This means that the roots can be found by assuming each one is zero. The solutions for this equation are the same solutions for the following system
![\begin{cases}x+1=0 \\ x-2=0 \\ x^2+9=0\end{cases}\Rightarrow\begin{cases}x=-1 \\ x=2 \\ x=\pm\sqrt[]{-9}=\pm3i\end{cases}](https://img.qammunity.org/2023/formulas/mathematics/college/rh3auo5ukijcxaqqe65jran8twbgtz882z.png)
And those are the roots for our function. x = -1, 2, +-3i.