Am attaching two images in which one is non linear curve and the other is bilinearization curve for the non linear curve. So here initially I will draw a line passing through the initial points of the non linear curve and then the Area A1 should be approximately equal to A2. I need to run a loop for the drawing the second line which is starting from the end point of non linear curve and intersects the initial straight line.