Approximating the Derivative of Manifold-valued Functions