Cut the integral into . On [-2,-1] and [1,2], every partition can be chosen so that the sampled value is so the upper sum is greater than 2.

The Riemann integral exists iff the lower and upper Riemann sums tend to the same limit as the partition refines. Since the lower one is always zero, and the upper one is greater than 2, they do not.