Loading [MathJax]/jax/output/HTML-CSS/jax.js
Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

5.01: Prerequisites to Interpolation

( \newcommand{\kernel}{\mathrm{null}\,}\)

Lesson 1: Prerequisites to Interpolation

Learning Objectives

After successful completion of this lesson, you should be able to:

1) define interpolation

2) interpolate using a straight line.

What is interpolation?

Many times, as given in Figure 5.1.1.1, data is given only at discrete points such as (x0,y0), (x1,y1), ......,(xn1,yn1), (xn,yn). So, how then does one find the value of y at any other value of x? Well, a continuous function f(x) may be used to represent the n+1 data values with f(x) passing through the n+1 points (Figure 5.1.1.1). Then one can find the value of y at any other value of x. This curve fitting technique is called interpolation.

A function is given as two continuous regions separated by a region containing only a series of discrete points.
Figure 5.1.1.1. Interpolation of a function given at discrete points.

The function f(x) chosen for interpolation is called the interpolant. The value of y at any other value of x that is not at the discrete data points is called the interpolated value. Of course, if x falls outside the domain of x for which the data is given, it is no longer interpolation and is called extrapolation.

So, what kind of function f(x) should one choose? A polynomial is a common choice for an interpolating function because polynomials are easy to

(A) evaluate,

(B) differentiate, and

(C) integrate

relative to other choices such as trigonometric and exponential series. For example, given data points (2,4),(3,10),(5,16), one may interpolate the data to

y(x)=a0+a1x+a2x2, 2x5

Other examples of usable interpolants are

y(x)=a0+a1ex+a2e2x, 2x5

y(x)=a0+a1sinx+a2sin2x, 2x5

The problem hence reduces to finding the unknown coefficients a0,  a1, and a2. Once these are found, one can estimate the value of the dependent variable value y at any value of x within the bounds of the x values.

Lesson 2: Uniqueness of Interpolating Polynomials

Learning Objectives

After successful completion of this lesson, you should be able to:

1) derive why a polynomial of degree n or less that passes through n+1 data points is unique.

Proof for a unique polynomial of degree n or less passes through n+1 data points.

Let us use proof by contradiction. If the polynomial is not unique, then at least two polynomials of order n or less pass through the n+1 data points.

Assume two polynomials Pn(x) and Qn(x) go through n+1 data points,

(x0,y0),(x1,y1),,(xn,yn)

Then

Rn(x)=Pn(x)Qn(x)(5.1.2.1)

Since Pn(x)and Qn(x) pass through all the n+1 data points,

Pn(xi)=Qn(xi),i=0,,n(5.1.2.2)

Hence

Rn(xi)=Pn(xi)Qn(xi)=0,i=0,,n(5.1.2.3)

The nth order polynomial Rn(x) has n+1 zeros. A polynomial of order n can have n+1 zeros only if it is identical to a zero polynomial, that is,

Rn(x)0(5.1.2.4)

Hence from Equation (5.1.2.1)

Pn(x)Qn(x)

Example

Show that a unique polynomial of degree 2 or less passes through 3 data points

Solution

Let us use proof by contradiction. If the polynomial is not unique, then at least two polynomials of order 3 or less pass through the 3 data points.

Assume two polynomials P2(x) and Q2(x) go through 3 data points (Figure 5.1.2.1),

(x0,y0),(x1,y1),(x2,y2)

Two proposed polynomials that each pass through the three given data points.
Figure 5.1.2.1. Interpolating polynomials through three points.

R2(x)=P2(x)Q2(x)(5.1.E1.1)

Since P2(x)and Q2(x) pass through all the 3 data points,

P2(xi)=Q2(xi),i=0, 1, 2(5.1.E1.2)

Hence

R2(xi)=P2(xi)Q2(xi)=0,i=0, 1, 2(5.1.E1.3)

Let R2(x) be written as

R2(x)=a0+a1x+a2x2.(5.1.E1.4)

The 2nd order polynomial R2(x) has 3 zeros and these zeros are at x1, x2, and x3. Then from Equation (5.1.E1.4),

R2(x1)=a0+a1x1+a2x21=0R2(x2)=a0+a1x2+a2x22=0R2(x3)=a0+a1x3+a2x23=0(5.1.E1.5)

which in the matrix form gives

[1x1x211x2x221x3x23][a0a1a2]=[000](5.1.E1.6)

The above set of equations has a trivial solution, that is, a1=a2=a3=0. But is this the only solution? That is true if the coefficient matrix is invertible.

The determinant of the coefficient matrix can be found symbolically with the forward elimination steps of Naïve Gauss elimination to give

det[1x1x211x2x221x3x23]=x2x23x22x3x1x23+x21x3+x1x22x21x2=(x1x2)(x2x3)(x3x1)(5.1.E1.7)

Since

x1x2x3

the determinant is non-zero. Hence the coefficient matrix is invertible. a1=a2=a3=0 is the only solution, that is, R2(x)0 giving P2(x)Q2(x) showing that the polynomial has to be unique.

Audiovisual Lecture

Title: Uniqueness of an Interpolating of Polynomial

Summary: This video discusses the polynomial of order n or less that passes through (n+1) data points is unique.

Multiple Choice Test

(1). The number of different polynomials that can go through two fixed data points (x1,y1) and (x2,y2) is

(A) 0

(B) 1

(C) 2

(D) infinite

(2). Given n+1 data pairs, a unique polynomial of degree __________________ passes through n+1 data points.

(A) n+1

(B) n+1 or less

(C) n

(D) n or less

(3). The following function(s) can be used for interpolation:

(A) polynomial

(B) exponential

(C) trigonometric

(D) all of the above

(4). Polynomials are the most commonly used functions for interpolation because they are easy to

(A) evaluate

(B) differentiate

(C) integrate

(D) evaluate, differentiate and integrate

(5). Given n+1 data points (x0,y0),(x1,y1),......,(xn1,yn1),(xn,yn), assume you pass a function f(x) through all the data points. If now the value of the function f(x) is required to be found outside the range of the given x-data, the procedure is called

(A) extrapolation

(B) interpolation

(C) guessing

(D) regression

(6). Given three data points (1,6), (3,28), and (10,231), it is found that the function y=2x2+3x+1 passes through the three data points. Your estimate of y at x=2 is most nearly

(A) 6

(B) 15

(C) 17

(D) 28

For complete solution, go to

http://nm.mathforcollege.com/mcquizzes/05inp/quiz_05inp_background_solution.pdf


This page titled 5.01: Prerequisites to Interpolation is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Autar Kaw via source content that was edited to the style and standards of the LibreTexts platform.

Support Center

How can we help?