Skip to content

Functions and Equations

Function Notation

A function ff maps each element of a set (the domain) to exactly one element of another set (the codomain).

F:X→YF: X \to Y

We write f(x)=yf(x) = y where xx is the input (independent variable) and yy is the output (dependent Variable).

Key Terminology

TermDefinition
DomainSet of all valid inputs
CodomainSet of possible outputs
RangeSet of actual outputs (subset of codomain)
ArgumentThe input value, e.g., xx in f(x)f(x)
ImageThe output for a given input

Vertical Line Test

A relation is a function if and only if every vertical line intersects the graph at most once.


Domain and Range

Finding the Domain

The domain of a real-valued function is restricted by:

  1. Denominators must be non-zero: g(x)≠0g(x) \neq 0
  2. Square roots must have non-negative arguments: g(x)≥0g(x) \ge 0
  3. Logarithms must have positive arguments: g(x)>0g(x) \gt 0

Additional Exam-Style Questions

Question 6 (Paper 2 style)

The function ff is defined as f(x)=2x+3x−1f(x) = \dfrac{2x + 3}{x - 1} for x \in \mathbb{R}$$x \neq 1.

(a) Find the inverse function f−1f^{-1}.

Y={2x+3}{x−1}  ⟹  y(x−1)=2x+3  ⟹  yx−y=2x+3Y = \frac\{2x + 3\}\{x - 1\} \implies y(x-1) = 2x + 3 \implies yx - y = 2x + 3 X(y−2)=y+3  ⟹  x={y+3}{y−2}X(y - 2) = y + 3 \implies x = \frac\{y + 3\}\{y - 2\} F{−1}(x)={x+3}{x−2},x≠2F^\{-1\}(x) = \frac\{x + 3\}\{x - 2\}, \quad x \neq 2

(b) State the domain and range of f−1f^{-1}.

Domain of f−1f^{-1}: x≠2x \neq 2.

Range of f−1f^{-1}: y≠1y \neq 1 (which equals the domain of ff).

(c) Find the value of xx such that f(x)=f−1(x)f(x) = f^{-1}(x).

{2x+3}{x−1}={x+3}{x−2}\frac\{2x+3\}\{x-1\} = \frac\{x+3\}\{x-2\} (2x+3)(x−2)=(x+3)(x−1)(2x+3)(x-2) = (x+3)(x-1) 2x2−x−6=x2+2x−32x^2 - x - 6 = x^2 + 2x - 3 X2−3x−3=0X^2 - 3x - 3 = 0 X={3±{9+12}}{2}={3±{21}}{2}X = \frac\{3 \pm \sqrt\{9+12\}\}\{2\} = \frac\{3 \pm \sqrt\{21\}\}\{2\}

Question 7 (Paper 2 style)

Given f(x)=x2−4x+3f(x) = x^2 - 4x + 3 and g(x)=2x−1g(x) = 2x - 1:

(a) Find (g∘f)(x)(g \circ f)(x) and its range.

(g∘f)(x)=g(x2−4x+3)=2(x2−4x+3)−1=2x2−8x+5(g \circ f)(x) = g(x^2 - 4x + 3) = 2(x^2 - 4x + 3) - 1 = 2x^2 - 8x + 5

Completing the square: 2(x−2)2−32(x - 2)^2 - 3.

Range: [−3,∞)[-3, \infty).

(b) Find the set of values of xx for which (f∘g)(x)<0(f \circ g)(x) \lt 0.

(f∘g)(x)=(2x−1)2−4(2x−1)+3=4x2−4x+1−8x+4+3=4x2−12x+8(f \circ g)(x) = (2x-1)^2 - 4(2x-1) + 3 = 4x^2 - 4x + 1 - 8x + 4 + 3 = 4x^2 - 12x + 8 4x2−12x+8<0  ⟹  x2−3x+2<0  ⟹  (x−1)(x−2)<04x^2 - 12x + 8 \lt 0 \implies x^2 - 3x + 2 \lt 0 \implies (x-1)(x-2) \lt 0

Solution: 1<x<21 \lt x \lt 2.

Question 8 (Paper 1 style)

The function hh is defined by h(x)=∣2x−5∣+∣x+1∣h(x) = |2x - 5| + |x + 1| for all real xx.

Find the minimum value of h(x)h(x).

Critical points at x=2.5x = 2.5 and x=−1x = -1.

Case 1 (x<−1x \lt -1): h(x)=−(2x−5)+−(x+1)=−3x+4h(x) = -(2x-5) + -(x+1) = -3x + 4. Minimum at x=−1x = -1: h(−1)=7h(-1) = 7.

Case 2 (−1≤x≤2.5-1 \le x \le 2.5): h(x)=−(2x−5)+(x+1)=−x+6h(x) = -(2x-5) + (x+1) = -x + 6. Minimum at x=2.5x = 2.5: h(2.5)=3.5h(2.5) = 3.5.

Case 3 (x>2.5x \gt 2.5): h(x)=(2x−5)+(x+1)=3x−4h(x) = (2x-5) + (x+1) = 3x - 4. Minimum at x=2.5x = 2.5: h(2.5)=3.5h(2.5) = 3.5.

Minimum value is 3.53.5 at x=2.5x = 2.5.

For the A-Level treatment of this topic, see Functions.


See Also