Rectangular function

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Rectangular function

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

\mathrm{rect}(t) = \sqcap(t) = \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}

Alternate definitions of the function define \mathrm{rect}(\pm \tfrac{1}{2}) to be 0, 1, or undefined.

=

Contents

[edit] 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) = u(t - X + Y/2) - u(t - X - Y/2)

Where the function is centred at X and has duration Y.

[edit] Fourier transform of the rectangular function

The unitary Fourier transforms of the rectangular function are:[1]

\int_{-\infty}^\infty \mathrm{rect}(t)\cdot e^{-i 2\pi f t} \, dt
=\frac{\sin(\pi f)}{\pi f} = \mathrm{sinc}(f),\,

and:

\frac{1}{\sqrt{2\pi}}\int_{-\infty}^\infty \mathrm{rect}(t)\cdot e^{-i \omega t} \, dt
=\frac{1}{\sqrt{2\pi}}\cdot \mathrm{sinc}\left(\frac{\omega}{2\pi}\right),\,

where sinc is the normalized form.

Note that as long as the definition of the pulse function is only motivated by the time-domain experience of it, there is no reason to believe that the oscillatory interpretation (i.e. the Fourier transform function) should be intuitive, or directly understood by humans. However, some aspects of the theoretical result may be understood intuitively, such as the infinite bandwidth requirement incurred by the indefinitely-sharp edges in the time-domain definition.

[edit] Relation to the Triangular Function

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

\mathrm{tri}(t) = \mathrm{rect}(t) * \mathrm{rect}(t).\,

[edit] Use in probability

Viewing the rectangular function as a probability density function, it is a special case of the continuous uniform distribution with a,b=-\frac{1}{2},\frac{1}{2}. The characteristic function is:

\varphi(k) = \frac{\sin(k/2)}{k/2},\,

and its moment generating function is:

M(k)=\frac{\mathrm{sinh}(k/2)}{k/2},\,

where sinh(t) is the hyperbolic sine function.

[edit] Rational approximation

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

\sqcap(t) = \lim_{n\rightarrow \infty, n\in \mathbb(Z)} \frac{1}{(2t)^{2n}+1}

[edit] 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|<\frac{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|>\frac{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} = \frac{1}{2}

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

\therefore \mathrm{rect}(t) = \sqcap(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}. \blacksquare\\
\end{cases}

[edit] See also

[edit] References

  1. ^ a b Weisstein, Eric W. (15 August 2011). "Rectangle Function". Wolfram MathWorld. Wolfram. http://mathworld.wolfram.com/RectangleFunction.html. Retrieved 15 August 2011. 
Personal tools
Namespaces
Variants
Actions
Navigation
Interaction
Toolbox
Print/export
Languages