DoAssignment study guide

D2.4 · Compose functions numerically and graphically

Learn to compose functions numerically and graphically through clear examples and targeted practice.

Ontario Grade 12 Mathematics

Characteristics of Functions

Follow one function’s output into another function

A function takes an input and gives an output. When two functions are composed, the output from the first function becomes the input to the second. You can show this process with numbers, tables, graphs, or symbols. The order matters: changing which function acts first can change the result.

What you will learn

  • Explain what it means to compose two functions.
  • Find values of a composite function using a numerical rule or a table.
  • Read a composite function’s values from information shown on graphs.
  • Write and interpret composite-function notation.

1. Prerequisite bridge: inputs and outputs

A function is a rule that assigns an output to each allowed input. The input is often called xx. The output of a function named ff is written f(x)f(x). For example, if f(x)=2x+1f(x)=2x+1, then f(3)=7f(3)=7 because replacing xx with 33 gives 2(3)+1=72(3)+1=7.
A function can also be described by a table or a graph. In a table, match an input with its output. On a graph, the point (a,b)(a,b) shows that the output at input aa is bb. In other words, that point tells you f(a)=bf(a)=b.
These ideas are all ways to represent the same input-output relationship. To compose functions, you need to be able to find an output from the first function and use it as an input to the next.
f(a)=bf(a)=b
  • The input is the value placed into a function.
  • The output is the value produced by the function.
  • A graph point (a,b)(a,b) represents the input-output pair f(a)=bf(a)=b.

2. Plain language and numerical composition

To compose two functions, apply one function and then apply the other to the result. The inside function acts first. For example, in f(g(x))f(g(x)), start with xx, find g(x)g(x), and use that output as the input to ff.
The notation (f∘g)(x)(f\circ g)(x) is read as “ff composed with gg at xx.” It means the same thing as f(g(x))f(g(x)). The symbol ∘\circ names the composition; it does not mean multiplication.
Suppose g(x)=x+2g(x)=x+2 and f(x)=3xf(x)=3x. At input 44, the first function gives g(4)=6g(4)=6. That output becomes the input to ff, so the final output is f(6)=18f(6)=18. Thus, (f∘g)(4)=18(f\circ g)(4)=18.
The order can change the answer. If ff acts first instead, f(4)=12f(4)=12, and then g(12)=14g(12)=14. So (g∘f)(4)=14(g\circ f)(4)=14, not 1818. Always follow the order shown by the notation.
A numerical table can show the same process. For each starting input, read the output from gg, then use that output to look up an output from ff. A composition only has a value when the output of the first function is an allowed input for the second.
(f∘g)(x)=f(g(x))(f\circ g)(x)=f(g(x))
  • In f(g(x))f(g(x)), apply gg first and ff second.
  • The output of the first function becomes the next input.
  • Reversing the order may produce different values.

3. Reading composition from graphs

A graph can provide the values needed for a composition even when no equation is given. To find (f∘g)(a)(f\circ g)(a), first locate input aa on the graph of gg and read its output. Then use that output as the input on the graph of ff.
For example, if the graph of gg shows the point (2,5)(2,5), then g(2)=5g(2)=5. If the graph of ff shows the point (5,3)(5,3), then f(5)=3f(5)=3. Together, these readings give (f∘g)(2)=3(f\circ g)(2)=3.
A useful way to keep the readings organized is to follow the chain: starting input, output of gg, output of ff. When reading a graph, use the horizontal coordinate as the input and the vertical coordinate as the output. Do not use the output of gg as the final answer; it is the input for ff.
A graph or a list of points may show only selected values. You can find a composite value only when the needed outputs can be read from the given information. Do not assume a value between plotted points unless the graph or question gives enough information to read it.
(f∘g)(a)=f(g(a))(f\circ g)(a)=f(g(a))
  • Read the graph of the inside function first.
  • Use its output as the input on the other function’s graph.
  • Each point (a,b)(a,b) on a function graph means that the function’s value at aa is bb.

4. Application and careful checking

Composition describes a process with two stages. Imagine a machine that changes an input according to gg, followed by a second machine that changes the new value according to ff. The combined process is represented by f(g(x))f(g(x)). This interpretation works whether the rules are given as equations, tables, or graphs.
When solving a question, first identify which function acts first. Then find its output at the starting input. Check that this output is an allowed input for the next function. Finally, find the next output and state it as the value of the composite function.
You can check your reasoning by writing the input-output chain in words or in a small table. If the final answer is the output of the first function rather than the output of the second, the process stopped too soon.
(f∘g)(a)=f(g(a))(f\circ g)(a)=f\bigl(g(a)\bigr)
  • The function inside the parentheses acts first.
  • The first output must be usable as an input to the second function.
  • The final value is the output of the second function.

Graph readings used in the example

Starting inputOutput from ggOutput from ffComposite output
−2-2114444
0033−1-1−1-1
22114444

Worked example

Compose functions from graph readings

The graph of gg contains the points (−2,1)(-2,1), (0,3)(0,3), and (2,1)(2,1). The graph of ff contains the points (1,4)(1,4) and (3,−1)(3,-1). Find (f∘g)(−2)(f\circ g)(-2), (f∘g)(0)(f\circ g)(0), and (f∘g)(2)(f\circ g)(2).
  1. Read the first graph
    Use the graph of gg to find the output for each starting input. The points show that g(−2)=1g(-2)=1, g(0)=3g(0)=3, and g(2)=1g(2)=1.
    g(−2)=1,g(0)=3,g(2)=1g(-2)=1,\quad g(0)=3,\quad g(2)=1
  2. Use those outputs as inputs
    Now read the graph of ff. The input 11 gives output 44, and the input 33 gives output −1-1. These are the values needed because the outputs from gg were 11 or 33.
    f(1)=4,f(3)=−1f(1)=4,\quad f(3)=-1
  3. Complete each composition
    For each starting input, use its gg output as the input to ff. This gives the final values of the three compositions.
    (f∘g)(−2)=4,(f∘g)(0)=−1,(f∘g)(2)=4(f\circ g)(-2)=4,\quad (f\circ g)(0)=-1,\quad (f\circ g)(2)=4
  4. Represent the composite values
    Each result can be shown as a point on the graph of the composite function. The horizontal coordinate is the original input, and the vertical coordinate is the final output.
    (−2,4),(0,−1),(2,4)(-2,4),\quad (0,-1),\quad (2,4)
Answer: (f∘g)(−2)=4(f\circ g)(-2)=4, (f∘g)(0)=−1(f\circ g)(0)=-1, and (f∘g)(2)=4(f\circ g)(2)=4. The corresponding points are (−2,4)(-2,4), (0,−1)(0,-1), and (2,4)(2,4).
Check: For the input 00, the graph of gg gives 33, and the graph of ff gives −1-1 at input 33. The final value is therefore −1-1, not 33.

Common mistakes and how to avoid them

Applying the function named first in the notation first. For f(g(x))f(g(x)), this would mean using ff before gg.
Correction: Start with the inside function, gg. Use its output as the input to ff.
Treating the composition symbol as multiplication.
Correction: The symbol ∘\circ means that one function is applied after another. It does not mean multiply the function values.
Stopping at the output of the first function.
Correction: That output is only an intermediate value. Use it as the input to the second function to get the composite output.
Assuming reversing the functions leaves the result unchanged.
Correction: Check the order shown. In general, applying gg and then ff can give a different result from applying ff and then gg.

Lesson summary

  • Composition connects the output of one function to the input of another.
  • In f(g(x))f(g(x)), apply gg first and ff second.
  • Use tables or graphs by reading the first function’s output, then using it as the next input.
  • The final answer is the output after both functions have acted.

Check your understanding

Question 1

Suppose g(2)=5g(2)=5 and f(5)=9f(5)=9. What is (f∘g)(2)(f\circ g)(2)?
  1. 22
  2. 55
  3. 99
  4. It cannot be determined from the information given.
Show answer and explanation
99
First, gg sends 22 to 55. Then ff sends 55 to 99, so the composite value is 99.

Question 2

If f(4)=7f(4)=7 and g(7)=1g(7)=1, what is (g∘f)(4)(g\circ f)(4)?
  1. 11
  2. 44
  3. 77
  4. It cannot be determined from the information given.
Show answer and explanation
11
In g(f(4))g(f(4)), apply ff first to get 77, then apply gg to 77 to get 11.

Key terms

Function
A rule that assigns an output to each allowed input.
Composition
A process in which the output of one function is used as the input to another.
Composite function
A function made by applying one function and then another, such as (f∘g)(x)(f\circ g)(x).
Input-output pair
A pair of values showing an input and its matching output. On a graph, it is shown as a point.

Continue through MHF4U

View the complete MHF4U Ontario Grade 12 Mathematics curriculum and lessons

Tutor support for D2.4 · Compose functions numerically and graphically

Working on D2.4 · Compose functions numerically and graphically in MHF4U? Bring the question and your own attempt. In a live session, you can label the axes and connect each feature of the graph to the equation or situation. Ask about the first step that does not make sense, then try a similar question yourself.

Explore math tutoring · Request an eligible free 30-minute introduction. Your request is matched by subject and language; a tutor must accept before a time is confirmed.

برای مبحث D2.4 · ترکیب عددی و نموداری تابع‌ها در درس MHF4U، سؤال و تلاش خود را همراه بیاورید. در جلسه می‌توانید محورها را برچسب بزنید و هر ویژگی نمودار را به معادله یا موقعیت مسئله ربط دهید. راهنمای معلم ریاضی را ببینید یا جلسهٔ معارفهٔ رایگان ۳۰ دقیقه‌ای درخواست کنید. زمان جلسه پس از پذیرش معلم قطعی می‌شود.

About this lesson and its review

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

Before publication, content is checked for structure, mathematical or chemical notation, calculations, course boundaries, and readability. Errors can still occur, so corrections are welcomed.

Official curriculum reference

Report a correction or ask a question