Fourier transforming the function: $$f(t) = \left\{ \begin{array}{ll} 1; & \mbox{ } |t| \leq 1 \\ 0; & \mbox{otherwise} \end{array} \right.$$ We get: $$F(y)=2 \frac{\sin y}{y}$$ And now applying Parseval's identity for the Fourier transform,
$$\int_{- \infty}^\infty {4 \frac{\sin ^2 y}{y^2}dy}=\int_{-1}^1 {f(t)^2}dt=2$$ By linearity of the integral we get the result $\frac{1}{2}$, however the result is $\pi$. Where did I go wrong? Thank you.