Define a(x) to be the area of the rectangle bounded by the x-axis, y-axis, the line y = 2, and a vertical line at x. Find the formula for the function a(x).