g(n) = 2n + 2
f(n) = n2 - 2
Find g( f(n))
g ( f(n) ) means that we are putting the function f into g (for n)
So we have
2 ( n^2 - 2) + 2 =
2n^2 - 4 + 2 =
2n^2 - 2