[Math] Area using definite integrals with a straight line

algebraic-curvesintegration

I'm really stuck on this. Say you have a curve $y = 3x – x^2$ that cuts the x-axis at points $O$ and $A$, and meets the line $y = -3x$ at the point $B$. How would you find the area of this shaded region?
enter image description here

I tried integrating between $O$ and $B$, and then I was going to take away the triangle (not shown) with hypotenuse $O$ to $B$. But this didn't work. The answer is 36, but I just can't get there.

Best Answer

First evaluate the x value of $B$.

$$3x-x^2=-3x$$ $$6x-x^2=0$$ $$x(6-x)=0$$ So $B$ is at $x=6$ (and $A$ is at $x=0$)

Construct integral: $\int_0^63x-x^2\space-\space-3x\space dx$

$$\int_0^63x-x^2\space-\space-3x\space dx=\int_0^6 6x-x^2dx$$ $$=\left(3x^2-\frac{x^3}{3}\right)_0^6$$ $$=3\times6^2-\frac{6^3}{3}$$ $$=108-72$$ $$=36$$