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.
Let's start with the concept of total functions from set X to set Y. If X has m elements and Y has n elements, how many functions can we form?
Isn’t it just m multiplied by n?
Good try! The total number of functions is actually n raised to the power of m, or n^m, because each of the m elements can independently choose any of the n images in Y.
Can you explain why it's n^m, though?
Sure! Think of it this way: for each element in X, you have n choices for what it maps to in Y, and you do this for all m elements in X. So, it’s like making n choices for m slots. Does that make sense?
Yes! It’s like flipping a coin m times and each time you have 2 outcomes.
Exactly! Now let’s summarize: The total number of functions from set X to Y is n^m.
Now, let’s move on to injective functions. Can anyone tell me what an injective function is?
It’s a function where each element in X maps to a different element in Y, like no duplicates, right?
Perfect! For injective functions, if there are n elements in Y, the first element in X has n choices, the second has n-1, and so on. This leads us to n × (n - 1) × ... × (n - m + 1).
So if m exceeds n, we can’t have injective functions?
Exactly! If m > n, it’s impossible to have injective functions since we would run out of unique images.
Let’s summarize this part!
Sure! The number of injective functions from X to Y, where m ≤ n is calculated as n × (n - 1) × ... up to m factors.
Next, let’s discuss bijective functions. What do we need to have a bijection from X to Y?
Both sets must have the same number of elements?
Correct! A bijection means each element in X pairs with a unique element in Y, necessitating m = n. The number of such functions is n! or n factorial.
What’s the significance of factorial in this case?
Factorial counts the permutations. We can line up n items in n! ways, which corresponds to assigning n unique values to n inputs.
Let’s summarize: A bijective function exists only when the sizes of both sets equal n, and the number of such functions is n!.
Moving on, we introduce Stirling numbers. S(m, n) counts the ways to partition a set of m elements into n non-empty subsets.
How does this relate to surjective functions?
Great question! Each surjective function corresponds to a unique partition of X into non-empty subsets, so the number of surjective functions is S(m, n) × n!.
Can you give an example of this?
Of course! For instance, if we have 4 elements in X and 2 in Y, we can form partitions and then permutations of these by considering their mappings.
Let's conclude this topic!
To summarize, Stirling numbers help us count partitions. For surjective functions, the number is calculated as S(m, n) multiplied by n!.
The total number of functions from set X to Y is n^m.
The number of injective functions is calculated as n × (n - 1) × ... × (n - m + 1).
A bijection exists only when m = n, with the total count being n!.
S(m, n) counts the ways to partition a set with m elements into n non-empty subsets.
Example of Total Functions: If X = 3 elements and Y = 4 elements, total functions = 4^3 = 64.
Example of Injective Functions: If X has 3 elements and Y has 5, the total number of injective functions = 5 × 4 × 3 = 60.
Example of Bijective Functions: If both X and Y have 3 elements, such as {a, b, c} → {1, 2, 3}; the count = 3! = 6.
Example of Stirling Numbers: S(4, 2) can represent how to split the set {1, 2, 3, 4} into 2 non-empty subsets.
In functions from X to Y, n to the m is how we try!
Imagine a library (set X) with m books, each can go to n shelves (set Y). Each choice of shelf makes a new arrangement.
To remember injective functions, think of I = 'Individual mappings' (each one to one).
S(3, n) = Surjective functions, count ways to assign images = S(m, c) × n!.
Term
What is the total number of functions from set X to set Y?
Click to flip
Term
What defines an injective function?
Click to flip
Term
What is the bijective function criterion?
Click to flip
Term
What do Stirling numbers count?
Click to flip
A relation between a set of inputs and a set of permissible outputs, where each input is related to exactly one output.
A function where each element of the codomain is mapped by at most one element from the domain.
A function where every element of the codomain is the image of at least one element of the domain.
A function that is both injective and surjective, meaning each element of the codomain is paired with exactly one element of the domain.
Numbers that count the ways to partition a set into non-empty subsets, specifically used in combinatorics.
The number of elements in a set, often used to compare the size of sets.
A rearrangement of the elements of an ordered list into a different sequence or order.
This section explores functions between two sets, defining the number of total, injective, and bijective functions based on their cardinalities and introducing Stirling numbers.
In this section, we investigate how to count functions from set X with m elements to set Y with n elements, differentiating between total functions, injective functions, and bijective functions. A significant concept introduced is the Stirling number of the second kind, which aids in counting surjective functions between the sets.
This section focuses on counting the types of functions that can be formed between two sets, X and Y, where set X has m elements and set Y has n elements. The following key points are covered:
The section concludes by combining these concepts to derive the total count of surjective functions as S(m, n) × n!.