can someone explain restrictions on a variable i have an equation

divide (x^3+5x-18) by (x-2)
it got x^2+3 with a remanider of 12 is this correct and what is the restrcition on the varible?

I am getting x^2+2x+9 with no remainder

Did you divide x - 2 intot

x^3 + 0x^2 + 5x -18

You need to put in the 0x^2 because you have the missing x^2 term.

since you are dividing by x-2 we cannot have x-2 =0 because division by zero is undefined. So.. we would not want x to be 2. That would be our restriction. X can be anything but 2