Here are the homework questions

Answer to Question #1

Answer to Question #2

Answer to Question #3

Answer to Question #4

z = function(x) (3*x) + 4 - x^2
integrate(z,-1,4)
## 20.83333 with absolute error < 2.3e-13

Answer to Question #5

Answer to Question #6

Answer to Question #7