The next step is to analyse the error. We follow the usual recipe and perform Taylor
expansions of f (x), f
#
(a + b)/2$
and f (b) around the left endpoint a. However,
those Taylor expansions become long and tedious, so we are gong to see
how we can predict what happens. For this, we define the error function,