Finding an Inner Product for Approximating Polynomials on a Set of Real Numbers

Click For Summary

Homework Help Overview

The discussion revolves around finding a suitable inner product for the space of functions defined on a finite set of real numbers, S, to facilitate the approximation of an arbitrary function with a polynomial of fixed degree. The original poster seeks to understand how to define this inner product in the context of polynomial approximation and projections.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants explore the nature of functions on a finite set and their relationship to polynomials, questioning the necessity of approximation. Some suggest defining a transformation to relate polynomials to a vector space, while others discuss the implications of minimizing a specific expression related to polynomial fitting.

Discussion Status

The discussion is active, with various participants offering insights into polynomial approximation techniques and the role of inner products. There is a recognition of the complexity involved in the minimization problem, with some participants suggesting methods like least-squares and gradient approaches, while others express uncertainty about the necessity of an inner product.

Contextual Notes

Some participants note the lack of clarity in the original question regarding the degree of approximation required and the assumptions made about the relationship between functions and polynomials. There is also mention of the challenges posed by the finite nature of the set S and the implications for polynomial fitting.

Treadstone 71
Messages
275
Reaction score
0
Let S be a finite set of real numbers. What is a natural inner product to define on the space of all functions f:S->R? I want to approximate an arbitrary function with a polynomial of a fixed degree (both of which are defined only on S), and I want to use projections to do it, but I have no inner product.
 
Physics news on Phys.org
Since S is a finite set, any function on it (to R) is (equivalent to) a polynomial (indeed infinitely many distinct such), you don't need to approximate it.
 
Let me just post the question completely, in case I said something wrong:

"Let [tex]S={x_1,...,x_N}[/tex] be a collection of real numbers, and let [tex](y_1,...,y_N)[/tex] be a sequence of real numbers. Fix an integer [tex]k<N[/tex]. In general, there need not be a polynomial [tex]p[/tex] of degree [tex]\leq k[/tex] such that [tex]p(x_j)=y_j[/tex] for [tex]j=1,...,N[/tex]. The next best thing one might ask for is a polynomial [tex]p[/tex] of degree less than [tex]k[/tex] for which the quantity

[tex](p(x_1)-y_1)^2+...+(p(x_N)-y_N)^2[/tex]

is minimized. Describe an approach that would produce such a [tex]p[/tex]."

I'm not sure how any function is equivalent to a polynomial.
 
Last edited:
I could proceed as follows:

Let [tex]P[/tex] be the space of polynomials of degree [tex]\leq k[/tex]. Let [tex]p\in P[/tex]. Define [tex]T:P\rightarrow \mathbb{R}^N[/tex] by [tex]T(p)=(p(x_1),...,p(x_N))[/tex] and then proceed to use the dot product on [tex]\mathbb{R}^N[/tex] and somehow minimize it?
 
I'm not sure how any function is equivalent to a polynomial.
Not even f(x) := x² + 2x + 1?


and somehow minimize it?
You know techniques for minimizing functions in several variables. (what are the variables?) Why are you defining an inner product? It might be useful, but I get the feeling you simply want to use an inner product on this problem!
 
Hurkyl said:
Not even f(x) := x² + 2x + 1?

What about f(x)=ln(x)?

Hurkyl said:
You know techniques for minimizing functions in several variables. (what are the variables?) Why are you defining an inner product? It might be useful, but I get the feeling you simply want to use an inner product on this problem!

I must use an inner product to solve this problem. I want to use the fact that the orthogonal projection of a vector in the space of polynomials of degree less than k to the space of finitely-supported real-valued functions is the best approximation. But I don't know the inner product to use.
 
Last edited:
Firstly, you did not limit the degree of the approximation required.

It is trivial that given a finite set of points and a function on them to R, that it might be realized by *some* polynomial, and equally trivial that it cannot in general be done by polys less than some fixed degree (less than the number of points). But none of that you bothered to state in the question.

Given points (x_1,..x_n) I can trivially produce some polynomial f such that f(x_i)=log(x_i) as long as deg(f) is allowed to be arbitrary. If you don't see that you can get a line passing through any two points in the plane (quadratic through any 3 etc), then you missed out on something somewhere.Of course, less than n and it is impossible (generically), but you did not state that at the start.

You're simply doing some minimization problem in your case, albeit probably a hard one.
 
Last edited:
It's a quadratic minimization problem -- they're fairly straightforward to solve through a number of techniques. I would have suggested to just take the gradient of the darned thing and set it equal to zero, or maybe to try and set it up as a least-squares problem so he could use the general technique for that.

But he says he must use an inner product. Hrm. The expression he wants to minimize looks like it's the dot product of something with itself, but that doesn't seem to be a useful observation, although it might help a little with bookkeeping.
 
It's a mess, involves lots of transformations and solving a system of n equations, but I did it. Although my solution is probably not optimal.

Can someone tell me if the rough sketch of it looks ok:

P={polynomials of degree k or less}
T:P->R^N defined by T(p)=(P(x_1),...,p(x_n))
X={T(p): p in P}

X is a k+1 dimensional subspace of R^N, so (T(1),...,T(t^k)) is a basis of X. Use Gram-Schmidt procedures to construct an orthonormal basis and use it to project y=(y_1,..,y_n), and find (b_1,...,b_N)=Y. Solve a1T(1)+...+anT(t^k)=Y and find the coefficients for the polynomial.
 
Last edited:

Similar threads

Replies
5
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 8 ·
Replies
8
Views
4K
  • · Replies 15 ·
Replies
15
Views
2K
Replies
1
Views
2K
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K