"A Function Can't Be Odd&Even" They said, Right? [duplicate]
Solution 1:
As Clive Newstead says here:
Unlike integers, "not even" does not mean the same thing as "odd". You'll find situations like this all over the place: always work from the definitions, don't let your knowledge of the English language deceive you.
His advice goes for all mathematical concepts.
From the very definitions, there's no reason why a function can't be both odd and even. Recall that a function $f\colon\Bbb R\to \Bbb R$ is:
- Odd if, and only if, $\forall x\in \Bbb R(f(-x)=-f(x))$;
- Even if, and only if, $\forall x\in \Bbb R(f(-x)=f(x))$.
'Odd' and 'even' are just words to represent the above definitions. The meaning it has in the English language (or even in other mathematical concepts) has no bearing here.
You should also note that the concept of odd and even functions is only defined for symmetric domains, that is, domains such that if $x$ is the domain, so must $-x$ be too. See this link for further clarification.
Solution 2:
If a function $f\colon\mathbb{R}\to\mathbb{R}$ (the domain could also be a symmetric interval) is odd and even, you have, for all $x$ in the domain,
$$ f(x)=f(-x)=-f(-x) $$
that is,
$$f(x)=-f(x).$$
Can you draw a conclusion from this?