1 / 22

Interpolation and You: A Brief Overview of Some Interpolation Tools

Interpolation and You: A Brief Overview of Some Interpolation Tools. By: Mark Coose Joetta Swift Micah Weiss. What Problems Can Interpolation Solve?. Given a table of values, find a simple function that passes through the given points exactly

Gabriel
Download Presentation

Interpolation and You: A Brief Overview of Some Interpolation Tools

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Interpolation and You: A Brief Overview of Some Interpolation Tools By: Mark Coose Joetta Swift Micah Weiss

  2. What Problems Can Interpolation Solve? • Given a table of values, find a simple function that passes through the given points exactly • Given a table of experimental data, find a formula that approximates the data and possibly filters out errors • Given an arbitrary function f, find an approximation in the form of a simpler function g

  3. How Do We Find An Interpolating Polynomial? • Lagrange form • Newton’s form • Cubic Splines

  4. Lagrange Form of the Interpolating Polynomial • A linear combination of n+1 polynomials • Each term is a polynomial of degree n

  5. Consider the Table Begin by finding n+1=3 cardinal functions li(x) Or,

  6. Use these values for li(x) to find the interpolating polynomial of degree 2

  7. Disadvantages of Lagrange Form • Each cardinal polynomial term is degree n • To add one point we must recalculate each cardinal function from scratch

  8. Newton Form of Interpolating Polynomial • Data points can be added without recalculating existing sequence • Pn(xi)=f(xi) for i=0,1,…,n • The polynomial pn is of deg ≤ n • Pn(x) = a0 + a1(x-x0) + a2(x-x0)(x-x1) + … + an(x – xn-1)

  9. Finding Coefficients using divided differences

  10. Our Example Revisited

  11. Adding a Point The beauty of Newton’s form of the interpolating polynomial is that it allows us to add points and extend the polynomial without redoing previous calculations. The additional point only requires us to calculate the three values shown in red.

  12. Disadvantages of Polynomial Interpolation • The function can oscillate wildly • Each polynomial can be of degree n (computationally expensive for large n = number of points).

  13. Splines Definition: A function is called a spline of degree k if • The domain of S is an interval[a,b] • There are points ti such that a=t0<t1<…<tn=b and S is a polynomial of degree at most k on each subinterval [ti, ti+1] • S, S’, S’’,…,S(k-1) are all continuous functions on [a,b]

  14. Splines • Linear,Quadratic Splines • Cubic Splines • Cubic Splines are almost always used over polynomial interpolation because of its increased accuracy (smaller error) and the final curve is smoother than polynomial interpolation

  15. Linear Spline vs. Cubic Spline

  16. Cubic Spline Smoothness Property If S is the natural cubic spline function that interpolates a twice-continuous differentiable function f at knots a=t0<t1<…<tn=b, then

  17. What Does This Mean? • A function with large second derivatives is subject to wild oscillations. The Smoothness Property ensures that the spline S oscillates less than the function that it interpolates. • An example is shown, here.

  18. Proof of Smoothness Property • Let g(x)=f(x)-s(x) Then, f”(x)=g”(x)+s”(x) And,

  19. Apply integration by parts • Let u=s’’(x) and dv=g’’(x) • Then, • Since, this is a natural cubic spline, s’’=0, so the first term is equal to zero. • Which leaves

  20. Integration by Parts cont. • [break this up into sub integrals] = • (s’’’ is a constant within this integral) = • [g(t(i) + 1) – g(t(i))] = 0 • because g(t(i) + 1) = g(t(i)) = 0

  21. So, • But, • So,

More Related