Compute the derivatives of the given function.