To find the value of f(g(2)), we need to evaluate g(2) first and then use that result to find f.
First, let’s compute g(2):
g(2) = 1 - 2 = -1
Now that we have g(2) = -1, we will substitute this into f:
f(-1) = 3(-1)^2 + 1
Calculating this, we have:
f(-1) = 3(1) + 1 = 3 + 1 = 4
Therefore, the value of f(g(2)) is 4.