Relation between Roots and Tangent Lines of Function in Fractional Dimensions: A Method for Optimization Problems