Chain rule/R/x^2+5x-2 over x+1 and y-2 over y^2+3/Confirm/Exercise

Let

and

Determine the derivative of the composite

directly and by the chain rule.