✓Free Maths Q & A Practice1 of 5 free exam-style exercises in this topic
The functions \(f\) and \(g\) are defined by
\[
f(x)=\frac{3x-1}{x+2},\ x\ne -2,\qquad g(x)=x^2-2.
\]
The function machine below applies \(g\) first and then the inverse function \(f^{-1}\).
What is the value of \(\left(f^{-1}\circ g\right)(2)\)?