Skip to content

Functions (Advanced)

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)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.

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)=1x−2f(x) = \dfrac{1}{x - 2}: dom(f)=R∖{2}\mathrm{dom}(f) = \mathbb{R} \setminus \{2\}
Even rootRadicand ⩾0\geqslant 0f(x)=x−3f(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)

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.

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

Domain: 4−x2⩾0  ⟹  x2⩽4  ⟹  −2⩽x⩽24 - x^2 \geqslant 0 \implies x^2 \leqslant 4 \implies -2 \leqslant x \leqslant 2.

Range: Since 4−x24 - 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].


Given ff and gg The composite f∘gf \circ g is:

(f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x))dom(f∘g)={x∈dom(g):g(x)∈dom(f)}\mathrm{dom}(f \circ g) = \{x \in \mathrm{dom}(g) : g(x) \in \mathrm{dom}(f)\}

Let f(x)=x+1f(x) = \sqrt{x + 1} and g(x)=x2−4g(x) = x^2 - 4. Find dom(f∘g)\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., x2−4⩾−1  ⟹  x2⩾3x^2 - 4 \geqslant -1 \implies x^2 \geqslant 3.

dom(f∘g)=(−∞,−3]∪[3,∞)\mathrm{dom}(f \circ g) = (-\infty, -\sqrt{3}] \cup [\sqrt{3}, \infty)

Let f(x)=1xf(x) = \dfrac{1}{x} and g(x)=x+1g(x) = x + 1. Find f∘gf \circ g, g∘fg \circ f And their domains.

(f∘g)(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\}.

(g∘f)(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\}.


A function ff has an inverse f−1f^{-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.

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

The domain of f−1f^{-1} equals the range of ff And vice versa.

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

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

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

y(x+1)=2x−3  ⟹  yx+y=2x−3  ⟹  yx−2x=−3−y  ⟹  x(y−2)=−(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)y−2=y+32−yx = \frac{-(y + 3)}{y - 2} = \frac{y + 3}{2 - y}

Therefore f−1(x)=x+32−xf^{-1}(x) = \dfrac{x + 3}{2 - x} With domain R∖{2}\mathbb{R} \setminus \{2\}.


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

TransformationEffect on Graph
y=f(x)+cy = f(x) + cVertical shift up by cc (c>0c \gt 0) or down (c<0c \lt 0)
y=f(x−h)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/∥k∥1/ \| k \|; reflect in yy-axis if k<0k \lt 0

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

Section titled “Combined Transformation: y=af(x+b)+cy = 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

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(x−3)+1y = -2f(x - 3) + 1.

For (2,5)(2, 5): set x−3=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 x−3=4  ⟹  x=7x - 3 = 4 \implies x = 7. Then y=−2(−1)+1=3y = -2(-1) + 1 = 3. Point: (7,3)(7, 3).

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

y=−(x−3)+2=f(−(x−3))+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=−(x−3)=3−xy = \sqrt{-(x - 3)} = \sqrt{3 - x}
  3. Shift up by 2: y=3−x+2y = \sqrt{3 - x} + 2

Domain: 3−x⩾0  ⟹  x⩽33 - x \geqslant 0 \implies x \leqslant 3. Range: [2,∞)[2, \infty).


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

f(x)={x2ifx<02x+1if0⩽x⩽310−xifx>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 = 4$$f(0) = 2(0) + 1 = 1$$f(3) = 2(3) + 1 = 7$$f(5) = 10 - 5 = 5.


  • When finding the domain of f∘gf \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 f∘g≠g∘ff \circ g \neq g \circ 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)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.

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

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

(f∘g)(x)=f(2x−3)=2x−3+22x−3−1=2x−12x−4(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: 2x−3≠1  ⟹  x≠22x - 3 \neq 1 \implies x \neq 2. Also 2x−4≠0  ⟹  x≠22x - 4 \neq 0 \implies x \neq 2. dom(f∘g)=R∖{2}\mathrm{dom}(f \circ g) = \mathbb{R} \setminus \{2\}.

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

Set y=3x+1x−2y = \dfrac{3x + 1}{x - 2}. Then y(x−2)=3x+1  ⟹  yx−2y=3x+1  ⟹  x(y−3)=2y+1y(x - 2) = 3x + 1 \implies yx - 2y = 3x + 1 \implies x(y - 3) = 2y + 1.

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

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

First find f−1f^{-1}. Set y=(x−2)2−1y = (x - 2)^2 - 1. Since domain is [1,∞)[1, \infty) Range is [−1,∞)[-1, \infty).

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

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

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

Verification: f(3)=9−12+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 \implies x = 0.5$$y = 3(-2) + 1 = -5. Point: (0.5,−5)(0.5, -5).

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

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

Since x⩽0x \leqslant 0: x2⩾0x^2 \geqslant 0 So f(x)=2−x2⩽2f(x) = 2 - x^2 \leqslant 2. As x→−∞x \to -\infty f(x)→−∞f(x) \to -\infty. Range: (−∞,2](-\infty, 2].

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

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

  1. Question: Given f(x)=x−1f(x) = \sqrt{x - 1} and g(x)=x2+x+1g(x) = x^2 + x + 1 Find dom(g∘f)\mathrm{dom}(g \circ f).

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

(g∘f)(x)=g(x−1)=(x−1)2+x−1+1=x−1+x−1+1=x+x−1(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(g∘f)=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+1≠0x^2 + 1 \neq 0 for all real xx (since x2⩾0x^2 \geqslant 0). dom(f)=R\mathrm{dom}(f) = \mathbb{R}.

Range: x2+1⩾1x^2 + 1 \geqslant 1 So 0<1x2+1⩽10 \lt \dfrac{1}{x^2 + 1} \leqslant 1. range(f)=(0,1]\mathrm{range}(f) = (0, 1].

  1. Question: Let f(x)=∣x−3∣+∣x+1∣f(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)={−(x−3)+−(x+1)=−2x+2ifx<−1−(x−3)+(x+1)=4if−1⩽x⩽3(x−3)+(x+1)=2x−2ifx>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 x→−1−x \to -1^-: f(x)→4f(x) \to 4.

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

For x>3x \gt 3: f(x)=2x−2f(x) = 2x - 2 Which is increasing.

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


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

Let f(x)=x+1x−2f(x) = \dfrac{x + 1}{x - 2} and g(x)=x−3g(x) = \sqrt{x - 3}. Find dom(f∘g)\mathrm{dom}(f \circ g) and dom(g∘f)\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 f∘gf \circ g: We need g(x)∈dom(f)g(x) \in \mathrm{dom}(f) I.e., x−3≠2\sqrt{x-3} \neq 2.

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

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

For g∘fg \circ f: We need x∈dom(f)x \in \mathrm{dom}(f) and f(x)≥3f(x) \geq 3.

x+1x−2≥3  ⟹  x+1−3(x−2)x−2≥0  ⟹  −2x+7x−2≥0\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+7x−2\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(g∘f)=(2,  72]\mathrm{dom}(g \circ f) = \left(2,\; \dfrac{7}{2}\right].

Worked Example 9: Inverse of a restricted quadratic

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

Solution

Complete the square: f(x)=2(x2−4x)+5=2 ⁣[(x−2)2−4]+5=2(x−2)2−3f(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(x−2)2−3y = 2(x-2)^2 - 3:

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

(positive root since x≥2x \geq 2)

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

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

Verification: f−1(f(3))=f−1(−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(3x−6)+5y = 2f(3x - 6) + 5.

Solution

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

For (1,4)(1, 4) on y=f(x)y = f(x): Set 3(x−2)=13(x-2) = 1 So x−2=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(x−2)=23(x-2) = 2 So x−2=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⁡(x−1)f(x) = \ln(x - 1) and g(x)=x2+1g(x) = x^2 + 1. Find (f∘g)(x)(f \circ g)(x), (g∘f)(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).

(f∘g)(x)=f(g(x))=ln⁡(x2+1−1)=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  ⟹  x≠0x^2 + 1 \gt 1 \implies x^2 \gt 0 \implies x \neq 0.

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

(g∘f)(x)=g(f(x))=[ln⁡(x−1)]2+1(g \circ f)(x) = g(f(x)) = [\ln(x-1)]^2 + 1.

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

Worked Example 12: Self-inverse function

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

Solution

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

y(x−3)=3x−2  ⟹  xy−3y=3x−2  ⟹  xy−3x=3y−2y(x - 3) = 3x - 2 \implies xy - 3y = 3x - 2 \implies xy - 3x = 3y - 2 x(y−3)=3y−2  ⟹  x=3y−2y−3x(y - 3) = 3y - 2 \implies x = \frac{3y - 2}{y - 3}

Interchanging xx and yy:

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

Since f−1=ff^{-1} = f The function is self-inverse.


  1. Applying domain restrictions to xx instead of g(x)g(x). When finding dom(f∘g)\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 f−1(x)=−xf^{-1}(x) = -\sqrt{x} Not +x+\sqrt{x}. Always match the sign to the restricted domain.

  4. Composition order confusion. (f∘g)(x)=f(g(x))(f \circ g)(x) = f(g(x)) means gg is applied first, then ff. The notation reads right-to-left: (f∘g)(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 assumed to be the range unless stated otherwise.

  7. Forgetting that f∘gf \circ g and g∘fg \circ f differ., f∘g≠g∘ff \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.


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

Solution(f∘g)(x)=f(x+2)=2x+2+3x+2−1(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+2≠1  ⟹  x+2≠1  ⟹  x≠−1\sqrt{x+2} \neq 1 \implies x + 2 \neq 1 \implies x \neq -1.

dom(f∘g)=[−2,−1)∪(−1,∞)\mathrm{dom}(f \circ g) = [-2, -1) \cup (-1, \infty).

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

Solution

Set y=2x−1x+3y = \dfrac{2x-1}{x+3}: y(x+3)=2x−1  ⟹  xy+3y=2x−1  ⟹  x(y−2)=−1−3yy(x+3) = 2x-1 \implies xy + 3y = 2x - 1 \implies x(y-2) = -1 - 3y.

f−1(x)=−1−3xx−2=3x+12−xf^{-1}(x) = \frac{-1-3x}{x-2} = \frac{3x+1}{2-x}

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

2x−1x+3=3x+12−x\frac{2x-1}{x+3} = \frac{3x+1}{2-x} (2x−1)(2−x)=(3x+1)(x+3)(2x-1)(2-x) = (3x+1)(x+3) 4x−2x2−2+x=3x2+9x+x+34x - 2x^2 - 2 + x = 3x^2 + 9x + x + 3 −2x2+5x−2=3x2+10x+3-2x^2 + 5x - 2 = 3x^2 + 10x + 3 −5x2−5x−5=0  ⟹  x2+x+1=0-5x^2 - 5x - 5 = 0 \implies x^2 + x + 1 = 0

Δ=1−4=−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 x≥−2x \geq -2. Find f−1(5)f^{-1}(5).

Solution

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

Range: [−4,∞)[-4, \infty). Since 5≥−45 \geq -4, f−1(5)f^{-1}(5) exists.

Set (x+2)2−4=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

f−1(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(3−x)2+1y = 2(3-x)^2 + 1.

Solution

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

  1. Translate right by 33 units: y=(x−3)2y = (x-3)^2.
  2. Vertical stretch by factor 22: y=2(x−3)2y = 2(x-3)^2.
  3. Translate up by 11 unit: y=2(x−3)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} (x≠−1x \neq -1) and g(x)=x2g(x) = x^2. Find (f∘g∘f)(x)(f \circ g \circ f)(x) and its domain.

Solution

First, (g∘f)(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:

(f∘g∘f)(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+1≠0  ⟹  x≠−1x + 1 \neq 0 \implies x \neq -1 And 1(x+1)2+1≠0\dfrac{1}{(x+1)^2} + 1 \neq 0.

Since 1(x+1)2≥0\dfrac{1}{(x+1)^2} \geq 0 for all x≠−1x \neq -1 The second expression is always at least 1>01 > 0.

dom(f∘g∘f)=R∖{−1}\mathrm{dom}(f \circ g \circ f) = \mathbb{R} \setminus \{-1\}.

Problem 6. Given f(x)=∣2x−1∣+∣x+3∣f(x) = |2x - 1| + |x + 3| Find the minimum value of ff.

Solution

Critical points: 2x−1=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)=−(2x−1)+−(x+3)=−3x−2f(x) = -(2x-1) + -(x+3) = -3x - 2 (decreasing as xx increases).

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

For x≥12x \geq \dfrac{1}{2}: f(x)=(2x−1)+(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  ⟹  yx2−x+y=0yx^2 + y = x \implies yx^2 - x + y = 0.

For real xx This quadratic in xx must have Δ≥0\Delta \geq 0:

Δ=1−4y2≥0  ⟹  y2≤14  ⟹  −12≤y≤12\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}: 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.

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)=2x−1f(x) = 2x - 1 and g(x)=x+3g(x) = x + 3 Find the linear function h(x)h(x) such that (f∘h)(x)=(g∘f)(x)(f \circ h)(x) = (g \circ f)(x) for all xx.

Solution

(g∘f)(x)=g(2x−1)=2x−1+3=2x+2(g \circ f)(x) = g(2x - 1) = 2x - 1 + 3 = 2x + 2.

(f∘h)(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: (f∘h)(x)=2 ⁣(x+32)−1=2x+2(f \circ h)(x) = 2\!\left(x + \dfrac{3}{2}\right) - 1 = 2x + 2. Correct.


  • 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.

Behind every scientific discovery and technological innovation lies mathematics. Functions model relationships between variables, statistics reveals patterns in data, and logic ensures rigorous reasoning. Mathematics teaches us to think precisely, solve systematically, and communicate evidently - skills that are valuable far beyond the classroom.