Find the area between two curves
The curves are defined below on the given interval
\[f(x)=-x^{3} + x^{2} - 2\,x - 4\]
\[g(x)=-2\,x - 2\]
Use the interval shown below
\[\left[-2,\;0\right]\]
Calculate the enclosed area over the stated interval
| Piece | Test input |
|---|---|
| Piece 1 | \(-\frac{3}{2}\) |
| Piece 2 | \(-\frac{1}{2}\) |