Question: Binary entropy function

Why does the binary entropy function have the form   H := -p*log(p)-(1-p)*log(1-p);
Why does not the maximum occur when H=1 and p=0.5 ?

H := -p*log(p)-(1-p)*log(1-p);
plot(H, p = 0 .. 1);

Please Wait...