We're approximating the area under the graph of the function
over the interval [-2, 2] by
- partitioning the integration interval into
subintervals, - building rectangles whose lengths are equal to the length of the corresponding subinterval and whose heights are equal to the value of
, where
denotes the right endpoint of the
-th subinterval, and - computing the areas of each rectangle and adding these areas together.
Splitting [-2, 2] into 4 intervals gives
[-2, -1], [-1, 0], [0, 1], [1, 2]
Each subinterval has length 1. The right endpoints of the
-th subinterval, where
, are given by the (arithmetic) sequence
![r_i=-1+1(i-1)=i-2](https://img.qammunity.org/2020/formulas/mathematics/middle-school/sx93wbuqdn6abx2gf8j7l4m8k0ty8b6uhz.png)
The area of the rectangle over the
-th subinterval is
![A_i=f(i-2)=(i-2)^3+8=i^3-6i^2+6i](https://img.qammunity.org/2020/formulas/mathematics/middle-school/cp5ay7s0hf6fv2rvhko2istraewundo91u.png)
and so the definite integral is approximately
![\displaystyle\int_(-2)^2(x^3+8)\,\mathrm dx\approx\sum_(i=1)^4(i^3-6i^2+6i)](https://img.qammunity.org/2020/formulas/mathematics/middle-school/uvc4lyo4a2elncsjs4gzkonof003fqoykf.png)
There are well-known formulas for computing the sums of powers of consecutive (positive) integers. The ones we care about are
![\displaystyle\sum_(i=1)^ni=\frac{n(n+1)}2](https://img.qammunity.org/2020/formulas/mathematics/middle-school/alzzayxwhj9cse7mvfak2dj3kwi1pf2p65.png)
![\displaystyle\sum_(i=1)^ni^2=\frac{n(n+1)(2n+1)}6](https://img.qammunity.org/2020/formulas/mathematics/middle-school/20tytweblxkjrj3hieb9r3i1ay08s0teac.png)
![\displaystyle\sum_(i=1)^ni^3=\frac{n^2(n+1)^2}4](https://img.qammunity.org/2020/formulas/mathematics/middle-school/z5o098q8ru2myr4tkznhy7vh6oslnefgsf.png)
So we get
![\displaystyle\int_(-2)^2(x^3+8)\,\mathrm dx\approx40](https://img.qammunity.org/2020/formulas/mathematics/middle-school/dn75ejur3lt3952dtxs38ruun4dckgavv5.png)