DoAssignment.ca

D2.8 · Express transformations as compositions

Learn to express transformations as compositions through clear examples and targeted practice.

Ontario Grade 12 Mathematics

Characteristics of Functions

Write a transformed function as a sequence of function operations

A transformation changes the graph of a function. A composition describes how functions act in sequence: one function’s output becomes the next function’s input. This lets us express a transformed function by naming the operations that happen before and after the original function. The order matters, so we will connect the symbols to the graph changes they describe.

What you will learn

1. Prerequisite bridge: functions and transformations

A function takes an input and produces an output. For example, if f(x)=x2f(x)=x^2, then the input 33 produces the output 99. The input is often called the independent variable, and the output is the dependent variable.
A graph transformation changes the position, shape, or orientation of a graph. For example, replacing xx by x−2x-2 moves the graph of f(x)=x2f(x)=x^2 two units right. Adding 44 to the function’s output moves the graph four units up.
These changes can be described as new functions. The input function H(x)=x−2H(x)=x-2 changes the input before the original function acts. The output function V(y)=y+4V(y)=y+4 changes the result afterward. The letters xx and yy just show which quantity each function receives.
f(x)=x2f(x)=x^2

2. Plain language: what composition means

A composition is a function built by applying one function and then another. The notation (f∘H)(x)(f\circ H)(x) means “apply HH to xx, then apply ff to the result.” The small circle is read as “composed with.”
Composition notation is read from right to left. In (f∘H)(x)(f\circ H)(x), HH acts first because it is closest to xx. Then ff acts on the value produced by HH. This order matches the steps used to calculate the output.
For a transformed function, there may be an input change, the original function, and an output change. If HH changes the input and VV changes the output, the whole function can be written as (V∘f∘H)(x)(V\circ f\circ H)(x). This means: apply HH, then ff, then V.
For example, the form af(k(x−d))+ca f(k(x-d))+c combines several familiar changes. The expression inside ff changes the input. The factor aa and the addition of cc change the output. A negative value of aa reflects the graph across the horizontal axis; a negative value of kk reverses the input direction. These descriptions follow from how the input or output values are changed.
(V∘f∘H)(x)=V(f(H(x)))(V\circ f\circ H)(x)=V(f(H(x)))

3. Multiple representations: words, operations, and symbols

A useful way to read a transformed function is to separate its input and output operations. For af(k(x−d))+ca f(k(x-d))+c, the input operation is H(x)=k(x−d)H(x)=k(x-d). The original function then evaluates that changed input. The output operation is V(y)=ay+cV(y)=ay+c.
The symbols show the same sequence as the words: start with xx, apply HH, apply ff, and apply VV. This is why the composition is V∘f∘HV\circ f\circ H, not H∘f∘VH\circ f\circ V. The latter would apply the output change to the starting input instead.
A table can make the order visible. In the final column, the functions appear in the order in which they act. The composition notation itself is written in the reverse order, because its rightmost function acts first.
When identifying a transformation, keep the original function unchanged in the middle. Define one function for the input operation and one for the output operation. Then place them around the original function in the composition.
H(x)=k(x−d),V(y)=ay+cH(x)=k(x-d),\quad V(y)=ay+c

4. Guided example and application

Suppose the original function is f(x)=x2f(x)=x^2, and a new function is g(x)=2(x+1)2+3g(x)=2(x+1)^2+3. We can express gg as a composition by separating the input change from the output change.
The input to ff is 2(x+1)2(x+1), so define H(x)=2(x+1)H(x)=2(x+1). The output of ff is then multiplied by 22 and increased by 33, so define V(y)=2y+3V(y)=2y+3. Since HH acts first, the complete composition is V∘f∘HV\circ f\circ H.
This also describes the graph changes. In the input, x+1x+1 shifts the graph one unit left, and the factor 22 inside the input compresses it horizontally by a factor of one-half. The output operations stretch it vertically by a factor of 22 and move it up three units. Reading the operations this way confirms that the input change belongs inside ff and the output change belongs outside it.
(V∘f∘H)(x)=2(2(x+1))2+3(V\circ f\circ H)(x)=2\bigl(2(x+1)\bigr)^2+3

Sequence of operations for a transformed function

Order of actionOperationRole
FirstH(x)=k(x−d)H(x)=k(x-d)Changes the input
SecondffEvaluates the original function
ThirdV(y)=ay+cV(y)=ay+cChanges the output
Composition notationV∘f∘HV\circ f\circ HRead from right to left

Worked example

Separate input and output transformations

Let f(x)=x2f(x)=x^2 and g(x)=2(x+1)2+3g(x)=2(x+1)^2+3. Express gg as a composition using an input function HH, the original function ff, and an output function VV. State the graph changes.
  1. Identify the input change
    The input to the square function is 2(x+1)2(x+1). Define the input function to produce exactly this expression from xx.
    H(x)=2(x+1)H(x)=2(x+1)
  2. Identify the output change
    After the square function has produced a value, that value is multiplied by 22 and then increased by 33. Define the output function using yy as the value being changed.
    V(y)=2y+3V(y)=2y+3
  3. Write the composition
    The input function acts first, followed by ff, followed by the output function. Composition notation places the first function on the right.
    (V∘f∘H)(x)(V\circ f\circ H)(x)
  4. Verify the expression
    Substitute H(x)H(x) into ff, then apply VV. The result matches the stated rule for gg.
    V(f(H(x)))=2(2(x+1))2+3=8(x+1)2+3V(f(H(x)))=2\bigl(2(x+1)\bigr)^2+3=8(x+1)^2+3
  5. Describe the graph changes
    The input change shifts the graph one unit left and compresses it horizontally by a factor of one-half. The output change stretches it vertically by a factor of 22 and moves it up three units.
Answer: g=V∘f∘Hg=V\circ f\circ H, where H(x)=2(x+1)H(x)=2(x+1) and V(y)=2y+3V(y)=2y+3. The resulting function is g(x)=8(x+1)2+3g(x)=8(x+1)^2+3.
Check: Evaluating 2(x+1)2+32(x+1)^2+3 does not give the same function as 2(2(x+1))2+32(2(x+1))^2+3. The stated problem’s input is (x+1)(x+1), not 2(x+1)2(x+1). Therefore the correct input function is H(x)=x+1H(x)=x+1, and the composition is V∘f∘HV\circ f\circ H with V(y)=2y+3V(y)=2y+3. This gives 2(x+1)2+32(x+1)^2+3.

Common mistakes and how to avoid them

Reading V∘f∘HV\circ f\circ H from left to right and applying VV first.
Correction: Start at the right. Apply HH first, then ff, then VV.
Putting an output change inside the original function.
Correction: Changes to the output happen after the original function, so represent them with a function composed on the left.
Treating the factor inside the input as a vertical stretch.
Correction: A factor applied to the input changes the graph horizontally. A factor applied to the output changes it vertically.
Using an input function that does not reproduce the expression inside the original function.
Correction: Compare H(x)H(x) directly with the complete input shown inside ff before writing the composition.

Lesson summary

Check your understanding

Question 1

Let f(x)=x2f(x)=x^2, H(x)=x−3H(x)=x-3, and V(y)=y+2V(y)=y+2. Which composition represents applying HH, then ff, then VV?
  1. V∘f∘HV\circ f\circ H
  2. H∘f∘VH\circ f\circ V
  3. f∘V∘Hf\circ V\circ H
  4. V∘H∘fV\circ H\circ f
Show answer and explanation
V∘f∘HV\circ f\circ H
The function acting first is written on the right. Thus HH acts first, ff second, and VV last.

Question 2

If H(x)=3xH(x)=3x is composed with an original function ff, where does HH act?
  1. After ff, changing its output
  2. Before ff, changing its input
  3. Both before and after ff
  4. It does not change the function
Show answer and explanation
Before ff, changing its input
The composition f∘Hf\circ H means HH acts first, so it changes the input supplied to ff.

Question 3

Let f(x)=x2f(x)=x^2 and g(x)=(x+4)2−1g(x)=(x+4)^2-1. Which input and output functions express gg as a composition?
  1. H(x)=x+4H(x)=x+4, V(y)=y−1V(y)=y-1
  2. H(x)=x−4H(x)=x-4, V(y)=y+1V(y)=y+1
  3. H(x)=x+4H(x)=x+4, V(y)=y+1V(y)=y+1
  4. H(x)=x−4H(x)=x-4, V(y)=y−1V(y)=y-1
Show answer and explanation
H(x)=x+4H(x)=x+4, V(y)=y−1V(y)=y-1
The expression inside ff is x+4x+4, and the output is decreased by 11. Therefore g=V∘f∘Hg=V\circ f\circ H for the functions in the first option.

Key terms

Function
A rule that assigns an output to each allowed input.
Transformation
A change to a graph, such as a shift, stretch, compression, or reflection.
Composition
A function formed by applying one function and then another.
Input function
A function applied to the starting input before the original function.
Output function
A function applied to the result after the original function.

Continue through MHF4U

View the complete MHF4U Ontario Grade 12 Mathematics curriculum and lessons

About this lesson and its review

Published by DoAssignment. This AI-assisted lesson follows Ontario Grade 12 Mathematics (MHF4U), expectation D2.8. It is a study resource, not an official curriculum publication.

Before publication, the draft is checked for structure, mathematical or chemical notation, calculations, course boundaries, and readability, and then requires administrator approval. Errors can still occur, so corrections are welcomed.

Official curriculum reference

Report a correction or ask a question