TOPIC 2 - FUNCTIONS AND RELATIONS.pptx
Table of contents
- Functions and relations
- Three methods to check the functions
- Ordered pairs
- Mapping
- Graph
- Examples:
- Activity 2:
1. Functions and relations
1.1 Relations and their components
A relation is defined as a set of ordered pairs of numbers. The domain of a relation is the set of all unique first elements found within these ordered pairs.
The range of a relation consists of all unique second elements from these ordered pairs.
1.2 Example of a relation
Consider the relation R = {(-5, -5), (-4, 2), (-2, -2), (0, 1), (0, 3), (2, -4), (3, 4)}.
- The domain of R is {-5, -4, -2, 0, 2, 3}.
- The range of R is {-5, 2, -2, 1, 3, -4, 4}.
1.3 Functions
A function is a specific type of relation where every element in the domain is associated with precisely one element in the range. This means no two ordered pairs in a function can have the same first element but different second elements.

2. Three methods to check the functions
2.1 Checking for functions using ordered pairs
A set of ordered pairs represents a function if each unique first element (input) is associated with exactly one second element (output). This is often referred to as the "vertical line test" for sets of ordered pairs, though it's more accurately a check of the definition of a function.
If any input value appears more than once with different output values, the set is not a function.
- Function definition: A relation is a function if no two distinct ordered pairs have the same first component and different second components.
- Example check: The set {(1, 2), (2, 4), (3, 6)} is a function because each first element (1, 2, 3) is unique.
- Non-function example: The set {(1, 2), (1, 3), (2, 4)} is not a function because the input '1' is associated with two different outputs, '2' and '3'.
2.2 Checking for functions using mappings
A mapping diagram visually represents a relation. Similar to ordered pairs, a mapping represents a function if each element in the domain (the set of first elements) maps to exactly one element in the codomain (the set of second elements).
Arrows originating from a single domain element must all point to the same codomain element.
- Mapping criteria: Each element in the domain must have exactly one arrow originating from it.
- Valid mapping: If an element 'a' in the domain maps to 'x' in the codomain, and no other arrow originates from 'a', it's consistent with a function.
- Invalid mapping: If element 'a' maps to 'x' and also to 'y' (where x ≠ y), the mapping does not represent a function.
2.3 Checking for functions using graphs
The graphical method to determine if a relation is a function is the vertical line test. This test states that if any vertical line drawn on the graph intersects the graph at more than one point, the graph does not represent a function.
This is because a vertical line represents a single x-value (input), and if it intersects the graph multiple times, that x-value is associated with multiple y-values (outputs).
-
Vertical line test: A graph represents a function if and only if no vertical line intersects the graph more than once.
-
Linear functions: Linear equations of the form y=ax+b (where a=0) represent functions. For any given x, there is only one y.
-
Non-function graphs: Graphs of circles or ellipses, for example, fail the vertical line test because a single vertical line can intersect them at two points.
2.4 Domain and range of functions
The domain of a function is the set of all possible input values (x-values) for which the function is defined. The range is the set of all possible output values (y-values) that the function can produce.
Understanding the domain and range is crucial for analyzing function behavior.
- Domain: The set of all valid inputs. For many functions, the domain is all real numbers, but restrictions can apply.
- Range: The set of all possible outputs.
- Interval notation: Domains and ranges are often expressed using interval notation. For example, (−∞,0)∪(0,∞) represents all real numbers except zero.

2.5 Identifying domain and range from graphs
When given the graph

