Sets and Functions Guide
Sets and Functions Guide
This PDF is designed to provide a detailed explanation of Sets and Functions, their definitions, uses,
rules, types, and examples. It also includes exercises and their solutions to help you understand
Sets:
A set is a collection of distinct objects, considered as an object in its own right. These objects can be
Definition:
A set is a well-defined collection of objects. The objects in a set are called elements or members.
Notation:
A set is usually denoted by a capital letter, and the elements are enclosed in curly braces.
Example:
Set A = {1, 2, 3, 4}
Use of Sets:
Types of Sets
1. Finite Set:
A set that contains a definite number of elements.
Example: A = {1, 2, 3}
2. Infinite Set:
3. Equal Set:
Example: C = {}
5. Singleton Set:
Example: D = {5}
6. Universal Set:
Functions
A function is a relation between two sets, where each element of the first set is related to exactly
Definition:
A function is a rule that assigns every element in a set to exactly one element in another set.
Notation:
f: A -> B means a function f from set A to set B, where each element in A has a unique element in B.
Example:
Types of Functions:
Each element of the first set is related to a distinct element in the second set.
Every element of the second set has a pre-image in the first set.
Exercises
A = {1, 2, 3, 4, 5}
B = {2, 4, 6, 8}
Find:
a. A intersection B
b. A union B
Solutions
Solution 1:
Solution 2:
f(4) = 16
f(-3) = 9
Solution 3:
a. A intersection B = {2, 4}
b. A union B = {1, 2, 3, 4, 5, 6, 8}
Solution 4:
For f(x) = 2x, if f(x1) = f(x2), then 2x1 = 2x2 => x1 = x2. Therefore, the function is one-to-one.
Solution 5:
f(x) = x + 5 is onto if the range of f covers the entire set B. Since for every element in B, there is a