0% found this document useful (0 votes)
7 views55 pages

NA Lecture 18 (N)

This document discusses various interpolation methods in numerical analysis, focusing on finite differences and their operators, including forward, backward, and central differences. It explains how to construct difference tables and derive interpolation formulas based on tabulated values. Additionally, it covers the concepts of extrapolation and the significance of finite differences in estimating function values at intermediate points.

Uploaded by

xibejir727
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views55 pages

NA Lecture 18 (N)

This document discusses various interpolation methods in numerical analysis, focusing on finite differences and their operators, including forward, backward, and central differences. It explains how to construct difference tables and derive interpolation formulas based on tabulated values. Additionally, it covers the concepts of extrapolation and the significance of finite differences in estimating function values at intermediate points.

Uploaded by

xibejir727
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 55

Numerical

Analysis
Lecture 18
Chapter 5
Interpolation
Finite
Finite Difference
Difference Operators
Operators
Newton’s
Newton’s Forward
Forward Difference
Difference
Interpolation
Interpolation Formula
Formula
Newton’s
Newton’s Backward
Backward Difference
Difference
Interpolation
Interpolation Formula
Formula
Lagrange’s
Lagrange’s Interpolation
Interpolation
Formula
Formula
Divided
Divided Differences
Differences
Interpolation
Interpolation in
in Two
Two Dimensions
Dimensions
Cubic
Cubic Spline
Spline Interpolation
Interpolation
Introduction
Finite
Finite differences
differences play
play an
an
important
important role
role in
in numerical
numerical
techniques,
techniques, where
where
tabulated
tabulated values
values of
of the
the
functions
functions are
are available.
available.
For
For instance,
instance, consider
consider aa
function
function
y  f ( x).
As
As xx takes
takes values
values

x0 , x1 , x2 , , xn ,
let
let the
the corresponding
corresponding values
values
of
of yy be
be

y0 , y1 , y2 , , yn .
That is, for given a table of
values,
( xk , yk ), k 0,1, 2, , n;

the process of estimating


the value of y, for any
intermediate value of x, is
called interpolation.
The method of computing
the value of y, for a given
value of x, lying outside
the table of values of x is
known as extrapolation.
If the function f (x) is
known, the value of y
corresponding to any x
can be readily
computed to the
desired accuracy.
For interpolation of a
tabulated function, the
concept of finite differences
is important. The knowledge
about various finite
difference operators and
their symbolic relations are
very much needed to
establish various
interpolation formulae.
Finite
Difference
Operators
Finite
Finite Difference
Difference Operators
Operators

Forward
Forward Differences
Differences

Backward
Backward Differences
Differences

Central
Central Difference
Difference
Forward
Differences
For a given table of values
( xk , yk ), k 0,1, 2,..., n

with equally spaced abscissas


of a function y  f ( x ),

we define the forward difference


operator  as follows
To be explicit, we write
y0  y1  y0
y1  y2  y1
  
yn  1  yn  yn  1
These differences are
called first differences of
the function y and are
denoted by the symbol i y
Here, is called the
first difference operator
Similarly, the differences of
the first differences are
called second differences,
defined by
2 2
 y0 y1  y0 ,  y1 y2  y1

Thus, in general
2
 yi yi 1  yi
2
Here  is called the second
difference operator. Thus,
continuing, we can define,
r-th difference of y, as

r r 1 r 1
 yi  yi 1   yi
By defining a difference table
as a convenient device for
displaying various
differences, the above
defined differences can be
written down systematically
by constructing a difference
table for values
( xk , yk ), k 0,1,..., 6
Forward Difference Table
This difference table is called
forward difference table or
diagonal difference table.
Here, each difference is
located in its appropriate
column, midway between the
elements of the previous
column.
Please note that the subscript
remains constant along each
diagonal of the table. The first
term in the table, that is y0 is
called the leading term, while
the differences
2 3
y0 ,  y0 ,  y0 ,...
are called leading differences
Example
Construct a forward difference
table for the following values of
x and y:
Solution
Example
2 3
Express  y0 and  y0 in
terms of the values of
the function y.
Solution:
Noting that each higher order
difference is defined in terms
of the lower order difference,
we have
2
 y0 y1  y0 ( y2  y1 )  ( y1  y0 )
 y2  2 y1  y0
and
 3 y0  2 y1   2 y0 (y2  y1 )  ( y1  y0 )
( y3  y2 )  ( y2  y1 )  ( y2  y1 )  ( y1  y0 )
 y3  3 y2  3 y1  y0

Hence, we observe that the


coefficients of the values of y,
2 3
in the expansion of  y0 ,  y0 ,
are binomial coefficients.
Thus, in general, we arrive at
the following result: -

n n n
 y0  yn  C1 yn  1  C2 yn  2
n n
 C3 yn  3    ( 1) y0
Example
Show that the value of yn can
be expressed in terms of the
leading value y0 and the
leading differences
2 n
y0 ,  y0 , ,  y0 .
Solution
The forward difference table will be

y1  y0 y0 or y1  y0  y0 

y2  y1 y1 or y2  y1  y1 

y3  y2 y2 or y3  y2  y2 
Similarly,
y1  y0  y0 or y1 y0   y0 
2 2

2 2 
y2  y1  y1 or y2 y1   y1 

Similarly, we can also write


 y1   y0  y0 or  y1  y0   y0 
2 2 3 2 2 3

2 2 3 2 2 3 
 y2   y1  y1 or  y2  y1   y1 
2 2 3
y2 (y0   y0 )  ( y0   y0 )
2 3
y0  2 y0   y0
y3  y2  y2
2
( y1  y1 )  (y1   y1 )
2 3
 y0  3y0  3 y0   y0
3
(1   ) y0
Similarly, we can symbolically
write y (1   ) y ,
1 0
2
y2 (1   ) y0 ,
3
y3 (1   ) y0
........
n
yn (1   ) y0
Hence, we obtain
n n 2
yn  y0  C1y0  C2  y0
n 3 n
 C3 y0     y0
n
yn  Ci  y0 n i

i 0
Numerical
Analysis
Lecture 18
Backward
Differences
For a given table of values
( xk , yk ), k 0,1, 2,..., n
of a function y = f (x) with
equally spaced abscissas, the
first backward differences are
usually expressed in terms of
the backward difference
operator  as
yi  yi  yi  1i n, (n  1), ,1

y1  y1  y0
OR y2  y2  y1
  
yn  yn  yn  1
The differences of these
differences are called second
differences and they are
denoted by 2 y , 2 y , , 2 y .
2 3 n

That is 2
 y1 y2  y1
2
 y2 y3  y2
  
2
 yn yn  yn  1
Thus, in general, the second
backward differences are
2
 yi yi  yi  1 , i n, (n  1),..., 2

while the k-th backward


differences are given as
k k1 k1
 yi  yi   yi  1 , i n, (n  1),..., k
These backward differences
can be systematically
arranged for a table of values
( xk , yk ), k 0,1,..., 6

Backward Difference Table


From this table, it can
be observed that the
subscript remains
constant along every
backward diagonal.
Example
Show that any value of y
can be expressed in terms
of yn and its backward
differences.
Solution
From yi  yi  yi  1i n, (n  1), ,1

We get yn  1  yn  yn yn  2  yn  1  yn  1

From 2
 yi yi  yi  1 , i n, (n  1),..., 2
2
We get yn  1 yn   yn
From these equations, we
obtain
2
yn  2  yn  2yn   yn

Similarly, we can show that


2 3
yn  3  yn  3yn  3 yn   yn
Symbolically, these results can
be rewritten as follows:
yn  1 (1  ) yn
2
yn  2 (1  ) yn
3
yn  3 (1  ) yn
.......
r
yn  r (1  ) yn
n n 2 r r
yn  r  yn  C1yn  C2 yn    ( 1)  yn
Central
Differences
In some applications, central
difference notation is found to be
more convenient to represent the
successive differences of a
function. Here, we use the symbol 
to represent central difference
operator and the subscript of  y
for any difference as the average of
the subscripts
 y1 2  y1  y0 ,  y3 2  y2  y1 ,
In general
 yi  yi (1 2)  yi  (1 2)
Higher order differences are
defined as follows:
 yi  yi (1 2)   yi  (1 2)
2

n 1 n 1
 yi 
n
yi (1 2)   yi  (1 2)
These central differences can
be systematically arranged as
indicated in the Table
Thus, we observe that all
the odd differences have a
fractional suffix and all the
even differences with the
same subscript lie
horizontally.
The following alternative
notation may also be adopted
to introduce finite difference
operators. Let y = f (x) be a
functional relation between x
and y, which is also denoted
by yx.
Suppose, we are given
consecutive values of x
differing by h say x, x + h, x +2h,
x +3h, etc. The corresponding
values of y are yx , yx h , yx 2 h , yx 3h ,
As before, we can form the
differences of these values.
Thus
y x  yx h  yx  f ( x  h)  f ( x)
2
 y x y x h  yx
Similarly
y x  y x  y x  h  f ( x)  f ( x  h)
 h  h
 yx  y x ( h / 2)  y x  ( h / 2) f x  f x 
 2  2
Numerical
Analysis
Lecture 18

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy