Let be a cubic polynomial such that divided by leaves remainder .
Given , find .
Write down the division algorithm. "Remainder on division by " means there is a polynomial with
This single identity is the whole content of the hypothesis, so everything else follows from it.
Pin down the degree of . Since is cubic, has degree . The product must supply that degree , so . Write
This is why the problem is solvable at all: only two unknowns remain.
Use the factor on the left. The left side vanishes at , so the right side must too. Substituting into :
Use . Substituting gives on the left and on the right, so
Hence .
Evaluate at . With known,
so and .
Check by recovering explicitly. Expanding, . Dividing by gives
Indeed and , and exactly.
Need to solve a different problem like this? Open the solver →