# Even or odd?

I just can't seem to grasp this! I have no problems finding out if a function let's say $$x-2x^2$$ is an even or odd function, but when the function is defined differently along different part along the x-axis then I don't understand anything! This function:
$$f(x)=\left\{\begin{array}{cc}0 &\mbox{ if } -2\leq x<0\\(1/2)x & \mbox{ if }0\leq x<2\end{array}\right$$

Someone help me please!
This function is supposed to be neither acutally, but I have no idea how to show this...

## Answers and Replies

Related Introductory Physics Homework Help News on Phys.org
arildno
Homework Helper
Gold Member
Dearly Missed
Well let x=1
Then f(1)=1/2, but f(-1)=0 which is not equal to either 1/2 or -1/2.
Hence, f(x) is neither even nor odd.

Gokul43201
Staff Emeritus
Gold Member
Extra Note : Keep in mind that the above method of comparing f(a) with f(-a) for a particular choice of 'a', can be used only to show that f is neither even nor odd.

To show that some f is even or odd in a given domain, you must show that the relevant relationship holds for all 'a' in the specified domain.

arildno
Homework Helper
Gold Member
Dearly Missed
As Gokul said, I gave a SUFFICIENT proof of f being neither even or odd, by providing a COUNTER-EXAMPLE (of even-ness and odd-ness).

As Gokul said, it only gives me the answer at the point a. I can show that each of the functions separately are either even or odd (or neither), but how do I show this for a given domain...? I know the definition for an odd function is f(-x) = -f(x), and for an even function f(-x) = f(x), but in what function should I put in the negative x?? I have two (sometimes more) to chose from, 0 and (1/2)x. Help! Nå ser jeg jo at jeg sikkert kunne skrevet norsk her også...

arildno