An R function that plots and returns the value of a definite integral.