I have been pondering this question for a little while, and unfortunately the Google has not given me an answer.
I understand that for example you had a table or graph that crosses or touches the x axis at say x= -2, 0, 3 you could form an equation as
f(x) = ax(x+2)(x-3)
Then solve for a and you have your function.
I have considered transforming a graph to force zeros, and in the couple of attempts I made, it was successful, but I am unsure if this would be the mathmatically proper way to do so.
So my question is if you have a graph or table of coordinates similar to my example above, but the points never cross zerI, what would be the proper Mathmatics procedure to find the equation.
UPDATE
y = x^2. Vertex = 0,0 and zero = 0
In comparison to:
y = (x-1)^2+1 vertex = 1,1 and zero = null
Its the same form but in a different position. In this situation the functions were provided, but for clarification of what I am looking for, I thought this would help.
Thank you.
I ended up figuring this out with the help of @Ethan Bolker. He pointed me in the direction of LaGrange interpolation. After learning a bit, I came across another fantastic work of Newton. Newton's divided difference is simple to learn and easy to use. It gives a general form as I was looking for, and there is no need for any transforming or nonsense like I was trying to do.
Newton's Divided Difference:
How Newton Sequence Works
Once you make these computations, you take the top values of the sequence. The first y value is by itself, then the second contains the factor of the of the first x, the third contains the factors of the first and second x values and so on in that pattern.
An Example
$x = {-2, -1, 0, 1, 2}$
$y = {4, 1, 0, 1, 4}$
$-2_1 , 4_1$
$-1_2 , 1_2$ ---------------- $\frac{1-(-3)}{0_3-(-2_1)} = 2$
$ 0_3 , 0_3$ ---------------- $\frac{1-(-1)}{1_4-(-1_2)} = 1$ ----------------------- $\frac{1-1}{2_5-(-2_1)} = 0$
$ 1_4 , 1_4$ ---------------- $\frac{3-1}{2_5-0_3} = 2$
$ 2_5, 4_5$
Then once you have your sequence completed it a pretty simple:
start with $y_1$, Factors of x values will be marked as $x_1$'s factor $= (x + b)_1$
$$f(x) = 4 + -3(x + 2)_1 + 2(x + 2)_1(x + 1)_2 + 1(x + 2)_1(x + 1)(x)_3 + 0(x + 2)_1(x + 1)_2(x)_3(x - 1)_4$$
If you FOIL all of this out and combine like terms, you are left with:
$$f(x) = x^2$$
Obviously, for this particular example their are far simpler ways to get this solution, however, this works with any data you may have. The only rule that I was able to find is that the x values need to be in order. They can be descending or ascending, but they just need to be in order.
I hope this is helpful to others, and I thank everyone for helping me find this answer.