This type of question often leaves students wondering what to do. I hope this worked example would shed some light to the approach, which is formally known as a Riemann sum.