Question: what is the difference between right and left endpoints?
Answer: In general, if function is increasing then left endpoint approximation underestimates value of integral, while right endpoint approximation overestimates it. If function is decreasing then left endpoint approximation overestimates value of integral, while right endpoint approximation underestimates it.