The right Riemann sum for the function f ( x ) {\displaystyle f(x)} is:
R n = ∑ i = 1 n f ( x i ) Δ x {\displaystyle R_{n}=\sum _{i=1}^{n}f(x_{i})\Delta x}