It's simply ((b - a) / (2n))(y0 + 2y1 + 2y2 + ... + 2yn-1 + yn)lol trapizoid rule? That's pathetically easy you calculus noob. Think of it as slop of the line.
lol i was helping a friend on FB with calc and he missed out on something i had said to him. xD