Could someone tell me if the following property is true?
$f,g:\mathbb{R}^N\to\mathbb{\mathbb{R}^N}$ satisfies that $\displaystyle\int_{\mathbb{R}^N}f\cdot g=\displaystyle\int_{\mathbb{R}^N}|f||g|$ if, and only if, $\exists\alpha:\mathbb{R}^N\to \mathbb{R}^+$ such that $f(x)=\alpha(x)g(x)$ a.e.
The right-to-left implication is evident
For left-to-right implication, I have tried to use, in some way, the condition for equality in Cauchy-Schwarz inequality. But I have not completed the proof.
If this property is not true, does anyone know a condition for which an equivalence as above is true?