The correct mathematical expression for the local error for the rectangular rule Ri(h) for element i is ∫h−hf(x)dx−Ri(h)=−h324f(2)(ξ), and the global error reads ∫baf(x)dx−Rh(f)=−b−a24h2f(2)(ξ), where Rh is the result obtained with rectangular rule and ξ∈[a,b].