https://en.wikipedia.org/wiki/Gini_coefficient
I says that if u people own f portion of the wealth, then the gini index is f-u.
They draw some triangle there
It seems that the area on top of the green line and to the left of the red line is simply .5(f-u)
However, I know no easy way to compute that. Pencil pushing confirm the calculation.
Are there simpler ways?
I know the formula hold if f is equal to 1. When f is less than 1 the area of the triangle shrink proportionally. Well, not really. So yea I am looking for better derivation here.
Note: f + u is NOT 1
It's u people have f incomes.



The triangle of interest has coordinates $(0,0)$, $(1-u,1-f)$ and $(1,1)$ when visited in counterclockwise order. So compute its area as a determinant using the shoelace formula: $$ \frac12\left| \begin{matrix} 1&1&1\\ 0&1-u&1\\ 0&1-f&1\\ \end{matrix} \right|=\frac12\left((1-u) - (1-f)\right)=\frac12(f-u). $$ Using the shoelace formula you can prove that a triangle with one vertex at the origin and the others at $(a,b)$ and $(c,d)$ will have area $\frac12|ad-bc|$.