robertjordan
- 71
- 0
Homework Statement
Show there exists a function f: \mathbb{R} \rightarrow \mathbb{R} s.t. f^2=f but f\neq{0,1}.
Homework Equations
Here f^2=f means for arbitrary a\in{\mathbb{R}}, f(a)^2=f(a)
The Attempt at a Solution
I came up with the function f(a)= \begin{cases}<br /> 0, & \text{if }a\text{> 0 } \\<br /> 1, & \text{if }a \leq 0<br /> \end{cases}What do you guys think? Is this right? I figured the only real numbers r for which r^2=r are r=0 and r=1 so the function f will have to only spit out those values or else there would be some input a for which f(a)^2=/=f(a)
Last edited: