Take the 2-minute tour ×
Mathematics Stack Exchange is a question and answer site for people studying math at any level and professionals in related fields. It's 100% free, no registration required.

I was asked in a exam: does there exist a function(need not be continous) $f:\mathbb{R}\rightarrow \mathbb{R}$ whose graph is dense in $\mathbb{R}^2$?

I proved that graph of a discontinuous linear map is dense but did not provide explicit example, could any one give me one such? thank you

share|improve this question
add comment

1 Answer 1

For terminating decimals $x=.d_1d_2\dots d_n$, let $f(x)=.d_nd_{n-1}\dots d_2d_1$. For other $x$, define $f$ however you like. This will give a map from $I=[0,1]$ to $I$, dense in $I\times I$. Now compose with any continuous map from $I$ onto the reals, and make $f$ periodic with period 1.

share|improve this answer
    
Very nice example! –  Seirios Nov 2 '12 at 9:41
    
More examples of such functions from $[0,1]$ to $[0,1]$ can be found in the answers to [Does there exist a function $f:\[0,1\] \to\[0,1\]$ such its graph is dense in $\[0,1\]\times\[0,1\]$?](math.stackexchange.com/questions/139791/…) –  Martin Sleziak Nov 2 '12 at 9:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.