Lesson 1 · Functions

🔀 Functions, Inverses & Modulus

A function is a rule that gives exactly one output for each input. This lesson covers domain and range, composite and inverse functions, and the modulus function |x|, with its graphs and equations.

📥 Domain, range, composite and inverse

The domain is the set of inputs and the range the set of outputs. fg(x) means apply g first, then f. An inverse f⁻¹ exists only if f is one-one; its graph is the reflection of y = f(x) in y = x, and the domain of f⁻¹ is the range of f.

f(x) = 2x + 3, g(x) = x² fg(x) = 2x² + 3 gf(x) = (2x + 3)² fg(2) = 11 Inverse of f: y = 2x + 3 → x = (y − 3)/2 f⁻¹(x) = (x − 3)/2

🖼️ See it

y = |2x − 1|-3-2-10123402468y = 7y = |2x − 1|x = −3x = 4xy
The part of y = 2x − 1 below the x-axis is reflected upwards. The line y = 7 meets the graph twice.

📏 The modulus function

|x| is the size of x without its sign: |−5| = 5. To draw y = |f(x)|, draw y = f(x) and reflect the parts below the x-axis in the x-axis.

Solve |2x − 1| = 7 2x − 1 = 7 → x = 4 2x − 1 = −7 → x = −3 Solve |x − 2| < 3 −3 < x − 2 < 3 → −1 < x < 5
Check your answers. When both sides contain a modulus, square both sides or sketch the graphs, and check each solution in the original equation.

🧭 Finding a range

To find the range, look at the graph over the domain, or complete the square. For f(x) = x² − 4x + 7 = (x − 2)² + 3 with domain all real x, the range is f(x) ≥ 3. Restricting the domain to x ≥ 2 makes f one-one, so f⁻¹(x) = 2 + √(x − 3).

🪜 Step by step: a modulus equation

|f(x)| = k means f(x) = k or f(x) = −k.

Problem: solve |2x − 3| = 7.

  1. Check the right side is positive. 7 is positive, so there are solutions.
  2. Case 1: the inside is +7.
    2x − 3 = 7 2x = 10 x = 5
  3. Case 2: the inside is −7.
    2x − 3 = −7 2x = −4 x = −2
  4. Check both.
    |2(5) − 3| = 7 ✓ |2(−2) − 3| = |−7| = 7 ✓

Answer: x = 5 or x = −2.

Common mistake: solving only one case.

🪜 Step by step: composite and inverse functions

Composite functions apply the inside function first. Inverses swap input and output.

Problem: f(x) = 3x − 2 and g(x) = x². Find fg(x), gf(x) and f⁻¹(x).

  1. fg(x): put g inside f.
    fg(x) = f(x²) = 3x² − 2
  2. gf(x): put f inside g.
    gf(x) = g(3x − 2) = (3x − 2)²
  3. f⁻¹(x): write y = 3x − 2 and solve for x.
    y + 2 = 3x x = (y + 2)/3 f⁻¹(x) = (x + 2)/3
  4. Check.
    f(f⁻¹(x)) = 3(x + 2)/3 − 2 = x ✓

Answer: fg = 3x² − 2, gf = (3x − 2)², f⁻¹ = (x + 2)/3.

Common mistake: fg and gf are different. The order matters.
✏️ Quick check · 1 of 8
Order

fg(x) means:

fg(x) = f(g(x))xinner functionouter function
Which function sits closest to the x?
Work from the inside.
✏️ Quick check · 2 of 8
Inverse

The graph of y = f⁻¹(x) is the reflection of y = f(x) in:

f and f⁻¹−4−224−4−224xy0ff⁻¹
The two graphs are mirror images. Where is the mirror?
Swap x and y.
✏️ Quick check · 3 of 8
One-one

An inverse function exists only when the function is:

y = x²-4-2024-6-4-202468y = x²xy
x = 2 and x = −2 both give 4. Could an inverse know which one to send back?
Unique inputs.
✏️ Quick check · 4 of 8
Modulus graph

To sketch y = |f(x)| from y = f(x):

y = x² − 4-4-2024-6-4-202468y = x² − 4xy
Which parts of this graph change when you draw y = |x² − 4|?
No negative y-values.
✍️ Type your answer · 5 of 8

f(x) = 3x − 1 and g(x) = x + 4.

fg(2)x = 2g: 2 + 4 = ?f: 3 × that − 1= ?
Apply g first, then f.

What is fg(2)?

Enter an exact answer, without rounding.
Find g(2) first.
✍️ Type your answer · 6 of 8

f(x) = 5x + 2.

f⁻¹(17) for f(x) = 5x + 2f(x) = 175x + 2 = 17x = ?
Find the input that gives 17.

What is f⁻¹(17)?

Enter an exact answer, without rounding.
Which input gives 17?
✍️ Type your answer · 7 of 8

Solve |x − 3| = 8 for the negative solution.

|x − 3| = 8−8−6−4−2024681012143
|x − 3| is the distance from 3. Which two points are 8 away? Take the negative one.

What is x?

Enter an exact answer, without rounding.
Take x − 3 = −8.
✍️ Type your answer · 8 of 8

f(x) = x² − 6x + 14 for all real x.

x² − 6x + 14= (x − 3)² + ?a square is nevernegativeleast value = ?
Complete the square.

What is the least value in the range?

Enter an exact answer, without rounding.
Complete the square.
📝 Lesson quiz · 5 questions
0 / 5
Re-read the lesson, then give it another go.
Question 1 of 5
|−7| + |3|−8−7−6−5−4−3−2−101234−73
|a| is the distance from 0.

|−7| + |3| equals:

Question 2 of 5
f and f⁻¹f: domain → rangef⁻¹: ? → ?
f⁻¹ undoes f, so it runs the other way.

The domain of f⁻¹ is:

Question 3 of 5
|x| < 4−6−5−4−3−2−101234560
|x| < 4 means x is less than 4 away from 0, on either side.

The solution of |x| < 4 is:

Question 4 of 5
y = x²-4-2024-6-4-202468y = x²xy
x = 2 and x = −2 both give 4. What kind of function is that?

If f(x) = x², why has f no inverse on all real x?

Question 5 of 5
gf(x)xf: x + 1g: double it= ?
Apply f first, then g.

If f(x) = x + 1 and g(x) = 2x, gf(x) =