Are Functions Really Equal? Investigating the Criteria for Function Equality

In summary, the functions f and g are not equal if and only if the domain of g does not include the domain of f.
  • #1
DumpmeAdrenaline
78
2
TL;DR Summary
Why in combining functions to form other functions do we restrict the domain to the intersections of their domains?
For example:
h(x)=f(x)+g(x)
If f(x) and g(x) are real numbers and real numbers can be added, subtracted, multiplied and divided (except by 0). why do we insist that the x in f(x) and g(x) be {x: x∈ dom f ∩ dom g}?
My thoughts:
The equality of two functions requires two criteria:
1) They operate on the same domain
2) Images be the same, element for element
Criteria 1) is not satisfied if x does not belong to the intersection of the two sets
then f(x1)+g(x2)=h(x3, x2 or x1)
h is mapping a different element in the domain to that of f or g yielding the same image resulting from any operation we perform on f and g.
 
Physics news on Phys.org
  • #2
If ##f(x)## is not defined at some point ##x_0##, then ##f(x) + g(x)## is not defined either. In other words, ##f(x) + g(x)## can only be defined on the intersection of the domains of ##f(x)## and ##g(x)##.
 
  • #3
Yes I get that but I am discussing something else. Let f(x1)=y1 and g(x2)=y2. y1 and y2 are two real numbers which can be added, subtracted, multiplied and divided. f(x1)+g(x2)=y1+y2 can't we equate that to another function which maps some element in its domain to y1+y2 because h is mapping a different element in the domain to that of f or g yielding the same image resulting from any operation we perform on f and g.
 
  • #4
DumpmeAdrenaline said:
Yes I get that but I am discussing something else. Let f(x1)=y1 and g(x2)=y2. y1 and y2 are two real numbers which can be added, subtracted, multiplied and divided. f(x1)+g(x2)=y1+y2 can't we equate that to another function which maps some element in its domain to y1+y2 because h is mapping a different element in the domain to that of f or g yielding the same image resulting from any operation we perform on f and g.
You can define a function on the Cartesian product of the domains of ##f## and ##g##:
$$h: Dom(f) \times Dom(g) \rightarrow \mathbb R$$$$h(x_1, x_2) = f(x_1) + g(x_2)$$
 
  • Like
Likes DumpmeAdrenaline
  • #5
What about the composition of two functions?
Let f:A->B and g:B->C be given. Then by the composition of f and g we mean the function h:A->C such that for each a∈A, h(a)=g(f(a))
1) The domain of h is A whereas the domain of g is B. To form the composition above, f(a) must belong to B because g cannot map an element which is not part of its domain.
2) Should f(a)=a for equality to hold? Namely h and g operate on the same domain A=B and they map the same element to the same image.
 
  • #6
The composition ##g(f(x))## is fine as long as the range of ##f(x)## is a subset of the domain of ##g(x)##. If not, then it's not always easy to work out what is the domain of ##g \circ f##. In fact, we get homework problems posted on here for this.
 
  • #7
DumpmeAdrenaline said:
2) Should f(a)=a for equality to hold? Namely h and g operate on the same domain A=B and they map the same element to the same image.

It sometimes helps to remember that functions can operate on any set (not just numbers), and these statements have to hold for all sets. Sometimes when everything is numbers it's harder to figure out what fits together.

Here's a dumb example. Let ##\mathbb{N}## be the natural numbers, and ##\mathbb{A}## be the English alphabet (letters a,b,c,...,z). Let ##\mathbb{V}## be the set of vowels (a,e,i,o,u) and ##\mathbb{C}## the set of consonants (this is not standard notation! Usually it's the complex numbers)

##f:\mathbb{N} \to \mathbb{A}## takes a number and maps it to "o" if it's odd, "e" if it's even.

So for example f(2)="e", f(7)="o".

We will consider three functions to compose this with.

##g_1:\mathbb{N}\to \mathbb{N}## defined by ##g(n)=n^2##. Is ##g_1 \circ f## well defined?

##g_2: \mathbb{A} \to \mathbb{N}## that takes a letter and maps it to which position it is in the alphabet. So ##g_2("b")=2##, ##g_2(z)= 26##. Is ##g_2\circ f## well defined?

##g_3: \mathbb{C}\to \mathbb{A}## that maps each consonant to itself. So ##g_3('c') = 'c'##. Is ##g_3 \circ f## well defined?
 
Last edited by a moderator:
  • #8
1) The composition g1.f is not well defined since the output of f is an alphabet and g1 operates rather on natural numbers.
2) g2(f(N))=5 (if N is even) or 15 (if N is odd)
3) g3f(N) is not well defined since E and O are not members of the consonant set.
Am I supplying a wrong criterion to check whether two functions are equal or not?
 

1. What are operations on functions?

Operations on functions refer to mathematical operations that are performed on one or more functions to produce a new function. These operations can include addition, subtraction, multiplication, division, composition, and more.

2. How are operations on functions different from regular mathematical operations?

Operations on functions involve manipulating entire functions, rather than just numbers. This means that the input and output of the operations are functions, rather than individual values.

3. What is the purpose of performing operations on functions?

The purpose of performing operations on functions is to create new functions that can model more complex relationships between variables. This allows us to solve more complex problems and make more accurate predictions in various fields, such as economics, physics, and engineering.

4. Can operations on functions be performed on any type of function?

Yes, operations on functions can be performed on any type of function, as long as the input and output of the operations are also functions. However, some operations may not be defined for certain types of functions, such as division by zero for rational functions.

5. How can operations on functions be used to solve real-world problems?

Operations on functions can be used to model and analyze real-world problems, such as predicting population growth, optimizing business profits, or designing efficient systems. By manipulating functions, we can find solutions and make informed decisions based on the results.

Similar threads

Replies
36
Views
4K
Replies
4
Views
1K
Replies
1
Views
940
Replies
28
Views
2K
Replies
4
Views
2K
  • Calculus
Replies
1
Views
1K
  • Calculus and Beyond Homework Help
Replies
8
Views
475
Replies
7
Views
1K
Back
Top