3.2 Composition of Functions & Transformations
Key Takeaways
- Function composition $(f \circ g)(x) = f(g(x))$ evaluates the inner function $g(x)$ first; it is associative but generally non-commutative ($f(g(x)) \neq g(f(x))$).
- The domain of $(f \circ g)$ is the set of all $x \in \text{Dom}(g)$ such that $g(x) \in \text{Dom}(f)$; evaluating domain after algebraic simplification introduces extraneous domain points.
- Rigid graph translations shift graphs horizontally ($f(x - c)$ moves right by $c$ for $c > 0$) and vertically ($f(x) + c$ moves up by $c$ for $c > 0$).
- Horizontal scaling acts reciprocally on the $x$-coordinates: $f(cx)$ horizontally compresses the graph by factor $1/c$ when $c > 1$ and stretches by $1/c$ when $0 < c < 1$.
- When analyzing compound horizontal transformations $f(bx - c)$, always factor into $f(b(x - c/b))$ or apply input coordinate tracking $x_{\text{new}} = (x_{\text{old}} + c)/b$.
3.2 Composition of Functions & Transformations
Composite functions and graphical transformations are heavily featured on the Bocconi test. They test whether candidates can manipulate abstract algebraic operations and predict the resulting geometric shifts in the Cartesian plane. Speed and precision depend on recognizing operational hierarchy and avoiding common domain-simplification traps.
1. Composition of Functions: Definition & Non-Commutativity
Given two real functions $g: A \to B$ and $f: B \to C$, the composite function $(f \circ g): A \to C$ is defined by evaluating $g$ first, and then applying $f$ to that intermediate result:
Here, $g(x)$ is the inner function (input to $f$) and $f$ is the outer function.
Non-Commutativity of Composition
Function composition is associative—$f \circ (g \circ h) = (f \circ g) \circ h$—but it is not commutative. In general:
Algebraic Demonstration: Let $f(x) = 2x + 5$ and $g(x) = x^2 - 1$.
- $(f \circ g)(x) = f(g(x)) = 2(x^2 - 1) + 5 = 2x^2 - 2 + 5 = 2x^2 + 3$
- $(g \circ f)(x) = g(f(x)) = (2x + 5)^2 - 1 = 4x^2 + 20x + 25 - 1 = 4x^2 + 20x + 24$
Clearly, $2x^2 + 3 \neq 4x^2 + 20x + 24$. The two expressions yield entirely different degrees, coefficients, and geometric graphs.
2. The Strict Domain of a Composite Function
A critical Bocconi exam trap is computing the algebraic formula of $f(g(x))$, simplifying it, and then deducing the domain from the simplified formula. This procedure is mathematically flawed and regularly produces incorrect answers.
The Two-Condition Domain Rule
The domain of $(f \circ g)$ consists strictly of all inputs $x$ that are valid in $g$, and whose output $g(x)$ is simultaneously valid in $f$:
Worked Example: False Simplification Fallacy
Let $f(u) = u^2$ and $g(x) = \sqrt{x - 4}$.
- Direct algebraic composition: $f(g(x)) = (\sqrt{x - 4})^2 = x - 4$.
- Looking solely at $x - 4$, one might mistakenly assume the domain is all of $\mathbb{R}$.
- However, under the two-condition rule:
- $x \in \text{Dom}(g) \implies x - 4 \ge 0 \implies x \ge 4$.
- $g(x) \in \text{Dom}(f) \implies \sqrt{x - 4} \in \mathbb{R}$, which is true for all $x \ge 4$.
- Thus, the true domain is $[4, \infty)$, not $\mathbb{R}$.
Advanced Domain Problem
Find the domain of $(f \circ g)(x)$ where $f(u) = \frac{1}{\sqrt{u - 2}}$ and $g(x) = \frac{3x + 1}{x - 4}$.
Condition 1 (Inner Domain): $x \in \text{Dom}(g) \iff x - 4 \neq 0 \iff x \neq 4$.
Condition 2 (Outer Compatibility): $g(x) \in \text{Dom}(f)$. The function $f(u)$ requires $u - 2 > 0 \iff u > 2$. Therefore:
Constructing a sign table for $\frac{x + 9}{x - 4}$:
- Numerator root: $x = -9$
- Denominator root: $x = 4$
- Test intervals: for $x < -9$, $(-)/(-) = (+)$; for $-9 < x < 4$, $(+)/(-) = (-)$; for $x > 4$, $(+)/(+) = (+)$.
Thus, the inequality holds for $x \in (-\infty, -9) \cup (4, \infty)$. Both parts satisfy $x \neq 4$. Hence:
3. Geometric Graph Transformations
Every functional modification of a parent function $y = f(x)$ corresponds to a precise geometric transformation in the Cartesian plane. Transformations are categorized into vertical (acting on outputs $y$) and horizontal (acting on inputs $x$):
| Transformation | Algebraic Formula | Geometric Operation | Coordinate Mapping $(x, y) \mapsto$ |
|---|---|---|---|
| Vertical Shift | $y = f(x) + c$ | Shift up if $c > 0$, down if $c < 0$ | $(x, y + c)$ |
| Horizontal Shift | $y = f(x - c)$ | Shift right if $c > 0$, left if $c < 0$ | $(x + c, y)$ |
| Vertical Stretch/Compress | $y = a \cdot f(x)$ ($a > 0$) | Stretch if $a > 1$, compress if $0 < a < 1$ | $(x, a \cdot y)$ |
| Horizontal Stretch/Compress | $y = f(b \cdot x)$ ($b > 0$) | Compress by $1/b$ if $b > 1$, stretch if $0 < b < 1$ | $(x/b, y)$ |
| Vertical Reflection | $y = -f(x)$ | Reflect across the $x$-axis | $(x, -y)$ |
| Horizontal Reflection | $y = f(-x)$ | Reflect across the $y$-axis | $(-x, y)$ |
| Absolute Output | $y = | f(x) | $ |
| Absolute Input | $y = f( | x | )$ |
The Inverse Behavior of Horizontal Operations
Notice the fundamental dichotomy in graphical transformations:
- Vertical operations are intuitive: adding $c$ adds to $y$; multiplying by $a$ multiplies $y$.
- Horizontal operations are counter-intuitive: replacing $x$ with $x - c$ shifts right (adds $c$ to the coordinates); replacing $x$ with $2x$ compresses coordinates horizontally by a factor of $\frac{1}{2}$.
4. Multi-Step Transformations & Order of Operations
When multiple transformations occur simultaneously, their execution order is critical. While horizontal and vertical operations are completely independent of each other, the order within horizontal or vertical sequences matters.
Factored Form vs. Unfactored Form for Horizontal Shifts
Consider the function $y = f(2x + 6)$:
- Common Error: Students see $+6$ and assume the graph shifts left by 6 units.
- Correct Algebraic Factoring: Factor out the horizontal compression factor: This reveals that the horizontal shift is actually 3 units to the left, followed by (or preceded by) a horizontal compression by a factor of $1/2$.
The Coordinate Tracking Method (Bocconi Speed Technique)
The most reliable, error-free method for Bocconi test questions is direct coordinate tracking. Given a known point $(x_0, y_0)$ on $y = f(x)$, find the corresponding point $(x_{\text{new}}, y_{\text{new}})$ on $y = A \cdot f(B x + C) + D$:
- Horizontal coordinate: Set the inner expression equal to the parent input:
- Vertical coordinate: Substitute $y_0 = f(x_0)$ directly into the outer equation:
Worked Example: Coordinate Tracking
Suppose the point $(-4, 7)$ lies on the graph of $y = f(x)$. Determine the corresponding point that must lie on the graph of:
Applying the tracking formulas:
- Horizontal coordinate: $2x_{\text{new}} - 8 = -4 \implies 2x_{\text{new}} = 4 \implies x_{\text{new}} = 2$.
- Vertical coordinate: $y_{\text{new}} = -3(7) + 5 = -21 + 5 = -16$.
Therefore, the point $(2, -16)$ is guaranteed to lie on the graph of $g(x)$.
5. Symmetry Properties: Even and Odd Functions
Understanding algebraic symmetry allows candidates to eliminate options immediately on coordinate questions:
- Even Function (Symmetric about the $y$-axis): Examples include $x^2, x^4, |x|, \cos(x)$. Polynomials with only even powers of $x$ are even.
- Odd Function (Symmetric about the Origin): Examples include $x, x^3, \frac{1}{x}, \sin(x)$. Rotating the graph $180^\circ$ around $(0, 0)$ leaves it unchanged.
6. Common Bocconi Traps & Exam Strategies
- Evaluating Domain on Simplified Forms: Never cancel factors before checking domain constraints. For instance, $h(x) = \frac{(x-2)(x+1)}{x-2}$ has domain $\mathbb{R} \setminus {2}$, leaving a removable puncture (hole) at $(2, 3)$, not a continuous line across $\mathbb{R}$.
- Failing to Factor Horizontal Arguments: In $f(ax + b)$, always factor out $a$ as $f(a(x + b/a))$ to read off the horizontal translation as $-b/a$.
- Order Inversion in Combined Vertical Transforms: For $y = -2f(x) + 4$, the graph is stretched vertically by 2 and reflected across the $x$-axis first, then shifted up by 4. If you shift first, you get $-2(f(x) + 4) = -2f(x) - 8$, which is entirely different.
What is the domain of the composite function (f ∘ g)(x) where f(u) = ln(u - 1) and g(x) = (2x + 8) / (x - 3)?
If the point (-6, 4) lies on the graph of y = f(x), which of the following points MUST lie on the graph of y = 2 f(-3x + 9) - 7?
Let f(x) = x / (x + 1). What is the closed-form expression for the triple composition (f ∘ f ∘ f)(x)?