# Area under two curves

I am trying to fill in the area between two functions, $F(x) = 4-x^6$ and $G(x) = x$.

This is my code so far. It won't fill properly, it takes into consideration other areas of the functions.

```
f(x) = 4 - x^6
g(x) = x
P1 = plot(f, (-4, 4), color='purple', linestyle="dashed", fill=True,
legend_label='Plot of $4-x^6$')
P2 = plot(g, (-4, 4), color='green', title="Area between two curves",
legend_label='Plot of $x$')
show(P1 + P2, ymin=-4, ymax=4)
```

Welcome to Ask Sage! Thank you for your question.