<h2>x f(x)</h2>
<p>2 -1
3 0
4 2
5 -3
6 4
7 -5
8 6</p>
<p>Several values of the function f are shown above. The function g is defined by g(x) = f(3x + 1). What is the value of g(2)? </p>
<p>I understand that this is a composite function problem. I know that the first step is to solve f(3x+1). Therefore, I have f(7).</p>
<p>But when I come to work on g(7), it doesn't make sense to me to look at the value 7 in the "x" column and match it wish -5 in the "f(x)" column.
The way I understand it, solving g(7) must come from the f(x) column.<br>
Could you explain how this second step works? What's the purpose of the x column?</p>
<p>The answer is -5, but I don't get the second step, when it comes to solving for g.</p>