AxoPrep

Mathematics: Analysis and Approaches

SL 2.2 Concept of a function, domain, range and inverse

A function assigns exactly one output to each allowed input; its domain and range describe those inputs and outputs, and its inverse runs the process backwards. Study guide, 2 practice questions with markschemes and 3 flashcards. Free.

Function notation · Domain and range · Function as a mathematical model · Inverse as reflection in y = x · Identifying whether a relation is a function

Practise all 2 questions Study 3 flashcards

Study guide

What makes a function

A function is a rule that takes each input from a set called the domain and gives back exactly one output. A vending machine is a good picture: press one button, get one item. If one button could give two different items, it would not be a function.

On a graph, use the vertical line test: if any vertical line meets the graph more than once, the relation is not a function. A circle fails; a parabola \(y = x^2\) passes.

Notation

\(f(x) = 3x - 2\) names the function \(f\) and its rule. \(f(4) = 10\) means "input 4 gives output 10". The mapping form \(f : x \mapsto 3x - 2\) says the same thing. Writing \(f(a + 1)\) means replacing every \(x\) with \((a + 1)\), brackets included.

Domain and range

The domain is the set of inputs allowed. Unless one is stated, take the largest set of real numbers for which the rule makes sense. The two usual restrictions are:

The range is the set of outputs actually produced. Find it by thinking about the graph: what \(y\)-values does the curve reach?

Worked example

Let \(f(x) = \sqrt{x - 3}\).

The domain of \(f^{-1}\) is the range of \(f\), which is why the restriction \(x \ge 0\) is essential: without it, \(x^2 + 3\) would not undo \(f\).

Inverse functions

The inverse \(f^{-1}\) reverses \(f\): if \(f(a) = b\) then \(f^{-1}(b) = a\). Graphically, \(y = f^{-1}(x)\) is the reflection of \(y = f(x)\) in the line \(y = x\), because inputs and outputs swap. An inverse exists only if \(f\) is one-to-one: no two inputs give the same output (the horizontal line test). This is why \(x^2\) needs its domain restricted, for example to \(x \ge 0\), before it has an inverse.

Functions as models

A function can describe a real situation, such as the height \(h(t)\) of a ball \(t\) seconds after it is thrown. Then the domain is limited by context: \(t\) cannot be negative and stops when the ball lands. Always ask whether the mathematical domain matches the real one.

Common mistakes

Exam tips

Cheat sheet

Key definitions

Function

A rule that gives exactly one output for each input in its domain.

Domain

The set of input values for which a function is defined.

Range

The set of output values a function actually takes.

One-to-one

A function where different inputs always give different outputs.

Inverse function

The function \(f^{-1}\) that reverses \(f\), so \(f^{-1}(f(x)) = x\).

Vertical line test

A relation is a function if no vertical line crosses its graph more than once.

Practice questions

SLPaper 1Foundation

Question 1

Let \(f(x) = \sqrt{x - 3} + 2\).

(a) [1]

Find \(f(12)\).

Markscheme
  • 1 \(f(12) = 5\)
(b) [1]

Write down the largest possible domain of \(f\).

Markscheme
  • 1 \(x \ge 3\)
(c) [1]

Write down the range of \(f\).

Markscheme
  • 1 \(f(x) \ge 2\)
SLPaper 1Standard

Question 2

Let \(f(x) = \frac{2x + 1}{x - 3}\), \(x \ne 3\).

(a) [4]

Find \(f^{-1}(x)\).

Markscheme
  • 1 Swaps \(x\) and \(y\) (or rearranges \(y = \frac{2x+1}{x-3}\) for \(x\))
  • 1 Multiplies out, e.g. \(xy - 3y = 2x + 1\)
  • 1 Collects terms, e.g. \(x(y - 2) = 3y + 1\)
  • 1 \(f^{-1}(x) = \frac{3x + 1}{x - 2}\)
(b) [1]

Hence write down the range of \(f\).

Markscheme
  • 1 \(f(x) \ne 2\) (all real values except 2)

Key facts

Domain and range of a function

Domain: the set of allowed inputs (\(x\)-values). Range: the set of outputs (\(y\)-values) actually produced.

Two common domain restrictions for real functions

Cannot divide by zero (exclude values making a denominator 0); cannot square-root a negative (need the expression under the root \(\ge 0\)).

How is the graph of \(f^{-1}\) related to the graph of \(f\)?

It is the reflection of \(y = f(x)\) in the line \(y = x\). The domain of \(f^{-1}\) is the range of \(f\), and vice versa.