f(x) = sqrt(cos(x/(x+1)))

how do i find the derivative of that equation?

f'(x) = 1/2[cos (x/(x+1))]^(-1/2)*[-sin (x/(x+1))]*[((x+1) - x)/(x+1)^2]

have fun simplifying this a bit