<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Math on Rishab Hariharan</title>
    <link>https://students.iiserkol.ac.in/~rph22ms045/tags/math/</link>
    <description>Recent content in Math on Rishab Hariharan</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Thu, 22 Feb 2024 03:12:09 +0530</lastBuildDate><atom:link href="https://students.iiserkol.ac.in/~rph22ms045/tags/math/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Continuous function from Q to Q</title>
      <link>https://students.iiserkol.ac.in/~rph22ms045/posts/continuous-function/</link>
      <pubDate>Thu, 22 Feb 2024 03:12:09 +0530</pubDate>
      
      <guid>https://students.iiserkol.ac.in/~rph22ms045/posts/continuous-function/</guid>
      <description>&lt;hr&gt;
&lt;p&gt;&lt;strong&gt;Find a continuous function $f \colon \mathbb{Q} \to \mathbb{Q}$ that satisfies $f(f(q)) = -q$ for all $q \in \mathbb{Q}$.&lt;/strong&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;p&gt;This cute problem was posed to me by &lt;code&gt;Z-module&lt;/code&gt; from the Libera IRC network. This problem exemplifies how continuity could end up being wonky in domains that aren&amp;rsquo;t as nice as $\mathbb{R}$; a function like $f$ does not exist if the domain is changed from $\mathbb{Q}$ to $\mathbb{R}$.&lt;!-- if $f$ is increasing on $\mathbb{R}$, then $f^2$ is also increasing, but $q \mapsto -q$ is strictly decreasing, and this leads to a contradiction.--&gt; If you want to solve it yourself, you should &lt;strong&gt;stop reading here!&lt;/strong&gt; Here are two hints:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Hint 1: &lt;span class=&#34;spoiler-active&#34;&gt;First try constructing a continuous function $h \colon \mathbb{Q} \setminus \{0\} \to \mathbb{Q} \setminus \{0\}$ that satisfies $h(h(q)) = -q$ for all $q \in \mathbb{Q} \setminus\{0\}$.&lt;/span&gt;

&lt;style&gt;
.spoiler-active {
     
     
     
    background-color: gray;
     
     
    color: gray;
    user-select: none;
    border-radius: 2px;
    padding: 0 0.15rem;
    cursor: pointer;
}

 
.spoiler-active:active {
    background-color: transparent !important;
    color: inherit !important;
    user-select: text;
}
&lt;/style&gt;
&lt;/li&gt;
&lt;li&gt;Hint 2: &lt;span class=&#34;spoiler-active&#34;&gt;If you&amp;rsquo;ve constructed $h$, then the problem is extending the domain to include $0$. Think of the sequence $(\pi, \pi/2, \pi/4, \pi/8, \dots)$.&lt;/span&gt;

&lt;style&gt;
.spoiler-active {
     
     
     
    background-color: gray;
     
     
    color: gray;
    user-select: none;
    border-radius: 2px;
    padding: 0 0.15rem;
    cursor: pointer;
}

 
.spoiler-active:active {
    background-color: transparent !important;
    color: inherit !important;
    user-select: text;
}
&lt;/style&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;!-- &lt;img src=&#34;f-tifr-compressed.jpg&#34; width=700 class=&#34;center&#34; title=&#34;This was my favorite problem to write on random chalkboards for a brief period of time.&#34; &gt; --&gt;
&lt;img src=&#34;f-tifr-compressed.jpg&#34; width=700 class=&#34;center&#34;&gt;
&lt;hr&gt;
&lt;h2 id=&#34;solution&#34;&gt;Solution&lt;/h2&gt;
&lt;p&gt;We shall first construct $h$ from the first hint, and then extend the domain to include $0$, thus constructing $f$. Let $A = (0, a) \cap \mathbb{Q}$ where $a &gt; 0$, and let $B = \mathbb{Q}_{&gt;0} \setminus A $. Let $-A = \{-q \mid q \in A \} $ and $-B = \{-q \mid q \in B\} $. We shall construct $h$ in such a way that
&lt;/p&gt;
$$
\begin{align*}
h[A] &amp;= B \,, \\
h[B] &amp;= -A \,, \\
h[-A] &amp;= -B \quad \text{and}\\
h[-B] &amp;= A \,.
\end{align*}
$$&lt;p&gt;
Note that $h$ has to be bijective since $h^2$ is bijective. It is easy to find a $h$ that is piecewise continuous over $A, -A, B, -B$. The issue is the jump discontinuities that may arise at the boundary points of the intervals. However, by making $a$ an irrational number, we can have a jump in $h$ as it passes from one interval to the next.&lt;/p&gt;
&lt;p&gt;To make this point clearer, let us take $a = \pi$, which gives $A = (0, \pi) \cap \mathbb{Q}$ and $B = (\pi , \infty) \cap \mathbb{Q}$. We now construct a function $h$ that is continuous over $A$ and $B$. Recall that the definition of continuity requires only that $\lim_{q \to c}h(q) = h(c)$ for any $c \in \mathbb{Q} \setminus \{0\}$. By picking $a = \pi$, we remove the jump discontinuity at the boundary point of $A$ and $B$ by simply removing the boundary point itself from the domain. Note that we can also have a jump at $0$ since $0$ does not belong to the domain of $h$.&lt;/p&gt;
&lt;!-- &lt;figure class=&#34;center&#34;&gt;&lt;img src=&#34;https://students.iiserkol.ac.in/~rph22ms045/posts/continuous-function/h.png&#34;
			alt=&#34;$h \colon \mathbb{Q}\setminus\{0\} \to \mathbb{Q}\setminus\{0\}$&#34; width=&#34;500&#34;&gt;&lt;figcaption&gt;
			&lt;p&gt;$h \colon \mathbb{Q}\setminus\{0\} \to \mathbb{Q}\setminus\{0\}$&lt;/p&gt;
		&lt;/figcaption&gt;
&lt;/figure&gt;
 --&gt;
&lt;figure class=&#34;center&#34;&gt;&lt;img src=&#34;https://students.iiserkol.ac.in/~rph22ms045/posts/continuous-function/h1.png&#34; width=&#34;500&#34;&gt;
&lt;/figure&gt;

&lt;p&gt;Now, to extend this idea to construct $f$, we need to find a way to remove the jump at $0$. Let us consider another way to create $h$ where instead of just having one collection of sets defined by $a = \pi$, we have two such collections of sets: let $A_2 = (0, \pi/4) \cap \mathbb{Q}$, $B_2 = (\pi/4, \pi/2) \cap \mathbb{Q}$, $A_1 = (\pi/2, \pi) \cap \mathbb{Q}$, and $B_1 = (\pi, \infty) \cap \mathbb{Q}$. We map sets to their images in a similar way as for the previous case, so we have
&lt;/p&gt;
$$
\begin{align*}
h[A_2] &amp;= B_2 \,, \\
h[B_2] &amp;= - A_2 \,, \\
h[-A_2] &amp;= - B_2 \quad \text{and}\\
h[-B_2] &amp;= A_2 \,,
\end{align*}
$$&lt;p&gt;
and similarly for $A_1$ and $B_1$ where $- C_i := \{ -q \mid q \in C_i\}$ for any $C_i \in \{A_1, A_2, B_1, B_2\}$. See the image below for a visualization.&lt;/p&gt;
&lt;figure class=&#34;center&#34;&gt;&lt;img src=&#34;https://students.iiserkol.ac.in/~rph22ms045/posts/continuous-function/h2.png&#34; width=&#34;600&#34;&gt;
&lt;/figure&gt;

&lt;p&gt;Observe that by modifying the construction of $h$ in this way, we have brought down the length of the jump at $0$ from $2\pi$ to $\pi/2$. We may repeat this process infinitely many times, taking smaller and smaller collections of sets near zero, scaling successive interval sizes by a factor of $1/2$ so that the jump-length approaches $0$. Finally, mapping $0$ to itself will give us $f$.&lt;/p&gt;
&lt;p&gt;To be precise, we define $f \colon \mathbb{Q} \to \mathbb{Q}$ in the following way. First we set $f(0) = 0$. For each $i \in \mathbb{Z}$, define $C_i = \left(\pi/2^{i}, \pi/2^{i-1} \right) \cap \mathbb{Q}$. Now, for each even $i$, we make $f$ induce the following set mappings:
&lt;/p&gt;
$$
\begin{align*}
f[C_i] &amp;= C_{i-1} \,, \\
f[C_{i-1}] &amp;= - C_i \,, \\
f[-C_i] &amp;= - C_{i-1} \quad \text{and}\\
f[- C_{i-1}] &amp;= C_i \,.
\end{align*}
$$&lt;p&gt;
To explicitly construct these set mappings, we define $f$ piecewise. For each even integer $i \in \mathbb{Z}$, the function is defined as
&lt;/p&gt;
$$
f(q) = \begin{cases} 
2q &amp; \text{if } q \in C_i \\
-q/2 &amp; \text{if } q \in C_{i-1} \\
2q &amp; \text{if } q \in -C_i \\
-q/2 &amp; \text{if } q \in -C_{i-1} 
\end{cases} \,.
$$&lt;p&gt;
This is the same as
&lt;/p&gt;
$$
f(q) = \begin{cases}
2q &amp; \text{if } q \in C_i \cup -C_i \text{ for some even } i \in \mathbb{Z} \\
-q/2 &amp; \text{if } q \in C_i \cup -C_i \text{ for some odd } i \in \mathbb{Z} \\
0 &amp; \text{if } q = 0 
\end{cases} \,.
$$&lt;p&gt;
Note that $f$ is continuous and that $f(f(q)) = -q$ for all $q \in \mathbb{Q}$.
&lt;figure class=&#34;center&#34;&gt;&lt;img src=&#34;https://students.iiserkol.ac.in/~rph22ms045/posts/continuous-function/f.png&#34; width=&#34;700&#34;&gt;
&lt;/figure&gt;
&lt;/p&gt;
&lt;hr&gt;
</description>
    </item>
    
  </channel>
</rss>
