Skip to main content
SingaporeMathsSyllabus dot point

What makes a relation a function, and how do its domain and range determine its behaviour?

Define a function and its domain and range, decide whether a relation is a function or one-to-one, and find the range of a given function over a stated domain

A focused answer to the H2 Mathematics outcome on functions. The definition of a function, the vertical and horizontal line tests, one-to-one functions, and finding the range from a stated domain.

Generated by Claude Opus 4.89 min answer

Reviewed by: AI editorial process; not yet individually human-reviewed

Have a quick question? Jump to the Q&A page

Jump to a section
  1. What this dot point is asking
  2. The answer
  3. Examples in context
  4. Try this

What this dot point is asking

SEAB wants you to state precisely what a function is, identify its domain and range, decide whether a given relation is a function and whether it is one-to-one, and find the range of a function over a stated domain. This underpins composite functions, inverses and all later graphing work.

The answer

What a function is

A function f\mathrm{f} from a set (the domain) to the real numbers assigns to each element xx of the domain exactly one value f(x)\mathrm{f}(x). The set of all output values is the range.

Two ideas matter from the start:

  • The domain is part of the definition of the function, not an afterthought. The same rule on different domains gives different functions.
  • The range is determined by the rule together with the domain.

The vertical line test

A relation in the xx-yy plane defines yy as a function of xx exactly when every vertical line x=cx = c meets the graph at most once. If some vertical line meets it twice, one input has two outputs and the relation is not a function. A circle and the sideways parabola y2=xy^2 = x both fail this test.

One-to-one functions and the horizontal line test

A function is one-to-one (injective) if different inputs give different outputs: f(a)=f(b)β€…β€ŠβŸΉβ€…β€Ša=b\mathrm{f}(a) = \mathrm{f}(b) \implies a = b. Graphically, every horizontal line meets the graph at most once. A function that is strictly increasing or strictly decreasing on its whole domain is automatically one-to-one. Being one-to-one is the condition for an inverse function to exist.

Finding the range

To find the range of f\mathrm{f} on a stated domain:

  1. Identify the shape (sketch it).
  2. Find any maximum or minimum (often by completing the square for a quadratic, or by calculus).
  3. Check the values at the endpoints of the domain.
  4. Read off the set of achievable outputs.

Examples in context

Example 1. A restricted quadratic. The function f(x)=9βˆ’x2\mathrm{f}(x) = 9 - x^2 for βˆ’1≀x≀2-1 \leq x \leq 2 has a maximum of 99 at x=0x = 0 and endpoint values f(βˆ’1)=8\mathrm{f}(-1) = 8, f(2)=5\mathrm{f}(2) = 5. The lowest value on the domain is 55, so the range is [5,9][5, 9]. The function is not one-to-one here because it rises then falls.

Example 2. A naturally one-to-one model. A savings balance B(t)=1000(1.03)tB(t) = 1000(1.03)^t for tβ‰₯0t \geq 0 is strictly increasing, so it is one-to-one: any balance corresponds to a unique time. Its range is [1000,∞)[1000, \infty), beginning at the initial deposit.

Try this

Q1. State what is meant by a function and by a one-to-one function. [2 marks]

  • Cue. A function gives exactly one output per input; one-to-one means different inputs give different outputs (no horizontal line crosses the graph twice).

Q2. The function f\mathrm{f} is defined by f(x)=(x+1)2βˆ’5\mathrm{f}(x) = (x + 1)^2 - 5 for xβ‰₯βˆ’1x \geq -1. Find the range and state whether f\mathrm{f} is one-to-one. [3 marks]

  • Cue. Minimum βˆ’5-5 at x=βˆ’1x = -1; increasing for xβ‰₯βˆ’1x \geq -1, so range [βˆ’5,∞)[-5, \infty) and one-to-one.

Q3. Explain why the relation x2+y2=4x^2 + y^2 = 4 does not define yy as a function of xx. [2 marks]

  • Cue. A vertical line such as x=0x = 0 meets the circle at y=2y = 2 and y=βˆ’2y = -2, two outputs for one input, failing the vertical line test.

Exam-style practice questions

Practice questions written in the style of SEAB exam questions on this dot point, with worked answer explainers. The year tag is the paper they imitate, not the source.

Original4 marksThe function f\mathrm{f} is defined by f(x)=x2βˆ’4x+7\mathrm{f}(x) = x^2 - 4x + 7 for x∈Rx \in \mathbb{R}, xβ‰₯2x \geq 2. Find the range of f\mathrm{f} and explain why f\mathrm{f} is one-to-one on this domain.
Show worked answer β†’

Complete the square: f(x)=(xβˆ’2)2+3\mathrm{f}(x) = (x - 2)^2 + 3.

The vertex is at x=2x = 2, where f(2)=3\mathrm{f}(2) = 3. For xβ‰₯2x \geq 2 the curve increases, so the minimum value is 33 and the range is fβ‰₯3\mathrm{f} \geq 3, that is [3,∞)[3, \infty).

On xβ‰₯2x \geq 2 the function is strictly increasing, so each output corresponds to exactly one input: any horizontal line meets the graph at most once. Hence f\mathrm{f} is one-to-one.

Markers reward completing the square, identifying the minimum at the domain endpoint, the correct range in interval or inequality form, and a clear one-to-one justification.

Original3 marksA relation is given by y2=xy^2 = x for xβ‰₯0x \geq 0. Determine, with reasons, whether this relation defines yy as a function of xx.
Show worked answer β†’

For a given x>0x > 0 there are two values y=+xy = +\sqrt{x} and y=βˆ’xy = -\sqrt{x}.

A function assigns exactly one output to each input, so a vertical line x=cx = c (for c>0c > 0) meets the graph twice. The relation therefore fails the vertical line test.

Hence y2=xy^2 = x does not define yy as a function of xx. Restricting to yβ‰₯0y \geq 0 (taking y=+xy = +\sqrt{x}) would make it a function.

Markers reward identifying the two outputs, citing the vertical line test, and a correct conclusion with the restriction that fixes it.

Related dot points