Consider we have a linear bivariate polynomial: $$p(x,y)=ax+by+c.$$
To construct the linear polynomial using least square method, we need to evaluate the value of the average polynomial $p$ in at least in three cells that approximately must be equal to the average of conservative variable $\bar{\psi}$. $$\frac{1}{\Delta_i}\int_{\Delta_i}{p(x,y)}\,dx\,dy = \bar{\psi}_i.$$
My question are:
- How should I define the limit of integration?
- How to evaluate the integral of the polynomial?