Skip to main content
Functions and graph transformations
Lesson 7 of 75
Easy practice

Composite functions

Objective. Compose functions in the correct order and track restrictions.

  1. 1. Learn
  2. 2. Worked example
  3. 3. Practice
  4. 4. Feedback
  5. 5. Continue

Learn: the key idea

A composite function fg(x) means apply g first, then apply f to the result, so fg(x)=f(g(x)), and the order matters because fg and gf are usually different functions. The domain of fg(x) must respect both the domain of g and the domain of f applied to g's output, so any value excluded at either stage is excluded overall. For f(x)=2x+1 and g(x)=x², fg(x)=f(g(x))=2x²+1, while gf(x)=g(f(x))=(2x+1)²; these are clearly different expressions. Always substitute the inner function completely before simplifying the outer one.

Worked example

Given f(x)=3x−2 and g(x)=x+4, find the composite function fg(x).

Given f(x)=3x−2 and g(x)=…
Illustrated card showing Given f(x)=3x−2 and g(x)=x+4
  1. 1Identify that fg(x) means f(g(x)), so apply g first
  2. 2Substitute g(x)=x+4 into f: f(x+4)=3(x+4)−2
  3. 3Expand the bracket: 3x+12−2
  4. 4Simplify to get fg(x)=3x+10

Answer: fg(x) = 3x + 10

Concept mastery

Based on your past attempts at this lesson — the question types to practise again come first.

Complete a practice set to see your concept breakdown here.

Practice

Practice happens on its own screen, one question at a time. Answers stay hidden until you submit yours, and you can stop and pick up at the same question later.

Start practising

Common mistake. Students compute gf(x) when asked for fg(x), reversing the order; for f(x)=x+3 and g(x)=2x, fg(x)=2x+3 but a student writes x+6, having applied f first by mistake.

Your progress

Tick each step as you finish it. Your exact reading position is saved automatically, so Continue drops you back on the same line.

0 of 5 steps complete

Your place saves automatically as you read.

My dashboard