PYQ Vault

IMAT Mathematics · Functions

Functions, Domain, Range and Composition

A function gives exactly one output for each allowed input; the allowed inputs are the domain, the outputs are the range.

Why this matters

The 2024 paper asked for the value of a logarithmic function at a point and then for its reciprocal. Domain conditions also decide the right option in inverse-function items, as in 2023.

Concept 1 of 2: Function, domain and range

Think of a function as a machine: put in a number, get out exactly one number. Some inputs break the machine, such as dividing by zero or taking the logarithm of a negative number. The domain is the set of inputs that work; the range is the set of outputs the machine can actually produce.

Definition

A function ff assigns to each input xx exactly one output f(x)f(x).

  • The domain is the set of allowed inputs. Remove any xx that makes a denominator zero, puts a negative number under a square root, or makes the argument of a logarithm zero or negative.
  • The range is the set of outputs. For example x2+4x^2 + 4 is never below 4, so its range is y≥4y \ge 4.
  • To evaluate f(a)f(a), replace every xx by aa, with brackets.

Worked example

Let f(x)=x−3+1x−5f(x) = \sqrt{x - 3} + \dfrac{1}{x - 5}. Find the domain of ff and the value of f(7)f(7).
Practice this conceptself-check · 4 quick reps

The argument of a logarithm must be strictly positive

ln⁡0\ln 0 does not exist, so the condition is >0> 0, not ≥0\ge 0. A square root is different: 0=0\sqrt{0} = 0 is allowed, so its condition is ≥0\ge 0.

The reciprocal of f(a) is a number, found after evaluating

The reciprocal of f(a)f(a) is 1/f(a)1/f(a): first work out f(a)f(a), then turn it upside down. It is not f(1/a)f(1/a), and it is not the inverse function.

Concept 2 of 2: Composite functions: one function after another

A composite function feeds the output of one machine straight into another. The order matters, because adding then squaring is not the same as squaring then adding. In f(g(x))f(g(x)) the function nearest to xx, here gg, acts first.

Definition

The composite f∘gf \circ g is defined by (f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x)): apply gg first, then ff.

  • In general f(g(x))≠g(f(x))f(g(x)) \ne g(f(x)).
  • To find f(g(x))f(g(x)) as a formula, write ff and replace each xx in it by the whole expression g(x)g(x), in brackets.
  • f(g(x))f(g(x)) exists only where g(x)g(x) lies in the domain of ff.

Composite function

(f∘g)(x)=f(g(x))(f \circ g)(x) = f\big(g(x)\big)
  • ggthe inner function, applied first
  • ffthe outer function, applied to the result

Worked example

Let f(x)=2x+1f(x) = 2x + 1 and g(x)=x2g(x) = x^2. Find f(g(3))f(g(3)), g(f(3))g(f(3)), and formulas for f(g(x))f(g(x)) and g(f(x))g(f(x)).
Practice this conceptself-check · 4 quick reps

In f(g(x)) the inner function g acts first

Read f(g(x))f(g(x)) from the inside out: gg first, then ff. Working left to right gives g(f(x))g(f(x)), which is usually a different function, and IMAT puts both among the options.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (1)

Watch out for (3)

Drill the past-year questions on this topic

Open the bank with this topic pre-filtered.