In a book on statistics, I've seen the upper bound of $p(1-p) $ to be
$$ p(1-p) \le \frac{1}{4} $$
for $0 \le p \le 1$ which seemed correct. I tried to duplicate this with a simple derivation,
$$p(1-p) = C$$
$$p-p^2 = C$$
Taking derivatives of both sides, gives
$$1-2p=0$$
$$p=\frac{1}{2}$$
which is the value of $p$ at the maximum, and $1/2*1/2 = 1/4$. I obtained this without using the constraint $0 \le p \le 1$ though. How would I include this constraint? Through Lagrange? Is that overkill?