Definition of a Function, Domain & Range
- Relation vs Function: A relation is any set of ordered pairs $(x, y)$. A function $f$ is a special relation where each input $x$ in the domain maps to exactly one output $y$ in the range.
- Vertical Line Test (VLT): A graph represents a function if and only if no vertical line crosses the graph more than once.
- Domain Restrictions: The set of all allowable real inputs:
- Denominators cannot equal zero (e.g., $f(x) = \frac{1}{x-4} \implies x \ne 4$).
- Even roots cannot take negative radicands (e.g., $f(x) = \sqrt{2x - 6} \implies 2x - 6 \ge 0 \implies x \ge 3$).
- Range: The set of all possible resulting output values $f(x)$ as $x$ varies over the entire domain.
Composite Functions: $(f \circ g)(x) = f(g(x))$
- Composition Concept: Applying one function to the result of another. The output of the inner function $g(x)$ becomes the input for the outer function $f$: $$(f \circ g)(x) = f(g(x))$$
- Non-Commutative Property: In general, the order of composition matters: $$f(g(x)) \ne g(f(x))$$
- Domain of Composite Function: For $f(g(x))$ to exist, $x$ must be in the domain of $g$, and $g(x)$ must lie within the allowable domain of $f$.
Inverse Functions: $f^{-1}(x)$
- Condition for Existence: An inverse function $f^{-1}(x)$ exists if and only if $f$ is a one-to-one (bijective) function, meaning it passes the Horizontal Line Test (HLT). If not one-to-one, the domain must be restricted (e.g., $f(x) = x^2$ restricted to $x \ge 0$).
- Algebraic Algorithm for Finding $f^{-1}(x)$:
- Write the function as $y = f(x)$.
- Swap the variables $x$ and $y$: $x = f(y)$.
- Solve this equation algebraically for $y$ in terms of $x$.
- Replace $y$ with $f^{-1}(x)$.
- Fundamental Identity: $$(f \circ f^{-1})(x) = f(f^{-1}(x)) = x \quad \text{and} \quad (f^{-1} \circ f)(x) = x$$
- Geometric Property: The graph of $f^{-1}(x)$ is the reflection of $y = f(x)$ across the identity line $\mathbf{y = x}$. $$\text{Domain}(f^{-1}) = \text{Range}(f), \qquad \text{Range}(f^{-1}) = \text{Domain}(f)$$
Geometric Graph Transformations
- Vertical Translation: $y = f(x) + k$ Translates the graph vertically by vector $\begin{pmatrix} 0 \\ k \end{pmatrix}$. Shifts up by $k$ if $k > 0$, down if $k < 0$.
- Horizontal Translation: $y = f(x - h)$ Translates the graph horizontally by vector $\begin{pmatrix} h \\ 0 \end{pmatrix}$. Shifts right by $h$ if $(x - h)$, and left if $(x + h)$.
- Reflections:
- $y = -f(x)$: Reflection in the $x$-axis (vertical inversion, $(x, y) \to (x, -y)$).
- $y = f(-x)$: Reflection in the $y$-axis (horizontal inversion, $(x, y) \to (-x, y)$).
- Stretches (Dilations):
- $y = a \cdot f(x)$: Vertical stretch by scale factor $|a|$ parallel to $y$-axis.
- $y = f(bx)$: Horizontal stretch by scale factor $\frac{1}{|b|}$ parallel to $x$-axis.
Worked Examples (Criterion A & C)
Problem: Given $f(x) = \dfrac{2}{x - 3}$ ($x \ne 3$) and $g(x) = x^2 + 1$.
(a) Find $(f \circ g)(x)$ and state its domain.
(b) Evaluate $(g \circ f)(5)$.
The denominator cannot be zero: $x^2 - 2 \ne 0 \implies x^2 \ne 2 \implies x \ne \pm \sqrt{2}$.
Domain: $\mathbf{\{x \in \mathbb{R} \mid x \ne \pm\sqrt{2}\}}$.
First find $f(5)$: $f(5) = \frac{2}{5 - 3} = \frac{2}{2} = 1$.
Then evaluate $g(1)$: $g(1) = 1^2 + 1 = \mathbf{2}$.
Criterion A: Correct substitution and precise algebraic domain restrictionsProblem: Find the inverse function of $f(x) = \dfrac{3x + 1}{x - 2}$ ($x \ne 2$).
MYP 4–5 Practice Exercises: Functions & Transformations
Tier 1 (Core skills), Tier 2 (Intermediate Reasoning), and Tier 3 (Extended & Criteria B/C Investigations).
Given $f(x) = 4 - 3x^2$, calculate:
(a) $f(-2)$
(b) $f(0)$
View Full Method Markscheme
State the natural domain of the real-valued function $g(x) = \sqrt{5x - 15}$.
View Full Method Markscheme
The graph of $y = f(x)$ is translated $4\text{ units to the right}$ and $3\text{ units downwards}$. Write down the equation of the transformed graph in terms of $f$.
View Full Method Markscheme
Find the inverse function $f^{-1}(x)$ for $f(x) = \dfrac{5x - 7}{2}$.
View Full Method Markscheme
Let $f(x) = 2x + 3$ and $g(x) = x^2 - 4$.
(a) Find an expression for $(f \circ g)(x)$.
(b) Solve the equation $(f \circ g)(x) = 11$.
View Full Method Markscheme
The vertex of a parabola $y = f(x)$ is at $(-3, 5)$. Find the new vertex coordinates after applying the transformation $y = -2f(x + 1) + 4$.
View Full Method Markscheme
Show that the function $f(x) = \dfrac{4x - 1}{x - 4}$ ($x \ne 4$) is self-inverse, meaning $f^{-1}(x) = f(x)$.
View Full Method Markscheme
Consider $f(x) = x^2 - 6x + 13$.
(a) Explain why $f$ does not have an inverse for all $x \in \mathbb{R}$.
(b) State the domain restriction $x \ge k$ with the smallest possible integer $k$ for which an inverse exists.
(c) Find the equation for $f^{-1}(x)$ for this restricted domain, including its domain.
View Full Method Markscheme
Given $f(x) = \dfrac{x}{x + 1}$ ($x \ne -1$). Define $f^1(x) = f(x)$, $f^2(x) = f(f(x))$, $f^3(x) = f(f^2(x))$, and in general $f^n(x) = f(f^{n-1}(x))$.
(a) Find simplified expressions for $f^2(x)$ and $f^3(x)$.
(b) Deduce a general conjecture for $f^n(x)$ in terms of $n$ and $x$.
View Full Method Markscheme
Describe in exact mathematical sequence the geometric transformations needed to map the parent curve $y = x^2$ onto the graph of $y = 3(2x - 4)^2 + 5$.
View Full Method Markscheme
Functions & Transformations Formulas
- Function definition: For every $x \in \text{Domain}$, there exists a unique $y \in \text{Range}$.
- Composite Function: $(f \circ g)(x) = f(g(x))$
- Inverse Function Identity: $f(f^{-1}(x)) = f^{-1}(f(x)) = x$
- Vertical Translation: $y = f(x) + k \implies$ Shift by $\begin{pmatrix} 0 \\ k \end{pmatrix}$
- Horizontal Translation: $y = f(x - h) \implies$ Shift by $\begin{pmatrix} h \\ 0 \end{pmatrix}$
- Reflection in $x$-axis: $y = -f(x)$
- Reflection in $y$-axis: $y = f(-x)$
- Vertical stretch: $y = a \cdot f(x)$ (scale factor $|a|$)
- Horizontal stretch: $y = f(bx)$ (scale factor $\frac{1}{|b|}$)
Top Common MYP Pitfalls
1. Inverse Notation vs Reciprocal
$f^{-1}(x)$ denotes the inverse function, NOT the reciprocal $\frac{1}{f(x)}$. For reciprocals, write $[f(x)]^{-1}$.
2. Counter-Intuitive Horizontal Shifts
Thinking $f(x - 3)$ shifts left. Inside the argument, $(x - 3)$ shifts the graph right by $3$ units!
3. Order of Composite Functions
Evaluating $f(g(x))$ by substituting $f$ into $g$. Always evaluate from the inside out: find $g(x)$ first, then pass it as input to $f$.
4. Forgetting Horizontal Stretch Reciprocal
In $f(2x)$, stating the graph is stretched horizontally by factor $2$. It is actually compressed horizontally by factor $\frac{1}{2}$!
Interactive Mini Test: Functions & Transformations
Answer the questions to see your score and feedback.
What is the domain of $f(x) = \dfrac{7}{\sqrt{x - 5}}$?
Explanation: Under a square root, we require $x - 5 \ge 0$. However, because this radical is in the denominator, it cannot equal zero. Therefore, $x - 5 > 0 \implies x > 5$.
If $f(x) = 3x - 1$ and $g(x) = 2x^2$, what is $(g \circ f)(2)$?
Explanation: First evaluate inner function: $f(2) = 3(2) - 1 = 5$. Then evaluate outer function: $g(5) = 2(5)^2 = 2(25) = 50$.
Which function is the inverse of $f(x) = \dfrac{x + 3}{4}$?
Explanation: Set $x = \frac{y + 3}{4} \implies 4x = y + 3 \implies y = 4x - 3$. Thus $f^{-1}(x) = 4x - 3$.
How is the graph of $y = f(x + 5)$ obtained from the graph of $y = f(x)$?
Explanation: Replacing $x$ with $x + c$ where $c > 0$ shifts the entire graph horizontally to the left by $c$ units.
The graph of $y = f^{-1}(x)$ is the geometric reflection of $y = f(x)$ across which line?
Explanation: Because the inverse function swaps the input and output coordinates ($(x, y) \leftrightarrow (y, x)$), the graph of $f^{-1}$ is always a reflection of $f$ in the diagonal identity line $y = x$.