Undergrad Function value at different points

Click For Summary
The discussion centers on whether the values of a function defined at 10 points in a 3-D Cartesian coordinate system can determine the function's value at any arbitrary point. It is established that knowing the function's values at these points does not uniquely define the function elsewhere, as multiple functions can fit the same data points. Interpolation methods, such as multidimensional Lagrange interpolation, can be used to estimate values at other points based on the known values. The conversation also highlights the importance of understanding the type of function being analyzed, as different functions require different numbers of points for accurate determination. Overall, the limitations of curve fitting and interpolation are emphasized in relation to the original question.
Apashanka
Messages
427
Reaction score
15
If for a field say ##f=xyz## ,it's value is defined at 10 points in the 3-D Cartesian co-ordinate system...now using these 10 values of f and the corresponding coordinates is it possible to find the value of f at any ##(x,y,z)## of choice??
 
Physics news on Phys.org
Do you mean 10 points in total, or 10 points along each axis (ie. 1000 points in total)?

Either you are trying to fit a function to given values at the grid points, in which case you to get values elsewhere you must interpolate using, for example, lagrange polynomials (MATLAB solution here), or your function is defined by an expression in closed form in which case you already know its value everywhere.
 
  • Like
Likes Apashanka
pasmith said:
Do you mean 10 points in total, or 10 points along each axis (ie. 1000 points in total)?

Either you are trying to fit a function to given values at the grid points, in which case you to get values elsewhere you must interpolate using, for example, lagrange polynomials (MATLAB solution here), or your function is defined by an expression in closed form in which case you already know its value everywhere.
(10) points in total
 
It was the second paragraph of pasmith's that was most important.
 
It's ok if ##f(x,y,z)## is known for 5 values of ##(x,y,z)## then how will the formula of ##f(x,y,z)## at any ##x,y,z## change??for 1-D it is simple
 
Apashanka said:
If for a field say ##f=xyz## ,it's value is defined at 10 points in the 3-D Cartesian co-ordinate system...now using these 10 values of f and the corresponding coordinates is it possible to find the value of f at any ##(x,y,z)## of choice??

The value of ##f## at 10 points does not determine a unique value of ##f## at other points. You can invent many different functions that agree with ##f## on the 10 points but disagree with each other elsewhere. The general topic of inventing a function that has specified values on a finite number of points can be studied under the topics of "fitting a function to data" or "interpolation".

In your example, a straightforward method is to use multidimensional Lagrange interpolation. I think Answer 1 to https://math.stackexchange.com/ques...omial-in-3-d-variable-of-interest-is-a-vector describes this method.

The wikipedia gives a list of multivariate interpolation methods suited to different applications. https://en.wikipedia.org/wiki/Multivariate_interpolation
 
No. I would think about this in 1-D first. How many points does it take to determine a quadratic function ( f(x) = ax2 +bx +c )? Would those points define a unique cubic equation?
More info here: https://en.wikipedia.org/wiki/Curve_fitting
 
DaveE said:
How many points does it take to determine a quadratic function ( f(x) = ax2 +bx +c )? Would those points define a unique cubic equation?

The OP just said "function", not "quadratic function" or "cubic function". With no information about what kind of function it is, no finite set of points can tell you the function.
 
PeterDonis said:
The OP just said "function", not "quadratic function" or "cubic function". With no information about what kind of function it is, no finite set of points can tell you the function.
Yes, I saw that. That's why my first sentence was "No."
I was suggesting he look at a simpler problem to highlight the limitations of curve fitting. If you can't do it for simple polynomials (even the 11th order ones), it won't work in the more general case.
 
  • Like
Likes PeroK

Similar threads

  • · Replies 12 ·
Replies
12
Views
3K
  • · Replies 17 ·
Replies
17
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 9 ·
Replies
9
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 32 ·
2
Replies
32
Views
4K