Historical Context & Motivation
Long before graphing calculators existed, mathematicians needed efficient ways to understand how changing an equation affected the shape and position of its curve. Rather than plotting each new function point by point, they discovered that certain algebraic changes — adding a constant, multiplying by a factor, or negating a variable — produced predictable geometric changes on the graph. These observations became the foundation of function transformations, one of the most powerful tools in all of mathematics.
The central question that function transformations answer is deceptively simple: if you already know the graph of y = f(x), how can you quickly sketch y = 2f(x − 3) + 1 without plotting dozens of individual points? Mastering this skill saves enormous time on IB exams and builds deep intuition about how equations and graphs are connected.
Core Principles of Function Transformations
Every transformation you will encounter in IB SL 2.7 falls into one of three categories: translations (shifts), stretches and compressions (scaling), and reflections. The key insight is that each transformation corresponds to a specific algebraic change inside the equation y = f(x). Once you learn the pattern, you can apply it to any function — parabolas, cubics, exponentials, or trigonometric curves.
Translations (Shifts)
Stretches & Compressions
Reflections
Inside vs. Outside Rule
Visualising Translations
The diagram below shows how a simple parent function y = x² is affected by vertical and horizontal translations. Notice how the shape of the parabola remains identical — only its position on the coordinate plane changes. The cyan curve is the original, the amber curve shows a vertical shift, and the pink curve shows a horizontal shift.
The most common mistake students make is with horizontal translations. When you see y = f(x − 3), you might assume the graph moves left because of the minus sign. In fact, the graph moves right by 3. The reasoning is straightforward: for the output to match the original f(0), you now need x = 3 rather than x = 0. Everything that used to happen at x = 0 now happens at x = 3 — hence the graph shifts right. This "opposite" behaviour for horizontal changes is one of the most important patterns to internalise.
Mathematical Framework
The IB syllabus requires you to work with the general transformed function in the form shown below. Each parameter controls a specific geometric change, and the order in which you apply them matters. Let's define each parameter carefully.
(h, k) means the graph shifts h units horizontally and k units vertically. Always state whether the graph moves right/left and up/down.Stretches, Compressions & Reflections in Detail
While translations simply slide a graph, stretches and compressions change its proportions. A vertical stretch by factor a multiplies every y-value by a, pulling the graph away from (or squeezing it toward) the x-axis. A horizontal stretch by factor 1/b does the same in the x-direction. Reflections are a special case where the stretch factor is −1.
| Transformation | Equation Form | Effect on Points | Visual Effect |
|---|---|---|---|
| Vertical stretch by a | y = a·f(x), |a| > 1 | (x, y) → (x, ay) | Graph pulled away from x-axis |
| Vertical compression by a | y = a·f(x), 0 < |a| < 1 | (x, y) → (x, ay) | Graph squeezed toward x-axis |
| Horizontal stretch by 1/b | y = f(bx), 0 < |b| < 1 | (x, y) → (x/b, y) | Graph pulled away from y-axis |
| Horizontal compression by 1/b | y = f(bx), |b| > 1 | (x, y) → (x/b, y) | Graph squeezed toward y-axis |
| Reflection in x-axis | y = −f(x) | (x, y) → (x, −y) | Graph flipped vertically |
| Reflection in y-axis | y = f(−x) | (x, y) → (−x, y) | Graph flipped horizontally |
Worked Example
Let's walk through a complete IB-style problem. Suppose the graph of y = f(x) passes through the point (2, 5). We want to find the corresponding point on the graph of y = 3f(2(x − 1)) + 4.
Common Pitfalls & Comparison of Transformations
Students often lose marks on IB exams not because they don't understand transformations in principle, but because they mix up the details. The table below highlights the most frequent errors and how to avoid them.
| Pitfall | What Students Do Wrong | Correct Approach |
|---|---|---|
| Horizontal direction | Shift f(x − 3) to the left because of the minus sign | f(x − 3) shifts right by 3. Think: x must be 3 to get f(0). |
| Horizontal stretch factor | Multiply x-values by b for y = f(bx) | Divide x-values by b. The scale factor is 1/b, not b. |
| Order of operations | Translate before stretching | Always stretch/reflect first, then translate. |
| Confusing −f(x) and f(−x) | Using reflection in x-axis when y-axis is intended | −f(x) flips y-values (x-axis reflection). f(−x) flips x-values (y-axis reflection). |
| Invariant points | Forgetting that some points don't move | Points on the axis of reflection or with y = 0 (for vertical stretches) stay fixed. |
Connection to Advanced Topics
The transformation ideas you learn in SL 2.7 are not just exam content — they lay the groundwork for more advanced mathematical concepts. Understanding how functions change when you modify their equations is foundational to topics like trigonometric modelling (SL 2.11), where you use transformations to fit sine and cosine curves to real-world periodic data, and calculus, where understanding shifts and stretches helps you interpret derivatives and integrals graphically.
| SL 2.7 Concept | Where It Leads |
|---|---|
| Vertical translation y = f(x) + k | Integration: adding a constant of integration C shifts the antiderivative vertically |
| Horizontal translation y = f(x − h) | Trigonometry: phase shift in y = sin(x − c) models time delays in waves |
| Vertical stretch y = af(x) | Trigonometry: amplitude in y = a sin(x) controls the height of oscillations |
| Horizontal stretch y = f(bx) | Trigonometry: period = 2π/b controls how fast a wave oscillates |
| Reflections y = −f(x), y = f(−x) | Even and odd functions: f(−x) = f(x) means symmetry about the y-axis; f(−x) = −f(x) means rotational symmetry about the origin |
In HL Mathematics, transformations extend to composite transformations expressed as matrices, which can handle rotations, shears, and projections in addition to the shifts, stretches, and reflections covered here. If you continue to university-level mathematics, you'll encounter linear algebra, where transformation matrices become one of the central objects of study.
Practice Problems
Lesson Summary
Function transformations allow you to take the graph of any parent function y = f(x) and produce a new graph through predictable algebraic changes. The general form y = a·f(b(x − h)) + k encodes four transformations: a vertical stretch by factor |a| (with reflection if a < 0), a horizontal compression by factor 1/|b| (with reflection if b < 0), a horizontal translation by h units, and a vertical translation by k units.
The critical insight is the inside–outside rule: changes inside the function argument affect the x-direction and work opposite to what you might expect (subtract → shift right; multiply → compress), while changes outside affect the y-direction intuitively. Always apply stretches and reflections before translations. These principles extend directly to trigonometric modelling, calculus, and beyond.