Let $f,g$ be positive integrable functions on the measure space $(X, \mathcal A, \mu )$. Such that $fln f $ and $fln g $ are also integrable
$$\int_X f\ln f d\mu-\left(\int_X f d\mu\right)\ln\left( \int_X f d\mu\right)\ge \int_X f\ln g d\mu-\left(\int_X f d\mu\right)\ln \left(\int_X g d\mu\right)$$ And Prove that the equality holds true only if for some constant $c$, we have $f=cg~~~\mu-a.e$.
It looks there is some convex inequality behind this inequality but I don't know which one.
Any hint or help?
Let $h=\frac g {\int g} d\mu$, $\phi (x)=x \ln (x)$ for $x>0$ and $\nu =hd\mu$. Note that $\nu$ is a probability measure. $\phi$ is convex on $(0,\infty)$ since $\phi ''(x)=\frac 1 x >0$. Hence $\phi (\int \frac f g d\nu) \leq \int \phi \circ \frac f g d\nu$. Simplifying this gives the required inequality. (It may be advisable to look at the case $\int g d\mu =1$ first).