The integrals are
The value of AI at the midpoint is
Where the plus is for Aup and the minus is for And.
The h values in and are both positive. Define x0+h to be x1, and h1=-h so that becomes
Define