Reverse first; match the middle for composition

A relation from a set AA to a set BB is a collection of ordered pairs. The order matters: (a,b)(a,b) says that aa is related to bb. Two operations on such pairs are especially useful: taking an inverse and composing relations.

Inverse relation

The inverse relation reverses every pair. If R={(a,b),(c,d)}R=\{(a,b),(c,d)\}, then R−1={(b,a),(d,c)}R^{-1}=\{(b,a),(d,c)\}. This is a reversal of arrows, not an arithmetic reciprocal. A relation can have an inverse relation even when it is not a one-to-one function.

An arrow representation of a relation R. Element labels are used in the questions.

An arrow representation of a relation R. Element labels are used in the questions.

Composition

Suppose RR relates elements of AA to elements of BB, and SS relates elements of BB to elements of CC. The composite S∘RS\circ R relates aa to cc exactly when there is some middle element bb with aRbaRb and bScbSc:

S∘R={(a,c):∃b, (a,b)∈R and (b,c)∈S}.S\circ R=\{(a,c):\exists b,\ (a,b)\in R\text{ and }(b,c)\in S\}.

Read the notation right to left: apply RR first, then SS.

Worked example

Let R={(p,1),(q,2)}R=\{(p,1),(q,2)\} and S={(1,u),(2,v)}S=\{(1,u),(2,v)\}. Start at pp: RR sends it to 11, then SS sends 11 to uu, so (p,u)(p,u) appears in S∘RS\circ R. Repeat only where the middle value matches. There is no reason to pair pp with vv.



If (m,n)∈R(m,n)\in R and m≠nm\ne n, which ordered pair must be in R−1R^{-1}?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Let R={(1,a),(2,b)}R=\{(1,a),(2,b)\} and S={(a,x),(b,y)}S=\{(a,x),(b,y)\}. Which pair belongs to S∘RS\circ R?

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

Refer to the figure. Which pair belongs to the inverse relation R−1R^{-1}?

An arrow representation of a relation R. Element labels are used in the questions.

An arrow representation of a relation R. Element labels are used in the questions.

Choose an answer

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors