integrate cos(x) + x^3 using trapezoid rule with interval width 0.25 from x = 0 to 3