Ok... umm... ill see if i can' explain...
6 function values means that there are 5 sub-intervals. If you dont remember this from class, just draw yourself up a simple graph and mark 6 points on the x-axis (any six points will do... you could try every half centimetre or something). Now, draw a vertical line from each of those lines so they touch the graph you drew. These lines are your funtion values. The 'sub-intervals' are the 'strips' in between these lines. you will observe that there are 5 sub-intervals
The general rule is the the number of sub-intervals is the (number of function values) - 1.
This works for both the trap rule and Simpsons.
The 'y's are the function values (as marked by 'slyball'). The function values are the y-value at that x-value.
Ill try to explain...
y=x^2
where: x=1, y=1
x=2, y=4
x=3, y=9
x=4, y=16
The x-values are the points you marked on your graph before (on the x-axis)... the y-values are the points at which the vertical lines touch the graph you drew.
so, when i put the 'y's in the formula, i am substituting the x-values into the equation of the graph.
I really hope this makes sense...
Tell me if it doesn't
Cheers