To find the value of \( x \) for which \( f(x) = 2 \), we can look at the table of values provided:
- When \( x = -1 \), \( f(x) = -6 \)
- When \( x = 1 \), \( f(x) = 2 \)
- When \( x = 2 \), \( f(x) = 3 \)
- When \( x = 3 \), \( f(x) = 10 \)
From the table, we can see that when \( x = 1 \), \( f(x) = 2 \).
Therefore, the value of \( x \) when \( f(x) = 2 \) is:
1