<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[The ryg blog]]></provider_name><provider_url><![CDATA[https://fgiesen.wordpress.com]]></provider_url><author_name><![CDATA[fgiesen]]></author_name><author_url><![CDATA[https://fgiesen.wordpress.com/author/fgiesen/]]></author_url><title><![CDATA[sinc and Polynomial&nbsp;interpolation]]></title><type><![CDATA[link]]></type><html><![CDATA[<p>Another short one. This one bugged me for quite a while until I realized what the answer was a few years ago. The Sampling Theorem states that (under the right conditions)</p>
<p><img src="https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+x%28t%29+%3D+%5Csum_%7Bn%3D-%5Cinfty%7D%5E%7B%5Cinfty%7D+x%28nT%29+%5C%3B%5Ctextrm%7Bsinc%7D%5Cleft%28%5Cfrac%7Bt+-+nT%7D%7BT%7D%5Cright%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+x%28t%29+%3D+%5Csum_%7Bn%3D-%5Cinfty%7D%5E%7B%5Cinfty%7D+x%28nT%29+%5C%3B%5Ctextrm%7Bsinc%7D%5Cleft%28%5Cfrac%7Bt+-+nT%7D%7BT%7D%5Cright%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+x%28t%29+%3D+%5Csum_%7Bn%3D-%5Cinfty%7D%5E%7B%5Cinfty%7D+x%28nT%29+%5C%3B%5Ctextrm%7Bsinc%7D%5Cleft%28%5Cfrac%7Bt+-+nT%7D%7BT%7D%5Cright%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="&#92;displaystyle x(t) = &#92;sum_{n=-&#92;infty}^{&#92;infty} x(nT) &#92;;&#92;textrm{sinc}&#92;left(&#92;frac{t - nT}{T}&#92;right)" class="latex" /></p>
<p>where</p>
<p><img src="https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Ctextrm%7Bsinc%7D%28x%29+%3D+%5Cfrac%7B%5Csin%28%5Cpi+x%29%7D%7B%5Cpi+x%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Ctextrm%7Bsinc%7D%28x%29+%3D+%5Cfrac%7B%5Csin%28%5Cpi+x%29%7D%7B%5Cpi+x%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Ctextrm%7Bsinc%7D%28x%29+%3D+%5Cfrac%7B%5Csin%28%5Cpi+x%29%7D%7B%5Cpi+x%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="&#92;displaystyle &#92;textrm{sinc}(x) = &#92;frac{&#92;sin(&#92;pi x)}{&#92;pi x}" class="latex" /></p>
<p>(the normalized sinc function). The problem is this: Where does the sinc function come from? (In a philosophical sense. It plops out of the proof sure enough, but that&#8217;s not what I mean). Fourier theory is full of (trigonometric) polynomials (i.e. sine/cosine waves when you&#8217;re dealing with real-valued signals), so where does the factor of x in the denominator suddenly come from?</p>
<p>The answer is a nice identity discovered by Euler:</p>
<p><img src="https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Ctextrm%7Bsinc%7D%28x%29+%3D+%5Cprod_%7Bn%3D1%7D%5E%7B%5Cinfty%7D+%5Cleft%281+-+%5Cfrac%7Bx%5E2%7D%7Bn%5E2%7D%5Cright%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Ctextrm%7Bsinc%7D%28x%29+%3D+%5Cprod_%7Bn%3D1%7D%5E%7B%5Cinfty%7D+%5Cleft%281+-+%5Cfrac%7Bx%5E2%7D%7Bn%5E2%7D%5Cright%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Ctextrm%7Bsinc%7D%28x%29+%3D+%5Cprod_%7Bn%3D1%7D%5E%7B%5Cinfty%7D+%5Cleft%281+-+%5Cfrac%7Bx%5E2%7D%7Bn%5E2%7D%5Cright%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="&#92;displaystyle &#92;textrm{sinc}(x) = &#92;prod_{n=1}^{&#92;infty} &#92;left(1 - &#92;frac{x^2}{n^2}&#92;right)" class="latex" /></p>
<p>With some straightforward algebraic manipulations (ignoring convergence issues for now) you get:<br />
<img src="https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Ctextrm%7Bsinc%7D%28x%29+%3D+%5Cprod_%7Bn%3D1%7D%5E%7B%5Cinfty%7D+%5Cleft%281+-+%5Cfrac%7Bx%7D%7Bn%7D%5Cright%29+%5Cleft%281+%2B+%5Cfrac%7Bx%7D%7Bn%7D%5Cright%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Ctextrm%7Bsinc%7D%28x%29+%3D+%5Cprod_%7Bn%3D1%7D%5E%7B%5Cinfty%7D+%5Cleft%281+-+%5Cfrac%7Bx%7D%7Bn%7D%5Cright%29+%5Cleft%281+%2B+%5Cfrac%7Bx%7D%7Bn%7D%5Cright%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%5Ctextrm%7Bsinc%7D%28x%29+%3D+%5Cprod_%7Bn%3D1%7D%5E%7B%5Cinfty%7D+%5Cleft%281+-+%5Cfrac%7Bx%7D%7Bn%7D%5Cright%29+%5Cleft%281+%2B+%5Cfrac%7Bx%7D%7Bn%7D%5Cright%29&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="&#92;displaystyle &#92;textrm{sinc}(x) = &#92;prod_{n=1}^{&#92;infty} &#92;left(1 - &#92;frac{x}{n}&#92;right) &#92;left(1 + &#92;frac{x}{n}&#92;right)" class="latex" /></p>
<p><img src="https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%3D+%5Cprod_%7B%5Csubstack%7Bn+%5Cin+%5Cmathbb%7BZ%7D+%5C%5C+n+%5Cne+0%7D%7D+%5Cleft%281+-+%5Cfrac%7Bx%7D%7Bn%7D%5Cright%29+%3D+%5Cprod_%7B%5Csubstack%7Bn+%5Cin+%5Cmathbb%7BZ%7D+%5C%5C+n+%5Cne+0+%7D%7D+%5Cfrac%7Bn+-+x%7D%7Bn%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%3D+%5Cprod_%7B%5Csubstack%7Bn+%5Cin+%5Cmathbb%7BZ%7D+%5C%5C+n+%5Cne+0%7D%7D+%5Cleft%281+-+%5Cfrac%7Bx%7D%7Bn%7D%5Cright%29+%3D+%5Cprod_%7B%5Csubstack%7Bn+%5Cin+%5Cmathbb%7BZ%7D+%5C%5C+n+%5Cne+0+%7D%7D+%5Cfrac%7Bn+-+x%7D%7Bn%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+%3D+%5Cprod_%7B%5Csubstack%7Bn+%5Cin+%5Cmathbb%7BZ%7D+%5C%5C+n+%5Cne+0%7D%7D+%5Cleft%281+-+%5Cfrac%7Bx%7D%7Bn%7D%5Cright%29+%3D+%5Cprod_%7B%5Csubstack%7Bn+%5Cin+%5Cmathbb%7BZ%7D+%5C%5C+n+%5Cne+0+%7D%7D+%5Cfrac%7Bn+-+x%7D%7Bn%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="&#92;displaystyle = &#92;prod_{&#92;substack{n &#92;in &#92;mathbb{Z} &#92;&#92; n &#92;ne 0}} &#92;left(1 - &#92;frac{x}{n}&#92;right) = &#92;prod_{&#92;substack{n &#92;in &#92;mathbb{Z} &#92;&#92; n &#92;ne 0 }} &#92;frac{n - x}{n}" class="latex" /></p>
<p>Compare this with the formula for Lagrange basis polynomials:</p>
<p><img src="https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+L_%7Bi%3Bn%7D%28x%29+%3D+%5Cprod_%7B%5Csubstack%7B0+%5Cle+j+%5Cle+n+%5C%5C+j+%5Cne+i%7D%7D+%5Cfrac%7Bx_j+-+x%7D%7Bx_j+-+x_i%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002" srcset="https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+L_%7Bi%3Bn%7D%28x%29+%3D+%5Cprod_%7B%5Csubstack%7B0+%5Cle+j+%5Cle+n+%5C%5C+j+%5Cne+i%7D%7D+%5Cfrac%7Bx_j+-+x%7D%7Bx_j+-+x_i%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002 1x, https://s0.wp.com/latex.php?latex=%5Cdisplaystyle+L_%7Bi%3Bn%7D%28x%29+%3D+%5Cprod_%7B%5Csubstack%7B0+%5Cle+j+%5Cle+n+%5C%5C+j+%5Cne+i%7D%7D+%5Cfrac%7Bx_j+-+x%7D%7Bx_j+-+x_i%7D&#038;bg=ffffff&#038;fg=000&#038;s=0&#038;c=20201002&#038;zoom=4.5 4x" alt="&#92;displaystyle L_{i;n}(x) = &#92;prod_{&#92;substack{0 &#92;le j &#92;le n &#92;&#92; j &#92;ne i}} &#92;frac{x_j - x}{x_j - x_i}" class="latex" /></p>
<p>in other words, the sinc function is the limiting case of Lagrange polynomials for an infinite number of equidistant control points. Which is pretty neat 🙂</p>
]]></html></oembed>