Upper Riemann Sum
To guarantee your sum always over-approximates
where is the value in that allows to achieve a max
To guarantee your sum always over-approximates
∑i=1nf(Mi)△x
∑i=1nf(Mi)(xi−xi−1)
where Mk is the value in [xk−1,xk] that allows f(Mk) to achieve a max