Formula for coefficients of interpolation polynomialWho knows this formula for polynomial interpolation?For n=3 Lagrange interpolation why is it equal to 1?Coefficients of Newton interpolation polynomialInterpolation in 2-D co-ordinate systemEquivalent condition for interpolation polynomialNumerical mathematics, Lagrange interpolationNumerical mathematics, Lagrange interpolation..Who knows this formula for polynomial interpolation?find interpolation polynomial for $f(x) = x^4+3x^2$ of degree $le3$ , such that $max_xin[-1,1]|f(x)-p(x)|$ is minimalHow to derive the Newton interpolation polynomialWhat is the geometric meaning of null-determinant?

Why Were Madagascar and New Zealand Discovered So Late?

Teaching indefinite integrals that require special-casing

Curses work by shouting - How to avoid collateral damage?

Everything Bob says is false. How does he get people to trust him?

How does it work when somebody invests in my business?

Using parameter substitution on a Bash array

Personal Teleportation as a Weapon

Hostile work environment after whistle-blowing on coworker and our boss. What do I do?

What is the oldest known work of fiction?

Is there a problem with hiding "forgot password" until it's needed?

How was Earth single-handedly capable of creating 3 of the 4 gods of chaos?

At which point does a character regain all their Hit Dice?

Mapping a list into a phase plot

Best way to store options for panels

Can somebody explain Brexit in a few child-proof sentences?

Why "be dealt cards" rather than "be dealing cards"?

Is there an Impartial Brexit Deal comparison site?

Time travel short story where a man arrives in the late 19th century in a time machine and then sends the machine back into the past

Can I Retrieve Email Addresses from BCC?

Why is delta-v is the most useful quantity for planning space travel?

Star/Wye electrical connection math symbol

How does a character multiclassing into warlock get a focus?

Implement the Thanos sorting algorithm

Hide Select Output from T-SQL



Formula for coefficients of interpolation polynomial


Who knows this formula for polynomial interpolation?For n=3 Lagrange interpolation why is it equal to 1?Coefficients of Newton interpolation polynomialInterpolation in 2-D co-ordinate systemEquivalent condition for interpolation polynomialNumerical mathematics, Lagrange interpolationNumerical mathematics, Lagrange interpolation..Who knows this formula for polynomial interpolation?find interpolation polynomial for $f(x) = x^4+3x^2$ of degree $le3$ , such that $max_xin[-1,1]|f(x)-p(x)|$ is minimalHow to derive the Newton interpolation polynomialWhat is the geometric meaning of null-determinant?













0












$begingroup$



(Question) What is the conventional formula for coefficients of interpolation polynomial?




Consider the interpolation problem: find the polynomial through a given set of points $(x_0,y_0),...,(x_n,y_n)$. Suppose we want the polynomial in canonical form (monomial basis): coefficients times powers of $x$.



Is there a standard solution to this problem? What would be the formula for the coefficients and how is it obtained?



Note: I found my own solutions for this problem, but I would like to know the ‘standard’ solution, if there is one. Maybe it involves some Linear Algebra that I am not aware of yet.










share|cite|improve this question











$endgroup$
















    0












    $begingroup$



    (Question) What is the conventional formula for coefficients of interpolation polynomial?




    Consider the interpolation problem: find the polynomial through a given set of points $(x_0,y_0),...,(x_n,y_n)$. Suppose we want the polynomial in canonical form (monomial basis): coefficients times powers of $x$.



    Is there a standard solution to this problem? What would be the formula for the coefficients and how is it obtained?



    Note: I found my own solutions for this problem, but I would like to know the ‘standard’ solution, if there is one. Maybe it involves some Linear Algebra that I am not aware of yet.










    share|cite|improve this question











    $endgroup$














      0












      0








      0





      $begingroup$



      (Question) What is the conventional formula for coefficients of interpolation polynomial?




      Consider the interpolation problem: find the polynomial through a given set of points $(x_0,y_0),...,(x_n,y_n)$. Suppose we want the polynomial in canonical form (monomial basis): coefficients times powers of $x$.



      Is there a standard solution to this problem? What would be the formula for the coefficients and how is it obtained?



      Note: I found my own solutions for this problem, but I would like to know the ‘standard’ solution, if there is one. Maybe it involves some Linear Algebra that I am not aware of yet.










      share|cite|improve this question











      $endgroup$





      (Question) What is the conventional formula for coefficients of interpolation polynomial?




      Consider the interpolation problem: find the polynomial through a given set of points $(x_0,y_0),...,(x_n,y_n)$. Suppose we want the polynomial in canonical form (monomial basis): coefficients times powers of $x$.



      Is there a standard solution to this problem? What would be the formula for the coefficients and how is it obtained?



      Note: I found my own solutions for this problem, but I would like to know the ‘standard’ solution, if there is one. Maybe it involves some Linear Algebra that I am not aware of yet.







      interpolation interpolation-theory






      share|cite|improve this question















      share|cite|improve this question













      share|cite|improve this question




      share|cite|improve this question








      edited 2 days ago







      Max

















      asked Feb 11 at 16:18









      MaxMax

      9211319




      9211319




















          1 Answer
          1






          active

          oldest

          votes


















          2












          $begingroup$

          Here is a general way to obtain it. Your unique polynomial will have to be of degree at most $n$, so assume we have
          $$p(x) = a_0 + a_1x + +ldots + a_nx^n = sum_k=1^n a_k x^k.$$



          Then, plugging in your points, you get the equations
          $$
          y_i = sum_k=1^n a_k x_i^k, quad forall i in [n].
          $$

          This is a linear system of $n+1$ equations in $n+1$ unknowns, guaranteed to be invertible due to the nature of the system. Hence, there is a unique solution, which you can find by Gaussian Elimination, for example.



          UPDATE - EXAMPLE



          Perhaps an example will help. Consider finding the unique linear polynomial through the points $(0,0)$ and $(1,1)$. We assume the form $p(x) = a_0 + a_1x$ which leads to the equations
          $$
          beginsplit
          0 = a_0 + a_1 cdot 0\
          1 = a_0 + a_1 cdot 1
          endsplit
          $$

          and the first equation simplifies to $a_0=0$, plugging into the second yields $a_1=1$, so we have $$p(x) = 0 + 1 cdot x = x,$$
          which is, of course, the unique line through $(0,0)$ and $(1,1)$, as expected.






          share|cite|improve this answer











          $endgroup$












          • $begingroup$
            How would you define $a_k$ specifically?
            $endgroup$
            – Max
            Feb 11 at 16:26










          • $begingroup$
            @Max you are not defining $a_k$, they are variables for which you are solving
            $endgroup$
            – gt6989b
            Feb 11 at 16:29










          • $begingroup$
            Indeed, instead of define, I meant how do you get $a_k$ directly (so a formula for $a_k$).
            $endgroup$
            – Max
            Feb 11 at 16:32











          • $begingroup$
            @Max see update for an example. One can use something like Cramer's Rule if you insist on calculating coefficients directly via a formula instead of a general algorithmic procedure.
            $endgroup$
            – gt6989b
            Feb 11 at 16:34






          • 1




            $begingroup$
            Or both... a elegant closed form with cubic computation :)
            $endgroup$
            – Max
            Feb 12 at 16:08










          Your Answer





          StackExchange.ifUsing("editor", function ()
          return StackExchange.using("mathjaxEditing", function ()
          StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix)
          StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
          );
          );
          , "mathjax-editing");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "69"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          noCode: true, onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3108921%2fformula-for-coefficients-of-interpolation-polynomial%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2












          $begingroup$

          Here is a general way to obtain it. Your unique polynomial will have to be of degree at most $n$, so assume we have
          $$p(x) = a_0 + a_1x + +ldots + a_nx^n = sum_k=1^n a_k x^k.$$



          Then, plugging in your points, you get the equations
          $$
          y_i = sum_k=1^n a_k x_i^k, quad forall i in [n].
          $$

          This is a linear system of $n+1$ equations in $n+1$ unknowns, guaranteed to be invertible due to the nature of the system. Hence, there is a unique solution, which you can find by Gaussian Elimination, for example.



          UPDATE - EXAMPLE



          Perhaps an example will help. Consider finding the unique linear polynomial through the points $(0,0)$ and $(1,1)$. We assume the form $p(x) = a_0 + a_1x$ which leads to the equations
          $$
          beginsplit
          0 = a_0 + a_1 cdot 0\
          1 = a_0 + a_1 cdot 1
          endsplit
          $$

          and the first equation simplifies to $a_0=0$, plugging into the second yields $a_1=1$, so we have $$p(x) = 0 + 1 cdot x = x,$$
          which is, of course, the unique line through $(0,0)$ and $(1,1)$, as expected.






          share|cite|improve this answer











          $endgroup$












          • $begingroup$
            How would you define $a_k$ specifically?
            $endgroup$
            – Max
            Feb 11 at 16:26










          • $begingroup$
            @Max you are not defining $a_k$, they are variables for which you are solving
            $endgroup$
            – gt6989b
            Feb 11 at 16:29










          • $begingroup$
            Indeed, instead of define, I meant how do you get $a_k$ directly (so a formula for $a_k$).
            $endgroup$
            – Max
            Feb 11 at 16:32











          • $begingroup$
            @Max see update for an example. One can use something like Cramer's Rule if you insist on calculating coefficients directly via a formula instead of a general algorithmic procedure.
            $endgroup$
            – gt6989b
            Feb 11 at 16:34






          • 1




            $begingroup$
            Or both... a elegant closed form with cubic computation :)
            $endgroup$
            – Max
            Feb 12 at 16:08















          2












          $begingroup$

          Here is a general way to obtain it. Your unique polynomial will have to be of degree at most $n$, so assume we have
          $$p(x) = a_0 + a_1x + +ldots + a_nx^n = sum_k=1^n a_k x^k.$$



          Then, plugging in your points, you get the equations
          $$
          y_i = sum_k=1^n a_k x_i^k, quad forall i in [n].
          $$

          This is a linear system of $n+1$ equations in $n+1$ unknowns, guaranteed to be invertible due to the nature of the system. Hence, there is a unique solution, which you can find by Gaussian Elimination, for example.



          UPDATE - EXAMPLE



          Perhaps an example will help. Consider finding the unique linear polynomial through the points $(0,0)$ and $(1,1)$. We assume the form $p(x) = a_0 + a_1x$ which leads to the equations
          $$
          beginsplit
          0 = a_0 + a_1 cdot 0\
          1 = a_0 + a_1 cdot 1
          endsplit
          $$

          and the first equation simplifies to $a_0=0$, plugging into the second yields $a_1=1$, so we have $$p(x) = 0 + 1 cdot x = x,$$
          which is, of course, the unique line through $(0,0)$ and $(1,1)$, as expected.






          share|cite|improve this answer











          $endgroup$












          • $begingroup$
            How would you define $a_k$ specifically?
            $endgroup$
            – Max
            Feb 11 at 16:26










          • $begingroup$
            @Max you are not defining $a_k$, they are variables for which you are solving
            $endgroup$
            – gt6989b
            Feb 11 at 16:29










          • $begingroup$
            Indeed, instead of define, I meant how do you get $a_k$ directly (so a formula for $a_k$).
            $endgroup$
            – Max
            Feb 11 at 16:32











          • $begingroup$
            @Max see update for an example. One can use something like Cramer's Rule if you insist on calculating coefficients directly via a formula instead of a general algorithmic procedure.
            $endgroup$
            – gt6989b
            Feb 11 at 16:34






          • 1




            $begingroup$
            Or both... a elegant closed form with cubic computation :)
            $endgroup$
            – Max
            Feb 12 at 16:08













          2












          2








          2





          $begingroup$

          Here is a general way to obtain it. Your unique polynomial will have to be of degree at most $n$, so assume we have
          $$p(x) = a_0 + a_1x + +ldots + a_nx^n = sum_k=1^n a_k x^k.$$



          Then, plugging in your points, you get the equations
          $$
          y_i = sum_k=1^n a_k x_i^k, quad forall i in [n].
          $$

          This is a linear system of $n+1$ equations in $n+1$ unknowns, guaranteed to be invertible due to the nature of the system. Hence, there is a unique solution, which you can find by Gaussian Elimination, for example.



          UPDATE - EXAMPLE



          Perhaps an example will help. Consider finding the unique linear polynomial through the points $(0,0)$ and $(1,1)$. We assume the form $p(x) = a_0 + a_1x$ which leads to the equations
          $$
          beginsplit
          0 = a_0 + a_1 cdot 0\
          1 = a_0 + a_1 cdot 1
          endsplit
          $$

          and the first equation simplifies to $a_0=0$, plugging into the second yields $a_1=1$, so we have $$p(x) = 0 + 1 cdot x = x,$$
          which is, of course, the unique line through $(0,0)$ and $(1,1)$, as expected.






          share|cite|improve this answer











          $endgroup$



          Here is a general way to obtain it. Your unique polynomial will have to be of degree at most $n$, so assume we have
          $$p(x) = a_0 + a_1x + +ldots + a_nx^n = sum_k=1^n a_k x^k.$$



          Then, plugging in your points, you get the equations
          $$
          y_i = sum_k=1^n a_k x_i^k, quad forall i in [n].
          $$

          This is a linear system of $n+1$ equations in $n+1$ unknowns, guaranteed to be invertible due to the nature of the system. Hence, there is a unique solution, which you can find by Gaussian Elimination, for example.



          UPDATE - EXAMPLE



          Perhaps an example will help. Consider finding the unique linear polynomial through the points $(0,0)$ and $(1,1)$. We assume the form $p(x) = a_0 + a_1x$ which leads to the equations
          $$
          beginsplit
          0 = a_0 + a_1 cdot 0\
          1 = a_0 + a_1 cdot 1
          endsplit
          $$

          and the first equation simplifies to $a_0=0$, plugging into the second yields $a_1=1$, so we have $$p(x) = 0 + 1 cdot x = x,$$
          which is, of course, the unique line through $(0,0)$ and $(1,1)$, as expected.







          share|cite|improve this answer














          share|cite|improve this answer



          share|cite|improve this answer








          edited Feb 11 at 16:33

























          answered Feb 11 at 16:24









          gt6989bgt6989b

          35.1k22557




          35.1k22557











          • $begingroup$
            How would you define $a_k$ specifically?
            $endgroup$
            – Max
            Feb 11 at 16:26










          • $begingroup$
            @Max you are not defining $a_k$, they are variables for which you are solving
            $endgroup$
            – gt6989b
            Feb 11 at 16:29










          • $begingroup$
            Indeed, instead of define, I meant how do you get $a_k$ directly (so a formula for $a_k$).
            $endgroup$
            – Max
            Feb 11 at 16:32











          • $begingroup$
            @Max see update for an example. One can use something like Cramer's Rule if you insist on calculating coefficients directly via a formula instead of a general algorithmic procedure.
            $endgroup$
            – gt6989b
            Feb 11 at 16:34






          • 1




            $begingroup$
            Or both... a elegant closed form with cubic computation :)
            $endgroup$
            – Max
            Feb 12 at 16:08
















          • $begingroup$
            How would you define $a_k$ specifically?
            $endgroup$
            – Max
            Feb 11 at 16:26










          • $begingroup$
            @Max you are not defining $a_k$, they are variables for which you are solving
            $endgroup$
            – gt6989b
            Feb 11 at 16:29










          • $begingroup$
            Indeed, instead of define, I meant how do you get $a_k$ directly (so a formula for $a_k$).
            $endgroup$
            – Max
            Feb 11 at 16:32











          • $begingroup$
            @Max see update for an example. One can use something like Cramer's Rule if you insist on calculating coefficients directly via a formula instead of a general algorithmic procedure.
            $endgroup$
            – gt6989b
            Feb 11 at 16:34






          • 1




            $begingroup$
            Or both... a elegant closed form with cubic computation :)
            $endgroup$
            – Max
            Feb 12 at 16:08















          $begingroup$
          How would you define $a_k$ specifically?
          $endgroup$
          – Max
          Feb 11 at 16:26




          $begingroup$
          How would you define $a_k$ specifically?
          $endgroup$
          – Max
          Feb 11 at 16:26












          $begingroup$
          @Max you are not defining $a_k$, they are variables for which you are solving
          $endgroup$
          – gt6989b
          Feb 11 at 16:29




          $begingroup$
          @Max you are not defining $a_k$, they are variables for which you are solving
          $endgroup$
          – gt6989b
          Feb 11 at 16:29












          $begingroup$
          Indeed, instead of define, I meant how do you get $a_k$ directly (so a formula for $a_k$).
          $endgroup$
          – Max
          Feb 11 at 16:32





          $begingroup$
          Indeed, instead of define, I meant how do you get $a_k$ directly (so a formula for $a_k$).
          $endgroup$
          – Max
          Feb 11 at 16:32













          $begingroup$
          @Max see update for an example. One can use something like Cramer's Rule if you insist on calculating coefficients directly via a formula instead of a general algorithmic procedure.
          $endgroup$
          – gt6989b
          Feb 11 at 16:34




          $begingroup$
          @Max see update for an example. One can use something like Cramer's Rule if you insist on calculating coefficients directly via a formula instead of a general algorithmic procedure.
          $endgroup$
          – gt6989b
          Feb 11 at 16:34




          1




          1




          $begingroup$
          Or both... a elegant closed form with cubic computation :)
          $endgroup$
          – Max
          Feb 12 at 16:08




          $begingroup$
          Or both... a elegant closed form with cubic computation :)
          $endgroup$
          – Max
          Feb 12 at 16:08

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Mathematics Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3108921%2fformula-for-coefficients-of-interpolation-polynomial%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How should I support this large drywall patch? Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How do I cover large gaps in drywall?How do I keep drywall around a patch from crumbling?Can I glue a second layer of drywall?How to patch long strip on drywall?Large drywall patch: how to avoid bulging seams?Drywall Mesh Patch vs. Bulge? To remove or not to remove?How to fix this drywall job?Prep drywall before backsplashWhat's the best way to fix this horrible drywall patch job?Drywall patching using 3M Patch Plus Primer

          random experiment with two different functions on unit interval Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Random variable and probability space notionsRandom Walk with EdgesFinding functions where the increase over a random interval is Poisson distributedNumber of days until dayCan an observed event in fact be of zero probability?Unit random processmodels of coins and uniform distributionHow to get the number of successes given $n$ trials , probability $P$ and a random variable $X$Absorbing Markov chain in a computer. Is “almost every” turned into always convergence in computer executions?Stopped random walk is not uniformly integrable

          Lowndes Grove History Architecture References Navigation menu32°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661132°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661178002500"National Register Information System"Historic houses of South Carolina"Lowndes Grove""+32° 48' 6.00", −79° 57' 58.00""Lowndes Grove, Charleston County (260 St. Margaret St., Charleston)""Lowndes Grove"The Charleston ExpositionIt Happened in South Carolina"Lowndes Grove (House), Saint Margaret Street & Sixth Avenue, Charleston, Charleston County, SC(Photographs)"Plantations of the Carolina Low Countrye