Search the courses, subjects, tracks, games and features, or jump straight to a page.
Learn it your way
A short class with Sarah and her students. The other ways are under More.
Sign up free to listen. Transcripts are free to read.
Today, we will talk about surjective functions. Remember, a function is surjective if every element in the codomain gets mapped from at least one element in the domain. Can anyone give me an example?
What if we have a function f: A -> B, where A has 3 elements and B has 2 elements? Could that be surjective?
That's correct! As long as each element from B has at least one pre-image from A, it works. For instance, if f(1) = b1, f(2) = b1, and f(3) = b2, then every element in B has a pre-image, making it surjective.
Does that mean it also has to be injective?
Good question! Not necessarily. A surjective function can have multiple elements mapping to the same element in the codomain. Which brings us to injective functions…
So injective means one-to-one?
Exactly! If no two elements in the domain are mapped to the same element in the codomain, it's injective.
Can you have a function that's both surjective and injective?
Yes! That's called a bijective function. But remember, for a bijection, the sizes of the domain and codomain must be equal.
To wrap up this session, remember: surjective = onto, injective = one-to-one, and bijective = both, with equal sizes of their sets.
Now, let’s move on to counting functions. If you have two sets, X with m elements and Y with n elements, how many possible functions can you form?
Wouldn't it be n^m? Like, each element in X can map to any element in Y?
Yes! Great insight! The total number of functions from X to Y is n raised to the power of m, or n^m.
And how do we count injective functions from X to Y?
For injective functions, the process is different. You must reduce the choices as you assign images. It starts with n choices for the first, then n-1 for the second, and so on, giving us: n * (n - 1) * ... * (n - m + 1).
And for bijective functions, it’ll be the same?
Not quite! For bijections, we need n = m, and the count becomes n!
So, bijections relate to permutations of elements?
Exactly! To summarize, the number of functions is n^m, injective is n! / (n - m)!, and bijective is n! if m = n.
Next, let's talk about the Stirling function, which counts the number of ways to partition a set. Can someone explain how this relates to surjective functions?
Is it because each partition can represent the pre-images for elements in the codomain?
Exactly! Each subset in the partition can correspond to a unique image in Y. For example, if we partition set X into n subsets, that alignment helps count the surjective functions.
So if we want the number of surjective functions, we can use Stirling numbers?
Yes! The total count of surjective functions from set X to set Y is given by the number of partitions multiplied by the number of permutations of those partitions.
Can you remind us of the formula?
Of course! It’s S(m, n) * n!, where S(m, n) is the Stirling number of the second kind representing partitions.
So, in summary: Stirling functions help us count partitions, and these partitions help count surjective functions.
A function where every element from the codomain has at least one pre-image.
A one-to-one function where different elements map to different images.
A function that is both injective and surjective, requiring equal cardinalities.
A function that represents the number of ways to partition a set into a given number of non-empty subsets.
An example of a surjective function can be from the set {1, 2, 3} to the set {a, b} where 1 maps to a, 2 also maps to a, and 3 maps to b.
The Stirling function S(3, 2) equates to 3, representing the partitions of a 3-element set into 2 non-empty subsets, e.g., {{1,2},{3}}, {{1,3},{2}}, and {{2,3},{1}}.
Surjective and injective, two forms of fun, one maps all the way, the other one’s one!
Imagine a party where everyone must dance with someone. The surjective function ensures that everyone finds a partner to dance with, while the injective function ensures that nobody dances with more than one partner.
SforS - Surjective Function reaches out to all in the 'S'et, while I in 'I'njective keeps it exclusive!
BIS = Bijection = Injective + Surjective; both needed to meet!
Term
What is an injective function?
Click to flip
Term
Define a surjective function.
Click to flip
Term
What does a bijective function indicate?
Click to flip
Term
What is the Stirling number?
Click to flip
A function where every element in the codomain has at least one pre-image in the domain.
A function where each element in the domain maps to a unique element in the codomain.
A function that is both surjective and injective, establishing a one-to-one correspondence.
A combinatorial function that counts the number of ways to partition a set into non-empty subsets.
The number of elements in a set.
This section discusses various types of functions, specifically counting surjective, injective, and bijective functions, and introduces the Stirling function related to combinatorial partitions.
The section covers how to count the number of functions between two sets, identifies conditions for injective and surjective functions, and elaborates on the significance of the Stirling function in counting the number of ways to partition sets. It emphasizes relationships between the cardinalities of sets and characteristics of the functions defined on them.
This section covers the essential aspects of counting functions, particularly focusing on three main types: surjective, injective, and bijective.
Surjective Functions: A function is surjective (onto) if every element in the codomain has at least one pre-image from the domain. The example provided illustrates the potential lack of injectivity in surjective functions over infinite sets, leading to the need for careful definitions.
Injective Functions: A function is injective (one-to-one) if distinct elements in the domain map to distinct elements in the codomain. The discussion highlights that deviating from injectiveness in function construction can lead to a misunderstanding of count outcomes.
Bijective Functions: A bijection combines both properties, establishing a one-to-one correspondence between domain and codomain. The section stresses that the necessity of bijections requires equal cardinality in the addressing sets.
Counting Methodologies: Using combinations and permutations, the section demonstrates how to compute the number of functions based on the sizes of the sets involved. This includes illustrating how bijections relate directly to permutations of set elements.
Stirling Function: The concept of the Stirling function, particularly of the second kind, is introduced. This function counts the ways to partition a set into a specified number of non-empty subsets. Additionally, it's shown that the creation of surjective functions aligns with partitioning the domain set appropriately.
Through this section, the foundations of counting functions are laid, illustrating their implications in set theory and their applications in combinatorial contexts.