ランダウの記号
respectively, where formula_17 denotes a term asymptotically proportional to formula_18. The two formula_17 terms are not equal; see Big O notation for more details. It follows from the above formulas for the errors of the midpoint and trapezoidal rule that the leading error term vanishes if we take the weighted average