Docsity

Review of Interpolation, Integration and Differentiation - Prof. Luke Olson, Study notes of Computer Science

Partial preview of the text

Download Review of Interpolation, Integration and Differentiation - Prof. Luke Olson and more Study notes Computer Science in PDF only on Docsity!

Lecture 21

Review

L. Olson

Department of Computer Science University of Illinois at Urbana-Champaign

November 8, 2006

Topics

Interpolation Integration Differentiation

T/F If the polynomial interpolating a given set of data points is unique, then so is the representation of that polynomial.

T/F When interpolating a continuous function by a polynomial at equally spaced points on a given interval, the polynomial interpolant always converges to the function as the number of interpolation points increases.

T/F If the polynomial interpolating a given set of data points is unique, then so is the representation of that polynomial.

T/F When interpolating a continuous function by a polynomial at equally spaced points on a given interval, the polynomial interpolant always converges to the function as the number of interpolation points increases.

Is it possible for two distinct polynomials to interpolate the same n + 1 data points? If so, under what conditions, and if not, why?

f (x) = x and f (x) = x^2 both go through TWO points: 0 and 1

n points uniquely determine an n − 1 interpolating polynomial

State at least two important criteria for choosing a particular set of basis functions for use in interpolation.

For a given set of data points (xi, yi), rank the following in terms according to the cost of determining the interpolant (i.e. determining the coefficients of the basis functions) from cheapest to most expensive: Monomial basis, Lagrange basis, Newton basis.

For which of the three methods is evaluating the resulting interpolant at a given point the most expensive?

For which of the three methods is evaluating the resulting interpolant at a given point the least expensive?

What is the Vandermonde matrix and why is it often ill-conditioned (e.g. for monomials)?

For y = a 2 x^2 + a 1 x + a 0 to interpolate data (xi, yi):

 

1 x 0 x^20 1 x 1 x^21 1 x 2 x^22

V

a 0 a 1 a 2

y 0 y 1 y 2

e.g. Matlab: vander

For Lagrange polynomial of n + 1 data points (xi, yi), What is the degree of each polynomial function `j(x) in the Lagrange basis?

For Lagrange polynomial of n + 1 data points (xi, yi), What function results if we sum the n + 1 function in the Lagrange basis (i.e. if we take g(x) =

∑n j= 1 L n j (x))

Name one advantage and one disadvantage of Lagrange interpolation.

What’s is the computational cost of evaluating a polynomial of degree n using Horner’s method (nested iteration).

Suppose we want to interpolate a large number of points. What is one advantage of using piecewise interpolation over interpolation by a single polynomial?

Name one advantage and one disadvantage of Lagrange interpolation.

What’s is the computational cost of evaluating a polynomial of degree n using Horner’s method (nested iteration).

Suppose we want to interpolate a large number of points. What is one advantage of using piecewise interpolation over interpolation by a single polynomial?

Nested: p(x) = b 1 + x(b 2 + x(b 3 + x(b 4 + b 5 x)))

T/F Gauss quadrature rules of different orders do not have points in

 - 1.0000 1. common. 
  • Order - 1.0000 1.
  • Order - 1.0000 1.
  • Order - 1.0000 1.
  • Order - 0.5556 0.8889 0.
  • Order - 0.5556 0.8889 0.
  • Order - 0.5556 0.8889 0.
  • Order - 0.5556 0.8889 0.
  • Order - 0.3479 0.6521 0.6521 0.
  • Order - 0.3479 0.6521 0.6521 0.
  • Order - 0.3479 0.6521 0.6521 0.
  • Order - 0.3479 0.6521 0.6521 0.
  • Order - 0.2369 0.4786 0.5689 0.4786 0.
  • Order - 0.2369 0.4786 0.5689 0.4786 0.
  • Order - 0.2369 0.4786 0.5689 0.4786 0.
  • Order - 0.2369 0.4786 0.5689 0.4786 0.
  • Order
    • -1 -0.5 0 0.5
      • 0.17130.17130.17130.1713 0.36080.36080.36080.3608 0.46790.46790.46790.4679 0.46790.46790.46790.4679 0.36080.36080.36080.3608 0.17130.17130.17130.
  • Order

T/F The nodes for n-pt GL quadrature are the roots of the nth Lagrange polynomial

Suppose n is large. Do you expect n-point Newton-Cotes quadrature rule to work well for integrating Runge’s function

− 1

1 1 +x^2 dx^ if^ n^ is large? Why or why not?

Suppose n is large. Do you expect n-point Newton-Cotes quadrature rule to work well for integrating Runge’s function

− 1

1 1 +x^2 dx^ if^ n^ is large? Why or why not?

Careful...we’re integrating. The osciallations still persist interpolating, but...