Skip to content
IB Diploma ProgrammeSL & HL

Functions, domain and range

Mathematics: Analysis and Approaches SL & HL Chapter Notes

Last updated November 2026

ShareWhatsAppPost

Functions, domain and range notes as a printable PDF.

Read online free. Download a watermarked copy with a free account.

Read the notes

The full Functions, domain and range notes as text: skim, search, and jump between subtopics.

~11 min read

1. Functions and function notation

A function takes an input and gives exactly one output. The set of inputs is the domain. The set of outputs is the range. The graph of a function shows each input x with its output.

The output for an input x is written f(x). Other letters are used for other quantities: v(t) for a speed at time t, C(n) for a cost of n items. Read f(4) as "the value of f when x = 4" and substitute 4 for every x.

A function can be a mathematical model of a real situation, as C(n) models a cost.

f(x) = 3x - 2 ⇒ f(4) = 3(4) - 2 = 10

Worked example 14 marks

The cost, C dollars, of hiring a bicycle for n hours is modelled by C(n) = 5 + 3n.(a) Find C(4).(b) Find the number of hours for which the cost is 26 dollars.

  1. 1

    substitutes n = 4: C(4) = 5 + 3(4) (M1) [1]

  2. 2

    C(4) = 17 (A1) [1]

  3. 3

    sets the output equal to 26: 5 + 3n = 26 (M1) [1]

  4. 4

    3n = 21, so n = 7 hours (A1) [1]

2. Domain and range

The domain is every input for which the rule works. The range is every output the function gives. A square root of a negative number is not real, so the input must keep the number under the root at least zero.

A square root gives zero or a positive number, so the range of a square root function starts at 0. A graph is helpful in visualizing the range: read the lowest and highest y-values it reaches. Write the range using the output, as f(x) ≥ … or y ≥ …. Never write it with x.

f(x) = √(2 - x): domain x ≤ 2, range f(x) ≥ 0

Worked example 14 marks

Determine the largest possible domain, and the range, of f(x) = √(2 - x).

  1. 1

    the number under the root must satisfy 2 - x ≥ 0 (M1) [1]

  2. 2

    domain: x ≤ 2 (A1) [1]

  3. 3

    f(2) = 0, and a square root is never negative, so the smallest output is 0 (R1) [1]

  4. 4

    range: f(x) ≥ 0 (A1) [1]

3. Range of a quadratic from its turning point

The graph of a quadratic is a parabola with an axis of symmetry. The turning point lies on that axis. If a > 0 the parabola opens upwards and the turning point is the lowest point, so the range is f(x) ≥ the y-coordinate of that point.

For f(x) = a(x - p)(x -q) the zeros are p and q. The axis of symmetry is halfway between them, at x = (p + q)/2. That is the x-coordinate of the turning point, and you substitute it into f for the y-coordinate.

x_axis = (p + q)/2

a > 0 ⇒ range f(x) ≥ y_turning point

Worked example 13 marks

Consider the function f(x) = 3(x - 2)(x - q), where x ∈ R and q is a real constant. The axis of symmetry of the graph of f has equation x = 4. Part(a) showed that q = 6.(b) Find the coordinates of the vertex of the graph of f.(c) Hence, write down the range of f.

  1. 1

    recognition that f(4) is required: f(4) = 3(4 - 2)(4 - 6) (M1) [1]

  2. 2

    vertex (4, -12) (A1) [1]

  3. 3

    range: f(x) ≥ -12 (A1) [1]

4. The inverse function

An inverse function reverses or undoes the effect of a function. If f turns 3 into 11, then f⁻¹ turns 11 back into 3. The notation is f⁻¹(x). It is not 1/(f(x)).

Solving f(x) = 10 is equivalent to finding f⁻¹(10), so no formula for f⁻¹ is needed.

Inverse functions exist for one to one functions: each output comes from one input only. The domain of f⁻¹(x) is equal to the range of f(x).

f⁻¹(10) = a Leftrightarrow f(a) = 10

domain of f⁻¹ = range of f

Worked example 12 marks

The function f is defined by f(x) = 4x - 6. Find the value of f⁻¹(10).

  1. 1

    solves f(x) = 10: 4x - 6 = 10 (M1) [1]

  2. 2

    x = 4, so f⁻¹(10) = 4 (A1) [1]

5. The inverse as a reflection, and finding it

The graph of y = f⁻¹(x) is the graph of y = f(x) reflected in the line y = x. A point (a,b) on f becomes the point (b,a) on f⁻¹.

To find a formula for f⁻¹: write y = f(x), swap x and y, then rearrange to make y the subject. Because inputs and outputs swap, the domain of f⁻¹ is the range of f.

(a, b) on f ⇒ (b, a) on f⁻¹

mirror line: y = x

Worked example 14 marks

The function f is defined by f(x) = √(x - 2) for x ≥ 2.(a) Write down the range of f.(b) Find f⁻¹(x).(c) Write down the domain of f⁻¹.

  1. 1

    range of f: f(x) ≥ 0 (A1) [1]

  2. 2

    swaps x and y: x = √(y - 2) (M1) [1]

  3. 3

    y - 2 = x², so f⁻¹(x) = x² + 2 (A1) [1]

  4. 4

    domain of f⁻¹ is the range of f: x ≥ 0 (A1) [1]

Recap

  • A function gives one output for each input. The set of inputs is the domain and the set of outputs is the range.
  • Write f(x), v(t) or C(n) and substitute the input. A function can model a real situation.
  • For a square root, the number under the root must be at least 0. The output of a square root is at least 0.
  • Write a range with the output: f(x) ≥ … or y ≥ …. A parabola opening upwards has its range from the lowest point.
  • The axis of symmetry of a(x - p)(x - q) is x = (p + q)/2. Put it into f for the y-coordinate.
  • f⁻¹ reverses f. f⁻¹(10) means solve f(x) = 10. It is not 1/(f(10)).
  • The graph of f⁻¹ is the graph of f reflected in y = x. Swap x and y to find the formula. The domain of f⁻¹ is the range of f.

End-of-chapter exercise

Test yourself on the whole chapter. Work through these before moving on.

  1. State the name given to the set of all possible outputs of a function.1 mark
    Answer
    1. range

    Trap: The domain is the set of inputs. The range is the set of outputs.

  2. Do not use a calculator. State the largest possible domain of f(x) = √(x - 5), where x ∈ R.1 mark
    Answer
    1. x - 5 ≥ 0, so x ≥ 5

    Trap: The number under the root may be zero, so x = 5 is allowed. x > 5 or x ≤ 5 is wrong.

  3. Do not use a calculator. The function f is defined by f(x) = x² - 4, where x ∈ R. Find the range of f.2 marks
    Answer
    1. x² ≥ 0 for every x, so the smallest output is -4 (R1)
    2. f(x) ≥ -4 (A1)

    Trap: Do not give the range as f(x) ≥ 0. The graph is the curve y = x² moved down 4, so its lowest point is -4.

  4. Do not use a calculator. The function g is defined by g(x) = 2x + 1. Find g⁻¹(7).2 marks
    Answer
    1. solves g(x) = 7: 2x + 1 = 7 (M1)
    2. x = 3, so g⁻¹(7) = 3 (A1)

    Trap: g⁻¹(7) is not 1/(g(7)) = 1/15. The -1 means inverse function, not a reciprocal.

  5. A taxi company models the cost, C dollars, of a journey of n km by C(n) = 3 + 2n. (a) Find C(5). (b) Find the length of a journey which costs 25 dollars.3 marks
    Answer
    1. (a)
    2. C(5) = 3 + 2(5) = 13 (A1)
    3. (b)
    4. 3 + 2n = 25 (M1)
    5. 2n = 22, so n = 11 km (A1)

    Trap: In (b), 25 is an output, not an input. Substituting n = 25 gives 53, the cost of a 25 km journey.

  6. Do not use a calculator. The function f is defined by f(x) = √(2x - 6). (a) Find the largest possible domain of f. (b) Write down the range of f. (c) Find f(11).3 marks
    Answer
    1. (a)
    2. 2x - 6 ≥ 0, so x ≥ 3 (A1)
    3. (b)
    4. f(x) ≥ 0 (A1)
    5. (c)
    6. f(11) = √(22 - 6) = √16 = 4 (A1)

    Trap: The domain starts at the input where the root is zero, x = 3. The range starts at the output 0. Do not swap them.

  7. The function f is defined by f(x) = 5 - 2x. (a) Find f⁻¹(x). (b) Find f⁻¹(-1).3 marks
    Answer
    1. (a)
    2. swaps x and y: x = 5 - 2y (M1)
    3. 2y = 5 - x, so f⁻¹(x) = (5 - x)/2 (A1)
    4. (b)
    5. f⁻¹(-1) = (5 + 1)/2 = 3 (A1)
    6. check: f(3) = 5 - 6 = -1

    Trap: A sign slip: 5 - (-1) = 6, not 4. Check by putting the answer back into f.

  8. The function f is defined by f(x) = x² + 2 for x ≥ 0. The point (3, 11) lies on the graph of f. (a) Write down the range of f. (b) Write down the domain of f⁻¹. (c) Find f⁻¹(x).4 marks
    Answer
    1. (a)
    2. f(x) ≥ 2 (A1)
    3. (b)
    4. the domain of f⁻¹ is the range of f: x ≥ 2 (A1)
    5. (c)
    6. x = y² + 2 (M1)
    7. y = √(x - 2), the positive root since the range of f⁻¹ is y ≥ 0, so f⁻¹(x) = √(x - 2) (A1)
    8. check: (11, 3) lies on f⁻¹, the reflection of (3, 11) in y = x

    Trap: The domain of f⁻¹ is x ≥ 2, the range of f. It is not x ≥ 0, the domain of f.

  9. Do not use a calculator. The height, h metres, of a ball t seconds after it is thrown upwards is modelled by h(t) = 20t - 5t². The ball lands when h = 0. (a) Find the time at which the ball lands. (b) Find the greatest height of the ball. (c) Write down the range of h for the times from the throw until the ball lands.5 marks
    Answer
    1. (a)
    2. 5t(4 - t) = 0 (M1)
    3. t = 4 seconds (A1)
    4. (b)
    5. the zeros are 0 and 4, so the axis is t = 2 (M1)
    6. h(2) = 40 - 20 = 20 m (A1)
    7. (c)
    8. 0 ≤ h(t) ≤ 20 (A1)

    Trap: The range is between the ground and the greatest height. h(t) ≤ 20 alone lets the height go below the ground.

  10. Do not use a calculator. The function f is defined by f(x) = 2(x - 1)(x - 7) for x ≥ 4. (a) Find the coordinates of the vertex of the graph of f. (b) Hence, write down the range of f. (c) Explain why the inverse function f⁻¹ exists. (d) Write down the domain of f⁻¹. (e) Determine the value of f⁻¹(14).8 marks
    Answer
    1. (a)
    2. the axis of symmetry is halfway between the zeros 1 and 7: x = 4 (M1)
    3. f(4) = 2(3)(-3) = -18, so the vertex is (4, -18) (A1)
    4. (b)
    5. f(x) ≥ -18 (A1)
    6. (c)
    7. the vertex is at x = 4, so for x ≥ 4 the graph only rises: f is one to one, each output comes from one input (R1)
    8. (d)
    9. the domain of f⁻¹ is the range of f: x ≥ -18 (A1)
    10. (e)
    11. solves f(x) = 14: 2(x - 1)(x - 7) = 14, so x² - 8x + 7 = 7 (M1)
    12. x(x - 8) = 0, so x = 0 or x = 8 (A1)
    13. x = 0 is not in the domain x ≥ 4, so f⁻¹(14) = 8 (A1)
    14. check: f(8) = 2(7)(1) = 14

    Trap: Solving f(x) = 14 gives two roots; x = 0 lies outside the domain x ≥ 4, so f⁻¹(14) = 0 is wrong.

Say this, not that

Wording that loses the mark, against the wording the mark scheme credits.

Loses the markGets the mark
The range is x ≥ -12Range: f(x) ≥ -12 (accept y ≥ -12): the range is written with the output
q = 6 stated with no workingroots are 2 and q, so 1/2(2 + q) = 4, giving q = 6
The vertex is at x = 4The vertex is (4, -12), or x = 4, y = -12: both coordinates
The range is f(x) > -12Range: f(x) ≥ -12: the minimum value is included

Frequently asked questions

What is the difference between the domain and the range of a function?
The domain is the set of inputs, the values of x for which the rule works. The range is the set of outputs that f(x) can take. For f(x) = √(2 - x) the domain is x ≤ 2, because the number under the root must be at least zero, and the range is f(x) ≥ 0.
How do I find the domain and range of a square root function?
Keep the number under the root at least zero: for √(2 - x), 2 - x ≥ 0 gives x ≤ 2. A square root is never negative, so the smallest output is 0 and the range is f(x) ≥ 0. Write the range with the output, as f(x) ≥ … or y ≥ …, never with x.
How do I find the range of a quadratic function?
Find the turning point. For f(x) = a(x - p)(x - q) the axis of symmetry is x = (p + q)/2, and you substitute it into f for the y-coordinate. For f(x) = 3(x - 2)(x - 6) the vertex is (4, -12). Since a > 0, the parabola opens upwards and the range is f(x) ≥ -12.
What does f⁻¹(10) mean and how do I find it?
f⁻¹(10) is the input that f sends to 10, so you solve f(x) = 10. If f(a) = 10 then f⁻¹(10) = a. For f(x) = 4x - 6, the equation 4x - 6 = 10 gives x = 4, so f⁻¹(10) = 4. The -1 is not a reciprocal: it is not 1/(f(x)).
How do I find the inverse function of f(x) = √(x - 2)?
Write y = f(x), swap x and y, then make y the subject. Here x = √(y - 2), so y - 2 = x² and f⁻¹(x) = x² + 2. The domain of f⁻¹ is the range of f, so x ≥ 0. The graph of f⁻¹ is the reflection of f in the line y = x.
What mistake do students make when writing the range of a function?
Writing the range as x ≥ -12 is wrong, because the range is written with the output: f(x) ≥ -12, or y ≥ -12. The minimum value is included, so use ≥ rather than >. A range is the set of outputs, not the set of inputs.

Free notes are just the start.

Unlock every Workbook and Chapter at a Glance, and generate your own worksheets and predicted papers.

Explore plans

Related chapters