<?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=Rectangular_function</id>
	<title>Rectangular 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=Rectangular_function"/>
	<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Rectangular_function&amp;action=history"/>
	<updated>2026-04-10T18:30:37Z</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=Rectangular_function&amp;diff=722932&amp;oldid=prev</id>
		<title>imported&gt;Neils51: continous → continuous (4)</title>
		<link rel="alternate" type="text/html" href="https://wiki.sarg.dev/index.php?title=Rectangular_function&amp;diff=722932&amp;oldid=prev"/>
		<updated>2025-11-16T12:09:47Z</updated>

		<summary type="html">&lt;p&gt;continous → continuous (4)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Short description|Function whose graph is 0, then 1, then 0 again, in an almost-everywhere continuous way}}&lt;br /&gt;
{{Redirect|Box function|the Conway box function|Minkowski&amp;#039;s question-mark function#Conway box function}}&lt;br /&gt;
{{Use American English|date = March 2019}}&lt;br /&gt;
[[Image:Rectangular function.svg|300px|thumb|right|Rectangular function with &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;T = 1&amp;lt;/math&amp;gt;]]&lt;br /&gt;
&lt;br /&gt;
The &amp;#039;&amp;#039;&amp;#039;rectangular function&amp;#039;&amp;#039;&amp;#039; (also known as the &amp;#039;&amp;#039;&amp;#039;rectangle function&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;rect function&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Pi function&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Heaviside Pi function&amp;#039;&amp;#039;&amp;#039;,&amp;lt;ref&amp;gt;{{cite web |url=https://reference.wolfram.com/language/ref/HeavisidePi.html |title=HeavisidePi, Wolfram Language function |author=Wolfram Research |date=2008 |access-date=October 11, 2022}}&amp;lt;/ref&amp;gt; &amp;#039;&amp;#039;&amp;#039;gate function&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;unit pulse&amp;#039;&amp;#039;&amp;#039;, or the &amp;#039;&amp;#039;&amp;#039;normalized [[boxcar function]]&amp;#039;&amp;#039;&amp;#039;) is defined as&amp;lt;ref name=&amp;quot;wolfram&amp;quot;&amp;gt;{{MathWorld |title=Rectangle Function |id=RectangleFunction}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\operatorname{rect}\left(\frac{t}{T}\right) = \Pi\left(\frac{t}{T}\right) =&lt;br /&gt;
\left\{\begin{array}{rl}&lt;br /&gt;
 0, &amp;amp; \text{if } |t| &amp;gt; \frac{T}{2} \\&lt;br /&gt;
 \frac{1}{2}, &amp;amp; \text{if } |t| = \frac{T}{2} \\&lt;br /&gt;
 1, &amp;amp; \text{if } |t| &amp;lt; \frac{T}{2}.&lt;br /&gt;
\end{array}\right.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Alternative definitions of the function define &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;\operatorname{rect}\left(t=\pm\frac{T}{2}\right)&amp;lt;/math&amp;gt; to be 0,&amp;lt;ref&amp;gt;{{Cite book |last=Wang |first=Ruye |title=Introduction to Orthogonal Transforms: With Applications in Data Processing and Analysis |pages=135–136 |publisher=Cambridge University Press |year=2012 |url=https://books.google.com/books?id=4KEKGjaiJn0C&amp;amp;pg=PA135 |isbn=9780521516884 }}&amp;lt;/ref&amp;gt; 1,&amp;lt;ref&amp;gt;{{Cite book |last=Tang |first=K. T. |title=Mathematical Methods for Engineers and Scientists: Fourier analysis, partial differential equations and variational models |page=85 |publisher=Springer |year=2007 |url=https://books.google.com/books?id=gG-ybR3uIGsC&amp;amp;pg=PA85 |isbn=9783540446958 }}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite book |last=Kumar |first=A. Anand |title=Signals and Systems |publisher=PHI Learning Pvt. Ltd. |pages=258–260 |url=https://books.google.com/books?id=FGGa6BXhy3kC&amp;amp;pg=PA258 |isbn=9788120343108 |year=2011 }}&amp;lt;/ref&amp;gt; or undefined. The area under the curve does not change for the different definitions of the functions at &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;t=\pm\frac{T}{2}&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The rectangular function can be used as the basis for a &amp;#039;&amp;#039;[[rectangular wave]]&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
==History==&lt;br /&gt;
The &amp;#039;&amp;#039;rect&amp;#039;&amp;#039; function has been introduced 1953 by [[Philip Woodward|Woodward]]&amp;lt;ref&amp;gt;{{Cite journal |last=Klauder |first=John R |title=The Theory and Design of Chirp Radars |pages=745–808 |journal=Bell System Technical Journal |year=1960 |volume=39 |issue=4 |doi=10.1002/j.1538-7305.1960.tb03942.x |url=https://ieeexplore.ieee.org/document/6773600 |url-access=subscription }}&amp;lt;/ref&amp;gt; in &amp;quot;Probability and Information Theory, with Applications to Radar&amp;quot;&amp;lt;ref&amp;gt;{{Cite book |last=Woodward |first=Philipp M |title=Probability and Information Theory, with Applications to Radar |publisher=Pergamon Press |pages=29 |year=1953 }}&amp;lt;/ref&amp;gt; as an ideal [[Window function#Rectangular window|cutout operator]], together with the [[Sinc function|&amp;#039;&amp;#039;sinc&amp;#039;&amp;#039; function]]&amp;lt;ref&amp;gt;{{Cite book |last=Higgins |first=John Rowland |title=Sampling Theory in Fourier and Signal Analysis: Foundations |pages=4 |publisher=Oxford University Press Inc. |year=1996 |isbn=0198596995 }}&amp;lt;/ref&amp;gt;&amp;lt;ref&amp;gt;{{Cite book |last=Zayed |first=Ahmed I |title=Handbook of Function and Generalized Function Transformations |pages=507 |publisher=CRC Press |year=1996 |isbn=9780849380761 }}&amp;lt;/ref&amp;gt; as an ideal [[Whittaker–Shannon interpolation formula|interpolation operator]], and their counter operations which are [[Sampling (signal processing)|sampling]] ([[Dirac comb#Dirac-comb identity|&amp;#039;&amp;#039;comb&amp;#039;&amp;#039; operator]]) and [[Periodic summation|replicating]] ([[Dirac comb#Dirac-comb identity|&amp;#039;&amp;#039;rep&amp;#039;&amp;#039; operator]]), respectively.&lt;br /&gt;
&lt;br /&gt;
==Relation to the boxcar function==&lt;br /&gt;
The rectangular function is a special case of the more general [[boxcar function]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=block&amp;gt;\operatorname{rect}\left(\frac{t-X}{Y} \right) = H(t - (X - Y/2)) - H(t - (X + Y/2)) = H(t - X + Y/2) - H(t - X - Y/2)&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;H(x)&amp;lt;/math&amp;gt; is the [[Heaviside step function]]; the function is centered at &amp;lt;math&amp;gt;X&amp;lt;/math&amp;gt; and has duration &amp;lt;math&amp;gt;Y&amp;lt;/math&amp;gt;, from &amp;lt;math&amp;gt;X-Y/2&amp;lt;/math&amp;gt; to &amp;lt;math&amp;gt;X+Y/2.&amp;lt;/math&amp;gt;&lt;br /&gt;
==Fourier transform of the rectangular function==&lt;br /&gt;
[[File:Sinc_function_(normalized).svg|thumb|400px|right|Plot of normalized &amp;lt;math&amp;gt;\operatorname{sinc}(x)&amp;lt;/math&amp;gt; function (i.e. &amp;lt;math&amp;gt;\operatorname{sinc}(\pi x)&amp;lt;/math&amp;gt;) with its spectral frequency components.]]&lt;br /&gt;
&lt;br /&gt;
The [[Fourier transform#Tables of important Fourier transforms|unitary Fourier transforms]] of the rectangular function are&amp;lt;ref name=&amp;quot;wolfram&amp;quot;/&amp;gt;&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\int_{-\infty}^\infty \operatorname{rect}(t)\cdot e^{-i 2\pi f t} \, dt&lt;br /&gt;
=\frac{\sin(\pi f)}{\pi f} = \operatorname{sinc}(\pi f) =\operatorname{sinc}_\pi(f),&amp;lt;/math&amp;gt;&lt;br /&gt;
using ordinary frequency {{mvar|f}}, where [[sinc function|&amp;lt;math&amp;gt;\operatorname{sinc}_\pi&amp;lt;/math&amp;gt;]] is the normalized form&amp;lt;ref&amp;gt;Wolfram MathWorld, https://mathworld.wolfram.com/SincFunction.html&amp;lt;/ref&amp;gt; of the [[sinc function]] and&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\frac{1}{\sqrt{2\pi}}\int_{-\infty}^\infty \operatorname{rect}(t)\cdot e^{-i \omega t} \, dt&lt;br /&gt;
=\frac{1}{\sqrt{2\pi}}\cdot \frac{\sin\left(\omega/2 \right)}{\omega/2}&lt;br /&gt;
=\frac{1}{\sqrt{2\pi}} \cdot \operatorname{sinc}\left(\omega/2 \right),&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
using angular frequency &amp;lt;math&amp;gt;\omega&amp;lt;/math&amp;gt;, where [[sinc function|&amp;lt;math&amp;gt;\operatorname{sinc}&amp;lt;/math&amp;gt;]] is the unnormalized form of the [[sinc function]].&lt;br /&gt;
&lt;br /&gt;
For &amp;lt;math&amp;gt;\operatorname{rect} (x/a)&amp;lt;/math&amp;gt;, its Fourier transform is&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\int_{-\infty}^\infty \operatorname{rect}\left(\frac{t}{a}\right)\cdot e^{-i 2\pi f t} \, dt&lt;br /&gt;
=a \frac{\sin(\pi af)}{\pi af} = a\ \operatorname{sinc}_\pi{(a f)}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Self convolution of the Rectangular function==&lt;br /&gt;
[[File:Splines resulting from successive convolution of the unit Rect function.png|thumb|The unit Rectangular function (in which &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;T=1&amp;lt;/math&amp;gt;) along with the [[Piecewise function|piecewise defined]] [[spline (mathematics)|splines]] that result from successive convolutions of the Rectangular function with itself.]]&lt;br /&gt;
The [[self convolution]] of the dis-[[Continuous function|continuous]] rectangular function results in the [[triangular function]], a [[Piecewise function|piecewise defined]] [[spline (mathematics)|spline]] that is continuous, but not continuously [[Differentiable function|differentiable]]. Successive convolutions of the rectangular function result in piecewise defined pulses with lower maximums which are wider and smoother, with &amp;quot;smoother&amp;quot; meaning [[higher-order derivative]]s are coninuous.&amp;lt;ref&amp;gt;{{cite web|url=https://cyclostationary.blog/2021/01/28/sptk-convolution-and-the-convolution-theorem/|title=SPTK: Convolution and the Convolution Theorem| first= Chad |last= Spooner| date= January 28, 2021}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A [[convolution]] of the discontinuous rectangular function with itself results in the triangular function, which is a continuous function:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=block&amp;gt; \begin{align} \operatorname{rect(2t/T)} * \operatorname{rect(2t/T)} = \operatorname{tri(t/T)} = &lt;br /&gt;
   \begin{cases}&lt;br /&gt;
      1 + t, &amp;amp;  -T &amp;lt; t &amp;lt; 0 \\&lt;br /&gt;
      1 - t, &amp;amp;   \,\,\,\,\, 0 &amp;lt; t &amp;lt; T \\&lt;br /&gt;
      0      &amp;amp; \,\,\,\,\,\text{otherwise} \\&lt;br /&gt;
      \end{cases}&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Self convolution of the rectangular function applied twice yields a continuous and differentiably continuous parabolic spline:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=block&amp;gt; \begin{align} \operatorname{rect(2t/T)} * \operatorname{rect(2t/T)} * \operatorname{rect(2t/T)} = \operatorname{tri(t/T)} * \operatorname{rect(2t/T)} = &lt;br /&gt;
   \begin{cases}&lt;br /&gt;
      \frac{9}{8} + \frac{3}{2}t + \frac{1}{2}t^2, &amp;amp;  -\frac{3}{2}T &amp;lt; t &amp;lt; -\frac{1}{2}T \\&lt;br /&gt;
      \frac{3}{4} - t^2,  &amp;amp;   -\frac{1}{2}T &amp;lt; t &amp;lt; \frac{1}{2}T \\&lt;br /&gt;
      \frac{9}{8} - \frac{3}{2}t + \frac{1}{2}t^2, &amp;amp;  \,\,\,\,\, \frac{1}{2}T &amp;lt; t &amp;lt; \frac{3}{2}T \\&lt;br /&gt;
      0      &amp;amp; \,\,\,\,\,\text{otherwise} \\&lt;br /&gt;
      \end{cases}&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A self convolution of the rectangular function applied three times yields a continuous, and a second order differentiably continuous cubic spline:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=block&amp;gt; \begin{align}  \operatorname{tri(t/T)} * \operatorname{tri(t/T)} = &lt;br /&gt;
   \begin{cases}&lt;br /&gt;
      \frac{4}{3} + {2}t + t^2 +\frac{1}{6}t^3 , &amp;amp; -2T  &amp;lt; t &amp;lt; -T \\&lt;br /&gt;
      \frac{2}{3} - t^2 - \frac{1}{2}t^3,  &amp;amp;   -T &amp;lt; t &amp;lt; 0 \\&lt;br /&gt;
      \frac{2}{3} - t^2 + \frac{1}{2}t^3,  &amp;amp;   \,\,\,\,\,0 &amp;lt; t &amp;lt; T \\&lt;br /&gt;
      \frac{4}{3} - {2}t + t^2 -\frac{1}{6}t^3 , &amp;amp; \,\,\,\,\,T  &amp;lt; t &amp;lt; 2T \\&lt;br /&gt;
      0      &amp;amp; \,\,\,\,\,\text{otherwise} \\&lt;br /&gt;
      \end{cases}&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A self convolution of the rectangular function applied four times yields a continuous, and a third order differentiably continuous 4th order spline:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=block&amp;gt; \begin{align}  4^{th}\,\text{order spline}  = &lt;br /&gt;
   \begin{cases}&lt;br /&gt;
      \frac{625}{384} + \frac{125}{48}t + \frac{25}{16}t^2 +\frac{5}{12}t^3 + \frac{1}{24}t^4, &amp;amp; -\frac{5}{2}T  &amp;lt; t &amp;lt; -\frac{3}{2}T \\&lt;br /&gt;
      \frac{55}{96} - \frac{5}{24}t - \frac{5}{4} t^2 - \frac{5}{6}t^3 -\frac{1}{6}t^4,  &amp;amp;   -\frac{3}{2}T &amp;lt; t &amp;lt; -\frac{1}{2}T \\&lt;br /&gt;
&lt;br /&gt;
      \frac{115}{192} - \frac{5}{8}t^2 + \frac{1}{4}t^4,  &amp;amp;   -\frac{1}{2}T &amp;lt; t &amp;lt; \frac{1}{2}T \\&lt;br /&gt;
&lt;br /&gt;
      \frac{55}{96} + \frac{5}{24}t - \frac{5}{4} t^2 + \frac{5}{6}t^3 -\frac{1}{6}t^4,  &amp;amp;   \,\,\,\,\,\frac{1}{2}T &amp;lt; t &amp;lt; \frac{3}{2}T \\&lt;br /&gt;
      \frac{625}{384} - \frac{125}{48}t + \frac{25}{16}t^2 -\frac{5}{12}t^3 + \frac{1}{24}t^4, &amp;amp; \,\,\,\,\,\frac{3}{2}T  &amp;lt; t &amp;lt; \frac{5}{2}T \\&lt;br /&gt;
&lt;br /&gt;
      0      &amp;amp; \,\,\,\,\,\text{otherwise} \\&lt;br /&gt;
      \end{cases}&lt;br /&gt;
\end{align}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Since the [[Fourier Transform]] of the Rectangular function is the [[Sinc function]], the [[Convolution theorem]] mean that the Fourier transform of pulses resulting from successive convolution of the Rectangular function with itself is simply the Sinc function to the order of the number of times that the convolution function was applied + 1 (i.e., the Fourier transform of the Triangular function is Sinc&amp;lt;sup&amp;gt;2&amp;lt;/sup&amp;gt;, the Fourier transform of parabolic spline resulting from two successive convolutions of the Rectangular function with itself is Sinc&amp;lt;sup&amp;gt;3&amp;lt;/sup&amp;gt;, etc.)&lt;br /&gt;
&lt;br /&gt;
==Use in probability==&lt;br /&gt;
{{Main |Uniform distribution (continuous)}}&lt;br /&gt;
Viewing the rectangular function as a [[probability density function]], it is a special case of the [[Uniform distribution (continuous)|continuous uniform distribution]] with &amp;lt;math&amp;gt;a = -1/2, b = 1/2.&amp;lt;/math&amp;gt; The [[characteristic function (probability theory)|characteristic function]] is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=block&amp;gt;\varphi(k) = \frac{\sin(k/2)}{k/2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
and its [[moment-generating function]] is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=block&amp;gt;M(k) = \frac{\sinh(k/2)}{k/2},&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\sinh(t)&amp;lt;/math&amp;gt; is the [[hyperbolic sine]] function.&lt;br /&gt;
&lt;br /&gt;
==Rational approximation==&lt;br /&gt;
The pulse function may also be expressed as a limit of a [[rational function]]:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\Pi(t) = \lim_{n\rightarrow \infty, n\in \mathbb(Z)} \frac{1}{(2t)^{2n}+1}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Demonstration of validity===&lt;br /&gt;
First, we consider the case where &amp;lt;math display=inline&amp;gt;|t|&amp;lt;\frac{1}{2}.&amp;lt;/math&amp;gt; Notice that the term &amp;lt;math display=inline&amp;gt;(2t)^{2n}&amp;lt;/math&amp;gt; is always positive for integer &amp;lt;math&amp;gt;n.&amp;lt;/math&amp;gt; However, &amp;lt;math&amp;gt;2t&amp;lt;1&amp;lt;/math&amp;gt; and hence &amp;lt;math display=inline&amp;gt;(2t)^{2n}&amp;lt;/math&amp;gt; approaches zero for large &amp;lt;math&amp;gt;n.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It follows that:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\lim_{n\rightarrow \infty, n\in \mathbb(Z)} \frac{1}{(2t)^{2n}+1} = \frac{1}{0+1} = 1, |t|&amp;lt;\tfrac{1}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Second, we consider the case where &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;|t|&amp;gt;\frac{1}{2}.&amp;lt;/math&amp;gt; Notice that the term &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;(2t)^{2n}&amp;lt;/math&amp;gt; is always positive for integer &amp;lt;math&amp;gt;n.&amp;lt;/math&amp;gt; However, &amp;lt;math&amp;gt;2t&amp;gt;1&amp;lt;/math&amp;gt; and hence &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;(2t)^{2n}&amp;lt;/math&amp;gt; grows very large for large &amp;lt;math&amp;gt;n.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
It follows that:&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\lim_{n\rightarrow \infty, n\in \mathbb(Z)} \frac{1}{(2t)^{2n}+1} = \frac{1}{+\infty+1} = 0, |t|&amp;gt;\tfrac{1}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Third, we consider the case where &amp;lt;math display=&amp;quot;inline&amp;quot;&amp;gt;|t| = \frac{1}{2}.&amp;lt;/math&amp;gt; We may simply substitute in our equation:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\lim_{n\rightarrow \infty, n\in \mathbb(Z)} \frac{1}{(2t)^{2n}+1} = \lim_{n\rightarrow \infty, n\in \mathbb(Z)} \frac{1}{1^{2n}+1} = \frac{1}{1+1} = \tfrac{1}{2}.&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We see that it satisfies the definition of the pulse function. Therefore,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\operatorname{rect}(t) = \Pi(t) = \lim_{n\rightarrow \infty, n\in \mathbb(Z)} \frac{1}{(2t)^{2n}+1} = \begin{cases}&lt;br /&gt;
0 &amp;amp; \mbox{if } |t| &amp;gt; \frac{1}{2} \\&lt;br /&gt;
\frac{1}{2} &amp;amp; \mbox{if } |t| = \frac{1}{2} \\&lt;br /&gt;
1 &amp;amp; \mbox{if } |t| &amp;lt; \frac{1}{2}. \\&lt;br /&gt;
\end{cases}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Dirac delta function ==&lt;br /&gt;
The rectangle function can be used to represent the [[Dirac delta function]] &amp;lt;math&amp;gt;\delta (x)&amp;lt;/math&amp;gt;.&amp;lt;ref name=&amp;quot;:0&amp;quot;&amp;gt;{{Cite book |last1=Khare |first1=Kedar |title=Fourier Optics and Computational Imaging |last2=Butola |first2=Mansi |last3=Rajora |first3=Sunaina |publisher=Springer |year=2023 |isbn=978-3-031-18353-9 |edition=2nd |pages=15–16 |chapter=Chapter 2.4 Sampling by Averaging, Distributions and Delta Function |doi=10.1007/978-3-031-18353-9}}&amp;lt;/ref&amp;gt; Specifically,&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\delta (x) = \lim_{a \to 0} \frac{1}{a}\operatorname{rect}\left(\frac{x}{a}\right).&amp;lt;/math&amp;gt;For a function &amp;lt;math&amp;gt;g(x)&amp;lt;/math&amp;gt;, its average over the width &amp;#039;&amp;#039;&amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt;&amp;#039;&amp;#039; around 0 in the function domain is calculated as,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;g_{avg}(0) = \frac{1}{a} \int\limits_{- \infty}^{\infty} dx\ g(x) \operatorname{rect}\left(\frac{x}{a}\right).&amp;lt;/math&amp;gt;&lt;br /&gt;
To obtain &amp;lt;math&amp;gt;g(0)&amp;lt;/math&amp;gt;, the following limit is applied,&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;g(0) = \lim_{a \to 0} \frac{1}{a} \int\limits_{- \infty}^{\infty} dx\ g(x) \operatorname{rect}\left(\frac{x}{a}\right)&amp;lt;/math&amp;gt;&lt;br /&gt;
and this can be written in terms of the Dirac delta function as,&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;g(0) = \int\limits_{- \infty}^{\infty} dx\ g(x) \delta (x).&amp;lt;/math&amp;gt;The Fourier transform of the Dirac delta function &amp;lt;math&amp;gt;\delta (t)&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\delta (f)&lt;br /&gt;
= \int_{-\infty}^\infty \delta (t) \cdot e^{-i 2\pi f t} \, dt&lt;br /&gt;
= \lim_{a \to 0} \frac{1}{a} \int_{-\infty}^\infty \operatorname{rect}\left(\frac{t}{a}\right)\cdot e^{-i 2\pi f t} \, dt&lt;br /&gt;
= \lim_{a \to 0} \operatorname{sinc}{(a f)}.&amp;lt;/math&amp;gt;&lt;br /&gt;
where the [[sinc function]] here is the normalized sinc function. Because the first zero of the sinc function is at &amp;lt;math&amp;gt;f = 1 / a&amp;lt;/math&amp;gt; and &amp;lt;math&amp;gt;a&amp;lt;/math&amp;gt; goes to infinity, the Fourier transform of &amp;lt;math&amp;gt;\delta (t)&amp;lt;/math&amp;gt; is&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math display=&amp;quot;block&amp;quot;&amp;gt;\delta (f) = 1,&amp;lt;/math&amp;gt;&lt;br /&gt;
means that the frequency spectrum of the Dirac delta function is infinitely broad. As a pulse is shorten in time, it is larger in spectrum.&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
*[[Fourier transform]]&lt;br /&gt;
*[[Square wave (waveform)|Square wave]]&lt;br /&gt;
*[[Step function]]&lt;br /&gt;
*[[Top-hat filter]]&lt;br /&gt;
*[[Boxcar function]]&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
{{Reflist}}&lt;br /&gt;
&lt;br /&gt;
{{DEFAULTSORT:Rectangular Function}}&lt;br /&gt;
[[Category:Special functions]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Neils51</name></author>
	</entry>
</feed>