You measure the temperature (y)(y)(y) at various times (x)(x)(x) during the day for four distinct times and get the points (x1,y1),(x2,y2),(x3,y3),(x4,y4)(x_1, y_1), (x_2, y_2), (x_3, y_3), (x_4, y_4)(x1,y1),(x2,y2),. If x1<x2<x3<x4x_1 < x_2 < x_3 < x_4x1<x2<x3< and the intervals are such that…