derivative of sqrt(x +sqrt(x+sqrt(x)))