Recall that the composition of functions (f \(\circ\) g)(x) means you substitute g(x) into the function f. So, start by writing (f \(\circ\) g)(x) = f(g(x)).
Given f(x) = \(\frac{1}{x^2 - 2}\) and g(x) = \(\sqrt{x + 2}\), substitute g(x) into f: (f \(\circ\) g)(x) = \(\frac{1}{(\sqrt{x + 2}\))^2 - 2}.
Simplify the expression inside the denominator: (\(\sqrt{x + 2}\))^2 simplifies to x + 2, so the denominator becomes (x + 2) - 2.
Simplify the denominator further: (x + 2) - 2 = x, so (f \(\circ\) g)(x) = \(\frac{1}{x}\).
Next, find (g \(\circ\) f)(x) by substituting f(x) into g: (g \(\circ\) f)(x) = g(f(x)) = \(\sqrt{f(x) + 2}\) = \(\sqrt{\frac{1}{x^2 - 2}\) + 2}. To simplify, write 2 as \(\frac{2(x^2 - 2)}{x^2 - 2}\) and combine the fractions under the square root.