Learn · Check · Practice

Applying functions in the wrong order

Read composition from the inside out. Evaluate the inner output before applying the outer rule.

Spot the wrong turn

For f(x) = x + 4 and g(x) = 3x, find f(g(2)).

Incorrect answer: 18

Function composition is not multiplication. f(g(x)) applies one rule after another; f(x)g(x) multiplies two separate outputs.

Work it through

The correction

10

g(2) = 6, then f(6) = 10.

  1. Read from the inside outward to identify which function acts first.
  2. Substitute the entire inner expression for each input in the outer function.
  3. Check that the inner input is allowed and its output lies in the outer function’s domain.

Try the reasoning in another example

For the same functions, find g(f(3)).

  1. First f(3) = 7.
  2. Then g(7) = 7².

Answer: 49

Explain why each step preserves the quantity or relationship. If you can compute the answer but cannot explain the step, revisit the model before adding more questions.

The short check below reuses the first example as a retrieval question and adds a second question. It checks this method; it does not establish a grade level.

Your next step

Check this step for yourself

2 questions · No time limit

Choose an answer or enter it as shown. You can include units. Select “Not sure yet” to mark a skill for practice. Results stay on this page unless you download them.

1 For f(x) = x + 4 and g(x) = 3x, find f(g(2)).
2 For f(x) = x² and g(x) = x − 1, find g(f(3)).