Rectangular function

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by imported>Natsuhata at 21:11, 28 May 2025 (→Fourier transform of the rectangular function). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Template:Short description Script error: No such module "redirect hatnote". Template:Use American English

File:Rectangular function.svg
Rectangular function with a = 1

The rectangular function (also known as the rectangle function, rect function, Pi function, Heaviside Pi function,[1] gate function, unit pulse, or the normalized boxcar function) is defined as[2]

rect⁡(ta)=Π(ta)={0,if |t|>a212,if |t|=a21,if |t|<a2.

Alternative definitions of the function define rect⁡(±12) to be 0,[3] 1,[4][5] or undefined.

Its periodic version is called a rectangular wave.

History

The rect function has been introduced 1953 by Woodward[6] in "Probability and Information Theory, with Applications to Radar"[7] as an ideal cutout operator, together with the sinc function[8][9] as an ideal interpolation operator, and their counter operations which are sampling (comb operator) and replicating (rep operator), respectively.

Relation to the boxcar function

The rectangular function is a special case of the more general boxcar function:

rect⁡(t−XY)=H(t−(X−Y/2))−H(t−(X+Y/2))=H(t−X+Y/2)−H(t−X−Y/2)

where H(x) is the Heaviside step function; the function is centered at X and has duration Y, from X−Y/2 to X+Y/2.

Fourier transform of the rectangular function

File:Sinc function (normalized).svg
Plot of normalized sinc⁡(x) function (i.e. sinc⁡(πx)) with its spectral frequency components.

The unitary Fourier transforms of the rectangular function are[2] ∫−∞∞rect⁡(t)⋅e−i2πftdt=sin⁡(πf)πf=sinc⁡(πf)=sincπ(f), using ordinary frequency Template:Mvar, where sincπ is the normalized form[10] of the sinc function and 12π∫−∞∞rect⁡(t)⋅e−iωtdt=12π⋅sin⁡(ω/2)ω/2=12π⋅sinc⁡(ω/2), using angular frequency ω, where sinc is the unnormalized form of the sinc function.

For rect⁡(x/a), its Fourier transform is∫−∞∞rect⁡(ta)⋅e−i2πftdt=asin⁡(πaf)πaf=a sincπ(af).

Relation to the triangular function

We can define the triangular function as the convolution of two rectangular functions:

tri(t/T)⁡=rect(2t/T)⁡*rect(2t/T)⁡.

Use in probability

Script error: No such module "Labelled list hatnote". Viewing the rectangular function as a probability density function, it is a special case of the continuous uniform distribution with a=−1/2,b=1/2. The characteristic function is

φ(k)=sin⁡(k/2)k/2,

and its moment-generating function is

M(k)=sinh⁡(k/2)k/2,

where sinh⁡(t) is the hyperbolic sine function.

Rational approximation

The pulse function may also be expressed as a limit of a rational function:

Π(t)=limn→∞,n∈(Z)1(2t)2n+1.

Demonstration of validity

First, we consider the case where |t|<12. Notice that the term (2t)2n is always positive for integer n. However, 2t<1 and hence (2t)2n approaches zero for large n.

It follows that: limn→∞,n∈(Z)1(2t)2n+1=10+1=1,|t|<12.

Second, we consider the case where |t|>12. Notice that the term (2t)2n is always positive for integer n. However, 2t>1 and hence (2t)2n grows very large for large n.

It follows that: limn→∞,n∈(Z)1(2t)2n+1=1+∞+1=0,|t|>12.

Third, we consider the case where |t|=12. We may simply substitute in our equation:

limn→∞,n∈(Z)1(2t)2n+1=limn→∞,n∈(Z)112n+1=11+1=12.

We see that it satisfies the definition of the pulse function. Therefore,

rect⁡(t)=Π(t)=limn→∞,n∈(Z)1(2t)2n+1={0if |t|>1212if |t|=121if |t|<12.

Dirac delta function

The rectangle function can be used to represent the Dirac delta function δ(x).[11] Specifically,δ(x)=lima→01arect⁡(xa).For a function g(x), its average over the width a around 0 in the function domain is calculated as,

gavg(0)=1a∫−∞∞dx g(x)rect⁡(xa). To obtain g(0), the following limit is applied,

g(0)=lima→01a∫−∞∞dx g(x)rect⁡(xa) and this can be written in terms of the Dirac delta function as, g(0)=∫−∞∞dx g(x)δ(x).The Fourier transform of the Dirac delta function δ(t) is

δ(f)=∫−∞∞δ(t)⋅e−i2πftdt=lima→01a∫−∞∞rect⁡(ta)⋅e−i2πftdt=lima→0sinc⁡(af). where the sinc function here is the normalized sinc function. Because the first zero of the sinc function is at f=1/a and a goes to infinity, the Fourier transform of δ(t) is

δ(f)=1, 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.

See also

References

<templatestyles src="Reflist/styles.css" />

  1. ↑ Script error: No such module "citation/CS1".
  2. ↑ a b Script error: No such module "Template wrapper".
  3. ↑ Script error: No such module "citation/CS1".
  4. ↑ Script error: No such module "citation/CS1".
  5. ↑ Script error: No such module "citation/CS1".
  6. ↑ Script error: No such module "Citation/CS1".
  7. ↑ Script error: No such module "citation/CS1".
  8. ↑ Script error: No such module "citation/CS1".
  9. ↑ Script error: No such module "citation/CS1".
  10. ↑ Wolfram MathWorld, https://mathworld.wolfram.com/SincFunction.html
  11. ↑ Script error: No such module "citation/CS1".

Script error: No such module "Check for unknown parameters".