Lesson 10: Functions and GraphsSG G3
A function is a rule that takes each input to exactly one output. We write f(x) = 2x + 3 to mean "the function f sends x to 2x + 3". The domain is the set of allowed inputs and the range is the set of outputs that actually occur. Functions can be combined, reversed, and drawn — and the graph is often the fastest way to see what a function does.
Key Terms
- Function — a rule mapping each input to exactly one output.
- f(x) — function notation: the output of f when the input is x.
- Domain — the set of permitted input values.
- Range — the set of output values the function can produce.
- Composite function — one function applied after another, written fg(x) or f(g(x)).
- Inverse function — the function that undoes f, written f¹⁻(x).
- One-to-one — a function whose outputs are all different, so an inverse exists.
- Vertical line test — a graph is a function if no vertical line meets it twice.
Evaluating functions
For f(x) = 2x² - 3x + 1, substitute the input: f(-2) = 2(4) - 3(-2) + 1 = 8 + 6 + 1 = 15, and f(3) = 18 - 9 + 1 = 10. To solve f(x) = 5 for f(x) = 2x - 7, set 2x - 7 = 5, so x = 6. The notation f(2) = 9 is just a compact way of saying "when the input is 2, the output is 9".
Worked example 1: composite functions
Let f(x) = 3x + 2 and g(x) = x² - 1. Then fg(x) means apply g first, then f: fg(x) = f(x² - 1) = 3(x² - 1) + 2 = 3x² - 1. The other order is different: gf(x) = g(3x + 2) = (3x + 2)² - 1 = 9x² + 12x + 3. Check at x = 0: fg(0) = f(-1) = -1, and 3(0) - 1 = -1; gf(0) = g(2) = 3, and 9(0) + 0 + 3 = 3. Order matters, just as it does with matrices.
Worked example 2: the inverse function
Find the inverse of f(x) = 4x - 5. Write y = 4x - 5, swap x and y to get x = 4y - 5, then solve for y: y = (x + 5)/4, so f¹⁻(x) = (x + 5)/4. Check by composing: f(f¹⁻(3)) = f(2) = 3, back where we started. An inverse only exists when the function is one-to-one; f(x) = x² is not one-to-one over all real numbers, because f(2) = f(-2) = 4.
Recognising graphs
Each family has a signature shape: y = mx + c is a straight line with gradient m and y-intercept c; y = x² is a parabola with vertex at the origin; y = 1/x is a hyperbola with two branches that never touch the axes; y = x³ rises from bottom-left to top-right with a point of inflection at the origin. The domain of f(x) = 1/(x - 2) is all x except x = 2, where the denominator is zero and the graph has a vertical asymptote.
Common mistakes
- Reversing the order of a composite. fg(x) means f(g(x)): g acts first. Read it right to left.
- Confusing f¹⁻(x) with 1/f(x). The -1 is a label meaning "inverse", not a power; (4x - 5)¹⁻ is (x + 5)/4, not 1/(4x - 5).
- Forgetting the domain. 1/(x - 2) is undefined at x = 2, so 2 is never in the domain.
Discussion Questions
- Why does f(x) = x² fail to have an inverse over all real numbers, but gain one if the domain is restricted to x ≥ 0?
- Why is fg(x) usually different from gf(x)? Give an example from everyday life.
- How can a graph tell you at a glance whether a relation is a function?
Practice Questions
- If f(x) = x² + 4, find f(-3). Answer: 13. (-3)² + 4 = 9 + 4.
- If f(x) = 2x - 7, solve f(x) = 5. Answer: x = 6. 2x - 7 = 5 gives 2x = 12.
- If f(x) = x + 3 and g(x) = 2x, find fg(4). Answer: 11. g(4) = 8, then f(8) = 11; equivalently fg(x) = 2x + 3.
- Find the inverse of g(x) = (x - 1)/3. Answer: g¹⁻(x) = 3x + 1. Swap and solve: x = (y - 1)/3 gives y = 3x + 1; check g(3x + 1) = x.
- State the domain of f(x) = 1/(x - 2). Answer: All real numbers except x = 2, where the denominator is zero.
✅ Check your understanding
Quick recall check, generated from this lesson’s key terms. It is practice only and is not graded.