Skip to content

9709 · 1.2

Functions — practice questions

Practice and worked examples for 9709 Functions. Short previews only — attempt the full question in MarkScheme against the official scheme.

Worked example 1

A function ff is defined by f(x)=x26x+5f(x) = x^2 - 6x + 5 for xRx \in \mathbb{R}.

(a) Express f(x)f(x) in the form (xa)2+b(x-a)^2+b.

(b) Hence, find the range of ff.

(c) A function gg is defined by g(x)=x26x+5g(x) = x^2 - 6x + 5 for xkx \ge k. State the smallest value of kk for which gg has an inverse.

(d) For this value of kk, find an expression for g1(x)g^{-1}(x) and state its domain.

Show solution outline

(a) To complete the square: f(x)=(x26x)+5f(x) = (x^2 - 6x) + 5. We halve the coefficient of xx, which is -3. So, f(x)=(x3)2(3)2+5=(x3)29+5f(x) = (x-3)^2 - (-3)^2 + 5 = (x-3)^2 - 9 + 5. Therefore, f(x)=(x3)24f(x) = (x-3)^2 - 4. [1 mark]

(b) The vertex of the parabola y=f(x)y=f(x) is at (3,4)(3, -4). Since the coefficient of x2x^2 is positive, the parabola opens upwards. The minimum value of f(x)f(x) is -4. The range is f(x)4f(x) \ge -4. [1 mark]

(c) A function has an inverse only if it is one-to-one. The function f(x)f(x) is a many-to-one function. To make it one-to-one, we must restrict its domain to one side of the line of symmetry, x=3x=3. The smallest value for kk that achieves this is k=3k=3. [1 mark]

(d) Let y=g(x)y = g(x), so y=(x3)24y = (x-3)^2 - 4 for x3x \ge 3. To find the inverse, we swap xx and yy: x=(y3)24x = (y-3)^2 - 4. Now, we make yy the subject: x+4=(y3)2x+4 = (y-3)^2 x+4=y3\sqrt{x+4} = y-3 y=3+x+4y = 3 + \sqrt{x+4}. We take the positive square root because the domain of g(x)g(x) was x3x \ge 3, which means the range of g1(x)g^{-1}(x) must be y3y \ge 3. So, g1(x)=3+x+4g^{-1}(x) = 3 + \sqrt{x+4}. [2 marks] The domain of g1(x)g^{-1}(x) is the range of g(x)g(x). From part (b), the minimum value is -4. So, the range of g(x)g(x) is y4y \ge -4. Therefore, the domain of g1(x)g^{-1}(x) is x4x \ge -4. [1 mark]

Worked example 2

The functions ff and gg are defined by f(x)=2x+1f(x) = 2x+1 for xRx \in \mathbb{R} and g(x)=12x+2g(x) = \frac{12}{x+2} for x2x \ne -2.

(a) Find an expression for fg(x)fg(x) and simplify your answer.

(b) Find the range of fgfg.

(c) Solve the equation fg(x)=5fg(x) = 5.

Show solution outline

(a) fg(x)=f(g(x))fg(x) = f(g(x)). We substitute the expression for g(x)g(x) into f(x)f(x). fg(x)=2(g(x))+1=2(12x+2)+1fg(x) = 2(g(x)) + 1 = 2\left(\frac{12}{x+2}\right) + 1 [1 mark] fg(x)=24x+2+1fg(x) = \frac{24}{x+2} + 1. To simplify, we find a common denominator: fg(x)=24x+2+x+2x+2=24+x+2x+2=x+26x+2fg(x) = \frac{24}{x+2} + \frac{x+2}{x+2} = \frac{24 + x + 2}{x+2} = \frac{x+26}{x+2}. [1 mark]

(b) To find the range of y=x+26x+2y = \frac{x+26}{x+2}, we can consider the horizontal asymptote. As xx \to \infty, yxx=1y \to \frac{x}{x} = 1. Alternatively, let's make xx the subject: y(x+2)=x+26y(x+2) = x+26 yx+2y=x+26yx + 2y = x+26 yxx=262yyx - x = 26 - 2y x(y1)=262yx(y-1) = 26 - 2y x=262yy1x = \frac{26-2y}{y-1}. The expression for xx is undefined when the denominator is zero, i.e., when y1=0y-1=0 or y=1y=1. Thus, yy can be any real number except 1. The range is fg(x)R,fg(x)1fg(x) \in \mathbb{R}, fg(x) \ne 1. [2 marks]

(c) We set our expression for fg(x)fg(x) equal to 5: x+26x+2=5\frac{x+26}{x+2} = 5 [1 mark] x+26=5(x+2)x+26 = 5(x+2) x+26=5x+10x+26 = 5x+10 16=4x16 = 4x x=4x=4. [1 mark] We check that this solution is valid. The domain of fg(x)fg(x) is x2x \ne -2. Since 424 \ne -2, the solution is valid.