SOLUTION: I have to use finite differences to write an equation for the following points: (0,-1) (1,-2) (2,5) (3.38) (4,115) (5,254)

Algebra ->  Graphs -> SOLUTION: I have to use finite differences to write an equation for the following points: (0,-1) (1,-2) (2,5) (3.38) (4,115) (5,254)      Log On


   



Question 388333: I have to use finite differences to write an equation for the following points: (0,-1) (1,-2) (2,5) (3.38) (4,115) (5,254)
Answer by Edwin McCravy(20060) About Me  (Show Source):
You can put this solution on YOUR website!

(0,-1) (1,-2) (2,5) (3.38) (4,115) (5,254)

List the second coordinates in a column

 
 -1
 -2
  5
 38
115
254

Subtract each number from the number just below it and write the
difference to the right of that number in a second column. These
numbers are called the first differences.

 -1    3
 -2    7
  5   33
 38   77
115  139 
254

Subtract each number in the second column from the number just below 
it and write the difference to the right of that number in a third 
column.  These numbers are called the second differences.


 -1    3    4
 -2    7   26  
  5   33   44
 38   77   62
115  139 
254

Subtract each number in the third column from the number just below 
it and write the difference to the right of that number in a fourth 
column.  These numbers are called the third differences.


 -1   -1    8   18
 -2    7   26   18
  5   33   44   18
 38   77   62
115  139 
254

We need go no further because we have reached a column in which all
the numbers are the same.  Since this column was the column of 3rd
differences, we assume the formula for the general term is a 3rd degree
polynomial equation:

a%5Bn%5D%22%22=%22%22An%5E3%2BBn%5E2%2BCn%2BD

That has 4 unknown constants, so we will substitute the first
four first coordinates for n and the second coordinate for a%5Bn%5D

For n = 0

a%5B0%5D%22%22=%22%22A%280%29%5E3%2BB%280%29%5E2%2BC%280%29%2BD
-1%22%22=%22%22A%2A0%2BB%2A0%2BC%2A0%2BD
-1%22%22=%22%220A%2B0B%2B0C%2BD
D%22%22=%22%22-1

Since we know the value of D as -1, we can now just substitute in

a%5Bn%5D%22%22=%22%22An%5E3%2BBn%5E2%2BCn-1


For n = 1

a%5B1%5D%22%22=%22%22A%281%29%5E3%2BB%281%29%5E2%2BC%281%29-1
-2%22%22=%22%22A%2A1%2BB%2A1%2BC%2A1-1
-2%22%22=%22%22A%2BB%2BC-1
A%2BB%2BC-1%22%22=%22%22-2
A%2BB%2BC%22%22=%22%22-1

For n = 2

a%5B2%5D%22%22=%22%22A%282%29%5E3%2BB%282%29%5E2%2BC%282%29-1
5%22%22=%22%22A%2A8%2BB%2A4%2BC%2A2-1
5%22%22=%22%228A%2B4B%2B2C-1
8A%2B4B%2B2C-1%22%22=%22%225
8A%2B4B%2B2C%22%22=%22%226
4A%2B2B%2BC%22%22=%22%223

For n = 3

a%5B3%5D%22%22=%22%22A%283%29%5E3%2BB%283%29%5E2%2BC%283%29-1
38%22%22=%22%22A%2A27%2BB%2A9%2BC%2A3-1
38%22%22=%22%2227A%2B9B%2B3C-1
27A%2B9B%2B3C-1%22%22=%22%2238
27A%2B9B%2B3C%22%22=%22%2239

So we have the system of 3 equations in 3 variables

system%28A%2BB%2BC=-1%2C4A%2B2B%2BC=3%2C+27A%2B9B%2B3C=39%29

Solve that system and get A=3, B=-5, C=1 and we already have D=-1,so

a%5Bn%5D%22%22=%22%22An%5E3%2BBn%5E2%2BCn%2BD

becomes:

a%5Bn%5D%22%22=%22%223n%5E3-5n%5E2%2Bn-1

Edwin