area under y=2

As you move "b", you will see calculated, the area below the curve and above the x-axis and between x=0 and x=b.