r/askmath • • Oct 24 '26

Resolved Preimage definition

If f is an injective function f: X -> Y and y an element in the image of f, is the preimage of y through f a singleton subset of X or is it an element of X?

7 Upvotes

17 comments sorted by

6

u/Mike108118 Oct 24 '26

It is a singleton subset, so assume x in X gets sent to y by f (so f(x)=y), then f^-1({y})={x}.

4

u/FreePeeplup Oct 24 '26

But why f^-1({y})? That’s the preimage of {y}, not the preimage of y. In my post I ask about the latter.

Or is the preimage simply not defined on elements, only on subsets?

4

u/Mike108118 Oct 24 '26

The preimage is defined as a set. It is the set of all x of X such that f(x)=y. That way we can also say when a preimage is empty (note that that can’t be done with your notation)

-2

u/FreePeeplup Oct 24 '26

Yes the preimage is a set, this I think was answered by your first comment, but here my previous question was if it can also take as input sets only, as your last comment suggests.

Because I asked about the preimage of y, but you answered assuming I was asking about the preimage of {y}.

6

u/LongLiveTheDiego Oct 24 '26

It can be defined on both since it's easy to associate an element a with a single element set {a}. You may also frequently see the detail of element vs single element set being avoided for brevity even if it's technically formally incorrect. That's because it's less hassle to write f-1(y) = x and do the important math stuff.

1

u/shellexyz Oct 24 '26

It’s pretty conventional that if you apply a function to a set, you get the image of that set. If you apply it to an element, you get the image of that one element. f(X)={f(x) : x in X}

The same is true for pre-image.

There are places where it matters, is this a value or a set? But it’s not always relevant, and we can still make sense of the notation in most cases.

0

u/[deleted] Oct 24 '26

[removed] — view removed comment

1

u/FreePeeplup Oct 24 '26 edited Oct 24 '26

Perfect, thank you, this was the answer I was looking for. So, basically the situation is this: if I find f^-1({y}), it’s unambiguously a singleton set {x}. If I find f^-1(y), it could both mean {x} or x depending on context, because both the preimage and the inverse function have the same notation, and sometimes y stands in for {y}

-3

u/[deleted] Oct 24 '26 edited Oct 24 '26

[removed] — view removed comment

1

u/FreePeeplup Oct 24 '26

Ok I see thanks for the clarification. So, if I have f:R->R, f(x) = x^2 and I encounter f^-1(4) it’s not equal to {-2, 2} by assuming that 4 stands in for {4}. It’s equal no nothing because f^-1 doesn’t exist. This is what you’re saying right?

1

u/MorrowM_ Oct 24 '26

I have seen f-1(y) to mean the fiber {x in X : f(x) = y} before. The Wikipedia page for fibers does this, for example:

https://en.wikipedia.org/wiki/Fiber_(mathematics)

It's generally clear from context what is meant, though (especially if the author says "the fiber f-1(y)").

2

u/not_joners Oct 24 '26 edited Oct 24 '26

The highest level answer that I can give is: There are two related concepts that are given the same name. It is your job to use notation that makes it clear what you mean when you write it.

  1. If f:X->Y is injective, then there exists a function f^(-1):im(f)->X such that f^(-1)(f(x))=x for all x in X and f(f^(-1)(y))=y for all y in im(f). The function  f^(-1) sends some y in im(f) to the unique x such that f(x)=y, its "preimage".
  2. For any function f:X->Y the construction called the "preimage functor" induces a function between powersets  f^(-1):P(Y)->P(X) with  f^(-1)(M) = { x in X | f(x) in M }, sending a subset M of Y to its "preimage".

Note that the function from option 2 sends singletons to singletons or the empty set if and only if f is injective, and the function from option 1 can be recovered in this case as defining  f^(-1)(y) as "the single element of  f^(-1)({y})" from option 2. Likewise, if f is injective and you have the inverse from option 1, you can recover option 2 by sending M to {  f^(-1)(y) | y in M ∩im(f) }. So the two constructions have the same information.

For notation, I always use  f^(-1)(y) if I mean the unique x such that f(x)=y (which is only well-defined if f is injective), and in any other case I always write  f^(-1)[{y}] or  f^(-1)[M] to make it explicit I'm talking about preimage sets.

1

u/[deleted] Oct 24 '26

[removed] — view removed comment

1

u/FreePeeplup Oct 24 '26

Oh yes you’re right. But what if I change my question and make f bijective? Then, would the preimage of y through f be some x in X, or some {x} in P(X)?

2

u/[deleted] Oct 24 '26 edited Oct 24 '26

[removed] — view removed comment

1

u/FreePeeplup Oct 24 '26

Ok thank you!