Integration with two unknowns I'm completely stumped with this one, I'm not sure how I should do this.
The equation of a parabola is $y=-3x(x-2)$. It intersects the $x$-axis at $0$ and $2$.
Given that the area of this parabola is $4\,{\rm units}^2$, there will be a straight line $y=mx$ which divides the area exactly in half ($2\,{\rm units}^2$ per half).
I need to find the $x$-coordinate (point $T$) of where the straight line and the parabola intersect (point $G$) - the $x$-coordinate of the point which divides the parabola into equal areas.
So far I've worked out that the gradient of the dividing line is $m = 6-3p$
I think what I have to do now is integrate a problem like this:
$$
\int\limits_0^T \big[ -3x(x-2)-(6-T)x \big] dx = 2
$$
(hope that formatted correctly)
Does anyone have any ideas?
Thanks,
John Smith

A good idea would be to integrate $\max(f(x)-mx,0)$ between 0 and 2, which indeed leads you to solve $f(x)=mx$, which then gives you $x_M=2-\frac{m}{3}$. 
Now you simply have to integrate the following: $\int_0^{2-\frac{m}{3}} -3x(x-2) - mx dx = -\frac{1}{54}(m-6)^3$.
Making it equal to 2 gives you the result you're after.
