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: replace every x in f(x) with g(x). This gives f(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 simplifies to x. So, (f \(\circ\) g)(x) = \(\frac{1}{x}\).
Next, find (g \(\circ\) f)(x) = g(f(x)) by substituting f(x) into g. Since g(x) = \(\sqrt{x + 2}\), replace x with f(x) to get g(f(x)) = \(\sqrt{\frac{1}{x^2 - 2}\) + 2}. Then combine the terms inside the square root by expressing 2 as \(\frac{2(x^2 - 2)}{x^2 - 2}\) to have a common denominator, and simplify the numerator accordingly.