This note assumes the reader is already familiar with:
Basic functions: notation, domain, range, evaluation, and graphing.
Linear and quadratic functions: slopes, intercepts, vertex form, factorisation.
Simple graph transformations: translation, reflection, and scaling of y=f(x).
These topics are covered in the introductory Functions note. Readers who have completed the DSE compulsory mathematics core should proceed directly; others should review the introductory functions material first.
This note extends the treatment of functions covered in Functions, focusing on Domain restrictions, composite and inverse functions with non-trivial domains, and graphical Transformations.
Domain and Range
Natural Domain
The natural domain of a function is the largest subset of R for which the function Expression is defined. Restrictions arise from:
Restriction
Condition
Example
Division by zero
Denominator =0
f(x)=x−21: dom(f)=R∖{2}
Even root
Radicand ⩾0
f(x)=x−3: dom(f)=[3,∞)
Logarithm
Argument >0
f(x)=ln(x+1): dom(f)=(−1,∞)
Finding the Range
To find the range of f(x):
Complete the square (for quadratics).
Consider the behaviour of the function at critical points and at the boundaries of the domain.
For rational functions, find horizontal asymptotes and analyse sign changes.
Worked Example 1
Find the domain and range of f(x)=4−x2.
Domain: 4−x2⩾0⟹x2⩽4⟹−2⩽x⩽2.
Range: Since 4−x2 ranges from 0 (at x=±2) to 4 (at x=0), and ⋅ is Non-negative: range(f)=[0,2].
Composite Functions
Definition
Given f and gThe composite f∘g is:
(f∘g)(x)=f(g(x))
Domain of a Composite
dom(f∘g)={x∈dom(g):g(x)∈dom(f)}
Worked Example 2
Let f(x)=x+1 and g(x)=x2−4. Find dom(f∘g).
dom(g)=R.
dom(f)=[−1,∞)So we need g(x)⩾−1I.e., x2−4⩾−1⟹x2⩾3.
dom(f∘g)=(−∞,−3]∪[3,∞)
Worked Example 3
Let f(x)=x1 and g(x)=x+1. Find f∘g, g∘fAnd their domains.
(f∘g)(x)=f(g(x))=f(x+1)=x+11dom=R∖{−1}.
(g∘f)(x)=g(f(x))=g(x1)=x1+1dom=R∖{0}.
Inverse Functions
Existence Condition
A function f has an inverse f−1 if and only if f is bijective (one-to-one and onto). If the Natural domain of f does not yield injectivity, restrict the domain.
Procedure to Find f−1
Set y=f(x).
Solve for x in terms of y.
Interchange x and y to obtain f−1(x).
The domain of f−1 equals the range of fAnd vice versa.
Graphical Relationship
The graph of y=f−1(x) is the reflection of y=f(x) in the line y=x.
Worked Example 4
Find the inverse of f(x)=x+12x−3 for x=−1.
Set y=x+12x−3.
y(x+1)=2x−3⟹yx+y=2x−3⟹yx−2x=−3−y⟹x(y−2)=−(y+3)
x=y−2−(y+3)=2−yy+3
Therefore f−1(x)=2−xx+3With domain R∖{2}.
Function Transformations
Individual Transformations
Given y=f(x):
| Transformation | Effect on Graph | | -------------- | ------------------------------------------------------------- | --- | ----------------------------------- | | y=f(x)+c | Vertical shift up by c (c>0) or down (c<0) | | | | y=f(x−h) | Horizontal shift right by h (h>0) or left (h<0) | | | | y=af(x) | Vertical stretch by factor ∣a∣; reflect in x-axis if a<0 | | y=f(kx) | Horizontal stretch by factor 1/∣k∣; reflect in y-axis if k<0 |
Combined Transformation: y=af(x+b)+c
Apply in order from inside out:
Horizontal shift by −b
Vertical stretch/reflection by factor a
Vertical shift by c
Worked Example 5
The graph of y=f(x) passes through (2,5) and (4,−1). Find the corresponding points on y=−2f(x−3)+1.
For (2,5): set x−3=2⟹x=5. Then y=−2(5)+1=−9. Point: (5,−9).
For (4,−1): set x−3=4⟹x=7. Then y=−2(−1)+1=3. Point: (7,3).
Worked Example 6
Describe the transformation from y=x to y=3−x+2.
y=−(x−3)+2=f(−(x−3))+2 where f(x)=x.
Reflect in y-axis: y=−x
Shift right by 3: y=−(x−3)=3−x
Shift up by 2: y=3−x+2
Domain: 3−x⩾0⟹x⩽3. Range: [2,∞).
Piecewise Functions
A piecewise function is defined by different expressions on different intervals of its domain.
When finding the domain of f∘gApplying the domain restrictions of f to x instead of to g(x). The argument of f must be valid, so it is g(x) that must fall in dom(f).
Forgetting that f∘g=g∘f . Always check the order.
When finding an inverse, forgetting to verify that the function is one-to-one on the given domain.
Confusing y=f(−x) (reflection in y-axis) with y=−f(x) (reflection in x-axis).
For piecewise functions, using the wrong expression for a given x-value.
Summary Table
Topic
Key Result
Domain of f∘g
{x∈dom(g):g(x)∈dom(f)}
Inverse existence
f must be bijective
f−1(f(x))=x
For all x∈dom(f)
f(f−1(x))=x
For all x∈dom(f−1)
Graph of inverse
Reflection in y=x
y=f(x−h)
Shift right by h
Wrap-up Questions
Question: Let f(x)=x−1x+2 and g(x)=2x−3. Find (f∘g)(x) and its domain.
(f∘g)(x)=f(2x−3)=2x−3−12x−3+2=2x−42x−1.
dom(g)=R. dom(f)=R∖{1}So g(x)=1: 2x−3=1⟹x=2. Also 2x−4=0⟹x=2. dom(f∘g)=R∖{2}.
Question: Find f−1 for f(x)=x−23x+1 (x=2).
Set y=x−23x+1. Then y(x−2)=3x+1⟹yx−2y=3x+1⟹x(y−3)=2y+1.
Worked Example 10: Transformation of multiple points
The graph of y=f(x) passes through (1,4) and has a local minimum at (2,−1). Find the corresponding points on y=2f(3x−6)+5.
Solution
Rewrite: y=2f(3(x−2))+5.
For (1,4) on y=f(x): Set 3(x−2)=1So x−2=31Giving x=37.
y=2(4)+5=13
Corresponding point: (37,13).
For the minimum at (2,−1): Set 3(x−2)=2So x−2=32Giving x=38.
y=2(−1)+5=3
Corresponding point: (38,3). This is the minimum of the transformed graph.
Worked Example 11: Composite with logarithm
Let f(x)=ln(x−1) and g(x)=x2+1. Find (f∘g)(x), (g∘f)(x)And their domains.
Solution
dom(g)=R, dom(f)=(1,∞).
(f∘g)(x)=f(g(x))=ln(x2+1−1)=ln(x2).
Domain: need g(x)∈dom(f)I.e., x2+1>1⟹x2>0⟹x=0.
dom(f∘g)=R∖{0}.
(g∘f)(x)=g(f(x))=[ln(x−1)]2+1.
Domain: dom(g∘f)=dom(f)=(1,∞).
Worked Example 12: Self-inverse function
Show that f(x)=x−33x−2 (x=3) is self-inverse.
Solution
Set y=x−33x−2:
y(x−3)=3x−2⟹xy−3y=3x−2⟹xy−3x=3y−2
x(y−3)=3y−2⟹x=y−33y−2
Interchanging x and y:
f−1(x)=x−33x−2=f(x)
Since f−1=fThe function is self-inverse.
Additional Common Pitfalls
Applying domain restrictions to x instead of g(x). When finding dom(f∘g)The condition g(x)∈dom(f) must be applied to the expression g(x)Not to x directly. Always substitute first, then impose domain conditions.
Assuming injectivity on the natural domain. A quadratic ax2+bx+c is only one-to-one on a half-domain (−∞,−b/(2a)] or [−b/(2a),∞). Before finding an inverse, verify or restrict the domain.
Choosing the wrong branch of the inverse. When f(x)=x2 is restricted to (−∞,0]The inverse is f−1(x)=−xNot +x. Always match the sign to the restricted domain.
Composition order confusion.(f∘g)(x)=f(g(x)) means g is applied first, then f. The notation reads right-to-left: (f∘g)(x) is ”f of g of x”.
Transformation order errors. For y=af(kx+b)+cApply from inside out: horizontal shift by −bHorizontal stretch by 1/kVertical stretch by aVertical shift by c. Mixing up this order is a very common mistake.
Ignoring the range when checking invertibility. Even if f is one-to-one on its domain, the codomain must equal the range for f to be bijective. In DSE problems, the codomain is assumed to be the range unless stated otherwise.
Forgetting that f∘g and g∘f differ. , f∘g=g∘f. Always compute each separately and check domains independently.
Piecewise function boundary values. At the boundary between two pieces, always check which expression applies. If the definition uses ≤ for one piece and < for the next, the boundary point belongs to the ≤ piece.
Exam-Style Problems
Problem 1. Let f(x)=x−12x+3 (x=1) and g(x)=x+2. Find (f∘g)(x) and its domain.
Solution
(f∘g)(x)=f(x+2)=x+2−12x+2+3
dom(g)=[−2,∞). dom(f)=R∖{1}.
Need x+2=1⟹x+2=1⟹x=−1.
dom(f∘g)=[−2,−1)∪(−1,∞).
Problem 2. Find the inverse of f(x)=x+32x−1 (x=−3). Hence determine whether f(x)=f−1(x) has any real solutions.
Solution
Set y=x+32x−1: y(x+3)=2x−1⟹xy+3y=2x−1⟹x(y−2)=−1−3y.
f−1(x)=x−2−1−3x=2−x3x+1
For f(x)=f−1(x):
x+32x−1=2−x3x+1
(2x−1)(2−x)=(3x+1)(x+3)
4x−2x2−2+x=3x2+9x+x+3
−2x2+5x−2=3x2+10x+3
−5x2−5x−5=0⟹x2+x+1=0
Δ=1−4=−3<0. No real solutions.
Problem 3. The function f is defined by f(x)=x2+4x for x≥−2. Find f−1(5).
Solution
f(x)=(x+2)2−4. Since x≥−2 and the vertex is at x=−2, f is strictly increasing.
Range: [−4,∞). Since 5≥−4, f−1(5) exists.
Set (x+2)2−4=5⟹(x+2)2=9⟹x+2=3 (positive root).
x=1
f−1(5)=1. Verification: f(1)=1+4=5. Correct.
Problem 4. Describe fully the sequence of transformations mapping y=x2 to y=2(3−x)2+1.
Solution
y=2(3−x)2+1=2[−(x−3)]2+1=2(x−3)2+1.
Translate right by 3 units: y=(x−3)2.
Vertical stretch by factor 2: y=2(x−3)2.
Translate up by 1 unit: y=2(x−3)2+1.
The vertex moves from (0,0) to (3,1). The parabola opens upward in both cases.
Problem 5. Let f(x)=x+11 (x=−1) and g(x)=x2. Find (f∘g∘f)(x) and its domain.
Since (x+1)21≥0 for all x=−1The second expression is always at least 1>0.
dom(f∘g∘f)=R∖{−1}.
Problem 6. Given f(x)=∣2x−1∣+∣x+3∣Find the minimum value of f.
Solution
Critical points: 2x−1=0⟹x=21And x+3=0⟹x=−3.
For x<−3: f(x)=−(2x−1)+−(x+3)=−3x−2 (decreasing as x increases).
For −3≤x<21: f(x)=−(2x−1)+(x+3)=−x+4 (decreasing).
For x≥21: f(x)=(2x−1)+(x+3)=3x+2 (increasing).
The minimum occurs at the transition from decreasing to increasing, i.e., at x=21:
f(21)=3(21)+2=27
Minimum value: 27Attained at x=21.
Problem 7. If f(x)=x2+1xFind the range of f.
Solution
Let y=x2+1x. Then yx2+y=x⟹yx2−x+y=0.
For real xThis quadratic in x must have Δ≥0:
Δ=1−4y2≥0⟹y2≤41⟹−21≤y≤21
When y=21: 21x2−x+21=0⟹(x−1)2=0⟹x=1. Attainable.
When y=−21: 21x2+x+21=0⟹(x+1)2=0⟹x=−1. Attainable.
Range: [−21,21].
Problem 8. If f(x)=2x−1 and g(x)=x+3Find the linear function h(x) such that (f∘h)(x)=(g∘f)(x) for all x.
Solution
(g∘f)(x)=g(2x−1)=2x−1+3=2x+2.
(f∘h)(x)=f(h(x))=2h(x)−1.
Setting equal: 2h(x)−1=2x+2⟹h(x)=x+23.
Verification: (f∘h)(x)=2(x+23)−1=2x+2. Correct.
Cross-References
Basic Functions: Foundational definitions and notation are in Functions.
Quadratics: Quadratic functions feature heavily in inverse function problems. See Quadratics.
Inequalities: Domain restrictions often involve solving inequalities. See the inequalities notes.
Coordinate Geometry: Graphical interpretations of functions and transformations. See Coordinate Geometry.
:::tip Diagnostic Test Ready to test your understanding of Functions (Advanced)? The contains the hardest questions within the DSE specification for this topic, each with a full worked solution.
Unit tests probe edge cases and common misconceptions. Integration tests combine Functions (Advanced) with other DSE mathematics topics to test synthesis under exam conditions.
See for instructions on self-marking and building a personal test matrix.
DSE Exam Technique
Showing Working
For function problems in DSE Paper 1:
When finding the domain of a composite function, explicitly state dom(g) and the condition g(x)∈dom(f).
When finding an inverse, write y=f(x)Solve for xAnd then interchange.
When checking invertibility, verify that the function is one-to-one (strictly increasing or decreasing on the domain).
For transformation problems, identify the sequence of transformations from inside out.
Significant Figures
Coordinate answers should be exact where possible. Decimal answers to 3 significant figures.
Common DSE Question Types
Domain of composite functions (especially with square roots and rational functions).
Transformation of points (tracking specific points through a series of transformations).
Self-inverse verification (show f−1=f).
Range finding (using the discriminant method for rational functions).
Additional Worked Examples
Worked Example 13: Domain with nested functions
Let f(x)=x−21 and g(x)=x2+1. Find dom(f∘g) and dom(g∘f).
Solution
dom(f)=(2,∞) (need x−2>0). dom(g)=R.
f∘g: Need g(x)∈dom(f)I.e., x2+1>2⟹x2>1⟹x<−1 or x>1.
dom(f∘g)=(−∞,−1)∪(1,∞).
g∘f: Need x∈dom(f)=(2,∞).
dom(g∘f)=(2,∞).
Worked Example 14: Inverse of a restricted rational function
Let f(x)=x−32x for x>3. Find f−1.
Solution
First, check one-to-one: f(x)=2+x−36. For x>3, x−3>0So x−36>0 and is strictly decreasing. Therefore f is strictly decreasing and hence one-to-one on (3,∞).
Set y=x−32x:
y(x−3)=2x⟹yx−3y=2x⟹x(y−2)=3y
x=y−23y
f−1(x)=x−23x
To find the domain of f−1: since range(f) must equal dom(f−1).
As x \to 3^+$$f(x) \to +\infty. As x \to +\infty$$f(x) \to 2^+.
range(f)=(2,∞)So dom(f−1)=(2,∞).
Worked Example 15: Even and odd functions
Determine whether f(x)=x2+1x is even, odd, or neither.
Solution
f(−x)=(−x)2+1−x=x2+1−x=−f(x)
Since f(−x)=−f(x) for all real x, f is an odd function.
Worked Example 16: Range using discriminant
Find the range of f(x)=x2+x+1x2−x+1.
Solution
Let y=x2+x+1x2−x+1. Since x2+x+1=(x+21)2+43>0 for all x:
y(x2+x+1)=x2−x+1⟹(y−1)x2+(y+1)x+(y−1)=0
For real x, Δ≥0:
(y+1)2−4(y−1)2≥0⟹(y+1−2y+2)(y+1+2y−2)≥0
(−y+3)(3y−1)≥0⟹(y−3)(3y−1)≤0⟹31≤y≤3
Range: [31,3].
DSE Exam-Style Questions
DSE Practice 1. Let f(x)=x+23x−1 and g(x)=x−1x+1. Find (g∘f)(2).
Solution
f(2)=2+26−1=45.
(g∘f)(2)=g(45)=5/4−15/4+1=1/49/4=9.
DSE Practice 2. The function f is defined by f(x)=2x2−8x+5 for x≥2. Find the range of f and the value of x for which f(x)=1.
Solution
f(x)=2(x−2)2−3. Since x≥2 and the vertex is at x=2: range is [−3,∞).
2(x−2)2−3=1⟹(x−2)2=2⟹x=2+2 (positive root since x≥2).
DSE Practice 3. The graph of y=f(x) passes through (0,−1) and has a local maximum at (3,4). Find the coordinates of the corresponding points on y=−f(2x+1)+3.
Solution
For (0,−1): 2x+1=0⟹x=−21. y=−(−1)+3=4. Point: (−21,4).
For the maximum at (3,4): 2x+1=3⟹x=1. y=−(4)+3=−1. The maximum becomes a minimum at (1,−1).
DSE Practice 4. Let f(x)=x3−3x. Show that f is not one-to-one on RBut is one-to-one on [1,∞). Find f−1(0).
Solution
f(0) = 0$$f(\sqrt{3}) = 3\sqrt{3} - 3\sqrt{3} = 0$$f(-\sqrt{3}) = 0. Since f takes the same value at three different points, it is not one-to-one on R.
For x≥1: f"(x)=3x2−3=3(x2−1)≥0 (with equality only at x=1). So f is strictly increasing on [1,∞) and hence one-to-one.
f−1(0): solve x3−3x=0⟹x(x2−3)=0. On [1,∞): x=3. So f−1(0)=3.
DSE Practice 5. Let h(x)=f(x)+g(x) where f(x)=x2 and g(x)=x−11. Find the domain of h.