This chapter establishes the foundational concepts of relations and functions, which serve as the bedrock for calculus and modern mathematical analysis. It introduces the Cartesian product of sets, defines relations as subsets of these products, and refines them into functions under specific uniqueness conditions.
The Cartesian product of two non-empty sets is the set of all ordered pairs of elements from those sets.
Given two non-empty sets $P$ and $Q$, the Cartesian product $P \times Q$ is defined as:
$$P \times Q = \{(p, q) : p \in P, q \in Q\}$$If either $P$ or $Q$ is the null set $\phi$, then their Cartesian product is also the null set:
$$P \times Q = \phi$$Mathematical Problem Statement: If $(x + 1, y - 2) = (3, 1)$, find the values of $x$ and $y$.
Step-by-Step Algorithmic Solution Trace:
- Equate the corresponding elements of the equal ordered pairs: $$x + 1 = 3$$ $$y - 2 = 1$$
- Solve the linear equations independently: $$x = 3 - 1 = 2$$ $$y = 1 + 2 = 3$$
Final Evaluation Output: $x = 2, y = 3$
Mathematical Problem Statement: Let $A = \{1, 2, 3\}$, $B = \{3, 4\}$, and $C = \{4, 5, 6\}$. Find $A \times (B \cap C)$.
Step-by-Step Algorithmic Solution Trace:
- Find the intersection of sets $B$ and $C$: $$B \cap C = \{3, 4\} \cap \{4, 5, 6\} = \{4\}$$
- Compute the Cartesian product of $A$ with the resulting set: $$A \times (B \cap C) = \{1, 2, 3\} \times \{4\}$$ $$A \times (B \cap C) = \{(1, 4), (2, 4), (3, 4)\}$$
Final Evaluation Output: $\{(1, 4), (2, 4), (3, 4)\}$
A relation establishes a mathematical link between elements of two sets.
Relations can be represented in three primary ways:
Mathematical Problem Statement: Let $A = \{1, 2, 3, 4, 5, 6\}$. Define a relation $R$ from $A$ to $A$ by $R = \{(x, y) : y = x + 1\}$. Depict this using roster form and find its domain, codomain, and range.
Step-by-Step Algorithmic Solution Trace:
- Evaluate $y = x + 1$ for each $x \in A$:
- For $x = 1 \implies y = 2 \in A \implies (1, 2) \in R$
- For $x = 2 \implies y = 3 \in A \implies (2, 3) \in R$
- For $x = 3 \implies y = 4 \in A \implies (3, 4) \in R$
- For $x = 4 \implies y = 5 \in A \implies (4, 5) \in R$
- For $x = 5 \implies y = 6 \in A \implies (5, 6) \in R$
- For $x = 6 \implies y = 7 \notin A \implies$ No pair formed.
- Write the relation in roster form: $$R = \{(1, 2), (2, 3), (3, 4), (4, 5), (5, 6)\}$$
- Extract the domain (first elements): $$\text{Domain} = \{1, 2, 3, 4, 5\}$$
- Extract the range (second elements): $$\text{Range} = \{2, 3, 4, 5, 6\}$$
- Identify the codomain (entire target set): $$\text{Codomain} = A = \{1, 2, 3, 4, 5, 6\}$$
Final Evaluation Output: $R = \{(1, 2), (2, 3), (3, 4), (4, 5), (5, 6)\}$, $\text{Domain} = \{1, 2, 3, 4, 5\}$, $\text{Range} = \{2, 3, 4, 5, 6\}$
A function is a special type of relation where every element of the domain is mapped to a unique element in the codomain.
A relation $f$ from a set $A$ to a set $B$ is said to be a function if every element of set $A$ has one and only one image in set $B$.
In other words, a relation $f$ is a function if:
We write this as $f : A \to B$, where $f(a) = b$. Here, $b$ is the image of $a$ under $f$, and $a$ is the preimage of $b$ under $f$.
The following table outlines the core real functions, their mathematical definitions, domains, and ranges:
| Function Type | Mathematical Definition | Domain | Range | Graphical Characteristics |
|---|---|---|---|---|
| Identity Function | $f(x) = x$ | $\mathbb{R}$ | $\mathbb{R}$ | Straight line passing through the origin at a $45^\circ$ angle. |
| Constant Function | $f(x) = c$ (where $c$ is a constant) | $\mathbb{R}$ | $\{c\}$ | Straight line parallel to the $x$-axis. |
| Polynomial Function | $f(x) = a_0 + a_1 x + a_2 x^2 + \dots + a_n x^n$ | $\mathbb{R}$ | Depends on the polynomial degree and coefficients. | Continuous smooth curves (e.g., parabolas for quadratic functions). |
| Rational Function | $f(x) = \frac{g(x)}{h(x)}$, where $h(x) \neq 0$ | $\{x \in \mathbb{R} : h(x) \neq 0\}$ | Depends on $g(x)$ and $h(x)$. | May contain asymptotes and discontinuities (e.g., hyperbola for $1/x$). |
| Modulus Function | $f(x) = |x| = \begin{cases} x, & x \ge 0 \\ -x, & x < 0 \end{cases}$ | $\mathbb{R}$ | $[0, \infty)$ | V-shaped curve symmetric about the $y$-axis with vertex at $(0,0)$. |
| Signum Function | $f(x) = \begin{cases} 1, & x > 0 \\ 0, & x = 0 \\ -1, & x < 0 \end{cases}$ | $\mathbb{R}$ | $\{-1, 0, 1\}$ | Step-like horizontal segments with a point at the origin. |
| Greatest Integer Function | $f(x) = [x]$ (greatest integer less than or equal to $x$) | $\mathbb{R}$ | $\mathbb{Z}$ (Integers) | Step-like discontinuous graph (staircase pattern). |
Mathematical Problem Statement: Examine the relation $R = \{(2,1), (3,1), (4,2)\}$ and state whether it is a function or not, giving reasons.
Step-by-Step Algorithmic Solution Trace:
- Identify the domain elements: $\text{Domain} = \{2, 3, 4\}$.
- Check if each domain element is mapped to a unique image:
- $2$ is mapped to $1$ (unique).
- $3$ is mapped to $1$ (unique).
- $4$ is mapped to $2$ (unique).
- Since no domain element is associated with more than one image, the uniqueness condition is satisfied.
Final Evaluation Output: The relation $R$ is a function.
Mathematical Problem Statement: Find the domain of the real function $f(x) = \frac{x^2 + 3x + 5}{x^2 - 5x + 4}$.
Step-by-Step Algorithmic Solution Trace:
- Identify the condition for a rational function to be defined: The denominator must not be zero. $$x^2 - 5x + 4 \neq 0$$
- Factorize the quadratic expression in the denominator: $$x^2 - 5x + 4 = (x - 4)(x - 1)$$
- Find the roots where the denominator becomes zero: $$(x - 4)(x - 1) = 0 \implies x = 4 \text{ or } x = 1$$
- Exclude these points from the set of real numbers $\mathbb{R}$ to obtain the domain: $$\text{Domain}(f) = \mathbb{R} - \{1, 4\}$$
Final Evaluation Output: $\text{Domain}(f) = \mathbb{R} - \{1, 4\}$
Operations on real functions are defined pointwise over their common domains.
Let $f : X \to \mathbb{R}$ and $g : X \to \mathbb{R}$ be two real functions, where $X \subseteq \mathbb{R}$:
Mathematical Problem Statement: Let $f(x) = x^2$ and $g(x) = 2x + 1$ be two real functions. Find $(f + g)(x)$, $(f - g)(x)$, $(fg)(x)$, and $\left(\frac{f}{g}\right)(x)$.
Step-by-Step Algorithmic Solution Trace:
- Compute addition: $$(f + g)(x) = f(x) + g(x) = x^2 + 2x + 1$$
- Compute subtraction: $$(f - g)(x) = f(x) - g(x) = x^2 - (2x + 1) = x^2 - 2x - 1$$
- Compute multiplication: $$(fg)(x) = f(x) \cdot g(x) = x^2(2x + 1) = 2x^3 + x^2$$
- Compute quotient and specify the domain restriction: $$\left(\frac{f}{g}\right)(x) = \frac{f(x)}{g(x)} = \frac{x^2}{2x + 1}$$ The denominator must not be zero: $$2x + 1 \neq 0 \implies x \neq -\frac{1}{2}$$
Final Evaluation Output: $(f+g)(x) = x^2+2x+1$, $(f-g)(x) = x^2-2x-1$, $(fg)(x) = 2x^3+x^2$, $\left(\frac{f}{g}\right)(x) = \frac{x^2}{2x+1}$ (where $x \neq -\frac{1}{2}$)
Historical Chronicle: Evolution of the Function Concept