Rectangular Function
   HOME

TheInfoList



OR:

The rectangular function (also known as the rectangle function, rect function, Pi function, Heaviside Pi function, gate function, unit pulse, or the normalized boxcar function) is defined as \operatorname\left(\frac\right) = \Pi\left(\frac\right) = \left\{\begin{array}{rl} 0, & \text{if } , t, > \frac{a}{2} \\ \frac{1}{2}, & \text{if } , t, = \frac{a}{2} \\ 1, & \text{if } , t, < \frac{a}{2}. \end{array}\right. Alternative definitions of the function define \operatorname{rect}\left(\pm\frac{1}{2}\right) to be 0, 1, or undefined. Its periodic version is called a '' rectangular wave''.


History

The ''rect'' function has been introduced 1953 by Woodward in "Probability and Information Theory, with Applications to Radar" as an ideal cutout operator, together with the ''sinc'' function 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: \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) 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

The unitary Fourier transforms of the rectangular function are \int_{-\infty}^\infty \operatorname{rect}(t)\cdot e^{-i 2\pi f t} \, dt =\frac{\sin(\pi f)}{\pi f} = \operatorname{sinc}(\pi f) =\operatorname{sinc}_\pi(f), using ordinary frequency , where \operatorname{sinc}_\pi is the normalized formWolfram MathWorld, https://mathworld.wolfram.com/SincFunction.html of the sinc function and \frac{1}{\sqrt{2\pi\int_{-\infty}^\infty \operatorname{rect}(t)\cdot e^{-i \omega t} \, dt =\frac{1}{\sqrt{2\pi\cdot \frac{\sin\left(\omega/2 \right)}{\omega/2} =\frac{1}{\sqrt{2\pi \cdot \operatorname{sinc}\left(\omega/2 \right), using angular frequency \omega, where \operatorname{sinc} is the unnormalized form of the sinc function. For \operatorname{rect} (x/a), its Fourier transform is\int_{-\infty}^\infty \operatorname{rect}\left(\frac{t}{a}\right)\cdot e^{-i 2\pi f t} \, dt =a \frac{\sin(\pi af)}{\pi af} = a\ \operatorname{sinc}_\pi{(a f)}.


Relation to the triangular function

We can define the
triangular function A triangular function (also known as a triangle function, hat function, or tent function) is a function whose graph takes the shape of a triangle. Often this is an isosceles triangle of height 1 and base 2 in which case it is referred to as ''th ...
as the
convolution In mathematics (in particular, functional analysis), convolution is a operation (mathematics), mathematical operation on two function (mathematics), functions f and g that produces a third function f*g, as the integral of the product of the two ...
of two rectangular functions: \operatorname{tri(t/T)} = \operatorname{rect(2t/T)} * \operatorname{rect(2t/T)}.\,


Use in probability

Viewing the rectangular function as a
probability density function In probability theory, a probability density function (PDF), density function, or density of an absolutely continuous random variable, is a Function (mathematics), function whose value at any given sample (or point) in the sample space (the s ...
, it is a special case of the
continuous uniform distribution In probability theory and statistics, the continuous uniform distributions or rectangular distributions are a family of symmetric probability distributions. Such a distribution describes an experiment where there is an arbitrary outcome that li ...
with a = -1/2, b = 1/2. The characteristic function is \varphi(k) = \frac{\sin(k/2)}{k/2}, and its moment-generating function is M(k) = \frac{\sinh(k/2)}{k/2}, where \sinh(t) is the
hyperbolic sine In mathematics, hyperbolic functions are analogues of the ordinary trigonometric functions, but defined using the hyperbola rather than the circle. Just as the points form a unit circle, circle with a unit radius, the points form the right ha ...
function.


Rational approximation

The pulse function may also be expressed as a limit of a
rational function In mathematics, a rational function is any function that can be defined by a rational fraction, which is an algebraic fraction such that both the numerator and the denominator are polynomials. The coefficients of the polynomials need not be ...
: \Pi(t) = \lim_{n\rightarrow \infty, n\in \mathbb(Z)} \frac{1}{(2t)^{2n}+1}.


Demonstration of validity

First, we consider the case where , t, <\frac{1}{2}. 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: \lim_{n\rightarrow \infty, n\in \mathbb(Z)} \frac{1}{(2t)^{2n}+1} = \frac{1}{0+1} = 1, , t, <\tfrac{1}{2}. Second, we consider the case where , t, >\frac{1}{2}. 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: \lim_{n\rightarrow \infty, n\in \mathbb(Z)} \frac{1}{(2t)^{2n}+1} = \frac{1}{+\infty+1} = 0, , t, >\tfrac{1}{2}. Third, we consider the case where , t, = \frac{1}{2}. We may simply substitute in our equation: \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}. We see that it satisfies the definition of the pulse function. Therefore, \operatorname{rect}(t) = \Pi(t) = \lim_{n\rightarrow \infty, n\in \mathbb(Z)} \frac{1}{(2t)^{2n}+1} = \begin{cases} 0 & \mbox{if } , t, > \frac{1}{2} \\ \frac{1}{2} & \mbox{if } , t, = \frac{1}{2} \\ 1 & \mbox{if } , t, < \frac{1}{2}. \\ \end{cases}


Dirac delta function

The rectangle function can be used to represent the
Dirac delta function In mathematical analysis, the Dirac delta function (or distribution), also known as the unit impulse, is a generalized function on the real numbers, whose value is zero everywhere except at zero, and whose integral over the entire real line ...
\delta (x). Specifically,\delta (x) = \lim_{a \to 0} \frac{1}{a}\operatorname{rect}\left(\frac{x}{a}\right).For a function g(x), its average over the width ''a'' around 0 in the function domain is calculated as, g_{avg}(0) = \frac{1}{a} \int\limits_{- \infty}^{\infty} dx\ g(x) \operatorname{rect}\left(\frac{x}{a}\right). To obtain g(0), the following limit is applied, g(0) = \lim_{a \to 0} \frac{1}{a} \int\limits_{- \infty}^{\infty} dx\ g(x) \operatorname{rect}\left(\frac{x}{a}\right) and this can be written in terms of the Dirac delta function as, g(0) = \int\limits_{- \infty}^{\infty} dx\ g(x) \delta (x).The Fourier transform of the Dirac delta function \delta (t) is \delta (f) = \int_{-\infty}^\infty \delta (t) \cdot e^{-i 2\pi f t} \, dt = \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 = \lim_{a \to 0} \operatorname{sinc}{(a f)}. 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 \delta (t) is \delta (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

*
Fourier transform In mathematics, the Fourier transform (FT) is an integral transform that takes a function as input then outputs another function that describes the extent to which various frequencies are present in the original function. The output of the tr ...
*
Square wave Square wave may refer to: *Square wave (waveform) A square wave is a non-sinusoidal waveform, non-sinusoidal periodic waveform in which the amplitude alternates at a steady frequency between fixed minimum and maximum values, with the same ...
* Step function * Top-hat filter * Boxcar function


References

{{DEFAULTSORT:Rectangular Function Special functions