How can interpolation be used to find a polynomial formula for G(n)?

  • Context: Undergrad 
  • Thread starter Thread starter KLscilevothma
  • Start date Start date
  • Tags Tags
    Interpolation
Click For Summary
SUMMARY

The discussion focuses on deriving a polynomial formula for G(n) using interpolation methods. The polynomial is determined to be G(n) = (1/24)n(n-1)(n-2)(n-3), which is a degree 4 polynomial. The values for G(n) are established for n = 0 to n = 5, with G(0) through G(3) equating to 0, G(4) to 1, and G(5) to 5. The method involves rewriting G(n) as a sum of cubic terms and applying known summation formulas to simplify the expression.

PREREQUISITES
  • Understanding of polynomial interpolation techniques
  • Familiarity with summation formulas for polynomial terms
  • Knowledge of cubic functions and their properties
  • Basic arithmetic and algebraic manipulation skills
NEXT STEPS
  • Study polynomial interpolation methods in detail
  • Learn about summation formulas for cubic and quadratic terms
  • Explore the application of finite differences in polynomial fitting
  • Investigate the use of Lagrange interpolation for polynomial construction
USEFUL FOR

Mathematicians, computer scientists, and students involved in numerical analysis or algorithm design, particularly those interested in polynomial interpolation and function approximation.

KLscilevothma
Messages
315
Reaction score
0
Find a formula to calculate G(n) and it should be a polynomial of degree 4.

G(n) = 1/6(0)(0-1)(0-2) + 1/6(1)(1-1)(1-2)+...+1/6(n-1)(n-2)(n-3)

I know
G(0)=G(1)=G(2)=G(3)=0
G(4)=1
G(5)=1+3
G(6)=1+3+6
G(7)=1+2+3+10
G(8)=1+3+6+10+15 (sum of triangle numbers)

What should I do to find out the formula? I think it is some kind of interpolation formula.
 
Mathematics news on Phys.org
G(n) = SUM[ (1/6)(k-1)(k-2)(k-3) , k=1..n] ..rewrite function
G(n) = (1/6) SUM[ (k-1)(k-2)(k-3) , k=1..n] ..extract constant
G(n) = (1/6) SUM[ (k3-6k2+11k-6) , k=1..n] ..expand the general term on inside
G(n) = (1/6)( SUM[k3, k=1..n] - SUM[6k2, k=1..n] + SUM[11k, k=1..n] - SUM[6, k=1..n] ) ..add sums separately
G(n) = (1/6)( n2(n+1)2/4 - 6n(n+1)(2n+1)/6 +11n(n+1)/2 -6n ) ..rewrite sums
G(n) = (1/24)n4 - (1/4)n3 + (11/24)n2 - (1/4)n ..expand

Your G(n) values do not agree for n > 4. Take for instance G(5) = (1/6)(4-1)(4-2)(4-3) + (1/6)(5-1)(5-2)(5-3) = 1 + 4 = 5
 
Originally posted by suffian
G(n) = SUM[ (1/6)(k-1)(k-2)(k-3) , k=1..n] ..rewrite function
G(n) = (1/6) SUM[ (k-1)(k-2)(k-3) , k=1..n] ..extract constant
G(n) = (1/6) SUM[ (k3-6k2+11k-6) , k=1..n] ..expand the general term on inside
G(n) = (1/6)( SUM[k3, k=1..n] - SUM[6k2, k=1..n] + SUM[11k, k=1..n] - SUM[6, k=1..n] ) ..add sums separately
G(n) = (1/6)( n2(n+1)2/4 - 6n(n+1)(2n+1)/6 +11n(n+1)/2 -6n ) ..rewrite sums
G(n) = (1/24)n4 - (1/4)n3 + (11/24)n2 - (1/4)n ..expand

Thank you. I think this is one of the ways to tackle this problem. After reading my notes carefully, I think we can do the question by using "interpolation" method as follows:
G(1)=G(2)=G(3)=0
G(4)=1
G(5)=5
Since G(1)=G(2)=G(3)=0, (x-1), (x-2) and (x-3) are factors of G(n). Since the formula that we need to find is of degree 4, therefore G(n)=(an+b)(n-1)(n-2)(n-3). By using G(4)=1 and G(5)=5, we know G(n)=1/24n(n-1)(n-2)(n-3), which is exactly the answer that you get.

Your G(n) values do not agree for n > 4. Take for instance G(5) = (1/6)(4-1)(4-2)(4-3) + (1/6)(5-1)(5-2)(5-3) = 1 + 4 = 5
Usually I can't do simple arithmatic correctly.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 10 ·
Replies
10
Views
4K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
1
Views
2K
  • · Replies 48 ·
2
Replies
48
Views
6K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
Replies
8
Views
3K