Functions
Functions
another. A function \( f \) from a set \( A \) to a set \( B \) (denoted as \( f: A \to B \)) assigns each
element in \( A \) exactly one element in \( B \).
- Example: \( f(x) = x^3 \) for \( x \in \mathbb{R} \) (real numbers) is surjective because every real
number has a cube root.
3. **Bijective Function**
- A function is **bijective** if it is both injective and surjective, meaning there is a perfect one-to-
one correspondence between sets \( A \) and \( B \).
4. **Identity Function**
- Example: If \( A = \{1, 2, 3\} \), then \( f(1) = 1 \), \( f(2) = 2 \), etc.
5. **Constant Function**
6. **Composition of Functions**
- Given two functions \( f: A \to B \) and \( g: B \to C \), their composition \( g \circ f: A \to C \) is
defined by \( (g \circ f)(x) = g(f(x)) \).
7. **Inverse Function**
- Example: If \( f(x) = 3x + 2 \), then its inverse is \( f^{-1}(y) = \frac{y - 2}{3} \).
Would you like examples or problems related to any specific type of function?
Great! Let’s go through some examples and problems for each type of function.
**Example:**
Let \( f: \mathbb{Z} \to \mathbb{Z} \) be defined as \( f(x) = 2x + 3 \). Show that \( f \) is injective.
**Solution:**
\[
2x_1 + 3 = 2x_2 + 3
\]
\[
2x_1 = 2x_2
\]
Divide by 2:
\[
x_1 = x_2
\]
Since the only way \( f(x_1) = f(x_2) \) is if \( x_1 = x_2 \), \( f(x) \) is **injective**.
### **2. Onto (Surjective) Function**
**Problem:**
Let \( g: \mathbb{R} \to \mathbb{R} \) be defined as \( g(x) = 5x - 2 \). Prove that \( g \) is onto.
A function is onto if, for every \( y \in \mathbb{R} \), there exists an \( x \) such that \( g(x) = y \).
Solve for \( x \) in terms of \( y \) and show it is always possible.
**Problem:**
**Hint:**
- Check surjectivity: Can every integer be obtained as \( x^2 \) for some \( x \in \mathbb{Z} \)?
**Example:**
**Problem:**
Let \( c: \mathbb{R} \to \mathbb{R} \) be defined by \( c(x) = 7 \). Is this function injective, surjective,
or bijective?
**Problem:**
Let \( f(x) = 2x + 1 \) and \( g(x) = x^2 \). Find \( (f \circ g)(x) \) and \( (g \circ f)(x) \).
**Problem:**
Find the inverse of \( f(x) = \frac{x - 4}{3} \).