
Doug C. answered 12/19/23
Math Tutor with Reputation to make difficult concepts understandable
You can do it either way. In this particular case it is probably easier to find the composite function and then find its derivative.
h(x) = f[g(x)] = 1/[(√x)2+1] = 1/(x+1) = (x+1)-1
h'(x) = -1(x+1)-2.
OR
f'(x) = -2x / (x2+1)2
f'[g(x)](g'(x)) = -2√x/ [ x+1]2 (1/(2√x) = -1 / (x+1)2
Use this Desmos graph for validation:
desmos.com/calculator/krqm20guec