integrate Abs[Sqrt[(-I)*x]/Sqrt[2] + Sqrt[I*x]/Sqrt[2]]^2 for x from -Pi to +Pi