Composite Functions

Question 12 marks

f(x)=2x+1 and g(x)=x-4. Find fg(6), meaning f(g(6)).

Hint

Apply the function nearest the input first.

Worked solution

f(x)=2x+1 and g(x)=x-4. Find fg(6), meaning f(g(6)).

  1. First find g(6)=6-4=2.
  2. The flow makes the order clear: apply g to 6 first, then apply f to the result.
    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)).6g(x) = x − 42f(x) = 2x + 15g first, then f
    The input passes through g first (subtract 4), then f (multiply by 2 and add 1).
  3. Then f(2)=2\times2+1=5, so fg(6)=5.

Question 22 marks

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

Hint

For this order, apply the square function first.

Worked solution

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

  1. First f(2)=4.
  2. Then g(4)=4+3=7, so gf(2)=7.

Question 32 marks

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

Hint

Work from the input towards the outside function.

Worked solution

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

  1. f(-2)=5-(-2)=7.
  2. Then g(7)=21, so gf(-2)=21.

Question 42 marks

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

Hint

Use the output of the second function as the denominator in the first.

Worked solution

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

  1. g(5)=3.
  2. Then f(3)=\frac{6}{3}=2.

Question 52 marks

f(x)=2x-3 and g(x)=x^2. Find a simplified expression for fg(x).

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

Hint

Replace the input in the outside rule by the whole inside rule.

Worked solution

f(x)=2x-3 and g(x)=x^2. Find a simplified expression for fg(x).

  1. fg(x)=f(x^2).
  2. Replacing the input in 2x-3 gives 2x^2-3.

Question 62 marks

f(x)=x^2-1 and g(x)=x+4. Find a simplified expression for gf(x).

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

Hint

The outside function adds to the output of the inside function.

Worked solution

f(x)=x^2-1 and g(x)=x+4. Find a simplified expression for gf(x).

  1. gf(x)=g(x^2-1).
  2. This is x^2-1+4, which simplifies to x^2+3.

Question 72 marks

f(x)=3x+2 and g(x)=2x-5. Find a simplified expression for fg(x).

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

Hint

Substitute the complete linear expression into the outside function.

Worked solution

f(x)=3x+2 and g(x)=2x-5. Find a simplified expression for fg(x).

  1. fg(x)=3(2x-5)+2.
  2. Expand and collect to get 6x-13.

Question 82 marks

f(x)=x^2 and g(x)=2x+1. Find an expanded and simplified expression for fg(x).

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

Hint

Square the whole inside expression.

Worked solution

f(x)=x^2 and g(x)=2x+1. Find an expanded and simplified expression for fg(x).

  1. fg(x)=(2x+1)^2.
  2. Expanding the squared bracket gives 4x^2+4x+1.

Question 92 marks

f(x)=\frac{x}{2} and g(x)=\frac{6}{x}, where x\ne0. Find fg(x) as a single simplified fraction.

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

Hint

Applying the outside function divides the inside output by two.

Worked solution

f(x)=\frac{x}{2} and g(x)=\frac{6}{x}, where x\ne0. Find fg(x) as a single simplified fraction.

  1. fg(x) means put g(x) into f: fg(x)=f\left(\frac{6}{x}\right).
  2. f halves its input: \frac{6}{x}\div2.
  3. \frac{6}{x}\div2=\frac{6}{2x}=\frac{3}{x}.

Question 102 marks

f(x)=2x-5. Find a simplified expression for ff(x).

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

Hint

ff(x) means f(f(x)): put the whole of 2x-5 into f.

Worked solution

f(x)=2x-5. Find a simplified expression for ff(x).

  1. ff(x) means apply f twice: ff(x)=f(2x-5).
  2. Replace x in 2x-5 by (2x-5): 2(2x-5)-5.
  3. Expand and collect: 4x-10-5=4x-15.

Question 113 marks

f(x)=2x+1 and g(x)=x+4. Which statement is true for every value of x?

Choose one answer
Hint

Find both composite rules before comparing them.

Worked solution

f(x)=2x+1 and g(x)=x+4. Which statement is true for every value of x?

  1. fg(x)=gf(x)
  2. fg(x)=gf(x)-4
  3. fg(x)=gf(x)+4
  4. fg(x)=2gf(x)
  1. fg(x) means apply g first: fg(x)=f(x+4)=2(x+4)+1=2x+9.
  2. gf(x) means apply f first: gf(x)=g(2x+1)=(2x+1)+4=2x+5.
  3. The two flows show why the order matters: fg(x)=2x+9, while gf(x)=2x+5.
    The two orders of compositionFor fg, start with x, add 4 using g, then apply f to double and add 1, giving 2x+9. For gf, start with x, apply f, then add 4 using g, giving 2x+5.fgxg: +4f: ×2, +12x + 9gfxf: ×2, +1g: +42x + 5
    The same two operations produce different expressions when their order is reversed.
  4. 2x+9 is always 4 more than 2x+5, so fg(x)=gf(x)+4.
  5. The first option is wrong: the order matters, and here fg(x) and gf(x) are different.

Question 123 marks

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

Hint

Write the composite as an ordinary equation in the input.

Worked solution

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

  1. fg(x)=3(x-2)+1.
  2. Solve 3x-5=16, giving 3x=21.
  3. Therefore x=7.

Question 133 marks

f(x)=x^2 and g(x)=x+2. Solve gf(x)=11.

Give every value, separated by commas

Hint

Form the composite rule, then remember both square roots.

Worked solution

f(x)=x^2 and g(x)=x+2. Solve gf(x)=11.

  1. gf(x)=x^2+2.
  2. The equation gives x^2=9.
  3. Therefore x=-3 or x=3.

Question 142 marks

f(x)=\frac{1}{x-3} and g(x)=2x+1. There is one input for which fg(x) is not defined. Find that input.

Hint

Find the input that would make the composite denominator zero.

Worked solution

f(x)=\frac{1}{x-3} and g(x)=2x+1. There is one input for which fg(x) is not defined. Find that input.

  1. fg(x)=\frac{1}{2x+1-3}.
  2. The input to f is g(x)=2x+1. The denominator of f(u) is zero when that input is 3.
    The excluded input in fgThe input x passes through g to u=2x+1, then into f(u)=1/(u-3). This is undefined when u=3. Solving 2x+1=3 gives the excluded original input x=1.xg(x)=2x+1uf(u)=1/(u−3)yUndefined when u = 32x + 1 = 3 → x = 1 is excluded
    The composite is undefined when g(x) makes the denominator of f equal to zero.
  3. Its denominator is zero when 2x-2=0.
  4. The excluded input is x=1.

Question 153 marks

f(x)=x^2+1 and g(x)=3-x. Find an expanded and simplified expression for fg(x).

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

Hint

The whole inside expression is squared before the final constant is added.

Worked solution

f(x)=x^2+1 and g(x)=3-x. Find an expanded and simplified expression for fg(x).

  1. fg(x)=(3-x)^2+1.
  2. Expanding gives 9-6x+x^2+1.
  3. Collect terms: x^2-6x+10.

Question 16Challenge4 marks

f(x)=2x+1 and g(x)=x^2. Solve fg(x)=gf(x).

Give every value, separated by commas

Hint

Form both composite expressions and put all terms on one side.

Worked solution

f(x)=2x+1 and g(x)=x^2. Solve fg(x)=gf(x).

  1. fg(x) means apply g first: fg(x)=f(x^2)=2x^2+1.
  2. gf(x) means apply f first: gf(x)=g(2x+1)=(2x+1)^2=4x^2+4x+1.
  3. Set them equal: 2x^2+1=4x^2+4x+1.
  4. Rearrange: 0=2x^2+4x, and factorise: 2x(x+2)=0.
  5. So x=0 or x=-2.

Question 17Challenge3 marks

f(x)=\frac{4}{x+1} and g(x)=\frac{x-3}{2}. Find fg(x) as a single simplified fraction, for x\ne1.

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

Hint

Combine the terms in the inner denominator before simplifying the outer fraction.

Worked solution

f(x)=\frac{4}{x+1} and g(x)=\frac{x-3}{2}. Find fg(x) as a single simplified fraction, for x\ne1.

  1. fg(x) means put g(x) into f: fg(x)=\frac{4}{\frac{x-3}{2}+1}.
  2. Simplify the denominator: \frac{x-3}{2}+\frac{2}{2}=\frac{x-1}{2}.
  3. Dividing by \frac{x-1}{2} is the same as multiplying by \frac{2}{x-1}: 4\times\frac{2}{x-1}=\frac{8}{x-1}.

Question 18Challenge3 marks

f(x)=\frac{12}{x} and g(x)=x+3. The function h is such that h(x)=fg(x), where x\ne-3. Find h^{-1}(x).

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

Hint

Write h(x) as a single expression first, then make x the subject of y=h(x).

Worked solution

f(x)=\frac{12}{x} and g(x)=x+3. The function h is such that h(x)=fg(x), where x\ne-3. Find h^{-1}(x).

  1. fg(x) means apply g first, then f: h(x)=f(x+3)=\frac{12}{x+3}.
  2. To find the inverse, write y=\frac{12}{x+3} and make x the subject.
  3. Multiply both sides by x+3: y(x+3)=12, so x+3=\frac{12}{y}.
  4. Subtract 3: x=\frac{12}{y}-3.
  5. Write the inverse in terms of x: h^{-1}(x)=\frac{12}{x}-3, which can also be written as \frac{12-3x}{x}.

Question 19Challenge4 marks

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

Give every value, separated by commas

Hint

Isolate the squared bracket, then use both signs of the square root.

Worked solution

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

  1. fg(x)=(2x+3)^2-2.
  2. The equation gives (2x+3)^2=25.
  3. So 2x+3=5 or 2x+3=-5.
  4. Therefore x=1 or x=-4.

Question 20Challenge3 marks

f(x)=3x-2 and g(x)=ax+b. Given that gf(x)=6x+5 for all x,

(a)

find a.

2 marks

(b)

find b.

1 mark

Hint

Expand the composite rule and compare the coefficient and constant with the stated result.

Worked solution

f(x)=3x-2 and g(x)=ax+b. Given that gf(x)=6x+5 for all x,

Part (a)

find a.

  1. gf(x)=a(3x-2)+b=3ax-2a+b.
  2. Compare coefficients: 3a=6, so a=2.

Part (b)

find b.

  1. The constants satisfy -2a+b=5.
  2. Using the value of a gives -4+b=5, so b=9.