Let $\mathcal P$ be the set of probability densities on $[0,1]$ with mean $1/2$, i.e. $p\in \mathcal P$ iff
$$\int_0^1 p(x)dx=1,\quad \int_0^1 xp(x)dx=\frac{1}{2}\quad \mbox{and}\quad p(x)\ge 0, ~~\forall x\in [0,1].$$
How to solve the minimization problem below ?
$$\min_{p\in\mathcal P}~ \left\{V(p) ~:=~ \int_0^1 \log\big(p(x)\big)p(x)dx + \int_0^1 \big(x\log(x)+(1-x)\log(1-x)\big)p(x)dx\right\}.$$