Step by step
The question
Question: find f(g(2)) for f(x) = 3x − 2 and g(x) = x² + 1.
1 Work out the inside
f(g(2)) is a function inside a function.
Like with brackets, we start inside.
f works on what g(2) gives.
So first g(2).
Put 2 in place of x in g.
Everyone uses the same order, so we all get the same answer.
Powers come before plus.
2² means 2 times 2.
That is 4.
4 plus 1 is 5.
2 Then the outside
g(2) is 5.
So f(g(2)) is f(5).
Put 5 in place of x in f.
Everyone uses the same order, so we all get the same answer.
Times comes before minus.
3(5) means 3 times 5.
3 times 5 is 15.
15 minus 2 is 13.
So f(g(2)) = 13.
Let's look back.
First: work out the inside.
Last: then the outside.