Integrate $y^2$ over the region in the following image:https://i.stack.imgur.com/CSPyo.png
I'd post it directly but I need ten reputation. I know the answer must be 1/3 geometrically, but the integral I created to solve the problem evaluates to 4/3.
$\int_0^2 \int_{x-1}^x y^2 dy dx$
What am I doing wrong?
The upper and lower limit is not always $x$ and $x-1$ respectively.
When $x$ is from $0$ to $1$, it is bounded above by $x$ and bounded below by $0$.
When $x$ is from $1$ to $2$, it is bounded above by $1$ and bounded below by $x-1$.