Given the conditions
$\int_{0}^{1} p(x)dx=1$, $\int_{0}^{1} xp(x)dx=\mu$ and $p(x)\ge0$ for $\forall x \in [0,1]$,
What probability distribution function $p(x)$ makes $Var(X)$=$\int_{0}^{1} x^{2}p(x)dx - \mu^{2}$ maximum?
Is this can be solved using Lagrange multipliers?
The distribution maximizes $Var(X)$ is: $Pr(X=1)=\mu, Pr(X=0)=1-\mu$. Intuitively, you want to pull the distribution to the sides as much as possible under the constraint of $E(X)=\mu$.