You are given the four points in the plane , , , and . The graph of the function consists of the three line segments , and . Find the integral by interpreting the integral in terms of sums and/or differences of areas of elementary figures.