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]

Rectangular function with

Alternative definitions of the function define to be 0,[3] 1,[4][5] or undefined. The area under the curve does not change for the different definitions of the functions at .

The rectangular function can be used as the basis for a rectangular wave.

History

edit

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

edit

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

 

where   is the Heaviside step function; the function is centered at   and has duration  , from   to  

Fourier transform of the rectangular function

edit
 
Plot of normalized   function (i.e.  ) with its spectral frequency components.

The unitary Fourier transforms of the rectangular function are[2]   using ordinary frequency f, where   is the normalized form[10] of the sinc function and   using angular frequency  , where   is the unnormalized form of the sinc function.

For  , its Fourier transform is 

Self convolution of the Rectangular function

edit
 
The unit Rectangular function (in which  ) along with the piecewise defined splines that result from successive convolutions of the Rectangular function with itself.

The self convolution of the dis-continuous rectangular function results in the triangular function, a piecewise defined spline that is continuous, but not continuously differentiable. Successive convolutions of the rectangular function result in piecewise defined pulses with lower maximums which are wider and smoother, with "smoother" meaning higher-order derivatives are coninuous.[11]

A convolution of the discontinuous rectangular function with itself results in the triangular function, which is a continuous function:

 

Self convolution of the rectangular function applied twice yields a continuous and differentiably continuous parabolic spline:

 

A self convolution of the rectangular function applied three times yields a continuous, and a second order differentiably continuous cubic spline:

 

A self convolution of the rectangular function applied four times yields a continuous, and a third order differentiably continuous 4th order spline:

 


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 Sinc2, the Fourier transform of parabolic spline resulting from two successive convolutions of the Rectangular function with itself is Sinc3, etc.)

Use in probability

edit

Viewing the rectangular function as a probability density function, it is a special case of the continuous uniform distribution with   The characteristic function is

 

and its moment-generating function is

 

where   is the hyperbolic sine function.

Rational approximation

edit

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

 

Demonstration of validity

edit

First, we consider the case where   Notice that the term   is always positive for integer   However,   and hence   approaches zero for large  

It follows that:  

Second, we consider the case where   Notice that the term   is always positive for integer   However,   and hence   grows very large for large  

It follows that:  

Third, we consider the case where   We may simply substitute in our equation:

 

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

 

Dirac delta function

edit

The rectangle function can be used to represent the Dirac delta function  .[12] Specifically, For a function  , its average over the width   around 0 in the function domain is calculated as,

  To obtain  , the following limit is applied,

  and this can be written in terms of the Dirac delta function as,  The Fourier transform of the Dirac delta function   is

  where the sinc function here is the normalized sinc function. Because the first zero of the sinc function is at   and   goes to infinity, the Fourier transform of   is

  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

edit

References

edit
  1. ^ Wolfram Research (2008). "HeavisidePi, Wolfram Language function". Retrieved October 11, 2022.
  2. ^ a b Weisstein, Eric W. "Rectangle Function". MathWorld.
  3. ^ Wang, Ruye (2012). Introduction to Orthogonal Transforms: With Applications in Data Processing and Analysis. Cambridge University Press. pp. 135–136. ISBN 9780521516884.
  4. ^ Tang, K. T. (2007). Mathematical Methods for Engineers and Scientists: Fourier analysis, partial differential equations and variational models. Springer. p. 85. ISBN 9783540446958.
  5. ^ Kumar, A. Anand (2011). Signals and Systems. PHI Learning Pvt. Ltd. pp. 258–260. ISBN 9788120343108.
  6. ^ Klauder, John R (1960). "The Theory and Design of Chirp Radars". Bell System Technical Journal. 39 (4): 745–808. doi:10.1002/j.1538-7305.1960.tb03942.x.
  7. ^ Woodward, Philipp M (1953). Probability and Information Theory, with Applications to Radar. Pergamon Press. p. 29.
  8. ^ Higgins, John Rowland (1996). Sampling Theory in Fourier and Signal Analysis: Foundations. Oxford University Press Inc. p. 4. ISBN 0198596995.
  9. ^ Zayed, Ahmed I (1996). Handbook of Function and Generalized Function Transformations. CRC Press. p. 507. ISBN 9780849380761.
  10. ^ Wolfram MathWorld, https://mathworld.wolfram.com/SincFunction.html
  11. ^ Spooner, Chad (January 28, 2021). "SPTK: Convolution and the Convolution Theorem".
  12. ^ Khare, Kedar; Butola, Mansi; Rajora, Sunaina (2023). "Chapter 2.4 Sampling by Averaging, Distributions and Delta Function". Fourier Optics and Computational Imaging (2nd ed.). Springer. pp. 15–16. doi:10.1007/978-3-031-18353-9. ISBN 978-3-031-18353-9.