Skip to main content

Functions (Advanced)

This note extends the treatment of functions covered in functions.md), 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}\mathbb{'\{'}R{'\}'} for which the function expression is defined. Restrictions arise from:

RestrictionConditionExample
Division by zeroDenominator 0\neq 0f(x)=1x2f(x) = \dfrac{1}{x - 2}: dom(f)={R}{2}\mathrm{dom}(f) = \mathbb{'\{'}R{'\}'} \setminus \{2\}
Even rootRadicand 0\geqslant 0f(x)=x3f(x) = \sqrt{x - 3}: dom(f)=[3,)\mathrm{dom}(f) = [3, \infty)
LogarithmArgument >0\gt 0f(x)=ln(x+1)f(x) = \ln(x + 1): dom(f)=(1,)\mathrm{dom}(f) = (-1, \infty)

Finding the Range

To find the range of f(x)f(x):

  1. Complete the square (for quadratics).
  2. Consider the behaviour of the function at critical points and at the boundaries of the domain.
  3. For rational functions, find horizontal asymptotes and analyse sign changes.

Worked Example 1

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

Domain: 4x20    x24    2x24 - x^2 \geqslant 0 \implies x^2 \leqslant 4 \implies -2 \leqslant x \leqslant 2.

Range: Since 4x24 - x^2 ranges from 00 (at x=±2x = \pm 2) to 44 (at x=0x = 0), and \sqrt{\cdot} is non-negative: range(f)=[0,2]\mathrm{range}(f) = [0, 2].


Composite Functions

Definition

Given ff and gg, the composite fgf \circ g is:

(fg)(x)=f(g(x))(f \circ g)(x) = f(g(x))

Domain of a Composite

dom(fg)={xdom(g):g(x)dom(f)}\mathrm{dom}(f \circ g) = \{x \in \mathrm{dom}(g) : g(x) \in \mathrm{dom}(f)\}

Worked Example 2

Let f(x)=x+1f(x) = \sqrt{x + 1} and g(x)=x24g(x) = x^2 - 4. Find dom(fg)\mathrm{dom}(f \circ g).

dom(g)={R}\mathrm{dom}(g) = \mathbb{'\{'}R{'\}'}.

dom(f)=[1,)\mathrm{dom}(f) = [ -1, \infty), so we need g(x)1g(x) \geqslant -1, i.e., x241    x23x^2 - 4 \geqslant -1 \implies x^2 \geqslant 3.

dom(fg)=(,3][3,)\mathrm{dom}(f \circ g) = (-\infty, -\sqrt{3}] \cup [\sqrt{3}, \infty)

Worked Example 3

Let f(x)=1xf(x) = \dfrac{1}{x} and g(x)=x+1g(x) = x + 1. Find fgf \circ g, gfg \circ f, and their domains.

(fg)(x)=f(g(x))=f(x+1)=1x+1(f \circ g)(x) = f(g(x)) = f(x + 1) = \dfrac{1}{x + 1}, dom={R}{1}\mathrm{dom} = \mathbb{'\{'}R{'\}'} \setminus \{-1\}.

(gf)(x)=g(f(x))=g ⁣(1x)=1x+1(g \circ f)(x) = g(f(x)) = g\!\left(\dfrac{1}{x}\right) = \dfrac{1}{x} + 1, dom={R}{0}\mathrm{dom} = \mathbb{'\{'}R{'\}'} \setminus \{0\}.


Inverse Functions

Existence Condition

A function ff has an inverse f1f^{-1} if and only if ff is bijective (one-to-one and onto). If the natural domain of ff does not yield injectivity, restrict the domain.

Procedure to Find f1f^{-1}

  1. Set y=f(x)y = f(x).
  2. Solve for xx in terms of yy.
  3. Interchange xx and yy to obtain f1(x)f^{-1}(x).

The domain of f1f^{-1} equals the range of ff, and vice versa.

Graphical Relationship

The graph of y=f1(x)y = f^{-1}(x) is the reflection of y=f(x)y = f(x) in the line y=xy = x.

Worked Example 4

Find the inverse of f(x)=2x3x+1f(x) = \dfrac{2x - 3}{x + 1} for x1x \neq -1.

Set y=2x3x+1y = \dfrac{2x - 3}{x + 1}.

y(x+1)=2x3    yx+y=2x3    yx2x=3y    x(y2)=(y+3)y(x + 1) = 2x - 3 \implies yx + y = 2x - 3 \implies yx - 2x = -3 - y \implies x(y - 2) = -(y + 3)

x=(y+3)y2=y+32yx = \frac{-(y + 3)}{y - 2} = \frac{y + 3}{2 - y}

Therefore f1(x)=x+32xf^{-1}(x) = \dfrac{x + 3}{2 - x}, with domain {R}{2}\mathbb{'\{'}R{'\}'} \setminus \{2\}.


Function Transformations

Individual Transformations

Given y=f(x)y = f(x):

| Transformation | Effect on Graph | | -------------- | ------------------------------------------------------------- | --- | ----------------------------------- | | y=f(x)+cy = f(x) + c | Vertical shift up by cc (c>0c \gt 0) or down (c<0c \lt 0) | | | | y=f(xh)y = f(x - h) | Horizontal shift right by hh (h>0h \gt 0) or left (h<0h \lt 0) | | | | y=af(x)y = af(x) | Vertical stretch by factor a | a |; reflect in xx-axis if a<0a \lt 0 | | y=f(kx)y = f(kx) | Horizontal stretch by factor 1/k1/ | k | ; reflect in yy-axis if k<0k \lt 0 |

Combined Transformation: y=af(x+b)+cy = af(x + b) + c

Apply in order from inside out:

  1. Horizontal shift by b-b
  2. Vertical stretch/reflection by factor aa
  3. Vertical shift by cc

Worked Example 5

The graph of y=f(x)y = f(x) passes through (2,5)(2, 5) and (4,1)(4, -1). Find the corresponding points on y=2f(x3)+1y = -2f(x - 3) + 1.

For (2,5)(2, 5): set x3=2    x=5x - 3 = 2 \implies x = 5. Then y=2(5)+1=9y = -2(5) + 1 = -9. Point: (5,9)(5, -9).

For (4,1)(4, -1): set x3=4    x=7x - 3 = 4 \implies x = 7. Then y=2(1)+1=3y = -2(-1) + 1 = 3. Point: (7,3)(7, 3).

Worked Example 6

Describe the transformation from y=xy = \sqrt{x} to y=3x+2y = \sqrt{3 - x} + 2.

y=(x3)+2=f((x3))+2y = \sqrt{-(x - 3)} + 2 = f(-(x - 3)) + 2 where f(x)=xf(x) = \sqrt{x}.

  1. Reflect in yy-axis: y=xy = \sqrt{-x}
  2. Shift right by 3: y=(x3)=3xy = \sqrt{-(x - 3)} = \sqrt{3 - x}
  3. Shift up by 2: y=3x+2y = \sqrt{3 - x} + 2

Domain: 3x0    x33 - x \geqslant 0 \implies x \leqslant 3. Range: [2,)[2, \infty).


Piecewise Functions

A piecewise function is defined by different expressions on different intervals of its domain.

Worked Example 7

f(x)={x2ifx<02x+1if0x310xifx>3f(x) = \begin{cases} x^2 & \mathrm{if } x \lt 0 \\ 2x + 1 & \mathrm{if } 0 \leqslant x \leqslant 3 \\ 10 - x & \mathrm{if } x \gt 3 \end{cases}

Find f(2)f(-2), f(0)f(0), f(3)f(3), and f(5)f(5).

f(2)=(2)2=4f(-2) = (-2)^2 = 4, f(0)=2(0)+1=1f(0) = 2(0) + 1 = 1, f(3)=2(3)+1=7f(3) = 2(3) + 1 = 7, f(5)=105=5f(5) = 10 - 5 = 5.


Common Pitfalls

  • When finding the domain of fgf \circ g, applying the domain restrictions of ff to xx instead of to g(x)g(x). The argument of ff must be valid, so it is g(x)g(x) that must fall in dom(f)\mathrm{dom}(f).
  • Forgetting that fggff \circ g \neq g \circ f in general. 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)y = f(-x) (reflection in yy-axis) with y=f(x)y = -f(x) (reflection in xx-axis).
  • For piecewise functions, using the wrong expression for a given xx-value.

Summary Table

TopicKey Result
Domain of fgf \circ g{xdom(g):g(x)dom(f)}\{x \in \mathrm{dom}(g) : g(x) \in \mathrm{dom}(f)\}
Inverse existenceff must be bijective
f1(f(x))=xf^{-1}(f(x)) = xFor all xdom(f)x \in \mathrm{dom}(f)
f(f1(x))=xf(f^{-1}(x)) = xFor all xdom(f1)x \in \mathrm{dom}(f^{-1})
Graph of inverseReflection in y=xy = x
y=f(xh)y = f(x - h)Shift right by hh

Wrap-up Questions
  1. Question: Let f(x)=x+2x1f(x) = \dfrac{x + 2}{x - 1} and g(x)=2x3g(x) = 2x - 3. Find (fg)(x)(f \circ g)(x) and its domain.

(fg)(x)=f(2x3)=2x3+22x31=2x12x4(f \circ g)(x) = f(2x - 3) = \dfrac{2x - 3 + 2}{2x - 3 - 1} = \dfrac{2x - 1}{2x - 4}.

dom(g)={R}\mathrm{dom}(g) = \mathbb{'\{'}R{'\}'}. dom(f)={R}{1}\mathrm{dom}(f) = \mathbb{'\{'}R{'\}'} \setminus \{1\}, so g(x)1g(x) \neq 1: 2x31    x22x - 3 \neq 1 \implies x \neq 2. Also 2x40    x22x - 4 \neq 0 \implies x \neq 2. dom(fg)={R}{2}\mathrm{dom}(f \circ g) = \mathbb{'\{'}R{'\}'} \setminus \{2\}.

  1. Question: Find f1f^{-1} for f(x)=3x+1x2f(x) = \dfrac{3x + 1}{x - 2} (x2x \neq 2).

Set y=3x+1x2y = \dfrac{3x + 1}{x - 2}. Then y(x2)=3x+1    yx2y=3x+1    x(y3)=2y+1y(x - 2) = 3x + 1 \implies yx - 2y = 3x + 1 \implies x(y - 3) = 2y + 1.

f1(x)=2x+1x3f^{-1}(x) = \dfrac{2x + 1}{x - 3}, dom(f1)={R}{3}\mathrm{dom}(f^{-1}) = \mathbb{'\{'}R{'\}'} \setminus \{3\}.

  1. Question: Let f(x)=x24x+3f(x) = x^2 - 4x + 3 with domain [1,)[1, \infty). Find f1(0)f^{-1}(0).

First find f1f^{-1}. Set y=(x2)21y = (x - 2)^2 - 1. Since domain is [1,)[1, \infty), range is [1,)[-1, \infty).

(x2)2=y+1    x2=y+1(x - 2)^2 = y + 1 \implies x - 2 = \sqrt{y + 1} (positive root since x1x \geqslant 1).

f1(x)=2+x+1f^{-1}(x) = 2 + \sqrt{x + 1}, dom(f1)=[1,)\mathrm{dom}(f^{-1}) = [-1, \infty).

f1(0)=2+0+1=2+1=3f^{-1}(0) = 2 + \sqrt{0 + 1} = 2 + 1 = 3.

Verification: f(3)=912+3=0f(3) = 9 - 12 + 3 = 0. Confirmed.

  1. Question: The graph of y=f(x)y = f(x) has a minimum at (1,2)(1, -2) and passes through (0,3)(0, 3). Find the corresponding points on y=3f(2x)+1y = 3f(2x) + 1.

(1,2)(1, -2) \to set 2x=1    x=0.52x = 1 \implies x = 0.5, y=3(2)+1=5y = 3(-2) + 1 = -5. Point: (0.5,5)(0.5, -5).

(0,3)(0, 3) \to set 2x=0    x=02x = 0 \implies x = 0, y=3(3)+1=10y = 3(3) + 1 = 10. Point: (0,10)(0, 10).

  1. Question: A function ff is defined by f(x)=2x2f(x) = 2 - x^2 for x0x \leqslant 0. State the range of ff and find f1f^{-1}.

Since x0x \leqslant 0: x20x^2 \geqslant 0, so f(x)=2x22f(x) = 2 - x^2 \leqslant 2. As xx \to -\infty, f(x)f(x) \to -\infty. Range: (,2](-\infty, 2].

Set y=2x2    x2=2y    x=2yy = 2 - x^2 \implies x^2 = 2 - y \implies x = -\sqrt{2 - y} (negative root since x0x \leqslant 0).

f1(x)=2xf^{-1}(x) = -\sqrt{2 - x}, dom(f1)=(,2]\mathrm{dom}(f^{-1}) = (-\infty, 2].

  1. Question: Given f(x)=x1f(x) = \sqrt{x - 1} and g(x)=x2+x+1g(x) = x^2 + x + 1, find dom(gf)\mathrm{dom}(g \circ f).

dom(f)=[1,)\mathrm{dom}(f) = [1, \infty), dom(g)={R}\mathrm{dom}(g) = \mathbb{'\{'}R{'\}'}.

(gf)(x)=g(x1)=(x1)2+x1+1=x1+x1+1=x+x1(g \circ f)(x) = g(\sqrt{x - 1}) = (\sqrt{x - 1})^2 + \sqrt{x - 1} + 1 = x - 1 + \sqrt{x - 1} + 1 = x + \sqrt{x - 1}.

Since gg has no domain restriction, dom(gf)=dom(f)=[1,)\mathrm{dom}(g \circ f) = \mathrm{dom}(f) = [1, \infty).

  1. Question: Find the domain and range of f(x)=1x2+1f(x) = \dfrac{1}{x^2 + 1}.

Domain: x2+10x^2 + 1 \neq 0 for all real xx (since x20x^2 \geqslant 0). dom(f)={R}\mathrm{dom}(f) = \mathbb{'\{'}R{'\}'}.

Range: x2+11x^2 + 1 \geqslant 1, so 0<1x2+110 \lt \dfrac{1}{x^2 + 1} \leqslant 1. range(f)=(0,1]\mathrm{range}(f) = (0, 1].

  1. Question: Let f(x)=x3+x+1f(x) = |x - 3| + |x + 1|. Express ff as a piecewise function and find its minimum value.

Critical points at x=3x = 3 and x=1x = -1:

f(x)={(x3)+(x+1)=2x+2ifx<1(x3)+(x+1)=4if1x3(x3)+(x+1)=2x2ifx>3f(x) = \begin{cases} -(x - 3) + -(x + 1) = -2x + 2 & \mathrm{if } x \lt -1 \\ -(x - 3) + (x + 1) = 4 & \mathrm{if } -1 \leqslant x \leqslant 3 \\ (x - 3) + (x + 1) = 2x - 2 & \mathrm{if } x \gt 3 \end{cases}

For x<1x \lt -1: f(x)=2x+2f(x) = -2x + 2, which is decreasing (as xx increases towards 1-1). As x1x \to -1^-: f(x)4f(x) \to 4.

For 1x3-1 \leqslant x \leqslant 3: f(x)=4f(x) = 4 (constant).

For x>3x \gt 3: f(x)=2x2f(x) = 2x - 2, which is increasing.

Minimum value: 44, attained for all x[1,3]x \in [-1, 3].


Additional Worked Examples

Worked Example 8: Domain of a composite with square root and rational function

Let f(x)=x+1x2f(x) = \dfrac{x + 1}{x - 2} and g(x)=x3g(x) = \sqrt{x - 3}. Find dom(fg)\mathrm{dom}(f \circ g) and dom(gf)\mathrm{dom}(g \circ f).

Solution

dom(g)=[3,)\mathrm{dom}(g) = [3, \infty). dom(f)={R}{2}\mathrm{dom}(f) = \mathbb{'\{'}R{'\}'} \setminus \{2\}.

For fgf \circ g: We need g(x)dom(f)g(x) \in \mathrm{dom}(f), i.e., x32\sqrt{x-3} \neq 2.

x3=2    x=7\sqrt{x-3} = 2 \implies x = 7. So exclude x=7x = 7.

dom(fg)=[3,){7}\mathrm{dom}(f \circ g) = [3, \infty) \setminus \{7\}.

For gfg \circ f: We need xdom(f)x \in \mathrm{dom}(f) and f(x)3f(x) \geq 3.

x+1x23    x+13(x2)x20    2x+7x20\frac{x+1}{x-2} \geq 3 \implies \frac{x+1-3(x-2)}{x-2} \geq 0 \implies \frac{-2x+7}{x-2} \geq 0

Critical points: x=72x = \dfrac{7}{2} and x=2x = 2.

IntervalSign of 2x+7x2\dfrac{-2x+7}{x-2}
x<2x \lt 2negative / negative == positive
2<x<722 \lt x \lt \dfrac{7}{2}positive / positive == positive
x>72x \gt \dfrac{7}{2}negative / positive == negative

At x=72x = \dfrac{7}{2}: expression equals 00, which satisfies 0\geq 0.

dom(gf)=(2,  72]\mathrm{dom}(g \circ f) = \left(2,\; \dfrac{7}{2}\right].

Worked Example 9: Inverse of a restricted quadratic

Let f(x)=2x28x+5f(x) = 2x^2 - 8x + 5 with domain [2,)[2, \infty). Find f1f^{-1} and state its domain and range.

Solution

Complete the square: f(x)=2(x24x)+5=2 ⁣[(x2)24]+5=2(x2)23f(x) = 2(x^2 - 4x) + 5 = 2\!\left[(x-2)^2 - 4\right] + 5 = 2(x-2)^2 - 3.

Since the domain is [2,)[2, \infty) and the vertex is at x=2x = 2, the function is strictly increasing and hence one-to-one.

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

Set y=2(x2)23y = 2(x-2)^2 - 3:

(x2)2=y+32(x-2)^2 = \frac{y+3}{2}

x=2+y+32x = 2 + \sqrt{\frac{y+3}{2}}

(positive root since x2x \geq 2)

f1(x)=2+x+32f^{-1}(x) = 2 + \sqrt{\frac{x+3}{2}}

dom(f1)=[3,)\mathrm{dom}(f^{-1}) = [-3, \infty), range(f1)=[2,)\mathrm{range}(f^{-1}) = [2, \infty).

Verification: f1(f(3))=f1(1)=2+1=3f^{-1}(f(3)) = f^{-1}(-1) = 2 + \sqrt{1} = 3. Correct.

Worked Example 10: Transformation of multiple points

The graph of y=f(x)y = f(x) passes through (1,4)(1, 4) and has a local minimum at (2,1)(2, -1). Find the corresponding points on y=2f(3x6)+5y = 2f(3x - 6) + 5.

Solution

Rewrite: y=2f(3(x2))+5y = 2f(3(x-2)) + 5.

For (1,4)(1, 4) on y=f(x)y = f(x): Set 3(x2)=13(x-2) = 1, so x2=13x - 2 = \dfrac{1}{3}, giving x=73x = \dfrac{7}{3}.

y=2(4)+5=13y = 2(4) + 5 = 13

Corresponding point: (73,  13)\left(\dfrac{7}{3},\; 13\right).

For the minimum at (2,1)(2, -1): Set 3(x2)=23(x-2) = 2, so x2=23x - 2 = \dfrac{2}{3}, giving x=83x = \dfrac{8}{3}.

y=2(1)+5=3y = 2(-1) + 5 = 3

Corresponding point: (83,  3)\left(\dfrac{8}{3},\; 3\right). This is the minimum of the transformed graph.

Worked Example 11: Composite with logarithm

Let f(x)=ln(x1)f(x) = \ln(x - 1) and g(x)=x2+1g(x) = x^2 + 1. Find (fg)(x)(f \circ g)(x), (gf)(x)(g \circ f)(x), and their domains.

Solution

dom(g)={R}\mathrm{dom}(g) = \mathbb{'\{'}R{'\}'}, dom(f)=(1,)\mathrm{dom}(f) = (1, \infty).

(fg)(x)=f(g(x))=ln(x2+11)=ln(x2)(f \circ g)(x) = f(g(x)) = \ln(x^2 + 1 - 1) = \ln(x^2).

Domain: need g(x)dom(f)g(x) \in \mathrm{dom}(f), i.e., x2+1>1    x2>0    x0x^2 + 1 \gt 1 \implies x^2 \gt 0 \implies x \neq 0.

dom(fg)={R}{0}\mathrm{dom}(f \circ g) = \mathbb{'\{'}R{'\}'} \setminus \{0\}.

(gf)(x)=g(f(x))=[ln(x1)]2+1(g \circ f)(x) = g(f(x)) = [\ln(x-1)]^2 + 1.

Domain: dom(gf)=dom(f)=(1,)\mathrm{dom}(g \circ f) = \mathrm{dom}(f) = (1, \infty).

Worked Example 12: Self-inverse function

Show that f(x)=3x2x3f(x) = \dfrac{3x - 2}{x - 3} (x3x \neq 3) is self-inverse.

Solution

Set y=3x2x3y = \dfrac{3x - 2}{x - 3}:

y(x3)=3x2    xy3y=3x2    xy3x=3y2y(x - 3) = 3x - 2 \implies xy - 3y = 3x - 2 \implies xy - 3x = 3y - 2

x(y3)=3y2    x=3y2y3x(y - 3) = 3y - 2 \implies x = \frac{3y - 2}{y - 3}

Interchanging xx and yy:

f1(x)=3x2x3=f(x)f^{-1}(x) = \frac{3x - 2}{x - 3} = f(x)

Since f1=ff^{-1} = f, the function is self-inverse.


Additional Common Pitfalls

  1. Applying domain restrictions to xx instead of g(x)g(x). When finding dom(fg)\mathrm{dom}(f \circ g), the condition g(x)dom(f)g(x) \in \mathrm{dom}(f) must be applied to the expression g(x)g(x), not to xx directly. Always substitute first, then impose domain conditions.

  2. Assuming injectivity on the natural domain. A quadratic ax2+bx+cax^2 + bx + c is only one-to-one on a half-domain (,  b/(2a)](-\infty,\; -b/(2a)] or [b/(2a),  )[-b/(2a),\; \infty). Before finding an inverse, verify or restrict the domain.

  3. Choosing the wrong branch of the inverse. When f(x)=x2f(x) = x^2 is restricted to (,0](-\infty, 0], the inverse is f1(x)=xf^{-1}(x) = -\sqrt{x}, not +x+\sqrt{x}. Always match the sign to the restricted domain.

  4. Composition order confusion. (fg)(x)=f(g(x))(f \circ g)(x) = f(g(x)) means gg is applied first, then ff. The notation reads right-to-left: (fg)(x)(f \circ g)(x) is "ff of gg of xx".

  5. Transformation order errors. For y=af(kx+b)+cy = af(kx + b) + c, apply from inside out: horizontal shift by b-b, horizontal stretch by 1/k1/k, vertical stretch by aa, vertical shift by cc. Mixing up this order is a very common mistake.

  6. Ignoring the range when checking invertibility. Even if ff is one-to-one on its domain, the codomain must equal the range for ff to be bijective. In DSE problems, the codomain is usually assumed to be the range unless stated otherwise.

  7. Forgetting that fgf \circ g and gfg \circ f differ. In general, fggff \circ g \neq g \circ f. Always compute each separately and check domains independently.

  8. Piecewise function boundary values. At the boundary between two pieces, always check which expression applies. If the definition uses \leq for one piece and <\lt for the next, the boundary point belongs to the \leq piece.


Exam-Style Problems

Problem 1. Let f(x)=2x+3x1f(x) = \dfrac{2x + 3}{x - 1} (x1x \neq 1) and g(x)=x+2g(x) = \sqrt{x + 2}. Find (fg)(x)(f \circ g)(x) and its domain.

Solution

(fg)(x)=f(x+2)=2x+2+3x+21(f \circ g)(x) = f(\sqrt{x+2}) = \frac{2\sqrt{x+2} + 3}{\sqrt{x+2} - 1}

dom(g)=[2,)\mathrm{dom}(g) = [-2, \infty). dom(f)={R}{1}\mathrm{dom}(f) = \mathbb{'\{'}R{'\}'} \setminus \{1\}.

Need x+21    x+21    x1\sqrt{x+2} \neq 1 \implies x + 2 \neq 1 \implies x \neq -1.

dom(fg)=[2,1)(1,)\mathrm{dom}(f \circ g) = [-2, -1) \cup (-1, \infty).

Problem 2. Find the inverse of f(x)=2x1x+3f(x) = \dfrac{2x - 1}{x + 3} (x3x \neq -3). Hence determine whether f(x)=f1(x)f(x) = f^{-1}(x) has any real solutions.

Solution

Set y=2x1x+3y = \dfrac{2x-1}{x+3}: y(x+3)=2x1    xy+3y=2x1    x(y2)=13yy(x+3) = 2x-1 \implies xy + 3y = 2x - 1 \implies x(y-2) = -1 - 3y.

f1(x)=13xx2=3x+12xf^{-1}(x) = \frac{-1-3x}{x-2} = \frac{3x+1}{2-x}

For f(x)=f1(x)f(x) = f^{-1}(x):

2x1x+3=3x+12x\frac{2x-1}{x+3} = \frac{3x+1}{2-x}

(2x1)(2x)=(3x+1)(x+3)(2x-1)(2-x) = (3x+1)(x+3)

4x2x22+x=3x2+9x+x+34x - 2x^2 - 2 + x = 3x^2 + 9x + x + 3

2x2+5x2=3x2+10x+3-2x^2 + 5x - 2 = 3x^2 + 10x + 3

5x25x5=0    x2+x+1=0-5x^2 - 5x - 5 = 0 \implies x^2 + x + 1 = 0

Δ=14=3<0\Delta = 1 - 4 = -3 \lt 0. No real solutions.

Problem 3. The function ff is defined by f(x)=x2+4xf(x) = x^2 + 4x for x2x \geq -2. Find f1(5)f^{-1}(5).

Solution

f(x)=(x+2)24f(x) = (x+2)^2 - 4. Since x2x \geq -2 and the vertex is at x=2x = -2, ff is strictly increasing.

Range: [4,)[-4, \infty). Since 545 \geq -4, f1(5)f^{-1}(5) exists.

Set (x+2)24=5    (x+2)2=9    x+2=3(x+2)^2 - 4 = 5 \implies (x+2)^2 = 9 \implies x + 2 = 3 (positive root).

x=1x = 1

f1(5)=1f^{-1}(5) = 1. Verification: f(1)=1+4=5f(1) = 1 + 4 = 5. Correct.

Problem 4. Describe fully the sequence of transformations mapping y=x2y = x^2 to y=2(3x)2+1y = 2(3-x)^2 + 1.

Solution

y=2(3x)2+1=2[(x3)]2+1=2(x3)2+1y = 2(3-x)^2 + 1 = 2[-(x-3)]^2 + 1 = 2(x-3)^2 + 1.

  1. Translate right by 33 units: y=(x3)2y = (x-3)^2.
  2. Vertical stretch by factor 22: y=2(x3)2y = 2(x-3)^2.
  3. Translate up by 11 unit: y=2(x3)2+1y = 2(x-3)^2 + 1.

The vertex moves from (0,0)(0, 0) to (3,1)(3, 1). The parabola opens upward in both cases.

Problem 5. Let f(x)=1x+1f(x) = \dfrac{1}{x+1} (x1x \neq -1) and g(x)=x2g(x) = x^2. Find (fgf)(x)(f \circ g \circ f)(x) and its domain.

Solution

First, (gf)(x)=g(f(x))=(1x+1)2=1(x+1)2(g \circ f)(x) = g(f(x)) = \left(\dfrac{1}{x+1}\right)^2 = \dfrac{1}{(x+1)^2}.

Then:

(fgf)(x)=f ⁣(1(x+1)2)=11(x+1)2+1=(x+1)2(x+1)2+1=(x+1)2x2+2x+2(f \circ g \circ f)(x) = f\!\left(\frac{1}{(x+1)^2}\right) = \frac{1}{\dfrac{1}{(x+1)^2} + 1} = \frac{(x+1)^2}{(x+1)^2 + 1} = \frac{(x+1)^2}{x^2 + 2x + 2}

Domain: need x+10    x1x + 1 \neq 0 \implies x \neq -1, and 1(x+1)2+10\dfrac{1}{(x+1)^2} + 1 \neq 0.

Since 1(x+1)20\dfrac{1}{(x+1)^2} \geq 0 for all x1x \neq -1, the second expression is always at least 1>01 > 0.

dom(fgf)={R}{1}\mathrm{dom}(f \circ g \circ f) = \mathbb{'\{'}R{'\}'} \setminus \{-1\}.

Problem 6. Given f(x)=2x1+x+3f(x) = |2x - 1| + |x + 3|, find the minimum value of ff.

Solution

Critical points: 2x1=0    x=122x - 1 = 0 \implies x = \dfrac{1}{2}, and x+3=0    x=3x + 3 = 0 \implies x = -3.

For x<3x \lt -3: f(x)=(2x1)+(x+3)=3x2f(x) = -(2x-1) + -(x+3) = -3x - 2 (decreasing as xx increases).

For 3x<12-3 \leq x \lt \dfrac{1}{2}: f(x)=(2x1)+(x+3)=x+4f(x) = -(2x-1) + (x+3) = -x + 4 (decreasing).

For x12x \geq \dfrac{1}{2}: f(x)=(2x1)+(x+3)=3x+2f(x) = (2x-1) + (x+3) = 3x + 2 (increasing).

The minimum occurs at the transition from decreasing to increasing, i.e., at x=12x = \dfrac{1}{2}:

f ⁣(12)=3 ⁣(12)+2=72f\!\left(\frac{1}{2}\right) = 3\!\left(\frac{1}{2}\right) + 2 = \frac{7}{2}

Minimum value: 72\dfrac{7}{2}, attained at x=12x = \dfrac{1}{2}.

Problem 7. If f(x)=xx2+1f(x) = \dfrac{x}{x^2 + 1}, find the range of ff.

Solution

Let y=xx2+1y = \dfrac{x}{x^2 + 1}. Then yx2+y=x    yx2x+y=0yx^2 + y = x \implies yx^2 - x + y = 0.

For real xx, this quadratic in xx must have Δ0\Delta \geq 0:

Δ=14y20    y214    12y12\Delta = 1 - 4y^2 \geq 0 \implies y^2 \leq \frac{1}{4} \implies -\frac{1}{2} \leq y \leq \frac{1}{2}

When y=12y = \dfrac{1}{2}: 12x2x+12=0    (x1)2=0    x=1\dfrac{1}{2}x^2 - x + \dfrac{1}{2} = 0 \implies (x-1)^2 = 0 \implies x = 1. Attainable.

When y=12y = -\dfrac{1}{2}: 12x2+x+12=0    (x+1)2=0    x=1\dfrac{1}{2}x^2 + x + \dfrac{1}{2} = 0 \implies (x+1)^2 = 0 \implies x = -1. Attainable.

Range: [12,  12]\left[-\dfrac{1}{2},\; \dfrac{1}{2}\right].

Problem 8. If f(x)=2x1f(x) = 2x - 1 and g(x)=x+3g(x) = x + 3, find the linear function h(x)h(x) such that (fh)(x)=(gf)(x)(f \circ h)(x) = (g \circ f)(x) for all xx.

Solution

(gf)(x)=g(2x1)=2x1+3=2x+2(g \circ f)(x) = g(2x - 1) = 2x - 1 + 3 = 2x + 2.

(fh)(x)=f(h(x))=2h(x)1(f \circ h)(x) = f(h(x)) = 2h(x) - 1.

Setting equal: 2h(x)1=2x+2    h(x)=x+322h(x) - 1 = 2x + 2 \implies h(x) = x + \dfrac{3}{2}.

Verification: (fh)(x)=2 ⁣(x+32)1=2x+2(f \circ h)(x) = 2\!\left(x + \dfrac{3}{2}\right) - 1 = 2x + 2. Correct.


Cross-References

  • Basic Functions: Foundational definitions and notation are in functions.md).
  • Quadratics: Quadratic functions feature heavily in inverse function problems. See quadratics.md).
  • Inequalities: Domain restrictions often involve solving inequalities. See the inequalities notes.
  • Coordinate Geometry: Graphical interpretations of functions and transformations. See coordinate-geometry.md).

tip

Diagnostic Test Ready to test your understanding of Functions (Advanced)? The diagnostic test 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 Diagnostic Guide for instructions on self-marking and building a personal test matrix.


DSE Exam Technique

Showing Working

For function problems in DSE Paper 1:

  1. When finding the domain of a composite function, explicitly state dom(g)\mathrm{dom}(g) and the condition g(x)dom(f)g(x) \in \mathrm{dom}(f).
  2. When finding an inverse, write y=f(x)y = f(x), solve for xx, and then interchange.
  3. When checking invertibility, verify that the function is one-to-one (strictly increasing or decreasing on the domain).
  4. For transformation problems, clearly 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

  1. Domain of composite functions (especially with square roots and rational functions).
  2. Finding inverse functions (restricted quadratics, rational functions).
  3. Transformation of points (tracking specific points through a series of transformations).
  4. Self-inverse verification (show f1=ff^{-1} = f).
  5. Range finding (using the discriminant method for rational functions).

Additional Worked Examples

Worked Example 13: Domain with nested functions

Let f(x)=1x2f(x) = \dfrac{1}{\sqrt{x - 2}} and g(x)=x2+1g(x) = x^2 + 1. Find dom(fg)\mathrm{dom}(f \circ g) and dom(gf)\mathrm{dom}(g \circ f).

Solution

dom(f)=(2,)\mathrm{dom}(f) = (2, \infty) (need x2>0x - 2 > 0). dom(g)={R}\mathrm{dom}(g) = \mathbb{'\{'}R{'\}'}.

fgf \circ g: Need g(x)dom(f)g(x) \in \mathrm{dom}(f), i.e., x2+1>2    x2>1    x<1x^2 + 1 > 2 \implies x^2 > 1 \implies x < -1 or x>1x > 1.

dom(fg)=(,1)(1,)\mathrm{dom}(f \circ g) = (-\infty, -1) \cup (1, \infty).

gfg \circ f: Need xdom(f)=(2,)x \in \mathrm{dom}(f) = (2, \infty).

dom(gf)=(2,)\mathrm{dom}(g \circ f) = (2, \infty).

Worked Example 14: Inverse of a restricted rational function

Let f(x)=2xx3f(x) = \dfrac{2x}{x - 3} for x>3x > 3. Find f1f^{-1}.

Solution

First, check one-to-one: f(x)=2+6x3f(x) = 2 + \dfrac{6}{x - 3}. For x>3x > 3, x3>0x - 3 > 0, so 6x3>0\dfrac{6}{x-3} > 0 and is strictly decreasing. Therefore ff is strictly decreasing and hence one-to-one on (3,)(3, \infty).

Set y=2xx3y = \dfrac{2x}{x - 3}:

y(x3)=2x    yx3y=2x    x(y2)=3yy(x - 3) = 2x \implies yx - 3y = 2x \implies x(y - 2) = 3y

x=3yy2x = \frac{3y}{y - 2}

f1(x)=3xx2f^{-1}(x) = \frac{3x}{x - 2}

To find the domain of f1f^{-1}: since range(f)\mathrm{range}(f) must equal dom(f1)\mathrm{dom}(f^{-1}).

As x3+x \to 3^+, f(x)+f(x) \to +\infty. As x+x \to +\infty, f(x)2+f(x) \to 2^+.

range(f)=(2,)\mathrm{range}(f) = (2, \infty), so dom(f1)=(2,)\mathrm{dom}(f^{-1}) = (2, \infty).

Worked Example 15: Even and odd functions

Determine whether f(x)=xx2+1f(x) = \dfrac{x}{x^2 + 1} is even, odd, or neither.

Solution

f(x)=x(x)2+1=xx2+1=f(x)f(-x) = \frac{-x}{(-x)^2 + 1} = \frac{-x}{x^2 + 1} = -f(x)

Since f(x)=f(x)f(-x) = -f(x) for all real xx, ff is an odd function.

Worked Example 16: Range using discriminant

Find the range of f(x)=x2x+1x2+x+1f(x) = \dfrac{x^2 - x + 1}{x^2 + x + 1}.

Solution

Let y=x2x+1x2+x+1y = \dfrac{x^2 - x + 1}{x^2 + x + 1}. Since x2+x+1=(x+12)2+34>0x^2 + x + 1 = \left(x + \dfrac{1}{2}\right)^2 + \dfrac{3}{4} > 0 for all xx:

y(x2+x+1)=x2x+1    (y1)x2+(y+1)x+(y1)=0y(x^2 + x + 1) = x^2 - x + 1 \implies (y - 1)x^2 + (y + 1)x + (y - 1) = 0

For real xx, Δ0\Delta \geq 0:

(y+1)24(y1)20    (y+12y+2)(y+1+2y2)0(y + 1)^2 - 4(y - 1)^2 \geq 0 \implies (y + 1 - 2y + 2)(y + 1 + 2y - 2) \geq 0

(y+3)(3y1)0    (y3)(3y1)0    13y3(-y + 3)(3y - 1) \geq 0 \implies (y - 3)(3y - 1) \leq 0 \implies \frac{1}{3} \leq y \leq 3

Range: [13,  3]\left[\dfrac{1}{3},\; 3\right].


DSE Exam-Style Questions

DSE Practice 1. Let f(x)=3x1x+2f(x) = \dfrac{3x - 1}{x + 2} and g(x)=x+1x1g(x) = \dfrac{x + 1}{x - 1}. Find (gf)(2)(g \circ f)(2).

Solution

f(2)=612+2=54f(2) = \dfrac{6 - 1}{2 + 2} = \dfrac{5}{4}.

(gf)(2)=g ⁣(54)=5/4+15/41=9/41/4=9(g \circ f)(2) = g\!\left(\dfrac{5}{4}\right) = \dfrac{5/4 + 1}{5/4 - 1} = \dfrac{9/4}{1/4} = 9.

DSE Practice 2. The function ff is defined by f(x)=2x28x+5f(x) = 2x^2 - 8x + 5 for x2x \geq 2. Find the range of ff and the value of xx for which f(x)=1f(x) = 1.

Solution

f(x)=2(x2)23f(x) = 2(x - 2)^2 - 3. Since x2x \geq 2 and the vertex is at x=2x = 2: range is [3,)[-3, \infty).

2(x2)23=1    (x2)2=2    x=2+22(x - 2)^2 - 3 = 1 \implies (x - 2)^2 = 2 \implies x = 2 + \sqrt{2} (positive root since x2x \geq 2).

DSE Practice 3. The graph of y=f(x)y = f(x) passes through (0,1)(0, -1) and has a local maximum at (3,4)(3, 4). Find the coordinates of the corresponding points on y=f(2x+1)+3y = -f(2x + 1) + 3.

Solution

For (0,1)(0, -1): 2x+1=0    x=122x + 1 = 0 \implies x = -\dfrac{1}{2}. y=(1)+3=4y = -(-1) + 3 = 4. Point: (12,  4)\left(-\dfrac{1}{2},\; 4\right).

For the maximum at (3,4)(3, 4): 2x+1=3    x=12x + 1 = 3 \implies x = 1. y=(4)+3=1y = -(4) + 3 = -1. The maximum becomes a minimum at (1,  1)\left(1,\; -1\right).

DSE Practice 4. Let f(x)=x33xf(x) = x^3 - 3x. Show that ff is not one-to-one on {R}\mathbb{'\{'}R{'\}'}, but is one-to-one on [1,)[1, \infty). Find f1(0)f^{-1}(0).

Solution

f(0)=0f(0) = 0, f(3)=3333=0f(\sqrt{3}) = 3\sqrt{3} - 3\sqrt{3} = 0, f(3)=0f(-\sqrt{3}) = 0. Since ff takes the same value at three different points, it is not one-to-one on {R}\mathbb{'\{'}R{'\}'}.

For x1x \geq 1: f(x)=3x23=3(x21)0f'(x) = 3x^2 - 3 = 3(x^2 - 1) \geq 0 (with equality only at x=1x = 1). So ff is strictly increasing on [1,)[1, \infty) and hence one-to-one.

f1(0)f^{-1}(0): solve x33x=0    x(x23)=0x^3 - 3x = 0 \implies x(x^2 - 3) = 0. On [1,)[1, \infty): x=3x = \sqrt{3}. So f1(0)=3f^{-1}(0) = \sqrt{3}.

DSE Practice 5. Let h(x)=f(x)+g(x)h(x) = f(x) + g(x) where f(x)=x2f(x) = x^2 and g(x)=1x1g(x) = \dfrac{1}{x - 1}. Find the domain of hh.

Solution

dom(f)={R}\mathrm{dom}(f) = \mathbb{'\{'}R{'\}'}, dom(g)={R}{1}\mathrm{dom}(g) = \mathbb{'\{'}R{'\}'} \setminus \{1\}.

dom(h)=dom(f)dom(g)={R}{1}\mathrm{dom}(h) = \mathrm{dom}(f) \cap \mathrm{dom}(g) = \mathbb{'\{'}R{'\}'} \setminus \{1\}.

DSE Practice 6. Given f(x)=xx+1f(x) = \dfrac{x}{x + 1} for x1x \neq -1, find f1f^{-1} and solve f(x)=f1(x)f(x) = f^{-1}(x).

Solution

y=xx+1    y(x+1)=x    yx+y=x    x(1y)=y    x=yy1y = \dfrac{x}{x + 1} \implies y(x + 1) = x \implies yx + y = x \implies x(1 - y) = -y \implies x = \dfrac{y}{y - 1}.

f1(x)=xx1f^{-1}(x) = \dfrac{x}{x - 1}.

f(x)=f1(x)f(x) = f^{-1}(x): xx+1=xx1\dfrac{x}{x + 1} = \dfrac{x}{x - 1}.

If x=0x = 0: both sides equal 00. So x=0x = 0 is a solution.

If x0x \neq 0: 1x+1=1x1    x1=x+1    1=1\dfrac{1}{x + 1} = \dfrac{1}{x - 1} \implies x - 1 = x + 1 \implies -1 = 1, contradiction.

Solution: x=0x = 0.