How to prove that a function is well-defined

  • I
  • Thread starter Mr Davis 97
  • Start date
  • Tags
    Function
In summary, the concept of well-definedness in a function means that for any element in the domain, there is only one corresponding element in the codomain. To prove this, one must show that if two elements in the domain are equal, their corresponding elements in the codomain must also be equal. This can be done by assuming that there are two different corresponding elements in the codomain and showing that they are actually equal. However, there is no general algorithm to determine if a function is well-defined, as this would solve many open problems in mathematics.
  • #1
Mr Davis 97
1,462
44
For example, it's intuitively clear that ##f(\frac{a}{b}) = (\frac{a}{b})^2## is well-defined, since for any fraction in the domain we get one and only one fraction in the image. However, what is the formal way to prove this? In other words, is there a general way to show that a function is well-defined (or not), just as there is a general way to show that a function is injective or surjective?
 
Mathematics news on Phys.org
  • #2
It means you can't have two images of one element. This usually refers to functions defined on equivalence classes or otherwise defined sets, where the function is given by its action on representatives. So you can have two representatives, e.g. ##[2]_6## and ##[-4]_6## as remainders of the division by six, and you need to make sure that ##f(2)## and ##f(-4)## doesn't lead to different results. So how to prove it, depends a little bit on the function considered. If it's equal in the domain, than it has to be equal in the codomain.
 
  • #3
An approach that generally works is the following:

To be a function, for any element in the domain, there must be one, and only one, element associated in the codomain (or image). The problems arise when we we can associate two values in the codomain with the domain value. An example of such a non-function would be the non-function:

##f: \mathbb{Q} \to \mathbb{Z} \times \mathbb{Z_0}: q = \frac{a}{b} \to (a,b)##

Then, for example, the relation ##f## maps ##2/3## to ##(2,3)##, but ##2/3 = 4/6##, so this element gets also mapped to ##(4,6)##. Meaning that ##f## is not a function

(We can make this function well-defined by demanding that ##(a,b)=1##, since we can prove then that the fraction ##a/b## is uniquely determined. If needed I can provide a proof, using Bezout's theorem).

In general, if you want to show that a certain relation ##R \subset A \times B## is a function, you must look at the definition of the function to see what is required:

Recall the definition of a function:

##F: A \to B## is a function
iff

1) ##F \subset A \times B##
2) ##\forall a \in A, \exists ! b \in B: (a,b) \in F##

So, you must take an ##a \in A##, and then determine whether there is a unique ##b \in B## that satisfies the relation ##F##.

To show uniqueness, a common strategy is to assume that if there are two elements that satisfy a certain property, then they are equal. In this case. Take ##a \in A## and assume ##(a,b) \in F## and ##(a,b') \in F##. Then, show that ##b = b'##. From this, you can see that it suffices to show that if ##a = a' ## for ##a = a ' \in A##, then also ##b = b'## and this is exactly how most proofs handle well-definedness!

An example:

Suppose we want to verify that the 'function' (we cannot say function yet, in case of possible ambiguity)

##f: \mathbb{Z}/n\mathbb{Z} \to \mathbb{Z}/n\mathbb{Z}: [x]_n \mapsto [kx]_n## is well defined (here we mean with ##\mathbb{Z}/n\mathbb{Z}## the division ring, with multiplication as we are used it)

So, assume ##[x]_n = [x']_n##. Then obviously ##[kx]_n = [k]_n[x]_n = [k]_n[x']_n = [kx']_n## and ##f## is well-defined.

To return to your example:

Assume ##a/b = a'/b'##. Then it is easy to see that ##(a/b)^2 = (a'/b')^2## so your function is well defined. What you actually did, was writing the function ##f: \mathbb{Q} \to \mathbb{Q}: x \mapsto x^2## in a misleading way. It should not need a proof that this function is well defined.

Important remark: A common mistake is to think that well-definedness means that if ##a = a'##, then ##f(a) = f(a')## but this is abuse of notation! We cannot write f(something) until we have proven that ##f## is a function!
 
Last edited by a moderator:
  • #4
Mr Davis 97 said:
In other words, is there a general way to show that a function is well-defined (or not)
If you can check every element in the domain: sure.
In general you cannot. A made-up example:

##f: \{0\} \to \mathbb{N}##, ##f(0)## is the largest twin prime.
This function is well-defined if there is a largest twin prime, it is not well-defined otherwise. If there would be a general algorithm to determine if this function is well-defined, you could prove the twin prime hypothesis (or disprove it).
You can construct similar functions for all other open problems in mathematics.
 

FAQ: How to prove that a function is well-defined

What does it mean for a function to be well-defined?

A function is well-defined if it produces the same output for each input in its domain. This means that the function is consistent and does not have any ambiguities or contradictions in its definition.

How can I prove that a function is well-defined?

To prove that a function is well-defined, you need to show that it produces the same output for each input in its domain. This can be done by providing a clear and unambiguous definition of the function and showing that it follows the given definition for all possible inputs.

What happens if a function is not well-defined?

If a function is not well-defined, it means that there are inconsistencies or contradictions in its definition. This can lead to unexpected or incorrect outputs for certain inputs, making the function unreliable and invalid.

Can a function be well-defined for some inputs but not others?

Yes, a function can be well-defined for some inputs but not others. This typically occurs when the function is defined for a specific domain and is not applicable for inputs outside of that domain. In this case, the function is still considered well-defined as long as it produces the same output for each input within its defined domain.

Is it necessary to prove that a function is well-defined?

Yes, it is necessary to prove that a function is well-defined in order to ensure its reliability and validity. Without a proper proof of well-definition, a function may produce unexpected or incorrect outputs, making it unreliable for use in mathematical or scientific contexts.

Similar threads

Replies
2
Views
959
Replies
24
Views
2K
Replies
7
Views
1K
Replies
2
Views
1K
Replies
2
Views
3K
Replies
1
Views
1K
Replies
13
Views
2K
Back
Top