Class 12 MathsAll 13 chaptersQuick lessonWorked solutionsPast papersPast papersGet updates

Relations &
Functions.

Mathematics is full of connections: this number divides that one, this student sits in that house, this input gives that output. This chapter gives those connections precise names and rules.

Every arrow is an ordered pair. A bundle of arrows is a relation. When every student has exactly one arrow, it becomes a function.
Part 1 · Relations

A relation is just a chosen set of pairs.

A relation is a list of pairs that you choose. You pick them from all the pairs that two sets can make.

The idea
R ⊆ A × B

Take two sets A and B. A relation R from A to B is any collection of the pairs in A × B that you choose. A relation in A is a subset of A × A.

All the pairs
(a, b) ∈ A × B

The Cartesian product A × B is every possible ordered pair: the first element from A, the second from B.

How to write it
a R b  ⇔  (a, b) ∈ R

So (a, b) ∈ R is written a R b. Read a R b as “a is related to b”.

The pair gridA = {1, 2, 3} down the side, B = {1, 2, 3, 4} across the top. All 12 tiles together make A × B. Pick a rule and see which pairs it keeps.
Choose a rule for R = {(a, b) : …}

Everyday relation

"a is older than b"

A = students of Class 12, B = students of Class 11. Every pair (Priya, Arjun) where Priya is older than Arjun goes in R.

Everyday relation

"a lives in the same locality as b"

Pairs of neighbours are in R. People from different localities are not.

The big idea

The meaning is optional

Mathematically we don't need a story behind the pairs. Any subset of A × B counts as a relation, even a random one like {(1, 4), (3, 2)}.

In plain words

Think of A × B as a class photo with every possible handshake. A relation is simply a list of which handshakes actually happened. Order matters: (2, 3) means "2 is related to 3", which is different from (3, 2).

Part 2 · Two extreme relations

Nothing at all, or absolutely everything.

For a relation in a set A (a subset of A × A), there are two extreme choices. Together they are called the trivial relations.

Basics for thiswhat a relation is
Definition 1

Empty relation

R = φ ⊆ A × A

No element of A is related to any element. All 16 pairs of A × A (A = {1, 2, 3, 4}) stay empty.

A = {1, 2, 3, 4}, R = {(a, b) : a − b = 10}. No two numbers in A are 10 apart, so R = φ.

Definition 2

Universal relation

R = A × A

Every element is related to every element, including itself. All 16 pairs are filled.

R′ = {(a, b) : |a − b| ≥ 0}. A distance is never negative, so every pair qualifies.

Example 1

A = all students of a boys' school. R = {(a, b) : a is sister of b}, R′ = {(a, b) : heights of a and b differ by less than 3 m}.

  1. No student at a boys' school can be anyone's sister, so R has no pairs: R = φ, the empty relation.
  2. No two people differ in height by 3 metres (the tallest person ever recorded was about 2.7 m), so every pair qualifies: R′ = A × A, the universal relation.
Part 3 · Three properties

Reflexive, symmetric, transitive.

These three tests are the heart of the chapter. Each one asks a simple question about the arrows of a relation.

The picture
(a, b) ∈ R  →  an arrow a → b

Take a relation R in a set A. Picture each element of A as a dot and each pair (a, b) in R as an arrow from a to b. A pair (a, a) is a loop.

123
Reflexive

Everyone relates to themselves

(a, a) ∈ R for every a ∈ A

Every dot needs its own loop. Missing even one loop breaks it.

✓ "is congruent to": every triangle is congruent to itself.
✗ "is perpendicular to": no line is perpendicular to itself.

ab
Symmetric

Every arrow has a return arrow

(a, b) ∈ R ⇒ (b, a) ∈ R

If a points to b, then b must point back to a.

✓ "is a classmate of": if Riya is Sam's classmate, Sam is Riya's.
✗ "is father of": the father of Sam is not Sam's son.

abc
Transitive

Two steps give a shortcut

(a, b), (b, c) ∈ R ⇒ (a, c) ∈ R

Whenever you can walk a → b → c, the direct arrow a → c must also be there.

✓ "is taller than": if A is taller than B and B than C, then A is taller than C.
✗ "is a friend of": your friend's friend may be a stranger.

Relation labTap squares in the grid to add or remove pairs. The checks update instantly and the diagram shows exactly which arrow breaks each rule.
Load a relation

Tap a check card to highlight its problem in the diagram. Rose arrows are the ones causing trouble. Dashed rose arrows are the ones that are missing.

Watch out

"Transitive" can be true with nothing to check. In Exercise 1.1 Q1(ii), R = {(1, 6), (2, 7), (3, 8)}. For transitivity we need a chain (a, b), (b, c). But 6, 7 and 8 never appear first in any pair, so there is no chain at all. No chain means nothing can break the rule, so R is transitive. Try b = a + 1 in the lab: that one does have chains, and they break it.

Likewise, the empty relation is symmetric and transitive (nothing to fail), but it is not reflexive unless A itself is empty, because the loops are required.

Worked examples from the textbook

Each proof follows the same pattern: check the three definitions one by one. To prove a property, argue for every case. To disprove it, one counterexample is enough.

Example 2 · Equivalence

T = all triangles in a plane, R = {(T₁, T₂) : T₁ is congruent to T₂}.

T₁T₂T₃
  1. Reflexive: every triangle is congruent to itself.
  2. Symmetric: if T₁ ≅ T₂ then T₂ ≅ T₁ (flip the same matching around).
  3. Transitive: T₁ ≅ T₂ and T₂ ≅ T₃ give T₁ ≅ T₃.
All three hold, so R is an equivalence relation.
Example 3 · Only symmetric

L = all lines in a plane, R = {(L₁, L₂) : L₁ is perpendicular to L₂}.

L₃L₁L₂
  1. Not reflexive: a line can't be perpendicular to itself.
  2. Symmetric: L₁ ⊥ L₂ means L₂ ⊥ L₁.
  3. Not transitive: L₁ ⊥ L₂ and L₂ ⊥ L₃, but L₁ is parallel to L₃, not perpendicular.
Symmetric, but neither reflexive nor transitive.
Example 4 · Only reflexive

A = {1, 2, 3}, R = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 3)}.

  1. Reflexive: all three loops (1, 1), (2, 2), (3, 3) are present.
  2. Not symmetric: (1, 2) ∈ R but (2, 1) ∉ R.
  3. Not transitive: (1, 2) and (2, 3) ∈ R, but the shortcut (1, 3) ∉ R.
Reflexive, but neither symmetric nor transitive. Load "Example 4" in the lab to see the missing arrows.
Example 5 · Equivalence on ℤ

R = {(a, b) : 2 divides a − b} on the integers ℤ.

  1. Reflexive: a − a = 0, and 2 divides 0.
  2. Symmetric: if 2 divides a − b, it divides −(a − b) = b − a.
  3. Transitive: a − c = (a − b) + (b − c). Even + even = even.
An equivalence relation. It sorts ℤ into evens and odds, which leads to the next section.
Part 4 · Equivalence relations

All three at once: sorting into drawers.

When a relation passes all three tests, it sorts the set into separate groups, like socks sorted into drawers.

The definition
reflexive + symmetric + transitive

A relation with all three properties is an equivalence relation. It behaves like “is the same as, in some way”.

One drawer
[a] = { x ∈ A : (x, a) ∈ R }

The equivalence class [a] is the class of everything related to a.

No gaps, no overlaps
Ai ∩ Aj = φ
∪ Ai = A

The classes never overlap, and together they fill A.

Remainder drawersR = {(a, b) : n divides a − b} on ℤ. Two integers are related when they leave the same remainder on division by n.

With n = 2 you get Example 5: evens and odds. With n = 3 you get the textbook's three classes A₁, A₂, A₃. Each colour is one drawer, and every integer lands in exactly one.

Rule 1

Inside a drawer, everyone is related

All elements of Ai are related to each other: 4, 10 and −2 all leave remainder 1 on division by 3.

Rule 2

Across drawers, nobody is

No element of Ai is related to any element of Aj for i ≠ j. An even number is never related to an odd one.

Rule 3

No gaps, no overlaps

The drawers are disjoint and together hold the whole set. This kind of split is called a partition.

Example 6

A = {1, 2, 3, 4, 5, 6, 7}, R = {(a, b) : both a and b are odd, or both are even}.

1357 246 odd class [1]even class [2]
  1. Reflexive: a and a always have the same parity.
  2. Symmetric: "a and b share parity" reads the same both ways.
  3. Transitive: if a, b share parity and b, c share parity, then all three do.
An equivalence relation with two classes: {1, 3, 5, 7} and {2, 4, 6}. No odd element is related to an even one.
The reverse direction

It works backwards too. Start with any partition and define "a R b if they are in the same piece". That is always an equivalence relation.

The textbook splits ℤ into:

  1. A₁ = {…, −6, −3, 0, 3, 6, …} = [0]
  2. A₂ = {…, −5, −2, 1, 4, 7, …} = [1]
  3. A₃ = {…, −4, −1, 2, 5, 8, …} = [2]
The matching relation is "3 divides a − b". Set n = 3 in the drawers above.
In plain words

Sort a pile of socks by colour. Each sock matches itself (reflexive). If sock A matches sock B, then B matches A (symmetric). If A matches B and B matches C, then A matches C (transitive). The colour piles are the equivalence classes. Every sock ends up in exactly one pile.

Try it · Exercise 1.1

Practise the three checks.

Decide for yourself first, then open the answer. Every answer shows the reasoning, not just the verdict.

Q1 (i)A = {1, 2, …, 14}, R = {(x, y) : 3x − y = 0}
Not reflexiveNot symmetricNot transitive

R = {(1, 3), (2, 6), (3, 9), (4, 12)}, since y = 3x must stay within 14.

(1, 1) ∉ R. (1, 3) ∈ R but (3, 1) ∉ R. (1, 3), (3, 9) ∈ R but (1, 9) ∉ R.

Q1 (ii)ℕ, R = {(x, y) : y = x + 5 and x < 4}
Not reflexiveNot symmetricTransitive

R = {(1, 6), (2, 7), (3, 8)}. (1, 1) ∉ R, and (6, 1) ∉ R.

No second element (6, 7, 8) appears as a first element, so there is no chain (a, b), (b, c) to test. The rule is never broken, so R is transitive.

Q1 (iii)A = {1, 2, 3, 4, 5, 6}, R = {(x, y) : y is divisible by x}
ReflexiveNot symmetricTransitive

Every x divides itself. 2 divides 4 but 4 doesn't divide 2. If x | y and y | z, then y = kx and z = my = mkx, so x | z.

Q1 (iv)ℤ, R = {(x, y) : x − y is an integer}
ReflexiveSymmetricTransitive

The difference of two integers is always an integer, so this is the universal relation on ℤ, and therefore an equivalence relation.

Q1 (v)People in a town: (c) "x is exactly 7 cm taller than y"
Not reflexiveNot symmetricNot transitive

Nobody is 7 cm taller than themselves. If x is 7 cm taller than y, y is 7 cm shorter. And 7 cm + 7 cm makes x 14 cm taller than z, not 7.

Compare (a) "work at the same place" and (b) "live in the same locality": both are equivalence relations.

Q2ℝ, R = {(a, b) : a ≤ b²}
Not reflexiveNot symmetricNot transitive

Reflexive fails at a = ½: is ½ ≤ ¼? No.

Symmetric fails: 1 ≤ 2² = 4, but 2 ≤ 1² = 1 is false.

Transitive fails: 3 ≤ 2² and 2 ≤ 1.5² = 2.25, but 3 ≤ 1.5² = 2.25 is false.

Q4ℝ, R = {(a, b) : a ≤ b}
ReflexiveNot symmetricTransitive

a ≤ a always. 1 ≤ 2 but 2 ≰ 1. If a ≤ b ≤ c then a ≤ c. Load "a ≤ b" in the lab to see this on {1, 2, 3, 4}.

Q12Triangles, "T₁ is similar to T₂". Sides: T₁ = 3, 4, 5; T₂ = 5, 12, 13; T₃ = 6, 8, 10. Which are related?
Equivalence

Similarity is reflexive, symmetric and transitive. T₃'s sides are exactly 2 × T₁'s (6 : 8 : 10 = 3 : 4 : 5), so T₁ R T₃. T₂ has ratio 5 : 12 : 13, which matches neither.

Q14Lines in the plane, "L₁ is parallel to L₂". Which lines are related to y = 2x + 4?
Equivalence

Taking "every line is parallel to itself", the relation is reflexive, symmetric and transitive. Parallel lines share a slope, so the class of y = 2x + 4 is every line y = 2x + c, c ∈ ℝ.

Part 5 · Types of functions

One-one, onto, or both.

A function gives every input exactly one arrow out. Now we look at where the arrows land.

A function
f : X → Y

A relation where every input in X has exactly one arrow out. The new questions are about the arrival side, Y.

Question 1
f(x₁) = f(x₂) ⇒ x₁ = x₂

Do arrows ever land on the same element? If never, f is one-one.

Question 2
range = Y

Does every element of Y get at least one arrow? If yes, f is onto.

f₁ · one-one, not onto

Distinct arrivals, empty seats

No two arrows share a landing spot, but e and f in X₂ get nothing.

f₂ · many-one, not onto

Shared arrival, empty seats

1 and 2 both land on b. And a, e, f are never reached.

f₃ · many-one, onto

Every seat filled, some shared

Each of a, b, c is reached, but a is reached twice.

f₄ · one-one and onto

A perfect pairing

Every element of X₄ gets exactly one arrow. This is a bijection.

TypeOther nameDefinitionArrow pictureEveryday picture
One-oneInjectivef(x₁) = f(x₂) ⇒ x₁ = x₂No landing spot receives two arrowsRoll numbers: no two students share one
Many-oneNot injectiveSome x₁ ≠ x₂ with f(x₁) = f(x₂)Two arrows meet at one spotBirthday month: many students share March
OntoSurjectiveFor every y ∈ Y there is an x with f(x) = y. Equivalently, range = YEvery spot in Y receives an arrowEvery seat in the hall is occupied
BijectiveOne-one correspondenceOne-one and ontoExactly one arrow into every spotEach guest gets exactly one of the chairs, and no chair is empty
How to prove one-one
  1. Assume f(x₁) = f(x₂).
  2. Use algebra to reach x₁ = x₂.
  3. To disprove: find two different inputs with the same output, like f(−1) = f(1).
How to prove onto
  1. Take any y in the codomain.
  2. Solve f(x) = y for x.
  3. Check that this x really lies in the domain. To disprove: find one y nobody reaches.
Horizontal line testDrag the level y = c. Every dot where it meets the graph is an input that lands on c. Two or more hits: not one-one. No hits at a c inside the codomain: not onto.
Function f(x)
Domain and codomain
Inputs landing on c
One-one?
Onto?

Same formula, different sets, different answers. 2x is a bijection on ℝ but not on ℕ (Examples 8 and 9). The domain and codomain are part of the function.

Worked examples

Example 7 · One-one, not onto

f : A → ℕ, where A = the 50 students of Class X and f(x) = roll number of x.

  1. One-one: no two students share a roll number.
  2. Not onto: roll numbers run 1 to 50, so 51 ∈ ℕ is nobody's roll number.
Example 8 · One-one, not onto

f : ℕ → ℕ, f(x) = 2x.

  1. One-one: 2x₁ = 2x₂ ⇒ x₁ = x₂.
  2. Not onto: 2x = 1 would need x = ½ ∉ ℕ. Odd numbers are never reached.
Example 9 · Bijective

f : ℝ → ℝ, f(x) = 2x.

  1. One-one: same algebra as Example 8.
  2. Onto: for any real y, the input x = y/2 is real and f(y/2) = y.
Allowing fractions fills the gaps that ℕ left.
Example 10 · Onto, not one-one

f : ℕ → ℕ with f(1) = f(2) = 1 and f(x) = x − 1 for x > 2.

  1. Not one-one: f(1) = f(2) = 1.
  2. Onto: any y ≠ 1 comes from x = y + 1, and 1 comes from 1.
Example 11 · Neither

f : ℝ → ℝ, f(x) = x².

  1. Not one-one: f(−1) = 1 = f(1).
  2. Not onto: −2 is not the square of any real number.
In the line test, pick x² on ℝ: a level above 0 hits twice; below 0 it misses.
Example 12 · Bijective

f : ℕ → ℕ, f(x) = x + 1 if x is odd, x − 1 if x is even.

  1. The function swaps neighbours: 1 ↔ 2, 3 ↔ 4, 5 ↔ 6, …
  2. One-one: if x₁ is odd and x₂ even, x₁ + 1 = x₂ − 1 would need x₂ − x₁ = 2, but even − odd is odd. Same parity gives x₁ = x₂ directly.
  3. Onto: odd 2r + 1 comes from 2r + 2; even 2r comes from 2r − 1.

Finite sets are special

Examples 13 and 14: for a function from a finite set to itself, one-one and onto always come together.

two share 1……so 3 is empty123
Example 13

Onto on {1, 2, 3} ⇒ one-one

If two inputs shared an output, only two outputs would be used, leaving one of the three empty. That contradicts onto.

three different outputs fill every box123
Example 14

One-one on {1, 2, 3} ⇒ onto

Three inputs with three different outputs must use all three elements of {1, 2, 3}.

But not for infinite sets

2x on ℕ is one-one but not onto (Example 8). Example 10's function is onto but not one-one. With infinitely many seats you can fill a seat for every guest and still have seats left over. That surprising behaviour is a key difference between finite and infinite sets.

Try it · Exercise 1.2

Practise injective and surjective.

Use the proof recipes above. For "not" answers, a single counterexample is all you need.

Q1f : ℝ* → ℝ*, f(x) = 1/x (ℝ* = non-zero reals). And if the domain becomes ℕ?
One-oneOnto

1/x₁ = 1/x₂ ⇒ x₁ = x₂. For any y ≠ 0, x = 1/y works.

With domain ℕ it stays one-one, but it's not onto: 2 ∈ ℝ* would need x = ½ ∉ ℕ.

Q2x² and x³ on ℕ, ℤ and ℝ

(i) ℕ → ℕ, x²: one-one, not onto (2 is not a square). (ii) ℤ → ℤ, x²: neither ((−1)² = 1²). (iii) ℝ → ℝ, x²: neither. (iv) ℕ → ℕ, x³: one-one, not onto. (v) ℤ → ℤ, x³: one-one, not onto (2 is not a cube).

All five are in the horizontal line test above. Check them there.

Q3Greatest integer function f(x) = [x] on ℝ
Not one-oneNot onto

[1.2] = [1.7] = 1. Outputs are always integers, so 0.7 is never reached.

Q5Signum function: 1 if x > 0, 0 if x = 0, −1 if x < 0
Not one-oneNot onto

f(1) = f(2) = 1. The range is only {−1, 0, 1}, so 2 is never reached.

Q7(i) f(x) = 3 − 4x   (ii) f(x) = 1 + x², both ℝ → ℝ

(i) Bijective. 3 − 4x₁ = 3 − 4x₂ ⇒ x₁ = x₂. For any y, x = (3 − y)/4.

(ii) Neither. f(1) = f(−1) = 2, and 1 + x² ≥ 1, so 0 is never reached.

Q9f(n) = (n + 1)/2 if n odd, n/2 if n even, on ℕ
Not one-oneOnto

f(1) = 1 = f(2), so it is not bijective. Any m is reached from 2m, so it is onto.

Q10f : ℝ − {3} → ℝ − {1}, f(x) = (x − 2)/(x − 3)
One-oneOnto

Cross-multiplying (x₁ − 2)(x₂ − 3) = (x₂ − 2)(x₁ − 3) simplifies to x₁ = x₂.

Solve y = (x − 2)/(x − 3): x = (3y − 2)/(y − 1), which is defined because y ≠ 1, and never equals 3.

Part 6 · Composition

Two machines in a row.

Feed the output of one function straight into another. The two machines together make one new function.

The rule
(g ∘ f)(x) = g( f(x) )

For f : A → B and g : B → C, the combined machine is g∘f. Read it as “g of f”. The textbook writes it as gof.

Right to left
x → f(x) → g(f(x))

f acts first, then g.

It must fit
range of f ⊆ domain of g

The range of f needs to sit inside the domain of g, so that g can take every output of f.

Basics for thiswhat a function is
x f f(x) g g(f(x)) one combined machine: g∘f
Example 15, tracedf : {2, 3, 4, 5} → {3, 4, 5, 9} and g : {3, 4, 5, 9} → {7, 11, 15}. Pick a starting element and follow its path.
Start at x =

Result: g∘f = {(2, 7), (3, 7), (4, 11), (5, 11)}. Note that 9 and 15 are never used on this route.

Order mattersChoose two functions and an input. Compare g(f(x)) with f(g(x)).
f(x) =
g(x) =
g∘f : first f, then g
f∘g : first g, then f
Example 16

f(x) = cos x, g(x) = 3x², both ℝ → ℝ.

  1. g∘f(x) = g(cos x) = 3 cos² x.
  2. f∘g(x) = f(3x²) = cos 3x².
  3. At x = 0: 3 cos² 0 = 3, but cos 0 = 1.
g∘f ≠ f∘g. Composition is not commutative. Try it in the panel above.
Everyday picture

Machine f: "put on socks". Machine g: "put on shoes".

  1. g∘f: socks first, then shoes. Normal.
  2. f∘g: shoes first, then socks over the shoes. Very different result!
Always read g∘f from the right: the function nearest x acts first.
Part 7 · Invertible functions

Running the machine backwards.

Some functions can be run backwards: a second function undoes the first. That undo function is called the inverse.

Undo it
g ∘ f = IX,  f ∘ g = IY

f : X → Y is invertible if there is a function g : Y → X that undoes it like this. That g is the inverse, f−1. Here IX is the identity: IX(x) = x.

The test
f is invertible ⇔ f is one-one and onto

f−1 reverses every arrow of f. The two cards below show why both conditions are needed.

Not a reciprocal
f−1 ≠ 1f

The −1 means “undo f”, not “one over f”.

Why one-one is needed

A reversed arrow can't split

For x², both −2 and 2 go to 4. Reversed, 4 would need two outputs, and a function allows only one.

Why onto is needed

An empty seat has nowhere to go

For 2x on ℕ, the number 3 is never reached. The reverse machine would have no answer for input 3.

The mirror lineThe graph of f−1 is the graph of f reflected in the line y = x. Point (a, b) on f becomes (b, a) on f−1.
Forward: f(a) = 4a + 3
Backward: f−1(y) = (y − 3)/4

Blue: f. Orange: f−1. Grey dashes: the mirror y = x.

Example 17

f : ℕ → Y, f(x) = 4x + 3, where Y = {7, 11, 15, 19, …} is exactly the set of values 4x + 3 takes.

  1. Solve for x: y = 4x + 3 gives x = (y − 3)/4. Define g(y) = (y − 3)/4.
  2. Check g∘f: g(4x + 3) = (4x + 3 − 3)/4 = x. ✓
  3. Check f∘g: f((y − 3)/4) = (y − 3) + 3 = y. ✓
f−1(y) = (y − 3)/4. Choosing Y as the range made f onto.
The undo recipe
  1. Write y = f(x).
  2. Rearrange to get x in terms of y.
  3. Check x lands in the domain for every y (this is the "onto" check).
  4. Name it f−1(y) and confirm both compositions give the identity.
"Add 3, then multiply by 4" is undone by "divide by 4, then subtract 3". The steps are reversed and in reverse order.
Where this leads

Inverses come back in the next two chapters. Chapter 2 restricts sin, cos and tan until they are one-one and onto, so that they can be undone. Chapter 3 undoes whole matrices: A⁻¹ reverses A, just as f⁻¹ reverses f.

Part 8 · Miscellaneous examples

Counting relations and functions.

Some of the trickiest exam questions ask you to count relations or functions. Drawing every case is the safest way to count.

Basics for thiscounting choices

Example 22: one-one functions from {1, 2, 3} to itself

A one-one function here is just a reordering (a permutation) of 1, 2, 3. There are 3 choices for f(1), then 2 left for f(2), then 1 for f(3): 3 × 2 × 1 = 3! = 6.

By Example 13, each of these is also onto. So the number of onto functions from {1, 2, …, n} to itself is n! (Miscellaneous Exercise Q4).

Example 23

On A = {1, 2, 3}, how many relations contain (1, 2) and (2, 3) and are reflexive and transitive but not symmetric?

  1. Start small. Reflexive needs (1, 1), (2, 2), (3, 3). Transitivity on (1, 2), (2, 3) forces (1, 3). So R₁ = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 3), (1, 3)}.
  2. Add one reverse arrow. R₂ = R₁ ∪ {(2, 1)} and R₃ = R₁ ∪ {(3, 2)} stay transitive and still aren't symmetric.
  3. Adding two (or adding (3, 1)) forces the rest through transitivity, and R becomes symmetric (the universal relation).
Answer: 3 relations (R₁, R₂, R₃). Load "Example 23 R₁" in the lab and add (2, 1) to check.
Example 24

How many equivalence relations on {1, 2, 3} contain (1, 2) and (2, 1)?

  1. Smallest: R₁ = {(1, 1), (2, 2), (3, 3), (1, 2), (2, 1)}. Its classes are {1, 2} and {3}.
  2. Add (2, 3): symmetry forces (3, 2), then transitivity forces (1, 3) and (3, 1). That is everything.
  3. So the only larger option is the universal relation, with one class {1, 2, 3}.
Answer: 2. Think of partitions: 1 and 2 must share a drawer. 3 either joins them or doesn't.
Example 25 · Sums can lose onto

Iℕ(x) = x is onto. But (Iℕ + Iℕ)(x) = 2x is not onto, because 3 is never reached.

Example 26 · Sums can lose one-one

On [0, π/2], sin x and cos x are each one-one. But (sin + cos)(0) = 0 + 1 = 1 and (sin + cos)(π/2) = 1 + 0 = 1.

So sin + cos is not one-one on [0, π/2].
Self-check

Six exam-style questions.

These are the multiple-choice questions from the chapter's exercises. Tap an option to see if you're right and why.

Score0 / 66 left to answer
Summary

Remember this.

A relation from A to B is any subset of A × B. Empty: R = φ. Universal: R = A × A.

Reflexive: every loop (a, a). Symmetric: every arrow has a return arrow. Transitive: every two-step path has a shortcut.

All three together make an equivalence relation, which splits the set into non-overlapping equivalence classes [a].

One-one: f(x₁) = f(x₂) ⇒ x₁ = x₂. Onto: range = codomain. Bijective: both.

For a finite set X, f : X → X is one-one exactly when it is onto. This fails for infinite sets.

(g∘f)(x) = g(f(x)), usually ≠ f∘g. A function has an inverse exactly when it is bijective.

Where the idea of a function came from

From the textbook's historical note: the word "function" changed meaning over about 250 years.

1637René Descartes

Uses "function" for a power xn while studying curves.

1667James Gregory

A quantity built from others by repeated algebraic operations.

1673G. W. Leibniz

Quantities varying along a curve, such as slope. Later, the phrase "function of x".

1718John Bernoulli

First writes φx for a function of x.

1734Leonhard Euler

Makes symbols like f, F, φ, ψ standard.

1793J. L. Lagrange

Uses notation such as f(x) and F(x).

1800sLejeune Dirichlet

Gives the definition used until set theory arrived.

1845–1918Georg Cantor

Set theory makes today's "set of ordered pairs" definition possible.

Finished Chapter 1? Hear when the next one is ready

Leave your email and we will write when a new chapter or a new set of worked solutions is ready. That is all we use it for, and you can ask to be taken off the list at any time.

You are on the list. We will email you when new chapters are added, and for nothing else.