In trapezoidal rule, the required area =
AAverage of all the offset * common distance
B(Sum of average of end offset+intermediate offsets) * common interval
C(Sum of Average of end offset + remain-ing offsets) * length of stretch
D(Sum of end offset + remaining offsets) * length of stretch