Duration: 40 minutes
By the end of this lesson, you should be able to:
Work individually in your exercise book:
Q1: Define a function in your own words.
Q2: Given f(x) = 4x - 1, find f(2) and f(5)
Q3: Given g(x) = x², find g(3) and g(-2)
Q4: If h(x) = 3x and h(a) = 15, find a
Q1: A function maps each input to exactly one output
Q2: f(2) = 7, f(5) = 19
Q3: g(3) = 9, g(-2) = 4
Q4: a = 5
For this lesson:
f(x) = 6x (multiply by 6)
g(x) = x + 5 (add 5)
f(x) = 6x:
g(x) = x + 5:
Akello earns UGX 6,000 per hour. She also gets UGX 5,000 transport allowance daily.
f(x) = 6000x gives earnings for x hours g(x) = x + 5000 adds the allowance
For 4 hours worked:
Step 1: Earnings = f(4) = 6000(4) = UGX 24,000
Step 2: Total with allowance = g(24000) = 24000 + 5000 = UGX 29,000
What if we wanted to do both steps at once?
First find earnings (f), then add allowance (g)
Can we combine these functions?
Given f(x) = 6x and g(x) = x + 5:
g(f(3)) means:
Work from the inside out!
Find g(f(3)):
Step 1: f(3) = 6(3) = 18
Step 2: g(18) = 18 + 5 = 23
Answer: g(f(3)) = 23
Find f(g(3)):
Step 1: g(3) = 3 + 5 = 8
Step 2: f(8) = 6(8) = 48
Answer: f(g(3)) = 48
g(f(3)) ≠ f(g(3))
23 ≠ 48
The order in which we apply functions changes the result!
Given: f(x) = 2x and g(x) = x + 1
Find:
Compare your answers!
Step 1: f(4) = 2(4) = 8
Step 2: g(8) = 8 + 1 = 9
g(f(4)) = 9
Step 1: g(4) = 4 + 1 = 5
Step 2: f(5) = 2(5) = 10
f(g(4)) = 10
Again, different order gives different results!
For g(f(x)):
When we apply one function after another, we create a composite function.
g(f(x)) means: "apply f first, then g"
This is a key topic for UCE!
Given f(x) = 2x and g(x) = x - 3:
f(5) = 2(5) = 10
g(10) = 10 - 3 = 7
g(f(5)) = g(10) = 10 - 3 = 7
f(g(5)) = f(2) = 2(2) = 4 (since g(5) = 5 - 3 = 2)
Given f(x) = 3x and g(x) = x + 2:
Find f(4), g(6), f(-2), g(0)
Find g(f(2)) step by step
Find f(g(2)) step by step
Compare answers to Q2 and Q3
Draw a flow diagram for g(f(5))
Lesson 5: Composite Functions
We will learn:
Created: December 2025 Based on: NCDC Lower Secondary Mathematics Syllabus (2019)
Source: National Curriculum Development Centre (NCDC), Uganda