Let $f\colon\mathbb{R} \to \mathbb{R}$. Define $g: \mathbb{R}\to \mathbb{R}$ by
$g(x)=f(x)(f(x)+f(-x))$
Then which of following is/are correct?
A. $g$ is even for all $f$
B. $g$ is odd for all $f$
C. $g$ is even if $f$ is even
D. $g$ is even if $f$ is odd
Taking $f(x)=\sin x$ eliminated option B. What if I take $f$ to be odd function then my $g=0$. Is $0$ a even function or odd function?
Thanks