In: Math
1.Given the function f(x)=1/x, using 3 rectangles of equal width, find an approximation to the area between the curve and the x-axis over the interval [4,8] if the heights of the rectangles are found by evaluating the function at the left endpoints, right endpoints, and midpoints of each subinterval created by a partition of the interval given.
2. Given the function, f(x)=−x3+6x2 using 6 rectangles of equal width, find an approximation to the area between the curve and the x-axis over the interval [2,6] if the heights of the rectangles are found by evaluating the function at the left endpoints, right endpoints, and midpoints of each subinterval created by a partition of the interval given