fbpx
Wikipedia

Rectangular function

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 a = 1

Alternative definitions of the function define to be 0,[3] 1,[4][5] or undefined.

Its periodic version is called a rectangular wave.

History edit

The rect function has been introduced by Woodward[6] in [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

 
Note that as long as the definition of the pulse function is only motivated by its behavior in the time-domain experience, 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, as finiteness in time domain corresponds to an infinite frequency response. (Vice versa, a finite Fourier transform will correspond to infinite time domain response.)

Relation to the triangular function edit

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

 

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  .[11] 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. ^ 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.

rectangular, function, function, redirects, here, conway, function, minkowski, question, mark, function, conway, function, rectangular, function, also, known, rectangle, function, rect, function, function, heaviside, function, gate, function, unit, pulse, norm. Box function redirects here For the Conway box function see Minkowski s question mark function Conway box function 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 a 1rect ta P ta 0 if t gt a212 if t a21 if t lt a2 displaystyle operatorname rect left frac t a right Pi left frac t a right left begin array rl 0 amp text if t gt frac a 2 frac 1 2 amp text if t frac a 2 1 amp text if t lt frac a 2 end array right Alternative definitions of the function define rect 12 textstyle operatorname rect left pm frac 1 2 right to be 0 3 1 4 5 or undefined Its periodic version is called a rectangular wave Contents 1 History 2 Relation to the boxcar function 3 Fourier transform of the rectangular function 4 Relation to the triangular function 5 Use in probability 6 Rational approximation 6 1 Demonstration of validity 7 Dirac delta function 8 See also 9 ReferencesHistory editThe rect function has been introduced by Woodward 6 in 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 editThe 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 displaystyle 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 nbsp where H x displaystyle H x nbsp is the Heaviside step function the function is centered at X displaystyle X nbsp and has duration Y displaystyle Y nbsp from X Y 2 displaystyle X Y 2 nbsp to X Y 2 displaystyle X Y 2 nbsp Fourier transform of the rectangular function edit nbsp Plot of normalized sinc x displaystyle operatorname sinc x nbsp function i e sinc px displaystyle operatorname sinc pi x nbsp with its spectral frequency components The unitary Fourier transforms of the rectangular function are 2 rect t e i2pftdt sin pf pf sincp f displaystyle int infty infty operatorname rect t cdot e i2 pi ft dt frac sin pi f pi f operatorname sinc pi f nbsp using ordinary frequency f where sincp displaystyle operatorname sinc pi nbsp is the normalized form 10 of the sinc function and 12p rect t e iwtdt 12p sin w 2 w 2 12psinc w 2 displaystyle 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 operatorname sinc left omega 2 right nbsp using angular frequency w displaystyle omega nbsp where sinc displaystyle operatorname sinc nbsp is the unnormalized form of the sinc function For rect x a displaystyle operatorname rect x a nbsp its Fourier transform is rect ta e i2pftdt asin paf paf a sincp af displaystyle int infty infty operatorname rect left frac t a right cdot e i2 pi ft dt a frac sin pi af pi af a operatorname sinc pi af nbsp Note that as long as the definition of the pulse function is only motivated by its behavior in the time domain experience 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 as finiteness in time domain corresponds to an infinite frequency response Vice versa a finite Fourier transform will correspond to infinite time domain response Relation to the triangular function editWe can define the triangular function as the convolution of two rectangular functions tri rect rect displaystyle operatorname tri operatorname rect operatorname rect nbsp Use in probability editMain article Uniform distribution continuous 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 displaystyle a 1 2 b 1 2 nbsp The characteristic function isf k sin k 2 k 2 displaystyle varphi k frac sin k 2 k 2 nbsp and its moment generating function isM k sinh k 2 k 2 displaystyle M k frac sinh k 2 k 2 nbsp where sinh t displaystyle sinh t nbsp is the hyperbolic sine function Rational approximation editThe pulse function may also be expressed as a limit of a rational function P t limn n Z 1 2t 2n 1 displaystyle Pi t lim n rightarrow infty n in mathbb Z frac 1 2t 2n 1 nbsp Demonstration of validity edit First we consider the case where t lt 12 textstyle t lt frac 1 2 nbsp Notice that the term 2t 2n textstyle 2t 2n nbsp is always positive for integer n displaystyle n nbsp However 2t lt 1 displaystyle 2t lt 1 nbsp and hence 2t 2n textstyle 2t 2n nbsp approaches zero for large n displaystyle n nbsp It follows that limn n Z 1 2t 2n 1 10 1 1 t lt 12 displaystyle lim n rightarrow infty n in mathbb Z frac 1 2t 2n 1 frac 1 0 1 1 t lt tfrac 1 2 nbsp Second we consider the case where t gt 12 textstyle t gt frac 1 2 nbsp Notice that the term 2t 2n textstyle 2t 2n nbsp is always positive for integer n displaystyle n nbsp However 2t gt 1 displaystyle 2t gt 1 nbsp and hence 2t 2n textstyle 2t 2n nbsp grows very large for large n displaystyle n nbsp It follows that limn n Z 1 2t 2n 1 1 1 0 t gt 12 displaystyle lim n rightarrow infty n in mathbb Z frac 1 2t 2n 1 frac 1 infty 1 0 t gt tfrac 1 2 nbsp Third we consider the case where t 12 textstyle t frac 1 2 nbsp We may simply substitute in our equation limn n Z 1 2t 2n 1 limn n Z 112n 1 11 1 12 displaystyle 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 nbsp We see that it satisfies the definition of the pulse function Therefore rect t P t limn n Z 1 2t 2n 1 0if t gt 1212if t 121if t lt 12 displaystyle operatorname rect t Pi t lim n rightarrow infty n in mathbb Z frac 1 2t 2n 1 begin cases 0 amp mbox if t gt frac 1 2 frac 1 2 amp mbox if t frac 1 2 1 amp mbox if t lt frac 1 2 end cases nbsp Dirac delta function editThe rectangle function can be used to represent the Dirac delta function d x displaystyle delta x nbsp 11 Specifically d x lima 01arect xa displaystyle delta x lim a to 0 frac 1 a operatorname rect left frac x a right nbsp For a function g x displaystyle g x nbsp its average over the width a displaystyle a nbsp around 0 in the function domain is calculated as gavg 0 1a dx g x rect xa displaystyle g avg 0 frac 1 a int limits infty infty dx g x operatorname rect left frac x a right nbsp To obtain g 0 displaystyle g 0 nbsp the following limit is applied g 0 lima 01a dx g x rect xa displaystyle g 0 lim a to 0 frac 1 a int limits infty infty dx g x operatorname rect left frac x a right nbsp and this can be written in terms of the Dirac delta function as g 0 dx g x d x displaystyle g 0 int limits infty infty dx g x delta x nbsp The Fourier transform of the Dirac delta function d t displaystyle delta t nbsp is d f d t e i2pftdt lima 01a rect ta e i2pftdt lima 0sinc af displaystyle delta f int infty infty delta t cdot e i2 pi ft dt lim a to 0 frac 1 a int infty infty operatorname rect left frac t a right cdot e i2 pi ft dt lim a to 0 operatorname sinc af nbsp where the sinc function here is the normalized sinc function Because the first zero of the sinc function is at f 1 a displaystyle f 1 a nbsp and a displaystyle a nbsp goes to infinity the Fourier transform of d t displaystyle delta t nbsp is d f 1 displaystyle delta f 1 nbsp 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 editFourier transform Square wave Step function Top hat filter Boxcar functionReferences edit Wolfram Research 2008 HeavisidePi Wolfram Language function Retrieved October 11 2022 a b Weisstein Eric W Rectangle Function MathWorld Wang Ruye 2012 Introduction to Orthogonal Transforms With Applications in Data Processing and Analysis Cambridge University Press pp 135 136 ISBN 9780521516884 Tang K T 2007 Mathematical Methods for Engineers and Scientists Fourier analysis partial differential equations and variational models Springer p 85 ISBN 9783540446958 Kumar A Anand 2011 Signals and Systems PHI Learning Pvt Ltd pp 258 260 ISBN 9788120343108 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 Woodward Philipp M 1953 Probability and Information Theory with Applications to Radar Pergamon Press p 29 Higgins John Rowland 1996 Sampling Theory in Fourier and Signal Analysis Foundations Oxford University Press Inc p 4 ISBN 0198596995 Zayed Ahmed I 1996 Handbook of Function and Generalized Function Transformations CRC Press p 507 ISBN 9780849380761 Wolfram MathWorld https mathworld wolfram com SincFunction html 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 Retrieved from https en wikipedia org w index php title Rectangular function amp oldid 1194930445, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.