Answer
$(g\circ h)(2) = 23$
Work Step by Step
For these types of problems where we are given a value to plug into composite functions, we evaluate the inner function first using the given value. Then we use the output of the inner function and substitute it where we see $x$ in the outer function. We can write this composite function as $g(h(2))$:
Let's begin by plugging in our value of $-1$ into the inner function $g(x)$:
$h(2) = (2)^2 + 1$
Evaluate exponents first first:
$h(2) = 4 + 1$
Add to simplify:
$h(2) = 5$
Now, we will use the output $5$ to plug in for $x$ in the outer function $g(x)$:
$g(h(2)) = (5)(5) - 2$
Multiply first:
$g(h(2)) = 25 - 2$
Add to simplify:
$g(h(2)) = 23$