How to use these solutions
These are full worked solutions to the practice questions in the lesson Types of Relations and Functions. Try each question first, and then compare your reasoning with the steps below. In this topic the answer "yes" or "no" is worth little on its own: for every property you must either prove it in general or give one specific counter-example, and the solutions show you how to do both.
Question 1: Properties of three relations
The problem
On , decide which properties hold:
; ; .
Understanding the problem
For each relation check three properties on the set :
- reflexive: all four pairs are present;
- symmetric: whenever is present, so is ;
- transitive: whenever and are present, so is .
The idea
Test each property pair by pair. To show a property fails, one missing pair is enough.
Step-by-step solution
Relation
Step 1. Reflexive: are all in . ✓
Step 2. Symmetric: the only non-diagonal pairs are and , and each has its reverse. ✓
Step 3. Transitive: the chains are ✓; ✓; any chain through a diagonal pair like gives back ✓.
Step 4. All three hold, so is an equivalence relation.
Relation
Step 1. Reflexive? . ✗
Step 2. Symmetric: and are both present. ✓
Step 3. Transitive? and are present, so would have to be, but it is not. ✗
Relation
Step 1. Reflexive? . ✗
Step 2. Symmetric? but . ✗
Step 3. Transitive: the only chain is , which needs , and it is present. No other pair starts where another pair ends. ✓
Checking the answer
A brute-force check of all pairs by computer gives: (reflexive, symmetric, transitive); (symmetric only); (transitive only). ✓
Answer
is an equivalence relation; is symmetric only; is transitive only.
Common mistake to avoid
Thinking is transitive because "there is nothing to chain". The chain demands .
Question 2: Congruence modulo 5
The problem
Show that on is an equivalence relation. Describe .
Understanding the problem
You must prove all three properties for every integer, not just check examples. Then list the class of : all integers related to .
The idea
Follow Example 1 of the lesson, which does the same for . Write "multiple of " as with an integer.
Step-by-step solution
Step 1. Reflexive. For any integer , , a multiple of . So .
Step 2. Symmetric. Suppose , so . Then
a multiple of . So .
Step 3. Transitive. Suppose and . Add them.
So .
Step 4. All three hold, so is an equivalence relation.
Step 5. The class of : all with , that is .
Checking the answer
✓ and ✓, both multiples of . Each element of leaves remainder on division by .
Answer
is reflexive, symmetric and transitive, hence an equivalence relation; .
Question 3: Similarity of triangles
The problem
On the set of all triangles, show that "is similar to" is an equivalence relation.
Understanding the problem
Say when triangle is similar to triangle , meaning their corresponding angles are equal (equivalently, corresponding sides are in the same ratio). You must prove the three properties.
The idea
Use the angle description of similarity: two triangles are similar when their angles can be matched so that corresponding angles are equal. Equality of numbers is reflexive, symmetric and transitive, and that carries over.
Step-by-step solution
Step 1. Reflexive. Any triangle has the same angles as itself (match each angle with itself), so is similar to .
Step 2. Symmetric. If is similar to , the angles of equal the corresponding angles of . Reading the same correspondence backwards, the angles of equal those of , so is similar to .
Step 3. Transitive. If and , each angle of equals the matching angle of , which equals the matching angle of . So the angles of equal those of , and .
Step 4. Hence similarity is an equivalence relation.
Checking the answer
The same argument works with side ratios: if the ratio is from to and from to , it is from to , and from back to .
Answer
Similarity is reflexive, symmetric and transitive, so it is an equivalence relation on triangles.
Question 4: "Divides" on the natural numbers
The problem
On , is reflexive, symmetric, transitive?
Understanding the problem
" divides " means for some natural number . Check each property; for a failure give a specific counter-example.
The idea
Write divisibility as multiplication and test each property.
Step-by-step solution
Step 1. Reflexive. , so divides for every . ✓
Step 2. Symmetric? Counter-example: divides , but does not divide . So but . ✗
Step 3. Transitive. If and , then and . So
and . ✓
Checking the answer
Example of transitivity: and , and indeed .
Answer
is reflexive and transitive, but not symmetric.
Question 5: Symmetric and transitive but not reflexive
The problem
Give an example of a relation on that is symmetric and transitive but not reflexive.
Understanding the problem
You must build one relation that has two properties and lacks the third. It fails to be reflexive if at least one of is missing.
The idea
Leave out one element entirely: relate and only to themselves and never mention . Then there are no pairs that could break symmetry or transitivity.
Step-by-step solution
Step 1. Take .
Step 2. Not reflexive: .
Step 3. Symmetric: each pair is its own reverse.
Step 4. Transitive: the only chains are and , both present.
Checking the answer
A computer check of the three properties gives (not reflexive, symmetric, transitive). ✓ Other answers are possible, for example .
Answer
is symmetric and transitive but not reflexive, since .
Question 6: Equivalence classes modulo 3
The problem
On , . List the equivalence classes.
Understanding the problem
Two numbers are related when their difference is a multiple of , that is, when they leave the same remainder on division by . Each class collects all numbers with the same remainder.
The idea
Sort to by remainder on division by : remainder , or .
Step-by-step solution
Step 1. Remainder : .
Step 2. Remainder : .
Step 3. Remainder : .
Step 4. These three sets are the classes , and .
Checking the answer
The classes are disjoint and together contain all elements (), as equivalence classes must.
Answer
, , .
Question 7: One-one and onto for four functions
The problem
Decide whether each is one-one and whether it is onto: (a) , ; (b) , ; (c) , ; (d) , .
Understanding the problem
One-one: forces . Onto: every element of the codomain equals for some in the domain. Pay attention to the domain and codomain given.
The idea
For one-one, start from and try to reach . For onto, take any and solve for , checking that lies in the domain. Use a counter-example when a property fails.
Step-by-step solution
Part (a)
Step 1. One-one: . ✓
Step 2. Onto: given , solve to get , a real number. Then . ✓
Step 3. So is bijective.
Part (b)
Step 1. One-one? but . ✗
Step 2. Onto? , so a negative number such as has no preimage. ✗
Part (c)
Step 1. One-one: . ✓
Step 2. Onto? The smallest output is . So , and are never outputs (their preimages would be , not natural numbers). ✗
Part (d)
Step 1. One-one: if , then taking the real cube root of both sides gives (every real number has exactly one real cube root). ✓
Step 2. Onto: given , take ; then . ✓
Step 3. So is bijective.
Checking the answer
Graphically, (a) and (d) pass the horizontal-line test and cover every height; (b) has a V shape, failing both; (c) shifts every natural number up by , never reaching .
Answer
(a) bijective; (b) neither one-one nor onto; (c) one-one but not onto ( are missed); (d) bijective.
Question 8: Proving a bijection
The problem
Show that , is a bijection.
Understanding the problem
You must show is both one-one and onto. The domain leaves out (where the denominator is zero) and the codomain leaves out ; you will see why is excluded.
The idea
One-one: set , cross-multiply and simplify. Onto: solve for and check that the found is allowed.
Step-by-step solution
Step 1. One-one. Suppose .
Step 2. Cross-multiply and expand.
Step 3. Cancel and from both sides and collect.
So is one-one.
Step 4. Onto. Take any and solve .
This division is allowed because .
Step 5. Check that this is in the domain, i.e. . If , then , i.e. , impossible. So .
Step 6. Check that it works.
So is onto, and hence a bijection.
Checking the answer
Test : , and . ✓ Also would need , impossible, which is why is removed from the codomain.
Answer
, and every equals with ; so is a bijection.
Question 9: Counting one-one and onto functions
The problem
How many one-one functions are there from to ? How many onto functions from to ?
Understanding the problem
A function assigns one output to each input. For one-one, and must get different outputs. For onto, both and must be used as outputs at least once.
The idea
Count one-one functions by the multiplication principle. Count onto functions by counting all functions and subtracting those that miss an output.
Step-by-step solution
Step 1. One-one from to : has choices; must be different, so choices.
Step 2. All functions from to : each of the inputs has choices.
Step 3. Functions that are not onto use only one output: all to , or all to . That is functions.
Step 4. Onto functions.
Checking the answer
Listing by computer: one-one functions and onto functions. ✓
Answer
one-one functions and onto functions.
Question 10: The signum function
The problem
Is the signum function one-one? Is it onto ?
Understanding the problem
The signum function is
The idea
For one-one, look for two different inputs with the same output. For onto, look at the range and compare it with the codomain .
Step-by-step solution
Step 1. One-one? , but . So it is not one-one.
Step 2. Onto? The only outputs are , and . So the range is , not all of ; for example, has no preimage.
Checking the answer
The graph is three flat pieces; a horizontal line at height meets it infinitely often, and a line at height never meets it.
Answer
No, it is not one-one; and no, it is not onto , since its range is .