I have a question about the error evaluation between the double integral and its' riemann sums. It seems that this formula is apperantly not zero:
$$\displaystyle\lim_{n\to\infty}n[\int_0^1 dx\int_0^1 f(x,y)dy-\frac{1}{n^2}\sum_{i=1}^{n}\sum_{j=1}^{n}f(\frac{i}{n},\frac{j}{n})]$$
It assumes that f(x,y) is continuous,integrable and derivable in $(0,1)\times(0,1)$. In my calculation, I acquired it by using the first integral theorem,and attain a result that
$$=\displaystyle\lim_{n\to\infty}-\frac{1}{4n}[f(1,1)-f(0,0)]$$
It still reach zero when $\displaystyle\lim_{n\to\infty}$. I am struggling to find its first-order estimation. Can somebody provide an accurate solution to this?