[Math] Calculus find shaded region

areacalculusintegration

I have this math problem:

enter image description here

First: I found the integral from $-1$ to $3$ of $|x^2+3|$ and got $64/3$

Second: I found the integral from $-1$ to $3$ of $|x|$ and got $5$

Finally: I subtracted $5$ from $64/3$ and got $49/3$

However $49/3$ is wrong, what did I do wrong?

Best Answer

you have to use the form $$\int_a^b f(x)-g(x)dx$$ since the first integral contains a negative part of the function $y=x$ and this part gives negative area i.e. the value 5 is not true
The right one is $$\int_{-1}^3 x^2+3-xdx=52/3$$