We have the following distance formulas:
Given a piecewise continuously differentiable curve , where H^2 is the upper half plane, length is given by