Dear all,

I am trying to simulate the bisection method* to find the closest point on a reparametrized arc to a given point. I studied the mathematical concept, yet I am not able to define the required function to calculate the derivative. Especially since it should calculate the derivative according to a point on the arc. Could you guide me or give me any resources that would help me do so?

*https://en.wikipedia.org/wiki/Bisection_method

*https://www.youtube.com/watch?v=Y2AUhxoQ-OQ