I have a set of x and y coordinates from an unknown function. I want to find the AUC bound by the line joining first and last (x, y) coordinates of this function (depicted b