Lesson 9 Num Sol
Lesson 9 Num Sol
Polynomial Interpolation
Prepared by Engr. Kenneth Ryan Llorera
Objectives
Perform Numerical Approximation of Polynomials
•
which we can approximate to
passes through a given set of points, making it useful for estimating values
between known data points. This technique is particularly valuable in fields
like numerical analysis, computer graphics, and engineering, where precise
interpolations are needed.
The development of LaGrange polynomials is attributed to the
French-Italian mathematician Joseph-Louis LaGrange (1736–1813). He
•
•
and each is defined as
where indicates the specific basis polynomial and the data point it
corresponds to andis used within the product to exclude 𝑥𝑖 when forming
•
𝐿𝑖(𝑥) so that it meets the interpolation conditions. If you have two points,
say , the Lagrange polynomial becomes:
LaGrange Transform
•
where LaGrange Basis Polynomials are
•
The is the LaGrange Interpolating Polynomial from n to k
LaGrange Interpolating Polynomial
Determine the linear Lagrange interpolating polynomial that passes
through the points (2,4) and (5,1).
•
•
Approximating Polynomials
•
For the approximation
suppose first that where , and that for some that is sufficiently
small to ensure that . We construct the first Lagrange polynomial for
•
between 𝑎 and 𝑏. :This indicates that the function 𝑓 belongs to the class of
functions that are twice continuously differentiable on the closed interval
[𝑎,𝑏]. This means that 𝑓 is continuous on [𝑎,𝑏], has a first derivative 𝑓′
that is also continuous on [𝑎,𝑏], and a second derivative 𝑓′′ that is
continuous on [𝑎,𝑏] as well.
LaGrange Transform
where the green term is the error term and the blue ones are from
the LaGrange Polynomial. The expression represents a composite function,
•
•
we can differentiate it for some between and
•
Taylor Series
The Taylor formula or Taylor series was named after the English
mathematician Brook Taylor (1685–1731), who introduced it in 1715 in his
•
•
which is from the Taylor Series
•
for the simplification of the remainder , we defined a stepping size
Order of Taylor Expansion
This relationship, called the zero-order approximation, indicates
that the value of f at the new point is the same as its value at the old point.
•
•
similar to the old value.
terms. This error is the difference between the exact value of the function
and the value given by the truncated Taylor polynomial. It measures how
much information is lost by neglecting higher-order terms.
Approximating Polynomials
Use zero- through fourth-order Taylor series expansions to
approximate the function
•
from with
Because we are dealing with a known function, we can compute
•
values for f(x) between 0 and 1. The results indicate that the function
•
starts at and then curves downward to . Thus, the true value that we are
trying to predict is 0.2.
The Taylor series approximation with or zero order approximation
is
Approximating Polynomials
•
•
Approximating Polynomials
Thus, as in the figure, the zero-order approximation is a constant.
Using this formulation results in a truncation error
•
at
For , the first derivative must be determined and evaluated at :
•
•
Therefore, the first-order approximation is
•
For , the second derivative must be determined and evaluated at :
•
The second order approximation is
Approximating Polynomials
•
The second order approximation is
exact estimate at
Approximating Polynomials
sinusoids, a finite number of terms will not yield an exact estimate. Each
additional term
•
enough” is based on the remainder term of the expansion. Recall that the
•
order . That is, the error is proportional to the step size h raised to the th
•
Order
•
0
1
2
3
4
5
6