Area between two curves when $x=f(y)$

calculusdefinite integralsintegration

I have these two curves: $x=e^y$ and $x=y^2-2$. I want to find the area between them then the area is bounded by $y=±1$. The picture explains it better than I can.enter image description here

I was wondering what the best way to go about it is? I was thinking to rearrange for x and find the new bounds in terms of x? Of just integrate in terms of y like this:

$$\int_{-1}^1 y^2-2 \,dy – \int_{-1}^1 e^y \,dy $$

Is this correct?

Thank you!

Best Answer

Answer:

$$ -\int_{-1}^1 y^2-2 \,dy + \int_{-1}^1 e^y \,dy= e- \frac{1}{e} +\frac{10}{3}$$