How to find total value using the definite integral. How to find the average value When will the function equal its average value