Step 1:
write the function
Step 2
split the range in three identical invervals of size
Step 3:
For the first rectangle , base = 2
Step 4:
For the second area
Base = 2
Step 5:
For the the third rectangle
Base = 2
Total area = 10 + 34 + 74 = 118
Area under the curve = 118