Calculus and Quadratic Formula to Determine Lengths