← AS & A Level Mathematics

AS & A Level Mathematics · Pure Mathematics 1 · Chapter 4

Functions

  • A function is a machine: one input goes in, exactly one output comes out.
  • You can join two machines (composite) or run one backwards (inverse).
  • You can also move, stretch and flip a function's graph: transformations.

Learning objectives

  1. Use the language of mappings: object, image, domain, range, one-to-one, many-to-one, one-to-many, many-to-many.
  2. Decide whether a mapping is a function, and write functions as f(x), y = … and f : x ↦ ….
  3. Choose a sensible domain, and find the range from the graph or by completing the square.
  4. Form composite functions such as fg(x) and f²(x), and find their domains.
  5. Find inverse functions, restrict a domain so an inverse exists, and sketch f and f⁻¹ together.
  6. Describe and use transformations of graphs: translations, stretches and reflections. (9709 syllabus)

Book exercises: Exercise 4A (questions 1 to 5) and Exercise 4B (questions 1 to 12), with the Key points. The transformation questions of Exercise 7F in the Trigonometry chapter are in this chapter's assignment too.

Mappings: inputs and outputs

  • A mapping is a rule that links each input (object) to an output (image).
  • The domain is the set of all possible inputs.
  • The range is the set of outputs that actually come out.
  • Example: x ↦ 2x + 5 with the integers as domain gives the range … 3, 5, 7, 9, 11 …
−1 3 0 5 1 7 2 9 rule x ↦ 2x + 5 Domain (inputs) Range (outputs) objects images
A mapping sends each input in the domain to an output in the range. The rule here is “double, then add 5”.

Four types of mapping

  • One-to-one: each input has its own output (passport number for a person).
  • Many-to-one: different inputs can share an output (people and their reason for a trip).
  • One-to-many: one input gives several outputs (a person and their pieces of luggage).
  • Many-to-many: both at once (people and the countries they have visited).
  • A function is a mapping that is one-to-one or many-to-one: every input has exactly one output.
One-to-one ✓ a function Many-to-one ✓ a function One-to-many ✗ not a function Many-to-many ✗ not a function
One-to-one and many-to-one are functions. In the other two an input has more than one output.

📘 Example 1 · Classify four mappings

MappingTypeFunction?
x ↦ 2x + 5, x ∈ ℤone-to-oneyes
x° ↦ sin x° (sin 30° = sin 150° = 0.5)many-to-oneyes
rounded whole numbers ↦ unrounded numbers (5 ↦ 4.5 … 5.5)one-to-manyno
quadratic equation ↦ its roots (x² − 4x + 3 = 0 gives 1 and 3)one-to-manyno

Writing a function

StyleExampleRead as
Equationy = x², x ∈ ℝy equals x squared
Function notationf(x) = x², x ∈ ℝf of x equals x squared
Mapping notationf : x ↦ x², x ∈ ℝf maps x on to x squared
  • f(3) means “the output when the input is 3”. For f(x) = x², f(3) = 9.
  • Set symbols for the domain: ℝ all real numbers, ℝ⁺ positive real numbers, ℤ integers, ℕ natural numbers 0, 1, 2, … (this book counts 0).

Choosing a domain

  • The domain must keep every output defined.
  • Never divide by 0, and never take the square root of a negative number.
  • f : x ↦ √(x − 5) needs x − 5 ≥ 0, so the domain is x ≥ 5.
  • g : x ↦ 1/(x − 5) cannot have x = 5, so the domain is x ≠ 5.
f(x) = √(x − 5): need x − 5 ≥ 0 5 allowed: x ≥ 5 (filled dot: 5 is in) g(x) = 1/(x − 5): need x ≠ 5 5 allowed: everything except 5 (open dot)
A filled dot means the end value is in the domain. An open dot means it is left out.

The domain changes the range

📘 Example 2 (book Example 4.1) · Sketch y = 3x + 2 for three domains

  1. (i) x ∈ ℝ: the line goes on for ever both ways, so every y is possible. Range: y ∈ ℝ.
  2. (ii) x ∈ ℝ⁺ (x > 0): the line starts at (0, 2) but does not include it (open circle). Range: y > 2.
  3. (iii) x ∈ ℕ (0, 1, 2, …): only dots at (0, 2), (1, 5), (2, 8), (3, 11) …
  4. Each y has the form 3x + 2 with x a natural number. Range: {3x + 2 : x ∈ ℕ} = {2, 5, 8, …}.
−2−112325811xy −2−112325811xy −2−112325811xy x ∈ ℝ: range ℝ x > 0: range y > 2 x ∈ ℕ: dots only
The same rule y = 3x + 2 gives three different graphs and ranges. The domain is part of the function.

Seeing a function on a graph

  • The x co-ordinate of a point is an input. The y co-ordinate is its output.
  • Vertical-line test: a graph is a function if every vertical line cuts it at most once.
  • So the graph of a function never doubles back on itself from left to right.
−11−22xy −55−55xy y = x³ − x: one hit, a function ✓ circle: two hits, not a function ✗
The dashed vertical line cuts the cubic once, but cuts the circle twice, at (3, 4) and (3, −4).

Finding the range

  • Sketch the graph for the given domain, then read off the lowest and highest y values.
  • For a quadratic, complete the square: a squared bracket is never negative.
  • Check the end points of the domain, and whether the turning point lies inside it.

📘 Example 3 · Range of f(x) = x² − 4x + 1

  1. Complete the square: x² − 4x + 1 = (x − 2)² − 4 + 1 = (x − 2)² − 3.
  2. (x − 2)² ≥ 0 for every x, and equals 0 when x = 2.
  3. So the least value of f is −3, and f can be as large as you like.
  4. Range for x ∈ ℝ: f(x) ≥ −3. Check: f(2) = 4 − 8 + 1 = −3 ✓.

📘 Example 4 · The same f(x) = x² − 4x + 1, but 0 ≤ x ≤ 5

  1. The turning point x = 2 lies inside 0 ≤ x ≤ 5, so the least value is f(2) = −3.
  2. Check the ends: f(0) = 1 and f(5) = 25 − 20 + 1 = 6.
  3. The greatest value is the larger end: 6 (x = 5 is 3 from the vertex, x = 0 only 2).
  4. Range: −3 ≤ f(x) ≤ 6.

📘 Example 5 · Range of f(x) = 3/(1 + x²), x ∈ ℝ

  1. x² ≥ 0, so 1 + x² ≥ 1, with least value 1 at x = 0.
  2. The biggest f comes from the smallest denominator: f(0) = 3/1 = 3.
  3. As x grows, 1 + x² grows, so 3/(1 + x²) gets close to 0 but is never 0 (the top is 3).
  4. Range: 0 < f(x) ≤ 3.

📘 Example 6 · Why this mapping is not a function

h(x) = x² for 0 ≤ x ≤ 2, and h(x) = 3x for 2 ≤ x ≤ 10.

  1. x = 2 is in both pieces, so h(2) could be 2² = 4 or 3 × 2 = 6.
  2. One input with two outputs is one-to-many.
  3. So h is not a function. Change the second piece to 2 < x ≤ 10 and it becomes one.

🧪 Try it: range finder for f(x) = ax² + bx + c

Leave a limit blank for “no limit”. Set a = 0 for a straight line.

    ✏️ Try it

    1. Is x ↦ x², x ∈ ℝ, one-to-one or many-to-one? Is it a function?
    2. Find the largest real domain of f(x) = √(2x − 6).
    3. Find the range of f(x) = x² − 6x + 11 for x ≥ 4.
    Answers

    1. Step 1: 2 and −2 both give 4, so it is many-to-one.
    Step 2: every input still has exactly one output, so it is a function.

    2. Step 1: the root needs 2x − 6 ≥ 0.
    Step 2: 2x ≥ 6, so x ≥ 3.

    3. Step 1: f(x) = (x − 3)² + 2, with vertex at x = 3.
    Step 2: x = 3 is not in x ≥ 4, so f only increases from x = 4.
    Step 3: f(4) = 16 − 24 + 11 = 3.
    Step 4: range f(x) ≥ 3.

    Next: composite functions →

    Composite functions

    • A composite function applies one function, then another to the answer.
    • gf(x) = g[f(x)]: say “g of f of x”.
    • Read it right to left: f acts first (it is next to x), then g.
    • f²(x) means ff(x): f applied twice. g³(x) is g applied three times.
    x f f(x) g gf(x) the composite function gf: f first, then g
    Feed x into f, then feed the answer into g. The whole two-machine chain is gf.

    📘 Example 1 (book Example 4.2) · The baby's bath

    A thermometer reads in °C. The rule is “at 105°F he’ll cook alive, but 94°F is rather raw”. Two functions are used.

    1. Function 1 (convert): F = 9C/5 + 32.
    2. Function 2 (judge): F < 94 too cold; 94 ≤ F ≤ 105 all right; F > 105 too hot.
    3. 30°C: F = 54 + 32 = 86°F, so too cold.
    4. 38°C: F = 68.4 + 32 = 100.4°F, so all right.
    5. 45°C: F = 81 + 32 = 113°F, so too hot.
    6. Composite in °C: F = 94 gives C = (94 − 32) × 5/9 ≈ 34.4, and F = 105 gives C ≈ 40.6. So below 35°C is too cold, about 35 to 40°C is all right, above that is too hot.
    C = 38°C convertF = 9C/5 + 32 100.4°F judgeall right
    Two functions in a row: temperature in °C, then °F, then the verdict.

    The order matters

    • In general gf(x) ≠ fg(x).
    • Let f be “square” and g be “add 1”. Then gf(x) = x² + 1 but fg(x) = (x + 1)².
    gf(3): square first, then add 1 3 f: square 9 g: add 1 10 fg(3): add 1 first, then square 3 g: add 1 4 f: square 16
    Same two machines, opposite order, different answers: 10 and 16.

    📘 Example 2 (book Example 4.3) · f(x) = 2x, g(x) = x², h(x) = 1/x (x ≠ 0)

    Find (i) fg(x) (ii) gf(x) (iii) gh(x) (iv) f²(x) (v) fgh(x).

    1. (i) fg(x) = f[g(x)] = f(x²) = 2x².
    2. (ii) gf(x) = g[f(x)] = g(2x) = (2x)² = 4x².
    3. (iii) gh(x) = g(1/x) = (1/x)² = 1/x², for x ≠ 0.
    4. (iv) f²(x) = f[f(x)] = f(2x) = 2(2x) = 4x.
    5. (v) fgh(x) = f[gh(x)] = f(1/x²) = 2/x², for x ≠ 0 (use part iii).

    Domains of composite functions

    • To form gf, the range of f must fit inside the domain of g.
    • If f sends a value to something g cannot accept, gf does not exist for that input.
    • The domain of gf is the domain of f (cut down if needed).
    f g gf domain of f domain of g range of f(inside) range of gf
    gf works only because the range of f (small oval) sits inside the domain of g (big oval).

    📘 Example 3 (book) · When can gf be formed?

    f : x ↦ 2x, x ≥ 0 and g : x ↦ √x, x ≥ 0. Also h : x ↦ 2x, x ∈ ℝ.

    1. f sends x ≥ 0 to 2x ≥ 0, so the range of f is inside the domain of g.
    2. So gf can be formed: gf(x) = g(2x) = √(2x), x ≥ 0.
    3. h has the same rule but domain ℝ, so its range includes negative numbers.
    4. Negative numbers are not in the domain of g, so gh cannot be formed.

    📘 Example 4 · Domain of gf when the rule forces a limit

    f(x) = x − 4, x ∈ ℝ and g(x) = √x, x ≥ 0.

    1. gf(x) = g(x − 4) = √(x − 4).
    2. g only accepts inputs that are ≥ 0, so f(x) must be ≥ 0: x − 4 ≥ 0.
    3. Domain of gf: x ≥ 4. Its range is gf(x) ≥ 0.

    📘 Example 5 · Range of a composite

    f(x) = x² − 2 and g(x) = 3x + 1, both for x ∈ ℝ. Find the range of gf.

    1. gf(x) = g(x² − 2) = 3(x² − 2) + 1 = 3x² − 5.
    2. x² ≥ 0, so 3x² ≥ 0 and 3x² − 5 ≥ −5.
    3. The range of gf is gf(x) ≥ −5.
    4. Check by the other route: range of f is f ≥ −2, and g(−2) = −5, with g increasing ✓.

    🧪 Simulation: the composite function machine

    Pick f, pick g, type an input. Watch f then g, then the other order.

      Solving equations with composite functions

      📘 Example 6 · Solve fg(x) = gf(x)

      f(x) = 2x + 1 and g(x) = x².

      1. fg(x) = f(x²) = 2x² + 1.
      2. gf(x) = g(2x + 1) = (2x + 1)² = 4x² + 4x + 1.
      3. Set equal: 2x² + 1 = 4x² + 4x + 1, so 0 = 2x² + 4x.
      4. Factorise: 2x(x + 2) = 0, so x = 0 or x = −2.
      5. Check x = −2: fg(−2) = f(4) = 9 and gf(−2) = g(−3) = 9 ✓.

      📘 Example 7 · gf(x) = k with equal roots (the style of exam questions)

      f : x ↦ 3x − x² and g : x ↦ 4x − 5. Find k so that gf(x) = k has equal roots.

      1. gf(x) = g(3x − x²) = 4(3x − x²) − 5 = 12x − 4x² − 5.
      2. gf(x) = k gives 4x² − 12x + 5 + k = 0.
      3. Equal roots mean the discriminant is 0: (−12)² − 4(4)(5 + k) = 0.
      4. 144 − 16(5 + k) = 0, so 5 + k = 9 and k = 4.
      5. Check: gf is largest at x = 3/2, where gf = 18 − 9 − 5 = 4 ✓ (it touches the line y = 4 once).

      ✏️ Try it

      1. f(x) = x + 5 and g(x) = 3x. Find fg(x) and gf(x).
      2. f(x) = x² and g(x) = 1/(x − 1), x ≠ 1. Find gf(x) and say which x values it cannot take.
      3. f(x) = 2x − 1. Find f²(x), and solve f²(x) = 9.
      Answers

      1. Step 1: fg(x) = f(3x) = 3x + 5.
      Step 2: gf(x) = g(x + 5) = 3(x + 5) = 3x + 15.

      2. Step 1: gf(x) = g(x²) = 1/(x² − 1).
      Step 2: the bottom is 0 when x² = 1, so x ≠ 1 and x ≠ −1.
      Step 3: answer gf(x) = 1/(x² − 1), x ≠ ±1.

      3. Step 1: f²(x) = f(2x − 1) = 2(2x − 1) − 1 = 4x − 3.
      Step 2: 4x − 3 = 9, so 4x = 12 and x = 3.
      Step 3: check f(3) = 5 and f(5) = 9 ✓.

      Next: inverse functions →

      Inverse functions

      • The inverse function f⁻¹ runs f backwards: it undoes f.
      • If f(a) = b then f⁻¹(b) = a.
      • f⁻¹ does not mean 1/f. The −1 is a label, not a power.
      • Example: f : x ↦ x + 2 has inverse f⁻¹ : x ↦ x − 2.
      f(x)What f doesf⁻¹(x)
      x − 1subtract 1x + 1
      2xdoublex (halve)
      x³cube∛x
      f(x) = 2x + 1 x × 2 + 1 2x + 1 f⁻¹: undo the steps in reverse order x − 1 ÷ 2 (x − 1)/2
      f multiplies by 2 then adds 1. The inverse takes away 1 first, then halves: f⁻¹(x) = (x − 1)/2.

      When does an inverse exist?

      • f has an inverse function only if f is one-to-one on its domain.
      • Reason: the inverse sends each output back to its input. Two inputs with the same output would give the reverse mapping two answers.
      • Horizontal-line test: if any horizontal line cuts the graph twice or more, there is no inverse.
      • A one-to-one graph does not turn back on itself: no turning points inside the domain.
      −2−112246xy −2−112−6−336xy y = x²: two hits, no inverse ✗ y = x³: one hit, has an inverse ✓
      The dashed horizontal line meets y = x² at x = −2 and x = 2. Reversing “4” would give two answers.

      Restricting the domain

      • You can often cut the domain so the function becomes one-to-one.
      • g(x) = x² for x ≥ 0 is one-to-one, with inverse g⁻¹(x) = √x. The √ sign means the positive root.
      • Your calculator does this: sin⁻¹ gives answers only from −90° to 90° (the principal value).
      • sin x = 0.5 has infinitely many roots (…, −330°, −210°, 30°, 150°, …), but only 30° is in the restricted range.

      🧪 Simulation: restrict the domain, then reflect in y = x

      f(x) = (x − 1)² for x ≥ c. Slide c. Does f have an inverse?

      Bold curve: f. Second colour: the reflection of f in y = x (the dashed grey line). The dotted line is a horizontal-line test.

        The graph of an inverse

        • If (a, b) is on the graph of f, then f⁻¹ maps b back to a, so (b, a) is on the graph of f⁻¹.
        • Swapping the coordinates is a reflection in the line y = x.
        • So the graph of f⁻¹ is the graph of f reflected in y = x (use the same scale on both axes).
        • This lets you sketch f⁻¹ without finding its equation.
        −4−224−4−224xyy = xA(0, 4)A′(4, 0)B(1, −1)B′(−1, 1)C(−4, 2)C′(2, −4)
        Each point and its partner are mirror images in y = x: A(0, 4) and A′(4, 0), B(1, −1) and B′(−1, 1), C(−4, 2) and C′(2, −4).
        1234512345xy(2, 4)(4, 2)y = x²y = √xy = x
        y = x² (x ≥ 0) and its inverse y = √x. (2, 4) on one curve matches (4, 2) on the other.

        Finding the inverse by algebra

        Step 1write y = f(x)note domain, range Step 2swap x and ydomain ↔ range Step 3make y thesubject Step 4write f⁻¹(x) withits domain
        Four steps for any inverse. The domain of f⁻¹ is the range of f.
        • Swapping x and y swaps the roles of domain and range too.
        • Anything missing from the domain of f is missing from the range of f⁻¹, and the other way round.
        domain of f= range of f⁻¹ range of f= domain of f⁻¹ f f⁻¹
        f carries the domain to the range. f⁻¹ carries it straight back.

        📘 Example 1 (book Example 4.4) · Find f⁻¹ when f(x) = 2x + 1, x ∈ ℝ

        1. Write y = 2x + 1.
        2. Swap x and y: x = 2y + 1.
        3. Make y the subject: 2y = x − 1, so y = (x − 1)/2.
        4. f⁻¹(x) = (x − 1)/2, x ∈ ℝ.
        5. Check: f(3) = 7 and f⁻¹(7) = 6/2 = 3 ✓.

        📘 Example 2 (book Example 4.5) · f(x) = 2x − 3 with domain x ≥ 4

        1. y = 2x − 3 with x ≥ 4, so y ≥ 2(4) − 3 = 5. The range of f is y ≥ 5.
        2. Swap: x = 2y − 3. Now the domain of the inverse is x ≥ 5 (and y ≥ 4).
        3. Solve: 2y = x + 3, so y = (x + 3)/2.
        4. f⁻¹(x) = (x + 3)/2 for x ≥ 5.
        5. Check the join: f(4) = 5 and f⁻¹(5) = 8/2 = 4 ✓.

        📘 Example 3 (book Example 4.6) · f(x) = x² + 2, x ≥ 0

        1. y = x² + 2 with x ≥ 0 gives y ≥ 2. The range of f is y ≥ 2.
        2. Swap: x = y² + 2, so y² = x − 2, with the inverse's domain x ≥ 2.
        3. This gives y = ±√(x − 2). The inverse's range is the old domain, y ≥ 0, so take the + sign.
        4. f⁻¹(x) = √(x − 2) for x ≥ 2.
        5. Part (ii): f(7) = 7² + 2 = 51 and f⁻¹f(7) = f⁻¹(51) = √49 = 7. We are back at the start.
        24682468xy(4, 5)(5, 4)ff⁻¹ 24682468xy(0, 2)(2, 0)ff⁻¹ Example 2: line and its restricted reflection Example 3: x² + 2 and √(x − 2)
        Both pairs mirror each other in the dashed line y = x. Only the restricted part of the line is reflected in Example 2.

        📘 Example 4 · A fraction function: f(x) = (x + 1)/(x − 3), x ≠ 3

        1. y = (x + 1)/(x − 3). Swap: x = (y + 1)/(y − 3).
        2. Clear the fraction: x(y − 3) = y + 1, so xy − 3x = y + 1.
        3. Collect the y terms: xy − y = 3x + 1, so y(x − 1) = 3x + 1.
        4. f⁻¹(x) = (3x + 1)/(x − 1), x ≠ 1.
        5. Why x ≠ 1? The range of f never reaches 1 ((x + 1)/(x − 3) = 1 has no solution). Range of f = domain of f⁻¹.
        6. Check: f(5) = 6/2 = 3 and f⁻¹(3) = 10/2 = 5 ✓.

        📘 Example 5 · A quadratic: f(x) = x² − 4x + 1, x ≥ 2

        1. Complete the square: y = (x − 2)² − 3. With x ≥ 2 the range is y ≥ −3.
        2. Swap: x = (y − 2)² − 3, so (y − 2)² = x + 3.
        3. Square root: y − 2 = ±√(x + 3). The inverse has range y ≥ 2, so take +.
        4. f⁻¹(x) = 2 + √(x + 3), x ≥ −3.
        5. Check: f(5) = 25 − 20 + 1 = 6 and f⁻¹(6) = 2 + √9 = 5 ✓.

        A function and its inverse cancel

        • f⁻¹f(x) = x and ff⁻¹(x) = x. Each undoes the other.
        • If f⁻¹ = f the function is self-inverse. Examples: f(x) = 1/x and f(x) = k − x. Its graph is symmetric in y = x.
        • Inverse of a composite: (fg)⁻¹ = g⁻¹f⁻¹. Undo in reverse order (socks on, then shoes on; shoes off, then socks off).

        📘 Example 6 · f(x) = 2x, g(x) = x + 3: check (fg)⁻¹ = g⁻¹f⁻¹

        1. fg(x) = f(x + 3) = 2x + 6. Inverse: y = 2x + 6, swap x = 2y + 6, y = (x − 6)/2.
        2. f⁻¹(x) = x/2 and g⁻¹(x) = x − 3.
        3. g⁻¹f⁻¹(x) = g⁻¹(x/2) = x/2 − 3 = (x − 6)/2 ✓. The two answers match.

        🧪 Try it: linear function lab

        f(x) = ax + b and g(x) = cx + d. The tool builds fg, gf and the inverses.

          ✏️ Try it

          1. Find the inverse of f(x) = 5 − 2x, x ∈ ℝ.
          2. Find the inverse of f(x) = x² + 3, x ≥ 0, with its domain.
          3. f(x) = 2x + 1 for x ≥ 3. Find f⁻¹(x) and its domain.
          Answers

          1. Step 1: y = 5 − 2x.
          Step 2: swap: x = 5 − 2y.
          Step 3: 2y = 5 − x, so f⁻¹(x) = (5 − x)/2, x ∈ ℝ.
          Step 4: check f(1) = 3 and f⁻¹(3) = 1 ✓ (this f is also its own type: a straight line, one-to-one).

          2. Step 1: y = x² + 3, x ≥ 0, so range y ≥ 3.
          Step 2: swap: x = y² + 3, so y² = x − 3.
          Step 3: the new range is y ≥ 0, so take the positive root.
          Step 4: f⁻¹(x) = √(x − 3), x ≥ 3.

          3. Step 1: range of f: f(3) = 7, so y ≥ 7.
          Step 2: swap: x = 2y + 1, so y = (x − 1)/2.
          Step 3: f⁻¹(x) = (x − 1)/2, x ≥ 7. Check: f⁻¹(7) = 3 ✓.

          Next: transformations of graphs →

          Transformations of graphs 9709 syllabus

          📌 This tab is syllabus content, not a section of the book's Chapter 4. The book meets the ideas in its Trigonometry chapter; the explanations, examples and questions here are Guru Jazzy's own.

          • A transformation changes the graph of y = f(x) into a new graph with a related equation.
          • Three kinds: translations (slide), stretches (pull or squash) and reflections (flip).
          • It is composite functions again: y = f(x + a) is fg(x) with g(x) = x + a; y = f(x) + a is gf(x) with g(x) = x + a applied last.
          y = a f( bx + c ) + d INSIDE the bracket: acts on x does the opposite of what it looks like b: stretch ∥ x-axis, factor 1/b c: translate x by −c/b OUTSIDE the bracket: acts on y does exactly what it says a: stretch ∥ y-axis, factor a d: translate y by +d
          Inside the bracket: opposite. Outside: as written. Negative signs are reflections.
          New graphTransformation of y = f(x)Point (x, y) goes to
          y = f(x) + atranslation by the vector (0, a): up a(x, y + a)
          y = f(x + a)translation by (−a, 0): left a(x − a, y)
          y = a f(x)stretch parallel to the y-axis, scale factor a(x, a y)
          y = f(a x)stretch parallel to the x-axis, scale factor 1/a(x/a, y)
          y = −f(x)reflection in the x-axis(x, −y)
          y = f(−x)reflection in the y-axis(−x, y)

          Translations

          • y = f(x) + a: every y goes up by a. Down if a is negative.
          • y = f(x + a): the graph slides left by a (right if a is negative). It feels backwards but it is true.
          • Why: for y = f(x − 3), the output at x = 3 is f(0). The height f(0) used to be at x = 0, now it is 3 further right.
          −4−224246xy(0, 2)x² + 2x² −4−224246xy y = x² + 2: up 2, vector (0, 2) (x − 3)² right 3, (x + 2)² left 2
          The grey dashed curve is y = x². The coloured curves are its translations. In the right panel the curve on the right is (x − 3)² and the curve on the left is (x + 2)². The “inside” change moves along the x-axis the opposite way to the sign.

          📘 Example 1 · Describe y = (x − 3)² + 2 as a transformation of y = x²

          1. Start with f(x) = x². Then y = f(x − 3) + 2.
          2. f(x − 3): translate 3 to the right, vector (3, 0).
          3. + 2: translate 2 up, vector (0, 2).
          4. Together: translation by the vector (3, 2). The vertex moves from (0, 0) to (3, 2).

          📘 Example 2 · Complete the square to see the transformation (link to the book's Exercise 4B Q8)

          Describe y = x² + 6x + 2 as a transformation of y = x².

          1. x² + 6x + 2 = (x + 3)² − 9 + 2 = (x + 3)² − 7.
          2. (x + 3): translate 3 to the left.
          3. − 7: translate 7 down.
          4. Translation by the vector (−3, −7). The vertex is (−3, −7). Check: 9 − 18 + 2 = −7 ✓.

          📘 Example 3 · Where does a point go?

          The point (2, 5) is on y = f(x). Find its image on y = f(x + 1) − 3.

          1. f(x + 1): translate 1 left, so x = 2 becomes 1.
          2. − 3: translate 3 down, so y = 5 becomes 2.
          3. The image is (1, 2).
          4. Check: at x = 1 the new curve is f(1 + 1) − 3 = f(2) − 3 = 5 − 3 = 2 ✓.

          Stretches

          • y = a f(x): every y is multiplied by a. A stretch parallel to the y-axis, scale factor a.
          • y = f(a x): every x is divided by a. A stretch parallel to the x-axis, scale factor 1/a. So f(2x) is squashed to half the width.
          • Invariant points: for y = a f(x) the points on the x-axis (y = 0) do not move; for y = f(ax) the point on the y-axis (x = 0) does not move.
          • Scale factor under 1 squashes; over 1 stretches.
          −2−112−224xy2f(x)f(x) −2−112−224xyf(2x)f(x) y = 2f(x): roots stay at ±1, y × 2 y = f(2x): y-intercept stays, roots at ±½
          f(x) = x² − 1 (grey dashed). Doubling the outside doubles every height. Doubling the inside halves every width.

          📘 Example 4 · Image points under stretches

          (4, 6) is on y = f(x). Find the image on (a) y = 3f(x) (b) y = f(2x) (c) y = f(x/2).

          1. (a) 3f(x): y × 3, so (4, 18).
          2. (b) f(2x): x ÷ 2, so (2, 6). Check: f(2 × 2) = f(4) = 6 ✓.
          3. (c) f(x/2) = f(½x): the factor a is ½, so x ÷ ½ = x × 2, giving (8, 6). Check: f(8/2) = f(4) = 6 ✓.
          4. Answers: (a) (4, 18), (b) (2, 6), (c) (8, 6).

          Reflections

          • y = −f(x): every y changes sign. Reflection in the x-axis.
          • y = f(−x): every x changes sign. Reflection in the y-axis.
          • Points on the mirror stay put: x-axis intercepts for −f(x), the y-intercept for f(−x).
          −224−224xy(1, 1)(1, −1)f(x)−f(x) −224−224xy(−1, −1)(1, −1)f(−x)f(x) y = −f(x): turned over the x-axis y = f(−x): turned over the y-axis
          f(x) = x² − 2x has its minimum at (1, −1). −f(x) has a maximum at (1, 1). f(−x) = x² + 2x has its minimum at (−1, −1).

          🧪 Simulation: move the graph with a

          Grey dashed: the base curve y = f(x). Second colour: the new curve. Key points are marked on both.

            Combining transformations

            • For y = a f(bx + c) + d, build the graph in the order you would draw it.
            • Rewrite the bracket as f(b(x + c/b)). Then: stretch inside, translate inside, stretch outside, translate outside.
            • Order matters outside: y = 2f(x) + 3 is not y = 2(f(x) + 3) (that is 2f(x) + 6).
            • Order matters inside too: translate before stretch gives a different bracket than stretch before translate.
            y = 3f(2x − 4) + 1 = 3f(2(x − 2)) + 1: follow the point (4, 5) starty = f(x)(4, 5) 1: x ÷ 2f(2x)(2, 5) 2: right 2f(2(x − 2))(4, 5) 3: y × 33f(…)(4, 15) 4: up 13f(…) + 1(4, 16) Check directly at x = 4: y = 3f(2 × 4 − 4) + 1 = 3f(4) + 1 = 3(5) + 1 = 16 ✓ Inside steps (1 and 2) change x only. Outside steps (3 and 4) change y only.
            Four steps, one point followed all the way. Every step is a transformation from the table.

            📘 Example 5 · The order of two transformations matters

            Start with y = x². (a) Reflect in the x-axis, then translate 3 up. (b) Translate 3 up, then reflect in the x-axis.

            1. (a) Reflect: y = −x². Then up 3: y = −x² + 3 = 3 − x². Maximum at (0, 3).
            2. (b) Up 3: y = x² + 3. Then reflect: y = −(x² + 3) = −x² − 3. Maximum at (0, −3).
            3. The two curves are different, so the order matters.

            📘 Example 6 · Describe y = 2(x − 1)² − 3 from y = x²

            1. (x − 1)²: translate 1 right. Gives y = (x − 1)².
            2. 2( … ): stretch scale factor 2 parallel to the y-axis. Gives y = 2(x − 1)².
            3. − 3: translate 3 down. Gives y = 2(x − 1)² − 3.
            4. The vertex goes (0, 0) → (1, 0) → (1, 0) → (1, −3). Check: y = 2(0) − 3 = −3 ✓.

            📘 Example 7 · A sine curve: y = 2 sin 2x + 1

            1. sin 2x: stretch parallel to the x-axis, scale factor ½. The period 360° becomes 180°.
            2. 2 sin 2x: stretch parallel to the y-axis, scale factor 2. The range becomes −2 to 2.
            3. + 1: translate 1 up. The range becomes −1 to 3.
            4. Maximum 3, minimum −1, period 180°. The first maximum is at x = 45°, where sin 90° = 1 and y = 2(1) + 1 = 3 ✓.
            90180270360−1123xy(45°, 3)(135°, −1)y = sin xy = 2 sin 2x + 1
            y = sin x (grey dashed) becomes y = 2 sin 2x + 1 (bold): twice as tall, twice as fast, one unit higher.

            🧪 Simulation: build y = p·f(q(x − r)) + s

            Four sliders, one curve. The steps follow a key point through each transformation.

              ✏️ Try it

              1. Describe the transformation from y = f(x) to y = f(x − 5) + 2.
              2. (3, −2) is on y = f(x). Find its image on y = −3f(x + 1).
              3. y = x² is stretched with scale factor 2 parallel to the x-axis, then translated 1 unit down. Write the new equation.
              Answers

              1. Step 1: f(x − 5) translates 5 to the right.
              Step 2: + 2 translates 2 up.
              Step 3: translation by the vector (5, 2).

              2. Step 1: f(x + 1) moves 1 left: x = 3 becomes 2.
              Step 2: −3f(…) multiplies y by −3: y = −2 becomes 6.
              Step 3: image (2, 6). Check: −3f(2 + 1) = −3f(3) = −3(−2) = 6 ✓.

              3. Step 1: stretch factor 2 parallel to x means replace x by x/2: y = (x/2)² = x²/4.
              Step 2: down 1: y = x²/4 − 1.
              Step 3: check: the point (2, 4) goes to (4, 4); 4²/4 − 1 = 3, and the translation lowers 4 to 3 ✓.

              Next: summary and quiz →

              Chapter summary

              • A mapping links inputs (objects) to outputs (images): one-to-one, many-to-one, one-to-many or many-to-many.
              • A function is one-to-one or many-to-one. Each input gives exactly one output (vertical-line test).
              • Domain = possible inputs. Range = outputs. Cut the domain to avoid ÷ 0 and √(negative).
              • Find a range by sketching, or by completing the square. Check the ends and the turning point.
              • Composite: gf(x) = g[f(x)], f first. Usually gf ≠ fg. f² means ff.
              • gf exists only if the range of f is inside the domain of g.
              • Inverse: exists only for a one-to-one function (horizontal-line test). Restrict the domain if needed.
              • To find f⁻¹: write y = f(x), swap x and y, make y the subject. Domain of f⁻¹ = range of f.
              • The graph of f⁻¹ is the reflection of the graph of f in y = x. f⁻¹f(x) = x = ff⁻¹(x).
              • Transformations: f(x) + a up a · f(x + a) left a · a f(x) y-stretch a · f(ax) x-stretch 1/a · −f(x) flip in the x-axis · f(−x) flip in the y-axis.

              📄 Practice questions

              • The book's Exercises 4A and 4B (all questions) and the transformation questions from Exercise 7F are in the printable assignment for this chapter.
              • It also has a section of transformation questions and a Check yourself set.

              Mini-quiz

              1. f(x) = 2x − 3 and g(x) = x². What is gf(x)?
              2. Which of these mappings is NOT a function?
              3. What is the largest real domain of f(x) = √(2x − 6)?
              4. f(x) = x² + 2 for x ≥ 0. What is f⁻¹(x)?
              5. What is the range of f(x) = x² − 4x + 1 for x ∈ ℝ?
              6. The graph of y = f⁻¹(x) is the graph of y = f(x) reflected in which line?
              7. (3, 4) lies on y = f(x). Where is its image on y = f(x − 2) + 1?
              8. How is y = f(2x) obtained from y = f(x)?
              9. Which transformation maps y = f(x) on to y = −f(x)?
              10. f(x) = x² and g(x) = x + 3. What is fg(2)?
              11. g(x) = x² − 6x + 5 for x ≥ c. What is the least c for which g has an inverse?
              12. f(x) = 3x − 2. What is f⁻¹(7)?

              Source: Pure Mathematics 1 (Hodder Education, Sophie Goldie), Chapter 4 (Functions). The explanations, the Transformations of graphs tab, the Try it answers, the tools, the simulations and the quiz are Guru Jazzy's own. This page is not made or endorsed by Cambridge or Hodder Education.