5.1: Polynomial Interpolation (2024)

  1. Last updated
  2. Save as PDF
  • Page ID
    96054
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}}}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{#1}}} \)

    \( \newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\)

    ( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\id}{\mathrm{id}}\)

    \( \newcommand{\Span}{\mathrm{span}}\)

    \( \newcommand{\kernel}{\mathrm{null}\,}\)

    \( \newcommand{\range}{\mathrm{range}\,}\)

    \( \newcommand{\RealPart}{\mathrm{Re}}\)

    \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\)

    \( \newcommand{\Argument}{\mathrm{Arg}}\)

    \( \newcommand{\norm}[1]{\| #1 \|}\)

    \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\)

    \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    \( \newcommand{\vectorA}[1]{\vec{#1}} % arrow\)

    \( \newcommand{\vectorAt}[1]{\vec{\text{#1}}} % arrow\)

    \( \newcommand{\vectorB}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}}}\)

    \( \newcommand{\vectorC}[1]{\textbf{#1}}\)

    \( \newcommand{\vectorD}[1]{\overrightarrow{#1}}\)

    \( \newcommand{\vectorDt}[1]{\overrightarrow{\text{#1}}}\)

    \( \newcommand{\vectE}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{\mathbf {#1}}}} \)

    \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}}}\)

    \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash{#1}}} \)

    \(\newcommand{\avec}{\mathbf a}\) \(\newcommand{\bvec}{\mathbf b}\) \(\newcommand{\cvec}{\mathbf c}\) \(\newcommand{\dvec}{\mathbf d}\) \(\newcommand{\dtil}{\widetilde{\mathbf d}}\) \(\newcommand{\evec}{\mathbf e}\) \(\newcommand{\fvec}{\mathbf f}\) \(\newcommand{\nvec}{\mathbf n}\) \(\newcommand{\pvec}{\mathbf p}\) \(\newcommand{\qvec}{\mathbf q}\) \(\newcommand{\svec}{\mathbf s}\) \(\newcommand{\tvec}{\mathbf t}\) \(\newcommand{\uvec}{\mathbf u}\) \(\newcommand{\vvec}{\mathbf v}\) \(\newcommand{\wvec}{\mathbf w}\) \(\newcommand{\xvec}{\mathbf x}\) \(\newcommand{\yvec}{\mathbf y}\) \(\newcommand{\zvec}{\mathbf z}\) \(\newcommand{\rvec}{\mathbf r}\) \(\newcommand{\mvec}{\mathbf m}\) \(\newcommand{\zerovec}{\mathbf 0}\) \(\newcommand{\onevec}{\mathbf 1}\) \(\newcommand{\real}{\mathbb R}\) \(\newcommand{\twovec}[2]{\left[\begin{array}{r}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\ctwovec}[2]{\left[\begin{array}{c}#1 \\ #2 \end{array}\right]}\) \(\newcommand{\threevec}[3]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\cthreevec}[3]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \end{array}\right]}\) \(\newcommand{\fourvec}[4]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\cfourvec}[4]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \end{array}\right]}\) \(\newcommand{\fivevec}[5]{\left[\begin{array}{r}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\cfivevec}[5]{\left[\begin{array}{c}#1 \\ #2 \\ #3 \\ #4 \\ #5 \\ \end{array}\right]}\) \(\newcommand{\mattwo}[4]{\left[\begin{array}{rr}#1 \amp #2 \\ #3 \amp #4 \\ \end{array}\right]}\) \(\newcommand{\laspan}[1]{\text{Span}\{#1\}}\) \(\newcommand{\bcal}{\cal B}\) \(\newcommand{\ccal}{\cal C}\) \(\newcommand{\scal}{\cal S}\) \(\newcommand{\wcal}{\cal W}\) \(\newcommand{\ecal}{\cal E}\) \(\newcommand{\coords}[2]{\left\{#1\right\}_{#2}}\) \(\newcommand{\gray}[1]{\color{gray}{#1}}\) \(\newcommand{\lgray}[1]{\color{lightgray}{#1}}\) \(\newcommand{\rank}{\operatorname{rank}}\) \(\newcommand{\row}{\text{Row}}\) \(\newcommand{\col}{\text{Col}}\) \(\renewcommand{\row}{\text{Row}}\) \(\newcommand{\nul}{\text{Nul}}\) \(\newcommand{\var}{\text{Var}}\) \(\newcommand{\corr}{\text{corr}}\) \(\newcommand{\len}[1]{\left|#1\right|}\) \(\newcommand{\bbar}{\overline{\bvec}}\) \(\newcommand{\bhat}{\widehat{\bvec}}\) \(\newcommand{\bperp}{\bvec^\perp}\) \(\newcommand{\xhat}{\widehat{\xvec}}\) \(\newcommand{\vhat}{\widehat{\vvec}}\) \(\newcommand{\uhat}{\widehat{\uvec}}\) \(\newcommand{\what}{\widehat{\wvec}}\) \(\newcommand{\Sighat}{\widehat{\Sigma}}\) \(\newcommand{\lt}{<}\) \(\newcommand{\gt}{>}\) \(\newcommand{\amp}{&}\) \(\definecolor{fillinmathshade}{gray}{0.9}\)

    The \(n+1\) points \(\left(x_{0}, y_{0}\right),\left(x_{1}, y_{1}\right), \ldots,\left(x_{n}, y_{n}\right)\) can be interpolated by a unique polynomial of degree \(n .\) When \(n=1\), the polynomial is a linear function; when \(n=2\), the polynomial is a quadratic function. There are three standard algorithms that can be used to construct this unique interpolating polynomial, and we will present all three here, not so much because they are all useful, but because it is interesting to learn how these three algorithms are constructed.

    When discussing each algorithm, we define \(P_{n}(x)\) to be the unique \(n\)th degree polynomial that passes through the given \(n+1\) data points.

    5.1.1.Vandermonde polynomial

    This Vandermonde polynomial is the most straightforward construction of the interpolating polynomial \(P_{n}(x)\). We simply write

    \[P_{n}(x)=c_{0} x^{n}+c_{1} x^{n-1}+\cdots+c_{n} . \nonumber \]

    Then we can immediately form \(n+1\) linear equations for the \(n+1\) unknown coefficients \(c_{0}, c_{1}, \ldots, c_{n}\) using the \(n+1\) known points:

    \[\begin{gathered} y_{0}=c_{0} x_{0}^{n}+c_{1} x_{0}^{n-1}+\cdots+c_{n-1} x_{0}+c_{n} \\ y_{2}=c_{0} x_{1}^{n}+c_{1} x_{1}^{n-1}+\cdots+c_{n-1} x_{1}+c_{n} \\ \vdots \\ y_{n}=c_{0} x_{n}^{n}+c_{1} x_{n}^{n-1}+\cdots+c_{n-1} x_{n}+c_{n} \end{gathered} \nonumber \]

    The system of equations in matrix form is

    \[\left(\begin{array}{ccccc} x_{0}^{n} & x_{0}^{n-1} & \cdots & x_{0} & 1 \\ x_{1}^{n} & x_{1}^{n-1} & \cdots & x_{1} & 1 \\ \vdots & \vdots & \ddots & \vdots & \\ x_{n}^{n} & x_{n}^{n-1} & \cdots & x_{n} & 1 \end{array}\right)\left(\begin{array}{c} c_{0} \\ c_{1} \\ \vdots \\ c_{n} \end{array}\right)=\left(\begin{array}{c} y_{0} \\ y_{1} \\ \vdots \\ y_{n} \end{array}\right) \nonumber \]

    The matrix is called the Vandermonde matrix, and can be constructed using the MATLAB function vander.m. The system of linear equations can be solved in MATLAB using the \operator, and the MATLAB function polyval.m can used to interpolate using the \(c\) coefficients. I will illustrate this in class and place the code on the website.

    5.1.2.Lagrange polynomial

    The Lagrange polynomial is the most clever construction of the interpolating polynomial \(P_{n}(x)\), and leads directly to an analytical formula. The Lagrange polynomial is the sum of \(n+1\) terms and each term is itself a polynomial of degree \(n\). The full polynomial is therefore of degree \(n\). Counting from 0 , the \(i\) th term of the Lagrange polynomial is constructed by requiring it to be zero at \(x_{j}\) with \(j \neq i\), and equal to \(y_{i}\) when \(j=i\). The polynomial can be written as

    \[\begin{array}{r} P_{n}(x)=\dfrac{\left(x-x_{1}\right)\left(x-x_{2}\right) \cdots\left(x-x_{n}\right) y_{0}}{\left(x_{0}-x_{1}\right)\left(x_{0}-x_{2}\right) \cdots\left(x_{0}-x_{n}\right)}+\dfrac{\left(x-x_{0}\right)\left(x-x_{2}\right) \cdots\left(x-x_{n}\right) y_{1}}{\left(x_{1}-x_{0}\right)\left(x_{1}-x_{2}\right) \cdots\left(x_{1}-x_{n}\right)} \\ +\cdots+\dfrac{\left(x-x_{0}\right)\left(x-x_{1}\right) \cdots\left(x-x_{n-1}\right) y_{n}}{\left(x_{n}-x_{0}\right)\left(x_{n}-x_{1}\right) \cdots\left(x_{n}-x_{n-1}\right)} . \end{array} \nonumber \]

    It can be clearly seen that the first term is equal to zero when \(x=x_{1}, x_{2}, \ldots, x_{n}\) and equal to \(y_{0}\) when \(x=x_{0}\); the second term is equal to zero when \(x=x_{0}, x_{2}, \ldots x_{n}\) and equal to \(y_{1}\) when \(x=x_{1}\); and the last term is equal to zero when \(x=x_{0}, x_{1}, \ldots x_{n-1}\) and equal to \(y_{n}\) when \(x=x_{n}\). The uniqueness of the interpolating polynomial implies that the Lagrange polynomial must be the interpolating polynomial.

    5.1.3.Newton polynomial

    The Newton polynomial is somewhat more clever than the Vandermonde polynomial because it results in a system of linear equations that is lower triangular, and therefore can be solved by forward substitution. The interpolating polynomial is written in the form

    \[P_{n}(x)=c_{0}+c_{1}\left(x-x_{0}\right)+c_{2}\left(x-x_{0}\right)\left(x-x_{1}\right)+\cdots+c_{n}\left(x-x_{0}\right) \cdots\left(x-x_{n-1}\right) \nonumber \]

    which is clearly a polynomial of degree \(n\). The \(n+1\) unknown coefficients given by the \(c^{\prime}\) s can be found by substituting the points \(\left(x_{i}, y_{i}\right)\) for \(i=0, \ldots, n\) :

    \[\begin{aligned} y_{0} &=c_{0} \\ y_{1} &=c_{0}+c_{1}\left(x_{1}-x_{0}\right) \\ y_{2} &=c_{0}+c_{1}\left(x_{2}-x_{0}\right)+c_{2}\left(x_{2}-x_{0}\right)\left(x_{2}-x_{1}\right) \\ \vdots & \vdots \\ y_{n} &=c_{0}+c_{1}\left(x_{n}-x_{0}\right)+c_{2}\left(x_{n}-x_{0}\right)\left(x_{n}-x_{1}\right)+\cdots+c_{n}\left(x_{n}-x_{0}\right) \cdots\left(x_{n}-x_{n-1}\right) \end{aligned} \nonumber \]

    This system of linear equations is lower triangular as can be seen from the matrix form

    \[\left(\begin{array}{ccccc} 1 & 0 & 0 & \cdots & 0 \\ 1 & \left(x_{1}-x_{0}\right) & 0 & \cdots & 0 \\ \vdots & \vdots & \vdots & \ddots & \vdots \\ 1 & \left(x_{n}-x_{0}\right) & \left(x_{n}-x_{0}\right)\left(x_{n}-x_{1}\right) & \cdots & \left(x_{n}-x_{0}\right) \cdots\left(x_{n}-x_{n-1}\right) \end{array}\right)\left(\begin{array}{c} c_{0} \\ c_{1} \\ \vdots \\ c_{n} \end{array}\right) \nonumber \]

    and so theoretically can be solved faster than the Vandermonde polynomial. In practice, however, there is little difference because polynomial interpolation is only useful when the number of points to be interpolated is small.

    5.1: Polynomial Interpolation (2024)

    FAQs

    How do you solve a polynomial interpolation? ›

    To find the interpolation polynomial p(x) in the vector space P(n) of polynomials of degree n, we may use the usual monomial basis for P(n) and invert the Vandermonde matrix by Gaussian elimination, giving a computational cost of O(n3) operations.

    What are the limitations of polynomial interpolation? ›

    In this case, the polynomial interpolation is not too good because of large swings of the interpolating polynomial between the data points: The interpolating polynomial has degree six for the intermediate data values and may have five extremal points (maxima and minima).

    What is the easiest method for solving interpolation? ›

    One of the simplest methods is linear interpolation (sometimes known as lerp). Consider the above example of estimating f(2.5). Since 2.5 is midway between 2 and 3, it is reasonable to take f(2.5) midway between f(2) = 0.9093 and f(3) = 0.1411, which yields 0.5252.

    How accurate is interpolation? ›

    The accuracy of an interpolation depends on several factors including: sampling scheme, number of sample points, interpolation method, measurement error in the observed x, y, z values and the nature and complexity of the observed phenomena.

    What is the formula for calculating interpolation? ›

    The linear interpolation formula, or interpolation equation, appears as follows: y − y 1 = y 2 − y 1 x 2 − x 1 ( x − x 1 ) , where ( x 1 , y 1 ) and ( x 2 , y 2 ) are two known data points and ("x," "y") represents the data point to be estimated.

    Who solved the interpolation problem? ›

    In a proof published last January, Larson and Vogt solved the interpolation problem — a discovery that Quanta Magazine deemed one of 2022's most significant mathematical developments.

    What is the problem of interpolation? ›

    An interpolation problem refers to the task of finding an estimation function that accurately predicts the value of a dependent variable based on a given set of independent variables.

    Is polynomial interpolation unique? ›

    The uniqueness of interpolation tells us that different ways of writing the interpolating polyno- mial p(x) are really the same, and must therefore differ on numerical grounds (such as compactness, stabilities, efficiency, . . . ).

    What is complexity of polynomial interpolation? ›

    Polynomial Interpolation in the general case is O(n2) time complexity, but it can be done better in particular situations.

    What is the fastest interpolation method? ›

    The Nearest Point interpolation method is the fastest of all the interpolation methods when used with point data (fig. 19). If used with line or polygon data it can be slower than the Nearest interpolation especially if many of the object vertices lie outside the grid.

    What is the most accurate method of interpolation? ›

    In terms of the ability to fit your data and produce a smooth surface, the Multiquadric method is considered by many to be the best. All of the Radial Basis Function methods are exact interpolators, so they attempt to honor your data.

    How to interpolate manually? ›

    How to interpolate
    1. Organize your data. First, put the data you've collected into a chart that shows your independent and dependent variables. ...
    2. Consider creating a graph. ...
    3. Select your two points. ...
    4. Enter values into the interpolation equation. ...
    5. Solve for the missing variable.
    Oct 16, 2023

    How to do the interpolation method? ›

    How to interpolate
    1. Identify your data. Use a table to list your data. ...
    2. Create a line of best fit. After using the values to plot a graph, you can draw a line of best fit. ...
    3. Determine your value for interpolation. ...
    4. Use the linear interpolation equation. ...
    5. Solve the equation.
    Sep 30, 2022

    How do you solve a polynomial regression? ›

    Applying Polynomial Regression Equation in Maths Problems
    1. Start with a hypothesis regarding the potential relationship between variables and . ...
    2. Based upon this hypothesis, choose an initial degree for your polynomial. ...
    3. Estimate the coefficients using the least squares method. ...
    4. Evaluate the goodness of fit for your model.

    How to do polynomial extrapolation? ›

    Polynomial extrapolation is typically done by means of Lagrange interpolation or using Newton's method of finite differences to create a Newton series that fits the data. The resulting polynomial may be used to extrapolate the data. High-order polynomial extrapolation must be used with due care.

    What is the quadratic interpolation formula? ›

    Quadratic Interpolation

    L2(x) = (x − x0)(x − x1) (x2 − x0)(x2 − x1) The polynomial P(x) given by the above formula is called Lagrange's interpolating polynomial and the functions L0, L1, L2 are called Lagrange's interpolating basis functions.

    Top Articles
    The Ultimate Guide of Easy DIY 4th Of July Party Ideas in 2024
    New York Cheesecake: Dieses super cremige Rezept macht süchtig!
    San Angelo, Texas: eine Oase für Kunstliebhaber
    Is Paige Vanzant Related To Ronnie Van Zant
    Uca Cheerleading Nationals 2023
    Mcgeorge Academic Calendar
    Satyaprem Ki Katha review: Kartik Aaryan, Kiara Advani shine in this pure love story on a sensitive subject
    Miss Carramello
    Skip The Games Norfolk Virginia
    Oppenheimer & Co. Inc. Buys Shares of 798,472 AST SpaceMobile, Inc. (NASDAQ:ASTS)
    MADRID BALANZA, MªJ., y VIZCAÍNO SÁNCHEZ, J., 2008, "Collares de época bizantina procedentes de la necrópolis oriental de Carthago Spartaria", Verdolay, nº10, p.173-196.
    Mercy MyPay (Online Pay Stubs) / mercy-mypay-online-pay-stubs.pdf / PDF4PRO
    Large storage units
    Aita Autism
    4Chan Louisville
    Keurig Refillable Pods Walmart
    Mission Impossible 7 Showtimes Near Regal Bridgeport Village
    Cooking Fever Wiki
    Nebraska Furniture Tables
    Louisiana Sportsman Classifieds Guns
    Cinebarre Drink Menu
    Aberration Surface Entrances
    Cyndaquil Gen 4 Learnset
    Imagetrend Inc, 20855 Kensington Blvd, Lakeville, MN 55044, US - MapQuest
    Swgoh Turn Meter Reduction Teams
    Craigslist Mt Pleasant Sc
    Tips on How to Make Dutch Friends & Cultural Norms
    Pecos Valley Sunland Park Menu
    Ups Drop Off Newton Ks
    Move Relearner Infinite Fusion
    Kitchen Exhaust Cleaning Companies Clearwater
    Jamielizzz Leaked
    Kleinerer: in Sinntal | markt.de
    Craigslist Sf Garage Sales
    Account Now Login In
    Grandstand 13 Fenway
    Gerber Federal Credit
    Craigslist Mount Pocono
    Buhsd Studentvue
    Vision Source: Premier Network of Independent Optometrists
    B.C. lightkeepers' jobs in jeopardy as coast guard plans to automate 2 stations
    Suffix With Pent Crossword Clue
    Lake Andes Buy Sell Trade
    Pekin Soccer Tournament
    Top 40 Minecraft mods to enhance your gaming experience
    Poe Self Chill
    Kaamel Hasaun Wikipedia
    Boyfriends Extra Chapter 6
    Doelpuntenteller Robert Mühren eindigt op 38: "Afsluiten in stijl toch?"
    Charlotte North Carolina Craigslist Pets
    Parks And Rec Fantasy Football Names
    Fetllife Com
    Latest Posts
    Article information

    Author: Greg O'Connell

    Last Updated:

    Views: 6029

    Rating: 4.1 / 5 (42 voted)

    Reviews: 81% of readers found this page helpful

    Author information

    Name: Greg O'Connell

    Birthday: 1992-01-10

    Address: Suite 517 2436 Jefferey Pass, Shanitaside, UT 27519

    Phone: +2614651609714

    Job: Education Developer

    Hobby: Cooking, Gambling, Pottery, Shooting, Baseball, Singing, Snowboarding

    Introduction: My name is Greg O'Connell, I am a delightful, colorful, talented, kind, lively, modern, tender person who loves writing and wants to share my knowledge and understanding with you.