### For both methods

n = number of intervals ( must be even for Simpson's rule )

a = value of x at lower integration limit

b = value of x at upper integration limit

h = (b-a)/n = width of individual interval

x_{i} = a + h*i for i=0 to i=n

f(x_{i}) = value of function at x=x_{i}
### Trapezoidal Method

Area under straight line between x_{i} and x_{i+1}

Total area between x_{0}=a and x_{n}=b

### Simpson's rule

Area under parabola of 2nd order connecting the points above x_{i} ,
x_{i+1} and x_{i+2}
Total area between x_{0}=a and x_{n}=b
Last revised: 08/23/13