Lila M. answered 08/21/24
M.S. in Mathematics with 5 years of exp. tutoring math at all levels
The simplest polynomial satisfying f(c) = 0 for some c value is the function f(x) = x - c. Since zero times anything is zero, we can take the product of simple polynomials like this to get a new polynomial that still equals zero at each given point. Another way to think of this: if f(c) = 0 at some value c, then x - c will be a factor of f(x).
So, a possible function that has zeroes at -2, 3, and 1 is
f(x) = (x+2)(x-3)(x-1).
If we plug 2 into this function, we get f(2) = (4)(-1)(1) = -4, so this can't be our final answer. However, we can use the fact that zero times anything is zero again. If f(c) = 0 at some value, and we multiply f(x) by some constant M, then Mf(c) = M·0 = 0 (i.e., the function still has a zero at c). That means if M is some real number, then any polynomial of the form
f(x) = M(x+2)(x-3)(x-1)
has zeroes at -2, 3, and 1. From here, we note, f(2) = M(4)(-1)(1) = -4M. So, to satisfy the condition that
f(2) = -4M = 12,
we must have that M = -3. Hence,
f(x) = -3(x+2)(x-3)(x-1)
is a cubic polynomial such that f(-2), f(3), f(1) = 0 and f(2) = 12.