Function Transformations 📈
students, in this lesson you will learn how graphs of functions can be moved, stretched, flipped, and shifted while still staying connected to the original function. This is a key idea in the study of functions because it helps you predict, compare, and model real-world relationships without starting from scratch every time. By the end of this lesson, you should be able to explain the main transformation ideas, identify how a graph changes, and interpret those changes in context.
Objectives
- Understand the meaning of function transformations and the language used to describe them.
- Apply transformation rules to graphs and equations.
- Connect transformed functions to real-world modelling situations.
- Recognize how transformations support analysis in IB Mathematics: Applications and Interpretation HL.
- Use graphing and technology to check how transformations affect a function.
Think about a bike ramp, a phone charging graph, or the height of water in a tank 🚲📱💧. In each case, a basic function can be adjusted to match the situation better. That adjustment is exactly what transformations do.
1. What is a Function Transformation?
A function transformation is a change made to the graph of a function based on a known parent function. A parent function is the simplest version of a function family, such as $f(x)=x^2$, $f(x)=\lvert x\rvert$, or $f(x)=\sqrt{x}$. Transformations allow you to create new functions from these starting points.
If $y=f(x)$ is the original graph, then a transformed version might look like $y=f(x-a)+b$, $y=af(x)$, or $y=f(-x)$. These changes affect the graph’s position, shape, or orientation.
There are two broad categories of transformations:
- Translations: shifting the graph left, right, up, or down.
- Non-rigid transformations: changing the graph’s shape using stretches, compressions, and reflections.
A major reason this matters in IB Mathematics is that transformed functions are often used as models. For example, a demand curve may be based on a simple curve, but then shifted to match different prices or customer behavior. A temperature graph may be stretched to reflect a longer time scale.
2. Translations: Moving the Graph
Translations move a graph without changing its shape.
For a function $y=f(x)$:
- $y=f(x)+b$ shifts the graph up by $b$ units.
- $y=f(x)-b$ shifts the graph down by $b$ units.
- $y=f(x-a)$ shifts the graph right by $a$ units.
- $y=f(x+a)$ shifts the graph left by $a$ units.
Notice the sign pattern carefully. This is a common place where students make mistakes. In the expression $f(x-a)$, the graph moves right, not left. In the expression $f(x+a)$, the graph moves left.
Example 1
If $f(x)=x^2$, then $g(x)=(x-3)^2+4$ is the graph of $f(x)$ shifted right 3 and up 4.
The vertex of $y=x^2$ is at $(0,0)$. After transformation, the vertex becomes $(3,4)$. This is useful because you can describe the graph quickly without plotting every point.
Real-world connection
Suppose a company’s profit function is modeled by $P(x)$. If a tax policy adds a fixed cost of $2000$, then the new model may become $P(x)-2000$. That is a vertical translation downward. If a subscription bonus adds a fixed benefit, the graph may shift upward instead.
3. Reflections: Flipping the Graph
Reflections reverse the graph across an axis.
For a function $y=f(x)$:
- $y=-f(x)$ reflects the graph across the $x$-axis.
- $y=f(-x)$ reflects the graph across the $y$-axis.
These are powerful transformations because they change orientation while keeping the same general shape.
Example 2
If $f(x)=\sqrt{x}$, then $g(x)=-\sqrt{x}$ is a reflection across the $x$-axis. Every point $(x,y)$ becomes $(x,-y)$.
If $h(x)=\sqrt{-x}$, then the graph is reflected across the $y$-axis. The domain also changes, because $-x\ge 0$ means $x\le 0$.
Why reflections matter
In context, a reflection can represent a change in sign. For example, if $f(x)$ represents upward displacement, then $-f(x)$ may represent downward displacement. In economics, if a graph measures profit, then $-f(x)$ can represent loss. This sign change is not just visual; it changes the meaning of the model.
4. Stretches and Compressions: Changing the Shape
Stretches and compressions change the size of a graph.
Vertical transformations
For $y=af(x)$:
- If
vert a\rvert>1, the graph is stretched vertically.
- If $0<\rvert a\rvert<1$, the graph is compressed vertically.
- If $a<0$, there is also a reflection in the $x$-axis.
Horizontal transformations
For $y=f(bx)$:
- If $\rvert b\rvert>1$, the graph is compressed horizontally.
- If $0<\rvert b\rvert<1$, the graph is stretched horizontally.
- If $b<0$, there is also a reflection in the $y$-axis.
The horizontal rules often feel reversed because the change happens inside the function. For example, $f(2x)$ makes the graph narrower, not wider.
Example 3
If $f(x)=x^2$, then $g(x)=3x^2$ is a vertical stretch by factor $3$. Points move farther from the $x$-axis.
If $h(x)=(\tfrac12x)^2$, then the graph is horizontally stretched by factor $2$. You can test this by rewriting:
$$
$h(x)=\left(\frac{x}{2}\right)^2.$
$$
That means the $x$-values must be doubled to produce the same $y$-values as the original graph.
Technology tip
Graphing software or a CAS can help you compare $f(x)$, $2f(x)$, $f(2x)$, and $f(x)+2$. Use technology to confirm your reasoning, but always explain the transformation in words too. IB expects interpretation, not just button pressing 💻.
5. Combining Transformations
Most real graphs do not undergo just one change. They often combine several transformations.
A general form is
$$
$y=a\,f\bigl(b(x-c)\bigr)+d.$
$$
This formula combines:
- vertical stretch/compression and reflection through $a$,
- horizontal stretch/compression and reflection through $b$,
- horizontal shift through $c$,
- vertical shift through $d$.
A careful interpretation is needed because the order and sign matter.
Example 4
Consider
$$
g(x)=-2f(x-1)+3.$$
This means:
- shift the graph of $f(x)$ right by $1$,
- reflect across the $x$-axis,
- stretch vertically by factor $2$,
- shift up by $3$.
For many students, the easiest way to analyze a transformation is to track a point. If a point $(x,y)$ lies on $y=f(x)$, then on the transformed graph the point may move to a new location depending on the rule. For translations, this is straightforward. For stretches and reflections, the coordinates change according to the transformation.
6. Interpreting Transformations in Context
In IB Mathematics: Applications and Interpretation HL, functions are often used to model real situations. Transformations help adapt a basic model to new data.
Imagine a basic temperature curve $T(t)$ showing the daily cycle. If the same pattern starts later in the day, the graph shifts horizontally. If the temperature range becomes larger in summer, the graph may stretch vertically. If a measurement system is inverted, the graph may be reflected.
Another example is a product’s sales over time. Suppose a parent model predicts sales growth. A marketing campaign might increase sales by a fixed amount, causing a vertical shift. A delayed launch might shift the graph to the right. A stronger response to advertising might stretch the graph vertically.
This is why transformations are important in regression and modelling. A good model is not only about the right formula; it is also about adjusting the graph to fit the data pattern accurately.
7. Using Transformations with Regression and Data
Transformations are closely connected to fitting curves to data. Sometimes a data set already resembles a known family of functions, but it needs shifting or scaling to match observed values.
For example, if a scatter plot looks exponential, you might use a model like
$$
y=a\,b^{x-c}+d.$$
Here the parameters control the transformation of the base exponential shape.
In practice, technology can estimate these parameters from data. Then you interpret the model:
- What does the vertical shift mean in context?
- What does the stretch factor say about growth or decline?
- Does the horizontal shift represent a delay or lead time?
If a company records the number of users of an app over time, the curve might start slowly, then rise quickly. A transformed logistic or exponential model can reflect this pattern. The shape is not random; it has mathematical meaning that connects directly to the situation.
8. Common Mistakes to Avoid
Here are some frequent errors:
- Confusing $f(x-a)$ with shifting left instead of right.
- Forgetting that horizontal transformations happen inside the function and behave oppositely.
- Mixing up reflections across the $x$-axis and the $y$-axis.
- Describing a graph only by appearance without using function notation.
- Ignoring the effect of transformations on domain and range.
For example, if $f(x)=\sqrt{x}$, then the domain is $x\ge 0$. After transforming to $f(x-2)$, the domain becomes $x\ge 2$. This matters because transformed graphs do not always keep the same set of allowed inputs.
Conclusion
Function transformations are one of the most useful ideas in the study of functions. They let you start with a known graph and create a new one by shifting, reflecting, stretching, or compressing it. In IB Mathematics: Applications and Interpretation HL, this skill is essential for interpreting graphs, building models, and using technology effectively.
students, the key idea is that transformations are not just graph tricks. They are a way to describe real changes in situations such as time delays, added costs, scaling effects, and reversed directions. When you understand how $y=f(x)$ changes into forms like $y=f(x-a)+b$ or $y=a\,f\bigl(b(x-c)\bigr)+d$, you gain a stronger foundation for modelling and analysis across the whole topic of functions.
Study Notes
- A parent function is the simplest form of a function family.
- A translation moves a graph without changing its shape.
- $y=f(x)+b$ shifts up, and $y=f(x)-b$ shifts down.
- $y=f(x-a)$ shifts right, while $y=f(x+a)$ shifts left.
- $y=-f(x)$ reflects across the $x$-axis.
- $y=f(-x)$ reflects across the $y$-axis.
- $y=af(x)$ causes vertical stretch/compression; if $a<0$, there is also reflection in the $x$-axis.
- $y=f(bx)$ causes horizontal stretch/compression; if $b<0$, there is also reflection in the $y$-axis.
- Combined transformations can be written as $y=a\,f\bigl(b(x-c)\bigr)+d$.
- Horizontal transformations inside the function act in the opposite direction from what many students first expect.
- Domain and range may change after a transformation.
- Transformations are useful in modelling real situations such as sales, temperature, motion, and costs.
- Technology can help check graphs, but clear mathematical explanation is still needed.
