12

Seems simple enough, but I have no idea how one would get all solutions to this. Wolfram Alpha gives $5$ answers, the first $2$ of which I could get myself, but the following $3$ completely defeat me.

enter image description here

Airdish
  • 2,471

1 Answers1

10

If you want a continuous solution:

  1. Draw a graph of $y=x$ (this is an auxiliary construction, you will erase it later).
  2. Starting at any point on the graph, draw a freehand graph of a decreasing function.
  3. Draw the reflection of that graph with respect to the line $y=x$.
  4. Erase the line $y=x$. What remains is the graph of your function.

If you want just any solution:

  1. Select two arbitrary non-intersecting equinumerous sets $A,B\in\mathbb R$. (They can be empty, or finite, or countably infinite, or uncountably infinite; that doesn't matter.)
  2. Select any bijection $A\leftrightarrow B$.
  3. For any $x\in A$, let $f(x)$ be the image of $x$ in $B$ under that bijection, and vice versa.
  4. For any $x\in\mathbb R\setminus(A\cup B)$, let $f(x)=x$.
Ivan Neretin
  • 12,835