I have a series of $(x,y)$ data points where all the Y values are in ascending order. Since these are data points, it is possible to fit a linear, exponential or a polynomial trend line. Given a maximum value for Y, I would like calculate the area between the trend line and the maximum Y value. Please refer the image below:
Any hints would be helpful.
