Skip to main content

Functions and Domain/Range

Subject: Additional Mathematics
Topic: 1
Cambridge Code: 4037 / 0606


Introduction to Functions​

Function - A relationship between two variables where for each input value, there is exactly one output value

Notation​

A function ff is denoted as: f(x)=yf(x) = y

where:

  • xx is the input (independent variable)
  • yy is the output (dependent variable)
  • ff is the function name

Examples​

  • f(x)=2x+3f(x) = 2x + 3
  • g(x)=x2−4g(x) = x^2 - 4
  • h(x)=xh(x) = \sqrt{x}

Domain and Range​

Domain​

Domain - The set of all possible input values (x-values) for which the function is defined

Range​

Range - The set of all possible output values (y-values) that the function can produce

Finding Domain​

Polynomial Functions​

Functions like f(x)=x2+3x−2f(x) = x^2 + 3x - 2 have domain of all real numbers: R\mathbb{R} or (−∞,∞)(-\infty, \infty)

Rational Functions​

For f(x)=1x−2f(x) = \frac{1}{x-2}, exclude values that make denominator zero: Domain: x≠2\text{Domain: } x \neq 2

Square Root Functions​

For f(x)=x−1f(x) = \sqrt{x-1}, expression under root must be non-negative: x−1≥0⇒x≥1x - 1 \geq 0 \Rightarrow x \geq 1

Logarithmic Functions​

For f(x)=log⁡(x)f(x) = \log(x), argument must be positive: x>0x > 0

Finding Range​

Method 1: Complete the Square

For f(x)=x2−4x+3f(x) = x^2 - 4x + 3: f(x)=(x−2)2−1f(x) = (x-2)^2 - 1

Since (x−2)2≥0(x-2)^2 \geq 0, minimum value is −1-1 Range: f(x)≥−1 or [−1,∞)\text{Range: } f(x) \geq -1 \text{ or } [-1, \infty)

Method 2: Solve for x in terms of y

For f(x)=2x+1x−1f(x) = \frac{2x+1}{x-1}: y=2x+1x−1y = \frac{2x+1}{x-1} y(x−1)=2x+1y(x-1) = 2x+1 yx−y=2x+1yx - y = 2x + 1 yx−2x=y+1yx - 2x = y + 1 x(y−2)=y+1x(y-2) = y+1 x=y+1y−2x = \frac{y+1}{y-2}

Domain of this becomes: y≠2y \neq 2 Range: f(x)≠2\text{Range: } f(x) \neq 2


Function Operations​

Addition/Subtraction​

(f+g)(x)=f(x)+g(x)(f+g)(x) = f(x) + g(x) (f−g)(x)=f(x)−g(x)(f-g)(x) = f(x) - g(x)

Multiplication/Division​

(f⋅g)(x)=f(x)⋅g(x)(f \cdot g)(x) = f(x) \cdot g(x) (fg)(x)=f(x)g(x),g(x)≠0\left(\frac{f}{g}\right)(x) = \frac{f(x)}{g(x)}, \quad g(x) \neq 0


Composite Functions​

Composite Function - A function made by combining two or more functions

Notation​

(f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x)) means "apply gg first, then ff"

Example​

If f(x)=2x+1f(x) = 2x + 1 and g(x)=x2g(x) = x^2:

f(g(x))=f(x2)=2(x2)+1=2x2+1f(g(x)) = f(x^2) = 2(x^2) + 1 = 2x^2 + 1

g(f(x))=g(2x+1)=(2x+1)2=4x2+4x+1g(f(x)) = g(2x+1) = (2x+1)^2 = 4x^2 + 4x + 1

Note: f(g(x))≠g(f(x))f(g(x)) \neq g(f(x)) (composition is not commutative)

Using Function Machines​

Think of function as transforming input:

Input→[f]→[g]→Output\boxed{\text{Input}} \rightarrow [f] \rightarrow [g] \rightarrow \boxed{\text{Output}}

This represents g(f(x))g(f(x))


Inverse Functions​

Inverse Function - A function that reverses the effect of the original function

Notation​

Inverse of ff is denoted f−1f^{-1}

Finding Inverse Functions​

Steps:

  1. Write y=f(x)y = f(x)
  2. Swap xx and yy
  3. Solve for yy
  4. This is f−1(x)f^{-1}(x)

Example: Find f−1f^{-1} where f(x)=2x+3f(x) = 2x + 3

Step 1: y=2x+3y = 2x + 3 Step 2: x=2y+3x = 2y + 3 Step 3: x−3=2yx - 3 = 2y y=x−32y = \frac{x-3}{2} Step 4: f−1(x)=x−32f^{-1}(x) = \frac{x-3}{2}

Verification​

f(f−1(x))=xf(f^{-1}(x)) = x f−1(f(x))=xf^{-1}(f(x)) = x

Example Verification​

f(f−1(x))=f(x−32)=2⋅x−32+3=x−3+3=xf(f^{-1}(x)) = f\left(\frac{x-3}{2}\right) = 2 \cdot \frac{x-3}{2} + 3 = x - 3 + 3 = x ✓

Domain and Range of Inverse​

Domain of f−1=Range of f\text{Domain of } f^{-1} = \text{Range of } f Range of f−1=Domain of f\text{Range of } f^{-1} = \text{Domain of } f


Key Points to Remember​

  1. Function must have exactly one output for each input
  2. Domain is set of possible inputs
  3. Range is set of possible outputs
  4. Composite functions apply in specific order: f(g(x))f(g(x)) means gg first
  5. Inverse function reverses the original function
  6. f(f−1(x))=xf(f^{-1}(x)) = x for all xx in domain

Worked Examples​

Example 1: Domain and Range​

Find domain and range of f(x)=4−x2f(x) = \sqrt{4-x^2}

Domain: 4−x2≥04 - x^2 \geq 0 x2≤4x^2 \leq 4 −2≤x≤2-2 \leq x \leq 2 Domain: [−2,2]\text{Domain: } [-2, 2]

Range: Minimum value: f(±2)=0f(\pm 2) = 0 Maximum value: f(0)=2f(0) = 2 Range: [0,2]\text{Range: } [0, 2]

Example 2: Composite Function​

If f(x)=x+1f(x) = x + 1 and g(x)=x2g(x) = x^2, find (f∘g)(2)(f \circ g)(2)

(f∘g)(2)=f(g(2))=f(4)=4+1=5(f \circ g)(2) = f(g(2)) = f(4) = 4 + 1 = 5

Example 3: Inverse Function​

Find the inverse of f(x)=x+23f(x) = \frac{x+2}{3} and verify

y=x+23y = \frac{x+2}{3} x=y+23x = \frac{y+2}{3} 3x=y+23x = y + 2 y=3x−2y = 3x - 2 f−1(x)=3x−2f^{-1}(x) = 3x - 2

Verification: f(f−1(x))=f(3x−2)=(3x−2)+23=3x3=xf(f^{-1}(x)) = f(3x-2) = \frac{(3x-2)+2}{3} = \frac{3x}{3} = x ✓


Practice Questions​

  1. Find the domain and range of:

    • f(x)=1x+3f(x) = \frac{1}{x+3}
    • g(x)=x−5g(x) = \sqrt{x-5}
    • h(x)=2xx2−4h(x) = \frac{2x}{x^2-4}
  2. If f(x)=x2+1f(x) = x^2 + 1 and g(x)=2xg(x) = 2x, find:

    • (f∘g)(x)(f \circ g)(x)
    • (g∘f)(x)(g \circ f)(x)
  3. Find and verify the inverse of:

    • f(x)=5x−2f(x) = 5x - 2
    • g(x)=3x+1g(x) = \frac{3}{x+1}

Revision Tips​

  • Domain: where function is defined
  • Range: what values function can produce
  • Composite: apply function on right first
  • Inverse: swap xx and yy, then solve
  • Always check domain restrictions (denominators, roots, logs)