Worked solution: f(x)=2x+3 g(x)=x^2 find gf(x)

Step-by-step working for this composite and inverse function problem, produced and checked by the solver.

Composite function Answer checked
Answer
gf(x)=4x2+12x+9gf(x) = 4 x^{2}+12 x+9
gf(x)-6-4-20246050100150200gf(x)gf(x)Graph with x from -6 to 6 and y from -30.92 to 238.44. Shows the curve gf(x).
  1. The functions
  2. Meaning of
    Apply f first, then put that result into g.
  3. Substitute for in
  4. Expand and simplify
  5. Check: compare with applying the functions one after the other

Change the numbers and solve your own

The method in brief

  1. fg(x) means do g first, then f. Replace x in f with the whole of g(x).
  2. To evaluate gf(2), work out f(2) first, then put that into g.
  3. For the inverse, write y = f(x), swap x and y, then make y the subject.
  4. Check by showing f(f⁻¹(x)) = x.

Full guide: Composite functions fg(x) and inverse functions.

More A-level examples on this topic