Hi,
Thought I would just add my 2¢. One of the ways to construct a polynomial going through a set of points is to use a Lagrange interpolating polynomial, see
http://mathworld.wolfram.com/LagrangeInterpolatingPolynomial.html
Another is to just construct the polynomial one point at a time from the points given, using simple 'point slope type functions'. To show how the method works lets look at the points (1,3), (2, 5), (3, 9):
First (1,3)
f(x) = 3 + (x-1) f1(x)
for any function f1. Now add the point (2,5)
f(2) = 3 + (2-1) f1(2) = 3 + f1(2) = 5
So f1(2)=2 or
f1(x) = 2 + (x-2) f2(x)
and
f(x) = 3 + (x-1) { 2 + (x-2) f2(x)}
Now add the point (3,9)
f(3) = 3 + 2 {2 + f2(3)} = 7 + 2 f2(3) = 9
So f2(3)=1 or
f2(x) = 1 + (x-3) f3(x)
and
f(x) = 3 + (x-1) { 2 + (x-2) [1 + (x-3) f3(x)]}
and we have a function which goes through our given points. f3(x) can be any function we want but, to keep f(x) at its simplest, we set it to zero and, simplifying things we have
f(x) = 3 + x (x-1) = x2 - x + 3