Bleys
- 74
- 0
There's a question in Calculus by Spivak about polynomials and I was wondering about how to construct them to have specific roots or values at certain points. For example it says if
x_{1}, ..., x_{n} are distinct numbers, find a polynomial f_{i} such that it's of degree n-1 which is 1 at x_{i} and 0 at x_{j} for j \neq i. Now I know that for roots it's simply the product \prod (x-x_{j}) running from j=1 to n and j \neq i. That evaluates the polynomial to 0 correctly. But I don't know how to add the additional condition of x_{i} to make it evaluate to 1. I know I can't multiply another factor (x-x_{k}) because that would increase the degree to n and it wouldn't do any good anyway. Is it a piecewise defined function? That seems a little too trivial. Any hints you could give me?
x_{1}, ..., x_{n} are distinct numbers, find a polynomial f_{i} such that it's of degree n-1 which is 1 at x_{i} and 0 at x_{j} for j \neq i. Now I know that for roots it's simply the product \prod (x-x_{j}) running from j=1 to n and j \neq i. That evaluates the polynomial to 0 correctly. But I don't know how to add the additional condition of x_{i} to make it evaluate to 1. I know I can't multiply another factor (x-x_{k}) because that would increase the degree to n and it wouldn't do any good anyway. Is it a piecewise defined function? That seems a little too trivial. Any hints you could give me?