I am struggling in understanding the logic behind obtaining the solution of the following problem.

"Consider the two real functions g(x) = x^(-1) and h(y) = y^2+1. What is the composite function? "

I know the answer is (x-1)^(-1/2). But I just don't understand the steps of obtaining this solution. Please help. Thanks (Bow)(Bow)(Bow)