Quick questions about equality of functions

  • Thread starter Thread starter sutupidmath
  • Start date Start date
  • Tags Tags
    Functions
Click For Summary
The discussion centers on the equality of functions, specifically whether the definition provided in a book is too strict. The definition states that two functions are equal if their domains and codomains are the same, and they produce the same output for all inputs in the domain. A participant questions the necessity of considering codomains, suggesting that focusing on the ranges might be more precise. However, it is clarified that defining equality in terms of codomains is important for maintaining properties like surjectiveness. Ultimately, the consensus is that according to the standard definition, the two functions in the example are not equal.
sutupidmath
Messages
1,629
Reaction score
4
Well, i was reading a book lately about functions, and when it came to define the equality of two functions it defined something like this:

Let f:A->B and g:C->D be two functions.

We say that these two functions are equal if:

1.A=C
2.B=D and
3.f(x)=g(x) for all x in A=C.


I guess i have always overlooked it, but is 2. a little bit redundant. I mean, would a more precise statement be to say that if: ran{f}=ran{g}, rather than in terms of Codomains of these functions?

The reason i say this is that, for example:

Let: f:N-->R be a function from Naturals to Reals defined as follows: f(n)=n+1

and, let g:N-->Z be a function from Naturals to integers defined also as: g(n)=n+1

From here we see that their domains are the same, the ranges are the same and also f(n)=g(n) for every n in the domain. Can we say from here that these two functions are the same, or not? I would say yes, but maybe i am overlooking something.

THnx
 
Mathematics news on Phys.org
By the definition given in your book, then no they aren't equal and that is the ordinary definition. I have never seen them defined in terms of ranges instead of codomains. Properties such as surjectiveness would stop making sense. Consider the floor function; with the real numbers as the codomain it would not be surjective, but with the integers as the codomain it would be surjective, but by your definition they are equal so functions can be both surjective and not surjective.
 
Well, yeah that makes sense.

Thnx
 
Here is a little puzzle from the book 100 Geometric Games by Pierre Berloquin. The side of a small square is one meter long and the side of a larger square one and a half meters long. One vertex of the large square is at the center of the small square. The side of the large square cuts two sides of the small square into one- third parts and two-thirds parts. What is the area where the squares overlap?

Similar threads

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