Pages

Thursday, May 8, 2014

Method of differences

There are many occurrences when we have certain numbers and we have to find relation between them. The relation is usually in form of expressions. The expression can contain log function, exponential function and algebraic functions.The simplest among them is to find polynomial expressions.In this post I will describe how to find functions when we know a series which has its terms separated by certain constant. The method is similar to differentiation but a lot different from them.

Suppose we have the numbers (from a function) like given in the following table

161528456691
We find the difference of successive term
5913172125
We again find the difference of successive term
44444
We find the differences till we get a constant term for all

As we got the constant term so we can create a table of possible polynomials for all. We start from the bottom.

c''44444
a'x+b'5913172125
ax2+bx+c161528456691

We got a quadratic because we had three rows in the table.
Now we have
f(x) =ax2+bx+c
f(0) = c = 1
f(1) = a + b + c = 6
f(2) = 4a + 2b + c = 15
from f(0): c =1
from f(1): a + b = 5
from f(2): 4a + 2b = 14
so solving the simultaneous equations a = 2 and b = 3 hence the function is f(x) = 2x2 + 3x + 1.
Above it must be known from where the values start for x and what is their differences in each step.

No comments:

Post a Comment