f(x) = x+1 and g(x) = x2−2. Find (gof) at x = 2?
gof (x) = g(f(x)) = g(x+1) = (x+1)2−2=x2+2x−1
At x = 2 gof = -1