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
- First find g(6)=6-4=2.
- Apply g to 6 first (subtract 4), then apply f to the result (multiply by 2 and add 1).
- Then f(2)=2\times2+1=5, so fg(6)=5.
- 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
- gf(2) means apply f first, then put the result into g.
- f(2)=2^2=4.
- Now put 4 into g: g(4)=4+3=7.
- So gf(2)=7.
- 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
- fg(5) means apply g first, then put the result into f.
- g(5)=5-2=3.
- Now put 3 into f: f(3)=\frac{6}{3}=2.
- So fg(5)=2.
Question 42 marks
f(x)=3x+2 and g(x)=2x-5.
Work out an expression for fg(x).
Hint
fg(x) means put the whole of g(x) into f: replace x in f(x) with (2x-5).
Worked solution
- fg(x) means put g(x) into f: replace x in 3x+2 with (2x-5). Do not multiply f(x) by g(x).
- fg(x)=3(2x-5)+2.
- Expand the bracket: 6x-15+2.
- 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).
Hint
gf(x) means put the whole of f(x) into g.
Worked solution
- 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.
- gf(x)=(x^2-1)+4.
- 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
- fg(5) means apply g first, then put the result into f.
- g(5)=5-9=-4.
- Now put −4 into f: f(-4)=3\times(-4)^2+2.
- Square first, then multiply by 3: (-4)^2=16 (a negative number squared is positive), so 3\times16+2=48+2=50.
- 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
- hg(52) means apply g first, then put the result into h.
- g(52)=\sqrt{52-3}=\sqrt{49}=7.
- Now put 7 into h: h(7)=4\times7-9=28-9=19.
- 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).
Hint
Work out g(3) first. Then put that value into f, and simplify the fraction.
Worked solution
- fg(3) means apply g first, then put the result into f.
- g(3)=3^2+1=10.
- Now put 10 into f: f(10)=\frac{15}{10+2}=\frac{15}{12}.
- 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
- gf(25) means apply f first, then put the result into g.
- f(25)=4\cos25^\circ=3.6252\ldots Keep the full value on your calculator.
- Now put this into g: g(3.6252\ldots)=3.6252\ldots^2-3=13.1423\ldots-3=10.1423\ldots
- Correct to 3 significant figures, gf(25)=10.1.
Question 102 marks
f(x)=7-2x.
Work out an expression for ff(x).
Hint
ff(x) means put f(x) back into f: replace x in 7-2x with (7-2x).
Worked solution
- ff(x) means put f(x) into f: replace x in 7-2x with (7-2x).
- ff(x)=7-2(7-2x).
- Expand the bracket, taking care with the signs: 7-14+4x.
- 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.
Hint
Replace x in f(x) with (3-x), then expand (3-x)^2 carefully.
Worked solution
- 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).
- fg(x)=(3-x)^2+1.
- Expand the square: (3-x)^2=(3-x)(3-x)=9-6x+x^2.
- 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
- Find fg(x) by putting g(x) into f: fg(x)=3(x-2)+1=3x-5.
- Set it equal to 16: 3x-5=16.
- Add 5: 3x=21.
- 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.
Hint
fg(x) means put the whole of g(x) into f: replace x in \frac{10}{x}-3 with 2x^3.
Worked solution
- 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.
- fg(x)=\frac{10}{2x^3}-3.
- Cancel the fraction: \frac{10}{2x^3}=\frac{5}{x^3}.
- Write \frac{1}{x^3} as a power of x: \frac{1}{x^3}=x^{-3}, so \frac{5}{x^3}=5x^{-3}.
- 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
- Find gf(x) by putting f(x) into g: gf(x)=\left(\frac{x+3}{2}\right)^3.
- Set it equal to −8: \left(\frac{x+3}{2}\right)^3=-8.
- 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.
- Multiply by 2: x+3=-4.
- Subtract 3: x=-7.
Question 153 marks
f(x)=x^2 and g(x)=x+2.
Solve gf(x)=11.
Hint
Find an expression for gf(x) first. A square has two square roots.
Worked solution
- Find gf(x) by putting f(x) into g: gf(x)=x^2+2.
- Set it equal to 11: x^2+2=11, so x^2=9.
- 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.
Hint
Find fg(x) first. Then make the squared bracket the subject and use both square roots.
Worked solution
- Find fg(x) by putting g(x) into f: fg(x)=(2x+3)^2-2.
- Set it equal to 23: (2x+3)^2-2=23, so (2x+3)^2=25.
- Take the square root, remembering the negative root: 2x+3=5 or 2x+3=-5.
- 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
- Find fg(x) by putting g(x) into f: fg(x)=6-\sqrt{3x-2}.
- Set it equal to 1: 6-\sqrt{3x-2}=1.
- Get the square root on its own: \sqrt{3x-2}=5.
- Square both sides: 3x-2=25.
- Add 2: 3x=27. Divide by 3: x=9.
- 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.
Hint
Write gf(x) as an expression in x first. Then form a quadratic equation and solve it.
Worked solution
- Find gf(x) by putting f(x) into g: gf(x)=(3x-2)^2.
- Expand the square: (3x-2)^2=9x^2-12x+4.
- Form the equation: 9x^2-12x+4=5x^2-8x+28.
- Make one side 0: 4x^2-4x-24=0. Divide by 4: x^2-x-6=0.
- Factorise: (x-3)(x+2)=0.
- 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).
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
- 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)}.)
- 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.
- Set them equal: 4x-4=\frac{1}{4}x^2+3.
- Multiply every term by 4: 16x-16=x^2+12.
- Make one side 0: x^2-16x+28=0.
- Factorise: (x-2)(x-14)=0.
- So x=2 or x=14.
- 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).
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
- 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)}.)
- Find gh(x) by putting h(x) into g: gh(x)=2(x-2)^2-13.
- Expand: (x-2)^2=x^2-4x+4, so gh(x)=2x^2-8x+8-13=2x^2-8x-5.
- Set them equal: 3x-5=2x^2-8x-5.
- Make one side 0: 2x^2-11x=0. The numbers cancel, so there is no number term.
- Factorise: x(2x-11)=0. Do not divide by x, or you lose the solution x=0.
- So x=0 or 2x=11, giving x=\frac{11}{2}.
- Check x=0: f^{-1}(0)=-5 and gh(0)=g(-2)=8-13=-5.
Builds on: Function Notation, Inverse Functions
Next: Graph Transformations
More on this topic: Composite Functions worksheet with full solutions