Possible Duplicate:
Writing a function $f$ when $x$ and $f(x)$ are known
If I am given 9 co-ordinates of a random graph say for e.g
1. (2,1)
2. (4,3)
3. (7,9)
4. (9,5)
5. (10,3)
6. (11,1)
7. (13,4)
8. (15,7)
9. (17,10)

((this is the plotted graph exactly however it needs to be curved ))
How can i create an equation to approximately fit the graphs trendline curve.
You want to find a polynomial such that a given number of points lie on the graph. observe that every given point is a "condition" on your function. A polynmial of degree $n$ is of the form $$P(x)=a_nx^n+\cdots+a_0$$ and has therefore $n+1$ degrees of freedom. So for $n$ given points a polynomial of degree $n-1$ should do the job. Hence assume $P(x)$ is a solution. Just plug in your given points, one at a time. E.g. $$P(2)=1$$ $$P(4)=3$$ $$\cdots$$ $$P(17)=10$$
You will obtain $n$ linear equations for your $n$ variables which you now have to solve. As an advanced exercise: what does it mean if the system has multiple solutions?