Functions: Question 7

Syllabus 1.2

Structured AS 7 marks

The functions ff and gg are defined by f(x)=1x3,xR, x3andg(x)=2x+1,xR.f(x) = \frac{1}{x-3}, \quad x \in \mathbb{R}, \ x \ne 3 \qquad \text{and} \qquad g(x) = 2x+1, \quad x \in \mathbb{R}.

(a) Find fg(x)fg(x), simplifying your answer as a single fraction. [2]

(b) State the domain of fgfg. [2]

(c) Find gf(x)gf(x), simplifying your answer. [2]

(d) State the domain of gfgf. [1]

Show worked solution Hide worked solution

Worked solution

Part (a): Finding fg(x)fg(x)

fg(x)fg(x) means f(g(x))f(g(x)), apply gg first, then ff.

fg(x)=f(g(x))=f(2x+1)fg(x) = f(g(x)) = f(2x+1)

Substitute 2x+12x+1 into f()=1()3f(\cdot) = \dfrac{1}{(\cdot)-3}:

fg(x)=1(2x+1)3=12x2fg(x) = \frac{1}{(2x+1)-3} = \frac{1}{2x-2}

Part (b): Domain of fgfg

fg(x)=12x2fg(x) = \dfrac{1}{2x-2} is undefined only when the denominator is zero:

2x2=0    x=12x - 2 = 0 \implies x = 1

This matches the underlying rule: fgfg is undefined exactly when g(x)=3g(x)=3 (the value excluded from ff‘s domain), and g(x)=3g(x)=3 gives 2x+1=32x+1=3, i.e. x=1x=1.

So the domain of fgfg is: xR,x1x \in \mathbb{R}, \quad x \ne 1

Part (c): Finding gf(x)gf(x)

gf(x)gf(x) means g(f(x))g(f(x)), apply ff first, then gg: the opposite order to part (a).

gf(x)=g(f(x))=g(1x3)gf(x) = g(f(x)) = g\left(\frac{1}{x-3}\right)

Substitute 1x3\dfrac{1}{x-3} into g()=2()+1g(\cdot) = 2(\cdot)+1:

gf(x)=2(1x3)+1=2x3+1gf(x) = 2\left(\frac{1}{x-3}\right)+1 = \frac{2}{x-3}+1

Part (d): Domain of gfgf

Since gg itself has domain xRx\in\mathbb{R} (no restriction), the only restriction on gfgf comes from needing f(x)f(x) to be defined in the first place, i.e. x3x \ne 3.

So the domain of gfgf is: xR,x3x \in \mathbb{R}, \quad x \ne 3

Numerical check at x=2x=2: g(2)=5g(2)=5, f(5)=153=12f(5)=\dfrac{1}{5-3}=\dfrac{1}{2}, so fg(2)=12fg(2)=\dfrac{1}{2}. Using the formula: 12(2)2=12\dfrac{1}{2(2)-2}=\dfrac{1}{2} (matches. Also f(2)=123=1f(2)=\dfrac{1}{2-3}=-1, g(1)=2(1)+1=1g(-1)=2(-1)+1=-1, so gf(2)=1gf(2)=-1. Using the formula: 223+1=2+1=1\dfrac{2}{2-3}+1 = -2+1=-1) matches.

Final answers

  • (a) fg(x)=12x2fg(x) = \dfrac{1}{2x-2}
  • (b) Domain of fgfg: xR,x1x\in\mathbb{R}, x\ne 1
  • (c) gf(x)=2x3+1gf(x) = \dfrac{2}{x-3}+1
  • (d) Domain of gfgf: xR,x3x\in\mathbb{R}, x\ne 3