Answer :

[tex]f(g(x))=\frac{3(x^2-1)}{x^2-1+1}=\frac{3x^2-3}{x^2}=3-\frac{3}{x^2}[/tex]