Integration using the built-in 'int' command

Because the x values are randomly distributed, we can define the average value of the function: The integral is the average value of the function multiplied by the total interval, (b-a). The figure on the right shows red markers representing the x2 function at a series of randomly chosen x values. ................
................