Domain and range

Domain and range

IB MYP Maths Extended: Revision notes

Studying this course? Keep your progress in one place.

Key facts

  • The domain is the set of allowed inputs (xx); the range is the set of outputs (yy).
  • Write them with inequalities or set notation such as {x∈R:−1≤x≤4}\{x\in\mathbb{R}:-1\le x\le4\}.
  • You cannot divide by zero or take the square root of a negative number.
  • Restricting the domain can change the range.
  • Check whether a vertex lies inside the domain.

Domain and range

The domain is the set of allowed inputs; the range is the set of outputs the function produces.

For f(x)=2x−3f(x)=2x-3 with −1≤x≤4-1\le x\le4 the domain is −1≤x≤4-1\le x\le4. Since f(−1)=−5f(-1)=-5 and f(4)=5f(4)=5, the range is −5≤f(x)≤5-5\le f(x)\le5.

−3−2−1123456−8−6−4−22468xy(-1, -5)(4, 5)f(x) = 2x − 3
f(x) = 2x − 3 for −1 ≤ x ≤ 4: domain across, range up and down

Which of x and y does the domain describe?

Writing domain and range

Use inequalities or set notation; for a mapping, list the outputs once each.

Set notation: {x∈R:−1≤x≤4}\{x\in\mathbb{R}:-1\le x\le4\}, where R\mathbb{R} is the set of real numbers. The symbols ≤\le and ≥\ge include the end value; << and >> do not.

For a mapping, 1→3, 2→5, 3→31\to3,\ 2\to5,\ 3\to3 has range {3,5}\{3,5\}, because repeated outputs are listed once.

−3−2−10123456-14
-1 ≤ x ≤ 4 (both ends included)
−3−2−101234562
x > 2 (2 is not included)

Write the range of the mapping 1→31\to3, 2→52\to5, 3→33\to3.

Domain from a rule

If no domain is given, use the largest set of real numbers that works, avoiding division by zero and square roots of negatives.

  • Division by zero: for 4x−5\frac{4}{x-5} the domain is x≠5x\ne5.
  • Square root of a negative: for x+3\sqrt{x+3} we need x+3≥0x+3\ge0, so x≥−3x\ge-3.
−224681012−8−6−4−22468xyx = 5y = 4/(x − 5)
y = 4/(x − 5): the graph is missing at x = 5
−4−2246810−112345xy(-3, 0)y = √(x + 3)
y = √(x + 3) starts at x = −3

What is the domain of f(x)=x−1f(x)=\sqrt{x-1}?

Restricting a domain

Work out the function at both ends, and check whether a lowest or highest point lies inside the domain.

For f(x)=x2f(x)=x^2 the range is f(x)≥0f(x)\ge0 for all real xx. But for −2≤x≤3-2\le x\le3 the range is 0≤f(x)≤90\le f(x)\le9: the greatest value is at x=3x=3 and the least at x=0x=0.

−4−3−2−112345246810xy(-2, 4)(0, 0)(3, 9)y = x²
y = x² for −2 ≤ x ≤ 3: the range is 0 to 9

Find the range of f(x)=x2f(x)=x^2 for −3≤x≤2-3\le x\le2.

Range of linear and quadratic functions

A quadratic has a vertex: complete the square to find the least or greatest value.

A linear function on all real numbers has range all real numbers (unless it is constant). A quadratic that opens downwards has its vertex as the greatest value.

In context, write domain and range with units and explain what they mean.

−11234567−6−4−224681012xyvertex (3, -4)(1, 0)(5, 0)(0, 5)y = x² − 6x + 5
The vertex (3, −4) is the lowest point

Worked example

Find the range of f(x)=x2−6x+5f(x)=x^2-6x+5 for all real xx.

Find the range of y=−(x−1)2+7y=-(x-1)^2+7.

Try an exam question

Find the range of f(x)=x2−6x+5f(x)=x^2-6x+5 for all real xx.

[3 marks]

That's the notes covered.

Carry on to the next subtopic.

Try a question

Find the range of ff.

1 mark, marked against the mark scheme

Revision notes