If f(x) = 3x + 1 and g(x) = x^2, what is the value of f(g(2))?
- A5
- B13Correct
- C49
- D25
Why B is right
Evaluate a composition from the inside out. First find g(2) = 2^2 = 4. Then put that output into f: f(4) = 3(4) + 1 = 12 + 1 = 13. So f(g(2)) = 13, choice B.
Why the other 3 choices miss
- A
- 5 comes from finding g(2) = 4 and then only adding 1 (4 + 1 = 5) without first multiplying by 3 as f requires.
- C
- 49 comes from reversing the order of composition and computing g(f(2)) instead: f(2) = 3(2) + 1 = 7, then g(7) = 7^2 = 49.
- D
- 25 comes from adding 1 to g(2) to get 5 and then squaring again (5^2 = 25), which applies g a second time instead of applying f's rule of 3x + 1.