SlideShare a Scribd company logo
a) Use Newton’s Polynomials for Evenly Spaced data to derive the O(h4) accurate Second
Centered Difference approximation of the 1st derivative at nx. Start with a polynomial fit to
points at n-2x , n-1x, nx , n+1x and n+2x .
b) Use Newton’s Polynomials for Evenly Spaced data to derive the O(h4) accurate Second
Centered Difference approximation of the 2nd derivative at nx . Remember, to keep the same
O(h4) accuracy, while taking one more derivative than in Part a, we need to add a point to the
polynomial we used in part a.t,s01530456075y,km0356488107120
Solution
An interpolation assignment generally entails a given set of information points: in which the
values yi can,
xi x0 x1 ... xn
f(xi) y0 y1 ... yn
for instance, be the result of a few bodily measurement or they can come from a long
numerical calculation. hence we know the fee of the underlying characteristic f(x) at the set
of points xi, and we want to discover an analytic expression for f .
In interpolation, the assignment is to estimate f(x) for arbitrary x that lies among the smallest
and the most important xi
. If x is out of doors the variety of the xi’s, then the task is called extrapolation,
which is substantially greater unsafe.
with the aid of far the maximum not unusual useful paperwork utilized in interpolation are the
polynomials.
different picks encompass, as an instance, trigonometric functions and spline features
(mentioned
later during this direction).
Examples of different sorts of interpolation responsibilities include:
1. Having the set of n + 1 information factors xi
, yi, we want to understand the fee of y in the
complete c program languageperiod x = [x0, xn]; i.e. we need to find a simple formulation
which reproduces
the given points exactly.
2. If the set of statistics factors contain errors (e.g. if they are measured values), then we
ask for a components that represents the records, and if feasible, filters out the errors.
3. A feature f may be given within the shape of a pc system which is high priced
to assess. In this case, we want to find a characteristic g which offers a very good
approximation of f and is simpler to assess.
2 Polynomial interpolation
2.1 Interpolating polynomial
Given a fixed of n + 1 records points xi
, yi, we need to discover a polynomial curve that passes
via all the factors. as a consequence, we search for a non-stop curve which takes at the values yi
for every of the n+1 wonderful xi’s.
A polynomial p for which p(xi) = yi whilst zero i n is stated to interpolate the given set of
records points. The factors xi are known as nodes.
The trivial case is n = zero. right here a steady function p(x) = y0 solves the hassle.
The only case is n = 1. In this situation, the polynomial p is a directly line described via
p(x) =
xx1
x0 x1
y0 +
xx0
x1 x0
y1
= y0 +
y1 y0
x1 x0
(xx0)
here p is used for linear interpolation.
As we will see, the interpolating polynomial may be written in an expansion of paperwork,
among
these are the Newton shape and the Lagrange shape. those forms are equivalent inside the
feel that the polynomial in question is the only and the same (in reality, the answer to the
interpolation undertaking is given with the aid of a completely unique polynomial)
We begin by means of discussing the conceptually less difficult Lagrange form. but, a
straightforward
implementation of this form is relatively awkward to software and unsuitable for
numerical assessment (e.g. the ensuing set of rules offers no error estimate). The Newton
shape is tons greater convenient and efficient, and therefore, it's far used as the basis for
numerical algorithms.
2.2 Lagrange shape
First define a device of n+1 unique polynomials li called cardinal capabilities. these
have the following belongings:
2.3 existence of interpolating polynomial
Theorem. If points x0, x1,..., xn are wonderful, then for arbitrary actual values y0, y1,..., yn,
there is a unique polynomial p of degree n such that p(xi) = yi for 0 i n.
the concept may be established by means of inductive reasoning. think that we've succeeded in
finding a polynomial p that reproduces part of the given set of records points; e.g. p(xi) = yi
for 0 i okay.
We then try and add another time period to p such that the ensuing curve will skip via
but any other information point xk+1. We remember
q(x) = p(x) +c(xx0)(xx1)...(xxk)
in which c is a constant to be determined.
that is a polynomial and it reproduces the primary k statistics points because p does so and the
brought time period is 0 at every of the factors x0, x1,..., xk
.
We now adjust the value of c in this type of manner that the new polynomial q takes the cost
yk+1
at xk+1. We obtain
q(xk+1) = p(xk+1) +c(xk+1 x0)(xk+1 x1)...(xk+1 xk) = yk+1
The right fee of c may be obtained from this equation in view that all the xi’s are awesome
Newton shape
The inductive evidence of the existence of interpolating polynomial theorem provides a
technique for constructing an interpolating polynomial. The approach is referred to as the
Newton
algorithm.
The approach is based totally on building successive polynomials p0, p1, p2,... till the desired
diploma n is reached (determined via the quantity of statistics points = n+1).
the first polynomial is given by way of
p0(x) = y0
including the second one time period offers
p1(x) = p0(x) +c1(xx0) = y0 +c1(xx0)
Interpolation circumstance is p1(x1) = y1. as a result we gain
y0 +c1(x1 x0) = y1
which leads to
c1 =
y1 y0
x1 x0
The fee of c is evaluated and located within the system for p1.
We then retain to the third time period that is given through
p2(x) = p1(x) +c2(xx0)(xx1) = y0 +c1(xx0) +c2(xx0)(xx1)
We once more impose the interpolation condition p2(x2) = y2 and use it to calculate the price
of c.
The iteration for the kth polynomial is
pk(x) = pk1(x) +ck(xx0)(xx1)...(xxk1)
in the end we acquire the Newton shape of the interpolating polynomial:
pn(x) = a0 +a1(xx0) +a2(xx0)(xx1)...+an(xx0)...(xxn1)
in which the coefficients y0, c1, c2,... had been denoted by ai
.
example.
locate the Newton form of the interpolating polynomial for the subsequent table of values:
x 1/3 1/4 1
y 2 1 7
we can assemble three successive polynomials p0, p1 and p2. the first one is
p0(x) = 2
the subsequent one is given with the aid of
p1(x) = p0(x) +c1(xx0) = 2+c1(x1/three)
the usage of the interpolation circumstance p1(1/4) = 1, we achieve c1 = 36, and
p1(x) = 2+36(x1/three)
ultimately,
p2(x) = p1(x) +c2(xx0)(xx1)
= 2+36(x1/3) +c2(x1/3)(x1/4)
The interpolation situation offers p2(1) = 7, and hence c2 = 38.
The Newton form of the interpolating polynomial is
p2(x) = 2+36(x1/three)38(x1/3)(x1/four)
assessment of Lagrange and Newton forms
Lagrange form
p2(x) =36(x1/four)(x1)
sixteen(x1/3)(x1)
+14(x1/three)(x1/four)
Newton shape
p2(x) = 2+36(x1/three)38(x1/three)(x1/4)
these two polynomials are equivalent, i.e:
p2(x) = 38x
2 + (349/6)x79/6
For green evaluation, the Newton shape may be rewritten in a so-referred to as nested form. This
form is received by using systematic factorisation of the unique polynomial.
keep in mind a popular polynomial in the Newton shape
pn(x) = a0 +a1(xx0) +a2(xx0)(xx1)...+an(xx0)...(xxn1)
this will be written as
pn(x) = a0 +
n
i=1
ai
"
i1
j=0
(xxj)
#
allow us to now rewrite the Newton shape of the interpolating polynomial inside the nested form
by means of the usage of the common terms (xxi) for factoring. We achieve
pn(x) = a0 + (xx0)(a1 + (xx1)(a2 + (xx2)(a3 +...+ (xxn1)an)...))
that is called the nested form and its assessment is completed by way of nested multiplication.
when comparing p(x) for a given numerical fee of x = t, we evidently begin with the
innermost parenthesis:
v0 = an
v1 = v0(t xn1) +an1
v2 = v1(t xn2) +an2
.
.
.
vn = vn1(t x0) +a0
the amount vn is p(t).
within the actual implementation, we handiest want one variable v. the subsequent pseudocode
suggests how the assessment of p(x = t) is completed effectively once the coefficients ai of the
Newton shape are regarded. The array (xi)zero:n incorporates the n+1 nodes xi
.

More Related Content

PDF
Interpolation techniques - Background and implementation
PPTX
PDF
AJMS_402_22_Reprocess_new.pdf
PDF
Multivriada ppt ms
PDF
1249320870000 asgn 1-jm (1)
PDF
PDF
Applied numerical methods lec9
PDF
CBSE - Grade 10 - Mathematics - Ch 2 - Polynomials - Notes (PDF Format)
Interpolation techniques - Background and implementation
AJMS_402_22_Reprocess_new.pdf
Multivriada ppt ms
1249320870000 asgn 1-jm (1)
Applied numerical methods lec9
CBSE - Grade 10 - Mathematics - Ch 2 - Polynomials - Notes (PDF Format)

Similar to a) Use Newton’s Polynomials for Evenly Spaced data to derive the O(h.pdf (20)

PDF
AJMS_389_22.pdf
PDF
Contribution of Fixed Point Theorem in Quasi Metric Spaces
PDF
02_AJMS_186_19_RA.pdf
PDF
02_AJMS_186_19_RA.pdf
PDF
05_AJMS_332_21.pdf
PPTX
01 EC 7311-Module IV.pptx
PDF
On Application of the Fixed-Point Theorem to the Solution of Ordinary Differe...
PPT
4_ms_fourier_theory4_ms_fourier_theory.ppt
DOCX
Polynomial functions modelllings
PDF
Chapter 4 solving systems of nonlinear equations
PPTX
Diffusion Homework Help
PDF
plucker
PPTX
Statistical Physics Assignment Help
PDF
Nonlinear_system,Nonlinear_system, Nonlinear_system.pdf
PPTX
Statistical Method In Economics
PPT
Task 4
PDF
R180304110115
PDF
Solution set 3
PDF
Welcome to International Journal of Engineering Research and Development (IJERD)
PDF
17-recursive-definitions-and-structural-induction.pdf
AJMS_389_22.pdf
Contribution of Fixed Point Theorem in Quasi Metric Spaces
02_AJMS_186_19_RA.pdf
02_AJMS_186_19_RA.pdf
05_AJMS_332_21.pdf
01 EC 7311-Module IV.pptx
On Application of the Fixed-Point Theorem to the Solution of Ordinary Differe...
4_ms_fourier_theory4_ms_fourier_theory.ppt
Polynomial functions modelllings
Chapter 4 solving systems of nonlinear equations
Diffusion Homework Help
plucker
Statistical Physics Assignment Help
Nonlinear_system,Nonlinear_system, Nonlinear_system.pdf
Statistical Method In Economics
Task 4
R180304110115
Solution set 3
Welcome to International Journal of Engineering Research and Development (IJERD)
17-recursive-definitions-and-structural-induction.pdf
Ad

More from petercoiffeur18 (20)

PDF
John, a sociologist, will be focusing on how larger societal institu.pdf
PDF
Implement the ListArray ADT-Implement the following operations.pdf
PDF
In what ways do humans effect the environment Explain in 200 words.pdf
PDF
i need a taking turn method for a player vs computer battleship game.pdf
PDF
I am trying to change this code from STRUCTS to CLASSES, the members.pdf
PDF
how internal resources and capabilities can be a source of sustainab.pdf
PDF
For an organism that is growing using glucose as the electron donor, .pdf
PDF
Exercise 5.6.28. For each of the following descriptions of a function.pdf
PDF
Discuss concepts associated with mercantilism demonstrating key poli.pdf
PDF
C++ Caesar Cipher project. Write your codes for the following functi.pdf
PDF
any idea#includeiostream using stdcout; using stdendl; .pdf
PDF
A radio station has a power output of 200 watts. What is the intensit.pdf
PDF
21) What are the fundamental particles of lepton and quarks How man.pdf
PDF
Case 1-A Transition to SupervisorTristan came in on the ground fl.pdf
PDF
x , y Midterm Exsm-201840x Exam C httpsbb-montgomerycollege.blac.pdf
PDF
Why would a cell want to express genes in an operon Why notSol.pdf
PDF
When discussing the epidemiology of virus infections, the CDC often .pdf
PDF
What relationship is there between gobalization and development.pdf
PDF
what is the number between 4.5 and 4.75 on the number linew.pdf
PDF
What are the five main goals for Operations Managers, and how do the.pdf
John, a sociologist, will be focusing on how larger societal institu.pdf
Implement the ListArray ADT-Implement the following operations.pdf
In what ways do humans effect the environment Explain in 200 words.pdf
i need a taking turn method for a player vs computer battleship game.pdf
I am trying to change this code from STRUCTS to CLASSES, the members.pdf
how internal resources and capabilities can be a source of sustainab.pdf
For an organism that is growing using glucose as the electron donor, .pdf
Exercise 5.6.28. For each of the following descriptions of a function.pdf
Discuss concepts associated with mercantilism demonstrating key poli.pdf
C++ Caesar Cipher project. Write your codes for the following functi.pdf
any idea#includeiostream using stdcout; using stdendl; .pdf
A radio station has a power output of 200 watts. What is the intensit.pdf
21) What are the fundamental particles of lepton and quarks How man.pdf
Case 1-A Transition to SupervisorTristan came in on the ground fl.pdf
x , y Midterm Exsm-201840x Exam C httpsbb-montgomerycollege.blac.pdf
Why would a cell want to express genes in an operon Why notSol.pdf
When discussing the epidemiology of virus infections, the CDC often .pdf
What relationship is there between gobalization and development.pdf
what is the number between 4.5 and 4.75 on the number linew.pdf
What are the five main goals for Operations Managers, and how do the.pdf
Ad

Recently uploaded (20)

PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
Lesson notes of climatology university.
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PPTX
Cell Structure & Organelles in detailed.
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
master seminar digital applications in india
PDF
VCE English Exam - Section C Student Revision Booklet
PDF
RMMM.pdf make it easy to upload and study
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
Sports Quiz easy sports quiz sports quiz
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Cell Types and Its function , kingdom of life
102 student loan defaulters named and shamed – Is someone you know on the list?
Anesthesia in Laparoscopic Surgery in India
Lesson notes of climatology university.
TR - Agricultural Crops Production NC III.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPH.pptx obstetrics and gynecology in nursing
Cell Structure & Organelles in detailed.
O5-L3 Freight Transport Ops (International) V1.pdf
master seminar digital applications in india
VCE English Exam - Section C Student Revision Booklet
RMMM.pdf make it easy to upload and study
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Sports Quiz easy sports quiz sports quiz
Supply Chain Operations Speaking Notes -ICLT Program
Abdominal Access Techniques with Prof. Dr. R K Mishra
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
2.FourierTransform-ShortQuestionswithAnswers.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Cell Types and Its function , kingdom of life

a) Use Newton’s Polynomials for Evenly Spaced data to derive the O(h.pdf

  • 1. a) Use Newton’s Polynomials for Evenly Spaced data to derive the O(h4) accurate Second Centered Difference approximation of the 1st derivative at nx. Start with a polynomial fit to points at n-2x , n-1x, nx , n+1x and n+2x . b) Use Newton’s Polynomials for Evenly Spaced data to derive the O(h4) accurate Second Centered Difference approximation of the 2nd derivative at nx . Remember, to keep the same O(h4) accuracy, while taking one more derivative than in Part a, we need to add a point to the polynomial we used in part a.t,s01530456075y,km0356488107120 Solution An interpolation assignment generally entails a given set of information points: in which the values yi can, xi x0 x1 ... xn f(xi) y0 y1 ... yn for instance, be the result of a few bodily measurement or they can come from a long numerical calculation. hence we know the fee of the underlying characteristic f(x) at the set of points xi, and we want to discover an analytic expression for f . In interpolation, the assignment is to estimate f(x) for arbitrary x that lies among the smallest and the most important xi . If x is out of doors the variety of the xi’s, then the task is called extrapolation, which is substantially greater unsafe. with the aid of far the maximum not unusual useful paperwork utilized in interpolation are the polynomials. different picks encompass, as an instance, trigonometric functions and spline features (mentioned later during this direction). Examples of different sorts of interpolation responsibilities include: 1. Having the set of n + 1 information factors xi , yi, we want to understand the fee of y in the complete c program languageperiod x = [x0, xn]; i.e. we need to find a simple formulation which reproduces the given points exactly. 2. If the set of statistics factors contain errors (e.g. if they are measured values), then we ask for a components that represents the records, and if feasible, filters out the errors. 3. A feature f may be given within the shape of a pc system which is high priced
  • 2. to assess. In this case, we want to find a characteristic g which offers a very good approximation of f and is simpler to assess. 2 Polynomial interpolation 2.1 Interpolating polynomial Given a fixed of n + 1 records points xi , yi, we need to discover a polynomial curve that passes via all the factors. as a consequence, we search for a non-stop curve which takes at the values yi for every of the n+1 wonderful xi’s. A polynomial p for which p(xi) = yi whilst zero i n is stated to interpolate the given set of records points. The factors xi are known as nodes. The trivial case is n = zero. right here a steady function p(x) = y0 solves the hassle. The only case is n = 1. In this situation, the polynomial p is a directly line described via p(x) = xx1 x0 x1 y0 + xx0 x1 x0 y1 = y0 + y1 y0 x1 x0 (xx0) here p is used for linear interpolation. As we will see, the interpolating polynomial may be written in an expansion of paperwork, among these are the Newton shape and the Lagrange shape. those forms are equivalent inside the feel that the polynomial in question is the only and the same (in reality, the answer to the interpolation undertaking is given with the aid of a completely unique polynomial) We begin by means of discussing the conceptually less difficult Lagrange form. but, a straightforward
  • 3. implementation of this form is relatively awkward to software and unsuitable for numerical assessment (e.g. the ensuing set of rules offers no error estimate). The Newton shape is tons greater convenient and efficient, and therefore, it's far used as the basis for numerical algorithms. 2.2 Lagrange shape First define a device of n+1 unique polynomials li called cardinal capabilities. these have the following belongings: 2.3 existence of interpolating polynomial Theorem. If points x0, x1,..., xn are wonderful, then for arbitrary actual values y0, y1,..., yn, there is a unique polynomial p of degree n such that p(xi) = yi for 0 i n. the concept may be established by means of inductive reasoning. think that we've succeeded in finding a polynomial p that reproduces part of the given set of records points; e.g. p(xi) = yi for 0 i okay. We then try and add another time period to p such that the ensuing curve will skip via but any other information point xk+1. We remember q(x) = p(x) +c(xx0)(xx1)...(xxk) in which c is a constant to be determined. that is a polynomial and it reproduces the primary k statistics points because p does so and the brought time period is 0 at every of the factors x0, x1,..., xk . We now adjust the value of c in this type of manner that the new polynomial q takes the cost yk+1 at xk+1. We obtain q(xk+1) = p(xk+1) +c(xk+1 x0)(xk+1 x1)...(xk+1 xk) = yk+1 The right fee of c may be obtained from this equation in view that all the xi’s are awesome Newton shape The inductive evidence of the existence of interpolating polynomial theorem provides a technique for constructing an interpolating polynomial. The approach is referred to as the Newton algorithm. The approach is based totally on building successive polynomials p0, p1, p2,... till the desired diploma n is reached (determined via the quantity of statistics points = n+1). the first polynomial is given by way of p0(x) = y0 including the second one time period offers p1(x) = p0(x) +c1(xx0) = y0 +c1(xx0)
  • 4. Interpolation circumstance is p1(x1) = y1. as a result we gain y0 +c1(x1 x0) = y1 which leads to c1 = y1 y0 x1 x0 The fee of c is evaluated and located within the system for p1. We then retain to the third time period that is given through p2(x) = p1(x) +c2(xx0)(xx1) = y0 +c1(xx0) +c2(xx0)(xx1) We once more impose the interpolation condition p2(x2) = y2 and use it to calculate the price of c. The iteration for the kth polynomial is pk(x) = pk1(x) +ck(xx0)(xx1)...(xxk1) in the end we acquire the Newton shape of the interpolating polynomial: pn(x) = a0 +a1(xx0) +a2(xx0)(xx1)...+an(xx0)...(xxn1) in which the coefficients y0, c1, c2,... had been denoted by ai . example. locate the Newton form of the interpolating polynomial for the subsequent table of values: x 1/3 1/4 1 y 2 1 7 we can assemble three successive polynomials p0, p1 and p2. the first one is p0(x) = 2 the subsequent one is given with the aid of p1(x) = p0(x) +c1(xx0) = 2+c1(x1/three) the usage of the interpolation circumstance p1(1/4) = 1, we achieve c1 = 36, and p1(x) = 2+36(x1/three) ultimately, p2(x) = p1(x) +c2(xx0)(xx1) = 2+36(x1/3) +c2(x1/3)(x1/4) The interpolation situation offers p2(1) = 7, and hence c2 = 38. The Newton form of the interpolating polynomial is p2(x) = 2+36(x1/three)38(x1/3)(x1/four) assessment of Lagrange and Newton forms Lagrange form p2(x) =36(x1/four)(x1)
  • 5. sixteen(x1/3)(x1) +14(x1/three)(x1/four) Newton shape p2(x) = 2+36(x1/three)38(x1/three)(x1/4) these two polynomials are equivalent, i.e: p2(x) = 38x 2 + (349/6)x79/6 For green evaluation, the Newton shape may be rewritten in a so-referred to as nested form. This form is received by using systematic factorisation of the unique polynomial. keep in mind a popular polynomial in the Newton shape pn(x) = a0 +a1(xx0) +a2(xx0)(xx1)...+an(xx0)...(xxn1) this will be written as pn(x) = a0 + n i=1 ai " i1 j=0 (xxj) # allow us to now rewrite the Newton shape of the interpolating polynomial inside the nested form by means of the usage of the common terms (xxi) for factoring. We achieve pn(x) = a0 + (xx0)(a1 + (xx1)(a2 + (xx2)(a3 +...+ (xxn1)an)...)) that is called the nested form and its assessment is completed by way of nested multiplication. when comparing p(x) for a given numerical fee of x = t, we evidently begin with the innermost parenthesis: v0 = an v1 = v0(t xn1) +an1 v2 = v1(t xn2) +an2 . . . vn = vn1(t x0) +a0
  • 6. the amount vn is p(t). within the actual implementation, we handiest want one variable v. the subsequent pseudocode suggests how the assessment of p(x = t) is completed effectively once the coefficients ai of the Newton shape are regarded. The array (xi)zero:n incorporates the n+1 nodes xi .