Find the area between two curves
The following curve data describe a bounded region
\[q(x)=-2\,x^{3} - 6\,x^{2} - 8\,x - 8\]
\[p(x)=2\,x - 2\]
Use the interval shown below
\[\left[-2,\;1\right]\]
Find the area between the curves
| Piece | Test input |
|---|---|
| Piece 1 | \(-\frac{3}{2}\) |
| Piece 2 | \(0\) |