plearse teach me injective, surjective and byjective
@zzr0ck3r
Do you know what a function is?
yes
you are given variables and replaced by numbers for short
A function is one-to-one (injective) if every x in the domain maps to at most one y in the codomain example |dw:1441760363692:dw| here is a non example |dw:1441760400010:dw| Does this make sense?
no. please explain
notice that in the first picture each element in the domain (the one on the left) gets sent to only one element on the right (this is the codomain) Notice this is NOT the case in the non example
ok. so the first is injective?
correct
the second one is not because 1 and 2 both get sent to a
ok
in any function, every x maps to at most one y in the range
A function is onto (surjective) if everything in the codomain gets used up example |dw:1441760739646:dw| non example |dw:1441760788586:dw|
ok
" For every x in X there is at most one y in Y such that f(x) = y." Comment. Every function f has this property (they each map one element to one element, i.e. they are not "one-to-two"). However, this is not what one-to-one means.
A function must have 2 properties 1) it is defined everywhere i.e. everything in the domain gets used up notice how surjectivity is sort of like the opposite of this 2) it is well defined i.e. each x can map to at most one y notice how injectivity is the opposite of this
Ok @GIL.ojei Is the following function surjective, injective both, or neither? |dw:1441761073116:dw| ?
injective
why?
@jayzdd I think it is much better to start with a intuitive notion. this notation is not going to help imo. that comes next
a better definition for injectivity distinct (different) inputs map to distinct outputs formally: if a ≠ b, then f(a) ≠ f(b) this is equivalent to if f(a) = f(b), then a = b
@GIL.ojei why?
yes you're diagrams are good to explain the intuition. i was taking issue with the phrase 'every x has at most one y ' for your one to one thats true about all functions
because each maps differently and are all exhausted in the left
because each maps differently, is why it is injective The fact that each gets used up is actually a property of it being a function.
Ok @GIL.ojei is it surjective
gil no two x values map to the same y value. agreed?
yes
Join our real-time social learning platform and learn together with your friends!