<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=Dirichlet_function</id>
	<title>Dirichlet function - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.sarg.dev/index.php?action=history&amp;feed=atom&amp;title=Dirichlet_function"/>
	<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Dirichlet_function&amp;action=history"/>
	<updated>2026-06-24T05:32:42Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.44.2</generator>
	<entry>
		<id>https://wiki.sarg.dev/index.php?title=Dirichlet_function&amp;diff=379728&amp;oldid=prev</id>
		<title>imported&gt;JJMC89 bot III: Removing :Category:Eponymous functions per Wikipedia:Categories for discussion/Log/2025 October 27#Eponyms in mathematics round 2</title>
		<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Dirichlet_function&amp;diff=379728&amp;oldid=prev"/>
		<updated>2025-11-09T22:42:00Z</updated>

		<summary type="html">&lt;p&gt;Removing &lt;a href=&quot;/index.php?title=Category:Eponymous_functions&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Eponymous functions (page does not exist)&quot;&gt;Category:Eponymous functions&lt;/a&gt; per &lt;a href=&quot;https://en.wikipedia.org/wiki/Categories_for_discussion/Log/2025_October_27#Eponyms_in_mathematics_round_2&quot; class=&quot;extiw&quot; title=&quot;wikipedia:Categories for discussion/Log/2025 October 27&quot;&gt;Wikipedia:Categories for discussion/Log/2025 October 27#Eponyms in mathematics round 2&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Indicator function of rational numbers}}&lt;br /&gt;
{{for|the other function sometimes incorrectly called the Dirichlet function|Dirichlet kernel}}&lt;br /&gt;
In [[mathematics]], the &amp;#039;&amp;#039;&amp;#039;Dirichlet function&amp;#039;&amp;#039;&amp;#039;&amp;lt;ref&amp;gt;{{springer|title=Dirichlet-function|id=p/d032860}}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;[http://mathworld.wolfram.com/DirichletFunction.html Dirichlet Function — from MathWorld]&amp;lt;/ref&amp;gt; is the [[indicator function]] &amp;lt;math&amp;gt;\mathbf{1}_\Q&amp;lt;/math&amp;gt; of the set of [[rational number|rational numbers]] &amp;lt;math&amp;gt;\Q&amp;lt;/math&amp;gt; over the set of [[real number]]s &amp;lt;math&amp;gt;\R&amp;lt;/math&amp;gt;, i.e. &amp;lt;math&amp;gt;\mathbf{1}_\Q(x) = 1&amp;lt;/math&amp;gt; for a real number {{mvar|x}} if {{mvar|x}} is a rational number and &amp;lt;math&amp;gt;\mathbf{1}_\Q(x) = 0&amp;lt;/math&amp;gt; if {{mvar|x}} is not a rational number (i.e. is an [[irrational number]]).&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\mathbf 1_\Q(x) = \begin{cases}&lt;br /&gt;
1 &amp;amp; x \in \Q \\&lt;br /&gt;
0 &amp;amp; x \notin \Q&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It is named after the mathematician [[Peter Gustav Lejeune Dirichlet]].&amp;lt;ref&amp;gt;{{cite journal| first = Peter Gustav | last = Lejeune Dirichlet | title = Sur la convergence des séries trigonométriques qui servent à représenter une fonction arbitraire entre des limites données| journal = Journal für die reine und angewandte Mathematik |volume = 4 | year = 1829 | url = https://eudml.org/doc/183134 | pages = 157–169 }} The function is defined on page 169&amp;lt;/ref&amp;gt; It is an example of a [[Pathological (mathematics)|pathological function]] which provides counterexamples to many situations.&lt;br /&gt;
&lt;br /&gt;
== Topological properties ==&lt;br /&gt;
{{unordered list&lt;br /&gt;
| The Dirichlet function is [[nowhere continuous function|nowhere continuous]]. We can prove this by reference to the definition of a [[continuous function]] to show that it violates the continuity properties at both rational and irrational arguments:&lt;br /&gt;
{{Math proof| drop=hidden|proof=*If {{mvar|y}} is rational, then {{nowrap|{{math|{{var|f}}({{var|y}}) {{=}} 1}}}}. To show the function is not continuous at {{mvar|y}}, we need to find an {{mvar|ε}} such that no matter how small we choose {{mvar|δ}}, there will be points {{mvar|z}} within {{mvar|δ}} of {{mvar|y}} such that {{math|{{var|f}}({{var|z}})}} is not within {{mvar|ε}} of {{nowrap|{{math|{{var|f}}({{var|y}}) {{=}} 1}}}}.  In fact, {{frac|1|2}} is such an {{mvar|ε}}. Because the [[irrational number]]s are [[dense set|dense]] in the reals, no matter what {{mvar|δ}} we choose we can always find an irrational {{mvar|z}} within {{mvar|δ}} of {{mvar|y}}, and {{nowrap|{{math|{{var|f}}({{var|z}}) {{=}} 0}}}} is at least {{frac|1|2}} away from 1. &lt;br /&gt;
*If {{mvar|y}} is irrational, then {{nowrap|{{math|{{var|f}}({{var|y}}) {{=}} 0}}}}. Again, we can take {{nowrap|{{math|{{var|ε}} {{=}} {{frac|1|2}}}}}}, and this time, because the rational numbers are dense in the reals, we can pick {{mvar|z}} to be a rational number as close to {{mvar|y}} as is required. Again, {{nowrap|{{math|{{var|f}}({{var|z}}) {{=}} 1}}}} is more than {{frac|1|2}} away from {{nowrap|{{math|{{var|f}}({{var|y}}) {{=}} 0}}}}.}}&lt;br /&gt;
Its restrictions to the set of rational numbers and to the set of irrational numbers are [[constant function|constants]] and therefore continuous. The Dirichlet function is an archetypal example of the [[Blumberg theorem]].&lt;br /&gt;
&lt;br /&gt;
| The Dirichlet function can be constructed as the double pointwise limit of a sequence of continuous functions, as follows:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\forall x \in \R, \quad \mathbf{1}_{\Q}(x) = \lim_{k \to \infty} \left(\lim_{j\to\infty}\left(\cos(k!\pi x)\right)^{2j}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
for integer {{mvar|j}} and {{mvar|k}}. This shows that the Dirichlet function is a [[Baire function|Baire class]] 2 function. It cannot be a Baire class 1 function because a Baire class 1 function can only be discontinuous on a [[meagre set]].&amp;lt;ref&amp;gt;{{cite book&lt;br /&gt;
  | last = Dunham&lt;br /&gt;
  | first = William&lt;br /&gt;
  | title = The Calculus Gallery&lt;br /&gt;
  | publisher = [[Princeton University Press]]&lt;br /&gt;
  | date = 2005&lt;br /&gt;
  | pages = 197&lt;br /&gt;
  | isbn = 0-691-09565-5 }}&amp;lt;/ref&amp;gt;&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Periodicity == &lt;br /&gt;
&lt;br /&gt;
For any real number {{mvar|x}} and any positive rational number {{mvar|T}}, &amp;lt;math&amp;gt;\mathbf{1}_\Q(x + T) = \mathbf{1}_\Q(x)&amp;lt;/math&amp;gt;. The Dirichlet function is therefore an example of a real [[periodic function]] which is not [[constant function|constant]] but whose set of periods, the set of rational numbers, is a [[Dense set|dense subset]] of &amp;lt;math&amp;gt;\R&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Integration properties ==&lt;br /&gt;
{{unordered list&lt;br /&gt;
| The Dirichlet function is not [[Riemann integral|Riemann-integrable]] on any segment of &amp;lt;math&amp;gt;\R&amp;lt;/math&amp;gt; despite being bounded because the set of its discontinuity points is not [[negligible set|negligible]] (for the [[Lebesgue measure]]).&lt;br /&gt;
| The Dirichlet function has both an upper [[Darboux integral]] (namely, &amp;lt;math&amp;gt;b-a&amp;lt;/math&amp;gt;) and a lower Darboux integral (0) over any bounded interval &amp;lt;math&amp;gt;[a,b]&amp;lt;/math&amp;gt; — but they are not equal if &amp;lt;math&amp;gt; a &amp;lt; b&amp;lt;/math&amp;gt;, so the Dirichlet function is not Darboux-integrable (and therefore not Riemann-integrable) over any nondegenerate interval.&lt;br /&gt;
| The Dirichlet function provides a counterexample showing that the [[monotone convergence theorem]] is not true in the context of the Riemann integral.&lt;br /&gt;
{{Math proof|drop=hidden|proof=Using an [[enumeration]] of the rational numbers between 0 and 1, we define the function {{math|{{var|f}}{{sub|{{var|n}}}}}} (for all nonnegative integer {{mvar|n}}) as the indicator function of the set of the first {{mvar|n}} terms of this sequence of rational numbers. The increasing sequence of functions {{math|{{var|f}}{{sub|{{var|n}}}}}} (which are nonnegative, Riemann-integrable with a vanishing integral) pointwise converges to the Dirichlet function which is not Riemann-integrable.}}&lt;br /&gt;
| The Dirichlet function is [[Lebesgue integral|Lebesgue-integrable]] on &amp;lt;math&amp;gt;\R&amp;lt;/math&amp;gt; and its integral over &amp;lt;math&amp;gt;\R&amp;lt;/math&amp;gt; is zero because it is zero except on the set of rational numbers which is negligible (for the Lebesgue measure).&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
* [[Thomae&amp;#039;s function]], a variation that is discontinuous only at the rational numbers&lt;br /&gt;
&lt;br /&gt;
== References ==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
[[Category:Elementary special functions|Dirichlet]]&lt;br /&gt;
[[Category:Real analysis]]&lt;/div&gt;</summary>
		<author><name>imported&gt;JJMC89 bot III</name></author>
	</entry>
</feed>