























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
























Detailed 30-page theory • proofs • examples • exam shortcuts
Cartesian products, relations and their properties, equivalence relations and classes, functions, domain/codomain/range, one-one, many-one, into, onto and bijective functions, composition, identity, inverse functions, graphs, counting and board-style practice.
1. Cartesian Product
For sets A and B, A×B is the set of all ordered pairs (a,b) where a∈A and b∈B.
A×B={(a,b):a∈A,b∈B}. If n(A)=m and n(B)=n, then n(A×B)=mn.
A={1,2}, B={x,y,z}. Then A×B has 6 pairs: (1,x),(1,y),(1,z),(2,x),(2,y),(2,z).
Order matters: (a,b) is generally different from (b,a). Also A×B need not equal B×A.
Pair every element of A with every element of B. If either set is empty, the product is empty.
3. Empty, Universal and Identity Relations
R=∅. No element is related to any element.
U=A×A. Every possible ordered pair belongs to U.
I_A={(a,a):a∈A}. Every element is related to itself only.
For A={1,2}, I_A={(1,1),(2,2)} and U={(1,1),(1,2),(2,1),(2,2)}.
For non-empty A, U is reflexive, symmetric and transitive. The empty relation is symmetric and transitive but not reflexive.
4. Reflexive Relations
R on A is reflexive if every element is related to itself: for every a∈A, (a,a)∈R.
List all diagonal pairs (a,a). Every one must be present.
A={1,2,3}, R={(1,1),(2,2),(3,3),(1,2)} is reflexive.
If (3,3) is missing from a relation on {1,2,3}, it is not reflexive.
Take arbitrary a∈A and show (a,a)∈R. To disprove, find one x with (x,x)∉R.
6. Transitive Relations
R is transitive if (a,b)∈R and (b,c)∈R imply (a,c)∈R.
The middle elements must match. Two linked steps must imply the direct step.
R={(1,2),(2,3),(1,3)} satisfies the chain 1→ 2 →3.
R={(1,2),(2,3)} is not transitive because (1,3) is missing.
Assume (a,b),(b,c)∈R and manipulate the defining condition until (a,c)∈R.
7. Comparing Relation Properties
Checks self-pairs (a,a).
Checks reverse pairs (a,b) and (b,a).
Checks chains (a,b),(b,c) and requires (a,c).
A single valid counterexample disproves a universal statement.
Do not assume one property implies another; they are independent conditions in general.
9. Equivalence Classes
For a∈A, [a]={x∈A:xRa}.
Every class is non-empty. If aRb, then [a]=[b]. If a is not related to b, the classes are disjoint.
Under congruence modulo 3, [0] contains multiples of 3, [1] contains numbers one more than a multiple of 3, and [2] contains numbers two more.
Equivalence classes form a partition of A.
Choose one representative, form its class, then repeat with an element not yet classified.
10. Classes are Equal or Disjoint
For an equivalence relation, any two equivalence classes are either identical or disjoint.
If [a] and [b] share x, then xRa and xRb. Symmetry gives aRx and transitivity gives aRb, hence [a]=[b].
Two distinct equivalence classes can never partially overlap.
A partition can define an equivalence relation by declaring two elements related when they lie in the same block.
{1,3}, {2,4,6}, {5} is a partition of {1,2,3,4,5,6}.
12. Functions: Definition
A function f:A→B assigns to every element of A exactly one element of B.
A is the domain, B is the codomain, and the actually attained outputs form the range.
Different inputs may have the same output.
The same input cannot have two different outputs.
f:{1,2,3}→{a,b,c}, with 1→a, 2→b, 3→b, is a function.
13. Domain, Codomain and Range
The set of permitted inputs.
The declared target set in f:A→B.
The outputs actually attained, always a subset of the codomain.
For 1/(x−2), x≠2. For √(x−3), x≥3. For ln(x−1), x>1.
If outputs are a,c,c,a into {a,b,c,d}, the range is {a,c}.
15. Onto / Surjective
f:A→B is onto when every element of B is the image of at least one element of A.
Range(f)=B.
Take arbitrary y∈B, solve y=f(x), and show the resulting x belongs to A.
f(x)=2x−5 from R to R is onto because x=(y+5)/2 works for every y.
x²:R→R is not onto because negative real numbers are never attained.
16. Into Functions
A function is into when at least one codomain element is not attained; range is a proper subset of the codomain.
e^x:R→R is one-one and into because its range is (0,∞).
Into concerns unused codomain values; many-one concerns repeated outputs.
If |A|<|B|, no function A→B can be onto.
Always compare the range with the declared codomain.
18. Bijection
A function is bijective if it is both one-one and onto.
There are no collisions and no unused codomain elements.
f(x)=5x−7 from R to R is bijective.
For finite sets of equal size, one-one and onto are equivalent.
A function has an inverse function exactly when it is bijective.
19. Composition
If f:A→B and g:B→C, then (gnf)(x)=g(f(x)).
The rightmost function acts first: do f, then g.
f(x)=2x+1 and g(x)=x² give gnf=(2x+1)², while fng=2x²+1.
hn(gnf)=(hng)nf.
Composition is generally not commutative.