Can We Determine a Function from Known X and Y Values?

  • Thread starter albertrichardf
  • Start date
  • Tags
    Function
In summary, finding the actual function, represented by y = ƒ(x), with a finite number of data points is not possible without any additional information. However, if some constraints are known, such as the linearity or polynomial nature of the function, then a small number of data points can be sufficient to determine the function. Polynomial functions are widely used and can be expressed as a Taylor expansion.
  • #1
albertrichardf
165
11
Hi all,
Suppose y is related to x by some function, or:

y = ƒ(x).

Now, supposing that we know some values for y and the corresponding values for x, would it be possible to find what the function actually is?
And if so, how would it be done, without any computer programs. (i.e, what process should be followed to do it)

Thanks for any answers
 
Physics news on Phys.org
  • #2
In general, any finite number of data points is not enough to specify the function. After all, the function, without any restriction, could simply be defined like ##f(x_1)=y_1, f(x_2)=y_2,..., f(x_n)=y_n,\quad f(x_i)=0\forall i\notin 1,...,n##

For the n inputs you gave, this function gives you your n expected outputs, but is 0 everywhere else.

However, if you know some additional information about f(x), then some progress can be made. For example, if you know f(x) is linear, then any 2 (unique) points is enough to specify f(x) (after all 2 points define a line). If you know f(x) is quadratic, then any 3 points is enough, etc. For any polynomial equation of degree n, you need, in general, n+1 input and output pairs to obtain the unique polynomial satisfying those n+1 constraints. But the polynomial equations form a countably infinite subset of the uncountably infinite set of all functions. So almost all functions are not polynomial functions.

Thankfully, however, polynomial functions are still pretty interesting and of a lot of use in many areas of math and physics. Also, at anyone point, a large class of functions (the smooth functions) can be expressed as a polynomial expansion (called a Taylor expansion).
 
Last edited:
  • Like
Likes 1 person

FAQ: Can We Determine a Function from Known X and Y Values?

How do you solve for a function?

To solve for a function, you will need to know the input and output values of the function. You can then use algebraic techniques such as substitution or elimination to find the unknown variables and determine the function's equation.

What is the purpose of solving for a function?

Solving for a function allows you to find the relationship between the input and output values. This can help you make predictions or analyze patterns in the data.

Can you solve for a function without knowing the input and output values?

No, in order to solve for a function, you will need to know at least two input and output values. This will allow you to create a system of equations to find the unknown variables.

What are some common methods used for solving functions?

Some common methods for solving functions include substitution, elimination, graphing, and using matrices. Depending on the complexity of the function, different methods may be more efficient.

Are there any tips for solving functions more efficiently?

One tip for solving functions more efficiently is to use algebraic properties and techniques, such as factoring or simplifying, to simplify the equation before solving. It can also be helpful to check your final answer by plugging in the values to ensure it is correct.

Similar threads

Replies
6
Views
2K
Replies
12
Views
1K
Replies
4
Views
1K
Replies
2
Views
1K
Replies
2
Views
2K
Replies
32
Views
3K
Replies
1
Views
1K
Back
Top