I started with a proof to find the maxima of a beta distribution $Beta(x: \alpha, \beta)$. This involves finding the derivative of the beta distribution and equating it with zero to yields the following root equation:
$$x^{\alpha-2}~(1-x)^{\beta-2}~\bigg((\alpha-1)(1-x)-(\beta-1)x\bigg)=0$$
Now i'm wondering, what's the technique to factor the above expression into this expression???
$$(\alpha-1)-x(\alpha + \beta -2) = 0$$
Which leads to the proof's conclusion for the maxima of a beta distribution:
$$x = \frac{\alpha-1}{\alpha+\beta-2}$$
Roots at x=0:
$x^{\alpha-2}=0$
Roots at x=1:
$(1-x)^{\beta-2}=0$
Root between 0 and 1:
$((\alpha-1)(1-x)-(\beta-1)x)=0$
Solve the latter expression for x.