The remainder when you divide P(x) by (x − a) is just P(a), the height of the curve at x = a. Drag the marker, and where the height drops to zero, (x − a) is a factor.