mathematics · algebra

Sets, Relations and Functions

Find unions, intersections, differences and complements and count them with n(A ∪ B) = n(A) + n(B) − n(A ∩ B); count subsets as 2ⁿ; test a relation for reflexive, symmetric and transitive and find the classes of an equivalence relation; tell a function from a relation and read its domain, codomain and range; decide whether a function is one-one, onto or bijective, with the horizontal-line test; compose functions; and invert a bijection.

Sets: size A and B and slide their overlap. Relations: switch on the closures. Functions: aim each arrow. Graphs: move the horizontal line.

Speed
n(A ∪ B)
7
shaded
7
n(R)
13
equivalence?
no
function?
yes
meets
twice
(g∘f)(x)
2

n(A)
4
n(B)
5
n(A ∩ B)
2
n(A − B)
2
n(A′)
6
n(A ∪ B ∪ C)
7
n(P(A))
16
added
0
reflexive?
yes
symmetric?
yes
transitive?
no
classes
0
n(range)
3
one-one?
no
onto?
no
bijective?
no
functions
625
one-one
120
onto
0
k in range?
yes
function?
yes
one-one?
no
onto?
no
invertible?
no
f(x)
1
(f∘g)(x)
4
g∘f = f∘g?
no
f one-one?
no