f(x)= 3x OVER x+1 and g(x) =x^2-1 find formula for f(g(x))