What this lesson covers
Some functions never send two inputs to the same output; some reach every element of the co-domain; the best do both. This lesson defines one-one, many-one, onto and into functions, gives working rules and counting formulas for each, then uses bijections to define the inverse of a function and lists the properties of composite functions.
One-one function (injection)
A function is one-one (an injection) if distinct elements of have distinct images in .
Many-one function
A function is many-one if at least two distinct elements of have the same image. In other words, a function that is not one-one is many-one.
Counting.
- For to be one-one we need .
- If and , the number of one-one functions from to is if , and if .
- If , the number of many-one functions from to is .
Working rules for one-one or many-one
- Take in the domain. If for every such pair, is one-one; otherwise it is many-one.
- Equivalently, put and solve. If this forces , is one-one.
- If the function is given as ordered pairs, it is one-one when all the second entries are different.
- Horizontal line test. If every line parallel to the -axis meets the graph at most once, is one-one; if some such line meets it at two or more points, is many-one.
- Every even function is many-one (since ).
- A function that is continuous and strictly increasing, or strictly decreasing, on its whole domain is one-one.
- Every periodic function is many-one.
- , () is one-one.
- , () is not one-one.
Onto function (surjection)
is onto (a surjection) if every element of has at least one pre-image in . Equivalently, the range equals the co-domain: .
Counting.
- For to be onto we need .
- If and , the number of onto functions is .
- If and , the number of onto functions is
- If , there are no onto functions.
Into function
If is not onto, it is called an into function: at least one element of has no pre-image in .
Working rules for onto or into
- Let and ; solve for in terms of . If for every there is at least one , is onto; otherwise it is into. In short, if the range equals , is onto.
- Horizontal line test. If every horizontal line through a point of the co-domain meets the graph at least once, is onto. If some such line misses the graph, is into.
Bijection
If is both one-one and onto, it is called a bijection.
- If are finite and is a bijection, then .
- The identity function on any non-empty set is a bijection.
- If are finite with , the number of bijections from to is .
- A constant function is a bijection only if .
- Horizontal line test. If every horizontal line through a point of the co-domain meets the graph exactly once, is a bijection.
Inverse function
If is one-one and onto, we define the inverse function by
- A function is invertible exactly when it is a bijection.
- If the inverse exists, it is unique.
- The graphs of and are mirror images in the line . Where they intersect on that line, .
Working rule to find the inverse. Let be a bijection. Put , solve for in terms of , then interchange and .
Properties of composite functions
- If and are one-one, then is one-one.
- If and are onto, then is onto.
- If is one-one, then is one-one.
- If is onto, then is onto.
- If , then .
- If and are bijections, then is a bijection and .
- If is a bijection, then and .
- If and satisfy and , then .
- If is a bijection, then .
- In general .
- Composition is associative: if , and , then .
Example 1
Show that , , is a bijection and find .
One-one: . Onto: for any , gives . Hence is a bijection, and .
Example 2
How many onto functions are there from a set of 4 elements to a set of 3 elements?
Practice
- How many one-one functions are there from a set of 3 elements to a set of 5 elements?
- How many many-one functions are there from a set of 3 elements to a set of 5 elements?
- How many onto functions are there from a set of 5 elements to ?
- How many bijections are there from to ?
- Is , one-one? Is it onto?
- Find the inverse of .
- If and , find and check it equals .
Answers
Show answers
- .
- .
- .
- .
- Neither: , and has no pre-image since the range is .
- , so .
- , whose inverse is ; also .