Composite Functions

Question 12 marks

f(x)=2x+1 and g(x)=x-4.

Work out the value of fg(6).

Hint

fg(6) means f(g(6)): apply the function nearest the 6 first.

Worked solution
  1. First find g(6)=6-4=2.
  2. Apply g to 6 first (subtract 4), then apply f to the result (multiply by 2 and add 1).
    Function flow for fg of 6Start with 6. Apply g, which subtracts 4, to get 2. Then apply f, which doubles and adds 1, to get 5. This is f(g(6)).62g(x)x − 425f(x)2x + 1
  3. Then f(2)=2\times2+1=5, so fg(6)=5.
  4. Take care with the order: working out f(6) first gives gf(6)=g(13)=9, which is not what was asked.

Question 22 marks

f(x)=x^2 and g(x)=x+3.

Work out the value of gf(2).

Hint

gf(2) means apply f first, then put the result into g.

Worked solution
  1. gf(2) means apply f first, then put the result into g.
  2. f(2)=2^2=4.
  3. Now put 4 into g: g(4)=4+3=7.
  4. So gf(2)=7.
  5. Take care with the order: putting 2 into g first gives fg(2)=f(5)=25, which is not what was asked.

Question 32 marks

f(x)=\frac{6}{x} and g(x)=x-2.

Work out the value of fg(5).

Hint

fg(5) means work out g(5) first, then put that value into f.

Worked solution
  1. fg(5) means apply g first, then put the result into f.
  2. g(5)=5-2=3.
  3. Now put 3 into f: f(3)=\frac{6}{3}=2.
  4. So fg(5)=2.

Question 42 marks

f(x)=3x+2 and g(x)=2x-5.

Work out an expression for fg(x).

Type powers with ^ and fractions with /, for example x^2 or (x+1)/3

Hint

fg(x) means put the whole of g(x) into f: replace x in f(x) with (2x-5).

Worked solution
  1. fg(x) means put g(x) into f: replace x in 3x+2 with (2x-5). Do not multiply f(x) by g(x).
  2. fg(x)=3(2x-5)+2.
  3. Expand the bracket: 6x-15+2.
  4. Collect the numbers: fg(x)=6x-13.

Question 52 marks

f(x)=x^2-1 and g(x)=x+4.

Work out an expression for gf(x).

Type powers with ^ and fractions with /, for example x^2 or (x+1)/3

Hint

gf(x) means put the whole of f(x) into g.

Worked solution
  1. gf(x) means put f(x) into g: replace x in x+4 with (x^2-1). Do not multiply or add the two functions.
  2. gf(x)=(x^2-1)+4.
  3. Collect the numbers: gf(x)=x^2+3.

Question 62 marks

f(x)=3x^2+2 and g(x)=x-9.

Work out the value of fg(5).

Hint

Work out g(5) first, then put that value into f.

Worked solution
  1. fg(5) means apply g first, then put the result into f.
  2. g(5)=5-9=-4.
  3. Now put −4 into f: f(-4)=3\times(-4)^2+2.
    Function flow for fg of 5Start with 5. Apply g, which is x minus 9, to get minus 4. Then apply f, which is 3x squared plus 2, to get 50.5−4gx − 9−450f3x² + 2
  4. Square first, then multiply by 3: (-4)^2=16 (a negative number squared is positive), so 3\times16+2=48+2=50.
  5. So fg(5)=50.

Question 72 marks

g(x)=\sqrt{x-3} for x\ge3, and h(x)=4x-9.

Work out the value of hg(52).

Hint

hg(52) means work out g(52) first, then put that value into h.

Worked solution
  1. hg(52) means apply g first, then put the result into h.
  2. g(52)=\sqrt{52-3}=\sqrt{49}=7.
  3. Now put 7 into h: h(7)=4\times7-9=28-9=19.
  4. So hg(52)=19.

Question 82 marks

f(x)=\frac{15}{x+2} and g(x)=x^2+1.

Work out the value of fg(3).

Type a fraction with /, for example 3/4

Hint

Work out g(3) first. Then put that value into f, and simplify the fraction.

Worked solution
  1. fg(3) means apply g first, then put the result into f.
  2. g(3)=3^2+1=10.
  3. Now put 10 into f: f(10)=\frac{15}{10+2}=\frac{15}{12}.
  4. Simplify: \frac{15}{12}=\frac{5}{4}, so fg(3)=\frac{5}{4}.

Question 92 marks

f(x)=4\cos x^\circ and g(x)=x^2-3.

Work out the value of gf(25).

Give your answer correct to 3 significant figures.

Hint

Work out f(25) first, with your calculator in degrees. Then put that value into g, without rounding it first.

Worked solution
  1. gf(25) means apply f first, then put the result into g.
  2. f(25)=4\cos25^\circ=3.6252\ldots Keep the full value on your calculator.
  3. Now put this into g: g(3.6252\ldots)=3.6252\ldots^2-3=13.1423\ldots-3=10.1423\ldots
  4. Correct to 3 significant figures, gf(25)=10.1.

Question 102 marks

f(x)=7-2x.

Work out an expression for ff(x).

Type powers with ^ and fractions with /, for example x^2 or (x+1)/3

Hint

ff(x) means put f(x) back into f: replace x in 7-2x with (7-2x).

Worked solution
  1. ff(x) means put f(x) into f: replace x in 7-2x with (7-2x).
  2. ff(x)=7-2(7-2x).
  3. Expand the bracket, taking care with the signs: 7-14+4x.
  4. Collect the numbers: ff(x)=4x-7.

Question 113 marks

f(x)=x^2+1 and g(x)=3-x.

Work out fg(x).

Give your answer in the form ax^2+bx+c where a, b and c are integers.

Type powers with ^ and fractions with /, for example x^2 or (x+1)/3

Hint

Replace x in f(x) with (3-x), then expand (3-x)^2 carefully.

Worked solution
  1. fg(x) means put g(x) into f: replace x in x^2+1 with (3-x). Do not multiply f(x) by g(x).
  2. fg(x)=(3-x)^2+1.
  3. Expand the square: (3-x)^2=(3-x)(3-x)=9-6x+x^2.
  4. So fg(x)=9-6x+x^2+1=x^2-6x+10.

Question 123 marks

f(x)=3x+1 and g(x)=x-2.

Solve fg(x)=16.

Hint

First find an expression for fg(x). Then set it equal to 16 and solve.

Worked solution
  1. Find fg(x) by putting g(x) into f: fg(x)=3(x-2)+1=3x-5.
  2. Set it equal to 16: 3x-5=16.
  3. Add 5: 3x=21.
  4. Divide by 3: x=7.

Question 133 marks

f(x)=\frac{10}{x}-3 and g(x)=2x^3.

Work out fg(x).

Give your answer in the form a+bx^n where a, b and n are integers.

Type powers with ^ and fractions with /, for example x^2 or (x+1)/3

Hint

fg(x) means put the whole of g(x) into f: replace x in \frac{10}{x}-3 with 2x^3.

Worked solution
  1. fg(x) means put g(x) into f: replace x in \frac{10}{x}-3 with 2x^3. Do not multiply f(x) by g(x), and do not put f into g.
  2. fg(x)=\frac{10}{2x^3}-3.
  3. Cancel the fraction: \frac{10}{2x^3}=\frac{5}{x^3}.
  4. Write \frac{1}{x^3} as a power of x: \frac{1}{x^3}=x^{-3}, so \frac{5}{x^3}=5x^{-3}.
  5. So fg(x)=-3+5x^{-3}, where a=-3, b=5 and n=-3.

Question 143 marks

f(x)=\frac{x+3}{2} and g(x)=x^3.

Solve gf(x)=-8.

Hint

Write gf(x) as an expression and set it equal to −8. Then take the cube root of both sides.

Worked solution
  1. Find gf(x) by putting f(x) into g: gf(x)=\left(\frac{x+3}{2}\right)^3.
  2. Set it equal to −8: \left(\frac{x+3}{2}\right)^3=-8.
  3. Work back from −8, undoing g first and then f. Take the cube root of both sides: \frac{x+3}{2}=-2, because (-2)^3=-8.
    Working back through gf of x equals minus 8Forwards, x goes through f, which adds 3 and halves, then through g, which cubes, to give minus 8. Backwards, the cube root of minus 8 is minus 2, then doubling and subtracting 3 gives minus 7.Forwards: gf(x) = −8x?fadd 3, halve?−8gcubeBackwards: undo each step−8−2cube root−2−7double,subtract 3
  4. Multiply by 2: x+3=-4.
  5. Subtract 3: x=-7.

Question 153 marks

f(x)=x^2 and g(x)=x+2.

Solve gf(x)=11.

Give every value, separated by commas

Hint

Find an expression for gf(x) first. A square has two square roots.

Worked solution
  1. Find gf(x) by putting f(x) into g: gf(x)=x^2+2.
  2. Set it equal to 11: x^2+2=11, so x^2=9.
  3. Take the square root, remembering the negative root: x=3 or x=-3.

Question 16Challenge4 marks

f(x)=x^2-2 and g(x)=2x+3.

Solve fg(x)=23.

Give every value, separated by commas

Hint

Find fg(x) first. Then make the squared bracket the subject and use both square roots.

Worked solution
  1. Find fg(x) by putting g(x) into f: fg(x)=(2x+3)^2-2.
  2. Set it equal to 23: (2x+3)^2-2=23, so (2x+3)^2=25.
  3. Take the square root, remembering the negative root: 2x+3=5 or 2x+3=-5.
  4. So 2x=2 or 2x=-8, giving x=1 or x=-4.

Question 17Challenge3 marks

f(x)=6-\sqrt{x} for x\ge0, and g(x)=3x-2.

Solve fg(x)=1.

Hint

Write fg(x) as an expression and set it equal to 1. Get the square root on its own, then square both sides.

Worked solution
  1. Find fg(x) by putting g(x) into f: fg(x)=6-\sqrt{3x-2}.
  2. Set it equal to 1: 6-\sqrt{3x-2}=1.
  3. Get the square root on its own: \sqrt{3x-2}=5.
  4. Square both sides: 3x-2=25.
  5. Add 2: 3x=27. Divide by 3: x=9.
  6. Check: g(9)=25 and f(25)=6-5=1, so x=9.

Question 18Challenge4 marks

f(x)=3x-2 and g(x)=x^2.

Solve gf(x)=5x^2-8x+28.

Give every value, separated by commas

Hint

Write gf(x) as an expression in x first. Then form a quadratic equation and solve it.

Worked solution
  1. Find gf(x) by putting f(x) into g: gf(x)=(3x-2)^2.
  2. Expand the square: (3x-2)^2=9x^2-12x+4.
  3. Form the equation: 9x^2-12x+4=5x^2-8x+28.
  4. Make one side 0: 4x^2-4x-24=0. Divide by 4: x^2-x-6=0.
  5. Factorise: (x-3)(x+2)=0.
  6. So x=3 or x=-2.

Question 19Challenge4 marks

f(x)=\frac{1}{4}x+1 and g(x)=x^2+8.

Solve f^{-1}(x)=fg(x).

Give every value, separated by commas

Hint

Find f^{-1}(x) by undoing f (it is not \frac{1}{f(x)}), and find fg(x) by putting g(x) into f. Then set them equal.

Worked solution
  1. Find f^{-1}(x). Let y=\frac{1}{4}x+1. Then y-1=\frac{1}{4}x, so x=4(y-1). So f^{-1}(x)=4x-4. (The inverse is not \frac{1}{f(x)}.)
  2. Find fg(x) by putting g(x) into f: fg(x)=\frac{1}{4}(x^2+8)+1=\frac{1}{4}x^2+2+1=\frac{1}{4}x^2+3.
  3. Set them equal: 4x-4=\frac{1}{4}x^2+3.
  4. Multiply every term by 4: 16x-16=x^2+12.
  5. Make one side 0: x^2-16x+28=0.
  6. Factorise: (x-2)(x-14)=0.
  7. So x=2 or x=14.
  8. Check x=2: f^{-1}(2)=4 and fg(2)=\frac{1}{4}\times12+1=4.

Question 20Challenge5 marks

f(x)=\frac{x+5}{3}, g(x)=2x^2-13 and h(x)=x-2.

Solve f^{-1}(x)=gh(x).

Give every value, separated by commas

Hint

Find f^{-1}(x) by undoing f (it is not \frac{1}{f(x)}), and find gh(x) by putting h(x) into g. Then set them equal and collect every term on one side.

Worked solution
  1. Find f^{-1}(x). Let y=\frac{x+5}{3}. Then 3y=x+5, so x=3y-5. So f^{-1}(x)=3x-5. (The inverse is not \frac{1}{f(x)}.)
  2. Find gh(x) by putting h(x) into g: gh(x)=2(x-2)^2-13.
  3. Expand: (x-2)^2=x^2-4x+4, so gh(x)=2x^2-8x+8-13=2x^2-8x-5.
  4. Set them equal: 3x-5=2x^2-8x-5.
  5. Make one side 0: 2x^2-11x=0. The numbers cancel, so there is no number term.
  6. Factorise: x(2x-11)=0. Do not divide by x, or you lose the solution x=0.
  7. So x=0 or 2x=11, giving x=\frac{11}{2}.
  8. Check x=0: f^{-1}(0)=-5 and gh(0)=g(-2)=8-13=-5.