using trapezoidal rule to integrate x^2 from 0 to 5 using 2 intervals