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?
$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.
interpolation interpolation-theory
$endgroup$
add a comment |
$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.
interpolation interpolation-theory
$endgroup$
add a comment |
$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.
interpolation interpolation-theory
$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
interpolation interpolation-theory
edited 2 days ago
Max
asked Feb 11 at 16:18
MaxMax
9211319
9211319
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
$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.
$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
|
show 7 more comments
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
$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.
$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
|
show 7 more comments
$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.
$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
|
show 7 more comments
$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.
$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.
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
|
show 7 more comments
$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
|
show 7 more comments
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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