Dirichlet kernel (source code)

= Dirichlet kernel
{c}
{title2=$D_n$}
{wiki}

The <Dirichlet kernel> is the <trigonometric polynomial>
$$
D_N(t)=\sum_{k=-N}^{N}e^{ikt}=1+2\sum_{k=1}^N\cos(kt)=\frac{\sin((N+1/2)t)}{\sin(t/2)}.
$$
At multiples of $2\pi$, the quotient is interpreted by its removable value $2N+1$. Summing a finite <geometric series> proves the formula. In the convention $\widehat f(k)=(2\pi)^{-1}\int_{-\pi}^{\pi}f(t)e^{-ikt}dt$, the <Fourier partial sum> is $S_Nf(x)=(2\pi)^{-1}\int_{-\pi}^{\pi}D_N(t)f(x-t)dt$.

Its normalized <integral> is one, but it changes sign. Its growing <L1 norm> explains why sharper truncation need not improve <convergence> for every continuous input; the positive <Fejér kernel> behaves differently.