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 f is denoted as:
f(x)=y
where:
- x is the input (independent variable)
- y is the output (dependent variable)
- f is the function name
Examples
- f(x)=2x+3
- g(x)=x2−4
- h(x)=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−2 have domain of all real numbers: R or (−∞,∞)
Rational Functions
For f(x)=x−21, exclude values that make denominator zero:
Domain: x=2
Square Root Functions
For f(x)=x−1, expression under root must be non-negative:
x−1≥0⇒x≥1
Logarithmic Functions
For f(x)=log(x), argument must be positive:
x>0
Finding Range
Method 1: Complete the Square
For f(x)=x2−4x+3:
f(x)=(x−2)2−1
Since (x−2)2≥0, minimum value is −1
Range: f(x)≥−1 or [−1,∞)
Method 2: Solve for x in terms of y
For f(x)=x−12x+1:
y=x−12x+1
y(x−1)=2x+1
yx−y=2x+1
yx−2x=y+1
x(y−2)=y+1
x=y−2y+1
Domain of this becomes: y=2
Range: f(x)=2
Function Operations
Addition/Subtraction
(f+g)(x)=f(x)+g(x)
(f−g)(x)=f(x)−g(x)
Multiplication/Division
(f⋅g)(x)=f(x)⋅g(x)
(gf)(x)=g(x)f(x),g(x)=0
Composite Functions
Composite Function - A function made by combining two or more functions
Notation
(f∘g)(x)=f(g(x)) means "apply g first, then f"
Example
If f(x)=2x+1 and g(x)=x2:
f(g(x))=f(x2)=2(x2)+1=2x2+1
g(f(x))=g(2x+1)=(2x+1)2=4x2+4x+1
Note: f(g(x))=g(f(x)) (composition is not commutative)
Using Function Machines
Think of function as transforming input:
Input→[f]→[g]→Output
This represents g(f(x))
Inverse Functions
Inverse Function - A function that reverses the effect of the original function
Notation
Inverse of f is denoted f−1
Finding Inverse Functions
Steps:
- Write y=f(x)
- Swap x and y
- Solve for y
- This is f−1(x)
Example: Find f−1 where f(x)=2x+3
Step 1: y=2x+3
Step 2: x=2y+3
Step 3: x−3=2y
y=2x−3
Step 4: f−1(x)=2x−3
Verification
f(f−1(x))=x
f−1(f(x))=x
Example Verification
f(f−1(x))=f(2x−3)=2⋅2x−3+3=x−3+3=x ✓
Domain and Range of Inverse
Domain of f−1=Range of f
Range of f−1=Domain of f
Key Points to Remember
- Function must have exactly one output for each input
- Domain is set of possible inputs
- Range is set of possible outputs
- Composite functions apply in specific order: f(g(x)) means g first
- Inverse function reverses the original function
- f(f−1(x))=x for all x in domain
Worked Examples
Example 1: Domain and Range
Find domain and range of f(x)=4−x2
Domain: 4−x2≥0
x2≤4
−2≤x≤2
Domain: [−2,2]
Range: Minimum value: f(±2)=0
Maximum value: f(0)=2
Range: [0,2]
Example 2: Composite Function
If f(x)=x+1 and g(x)=x2, find (f∘g)(2)
(f∘g)(2)=f(g(2))=f(4)=4+1=5
Example 3: Inverse Function
Find the inverse of f(x)=3x+2 and verify
y=3x+2
x=3y+2
3x=y+2
y=3x−2
f−1(x)=3x−2
Verification: f(f−1(x))=f(3x−2)=3(3x−2)+2=33x=x ✓
Practice Questions
-
Find the domain and range of:
- f(x)=x+31
- g(x)=x−5
- h(x)=x2−42x
-
If f(x)=x2+1 and g(x)=2x, find:
- (f∘g)(x)
- (g∘f)(x)
-
Find and verify the inverse of:
- f(x)=5x−2
- g(x)=x+13
Revision Tips
- Domain: where function is defined
- Range: what values function can produce
- Composite: apply function on right first
- Inverse: swap x and y, then solve
- Always check domain restrictions (denominators, roots, logs)