Examples of Relations and Functions in Mathematics
The study of examples of relations and functions in mathematics reveals how mathematical concepts describe connections between sets, enabling everything from simple counting to complex modeling in science and engineering. Understanding these foundational ideas is essential for anyone seeking to grasp higher‑level topics such as calculus, algebra, and data analysis.
What Is a Relation?
A relation is a set of ordered pairs that links elements from one set to elements of another set. In practice, formally, if A and B are two sets, a relation R from A to B is a subset of the Cartesian product A × B. The elements of R are written as (a, b) where a belongs to A (the domain) and b belongs to B (the codomain).
Key Characteristics of Relations
- Reflexive: Every element is related to itself.
- Symmetric: If (a, b) is in the relation, then (b, a) must also be in the relation.
- Transitive: If (a, b) and (b, c) are in the relation, then (a, c) must also be in the relation.
These properties help classify relations and determine their usefulness in various contexts.
Examples of Relations
Below are several concrete examples of relations that illustrate different types of connections:
-
Divisibility Relation
- Domain: Set of integers ℤ.
- Codomain: Set of integers ℤ.
- Relation: R = { (a, b) | a divides b }.
- Example pairs: (2, 4), (3, 9), (5, 5).
-
Parent‑Child Relation
- Domain: Set of people.
- Codomain: Set of people.
- Relation: P = { (p, c) | p is a biological parent of c }.
- This relation is not symmetric (a child is not a parent of the same person) but is irreflexive.
-
Less‑Than or Equal To (≤) Relation
- Domain: Real numbers ℝ.
- Codomain: Real numbers ℝ.
- Relation: L = { (x, y) | x ≤ y }.
- Pairs such as (1.5, 3), (2, 2), (‑4, ‑1) belong to L.
-
Equality Relation
- Domain: Any set S.
- Codomain: Same set S.
- Relation: E = { (a, a) | a ∈ S }.
- This is the most restrictive relation, being both reflexive and symmetric.
These examples of relations demonstrate how simple rules can generate rich structures that capture real‑world relationships.
What Is a Function?
A function is a special type of relation that assigns exactly one output to each input. On top of that, formally, a function f from a set A (the domain) to a set B (the codomain) is a subset of A × B such that for every a in A there exists a unique b in B with (a, b) ∈ f. The unique b is denoted f(a) Easy to understand, harder to ignore..
Essential Properties of Functions
- Well‑Defined: Each input has one and only one output.
- Injective (One‑to‑One): Different inputs produce different outputs.
- Surjective (Onto): Every element of the codomain is hit by at least one input.
- Bijective: Both injective and surjective, allowing an inverse function to exist.
Examples of Functions
Here are several examples of functions that illustrate the concept in varied settings:
-
Linear Function
- Domain: Real numbers ℝ.
- Codomain: Real numbers ℝ.
- Definition: f(x) = 2x + 3.
- Example values: f(0) = 3, f(1) = 5, f(‑2) = ‑1.
-
Quadratic Function
- Domain: Real numbers ℝ.
- Codomain: Real numbers ℝ.
- Definition: g(x) = x² – 4x + 4.
- This function maps each x to a single y; its graph is a parabola.
-
Absolute Value Function
- Domain: Real numbers ℝ.
- Codomain: Non‑negative real numbers ℝ₊.
- Definition: h(x) = |x|.
- Pairs such as (‑3, 3), (0, 0), (2, 2) belong to h.
-
Piecewise Function
- Domain: Real numbers ℝ.
- Codomain: Real numbers ℝ.
- Definition:
[ p(x) = \begin{cases} x + 1 & \text{if } x < 0,\ 2x & \text{if } x \geq 0. \end{cases} ] - This function behaves differently on different intervals, yet still assigns a unique output for each input.
-
Set‑Valued Function (Relation‑Like)
- Domain: Real numbers ℝ.
- Codomain: Power set of ℝ (the set of all subsets of ℝ).
- Definition: q(x) = { y ∈ ℝ | y > x }.
- Although not a traditional function, it