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
As we got the constant term so we can create a table of possible polynomials for all. We start from the bottom.
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.
Suppose we have the numbers (from a function) like given in the following table
1 | 6 | 15 | 28 | 45 | 66 | 91 |
---|---|---|---|---|---|---|
We find the difference of successive term | ||||||
5 | 9 | 13 | 17 | 21 | 25 | |
We again find the difference of successive term | ||||||
4 | 4 | 4 | 4 | 4 | ||
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'' | 4 | 4 | 4 | 4 | 4 | ||
---|---|---|---|---|---|---|---|
a'x+b' | 5 | 9 | 13 | 17 | 21 | 25 | |
ax2+bx+c | 1 | 6 | 15 | 28 | 45 | 66 | 91 |
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