Functions: Question 2

Syllabus 1.2

Structured AS 7 marks

The functions ff and gg are defined, for xRx \in \mathbb{R}, by f(x)=2x1andg(x)=x2+2.f(x) = 2x - 1 \qquad \text{and} \qquad g(x) = x^2 + 2.

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

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

(c) Hence, or otherwise, find the value(s) of xx for which fg(x)=gf(x)fg(x) = gf(x). [3]

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(x2+2)fg(x) = f(g(x)) = f(x^2+2)

Substitute x2+2x^2+2 into f()=2()1f(\cdot) = 2(\cdot) - 1:

fg(x)=2(x2+2)1=2x2+41=2x2+3fg(x) = 2(x^2+2) - 1 = 2x^2 + 4 - 1 = 2x^2 + 3

Part (b): 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(2x1)gf(x) = g(f(x)) = g(2x-1)

Substitute 2x12x-1 into g()=()2+2g(\cdot) = (\cdot)^2+2:

gf(x)=(2x1)2+2gf(x) = (2x-1)^2 + 2

Expand (2x1)2=4x24x+1(2x-1)^2 = 4x^2 - 4x + 1 carefully (keep the middle term):

gf(x)=4x24x+1+2=4x24x+3gf(x) = 4x^2 - 4x + 1 + 2 = 4x^2 - 4x + 3

Part (c): Solving fg(x)=gf(x)fg(x) = gf(x)

Set the two expressions from parts (a) and (b) equal:

2x2+3=4x24x+32x^2 + 3 = 4x^2 - 4x + 3

Subtract 2x2+32x^2+3 from both sides:

0=2x24x0 = 2x^2 - 4x

Factor (do not divide through by xx, since that would silently lose a solution):

0=2x(x2)0 = 2x(x - 2)

So x=0x = 0 or x=2x = 2.

Check at x=0x=0: fg(0)=2(0)2+3=3fg(0)=2(0)^2+3=3 and gf(0)=4(0)24(0)+3=3gf(0)=4(0)^2-4(0)+3=3, equal. Check at x=2x=2: fg(2)=2(4)+3=11fg(2)=2(4)+3=11 and gf(2)=4(4)4(2)+3=168+3=11gf(2)=4(4)-4(2)+3=16-8+3=11, equal.

Final answers

  • (a) fg(x)=2x2+3fg(x) = 2x^2+3
  • (b) gf(x)=4x24x+3gf(x) = 4x^2-4x+3
  • (c) x=0x = \boxed{0} or x=2x = \boxed{2}