Solution (source code)

= Solution

The even extension is the <triangular function> $f(x)=(1-|x|)$ for $|x|<1$ and zero outside. Its <Fourier transform> is real and even:
$$
\widetilde f(k)=2\int_0^1(1-x)\cos(kx)\,dx,
\qquad\boxed{\widetilde f(k)=\frac{2(1-\cos k)}{k^2}=\left(\frac{\sin(k/2)}{k/2}\right)^2.}
$$
At zero the removable limiting value is one, also obtained directly by integrating the triangle. This is the <Fourier transform of a triangular function>.