I need to calculate a couple of Gauss sums to solve a problem I'm working on, but I keep getting the wrong answer because the absolute value of what I calculate is impossible for such a sum. Can anyone spot my mistake?
Suppose $F$ is a field with four elements, as $0, 1, a, a^2$, and $\chi$ a nontrivial character on $F$. Thus we must have $\chi(0) = 0, \chi(1) = 1$, and we can assume $\chi(a) = \zeta$ and $\chi(a^2) = \zeta^2$, where $\zeta = e^{2\pi i /3}$. This is because $\chi$ sends a nonzero member of $F$ to a third root of unity, so the only other homomorphism (which would be $\chi^2$) would interchange where $a$ and $a^2$ are sent.
Now the Gauss sum of $\chi$ is given by $g(\chi) = \sum\limits_{t \in F} \chi(t)\zeta^{tr(t)}$, where $tr$ is the trace function, defined by $tr(t) = t + t^2$. The trace function has its range equal to $\mathbb{Z}_2 \subset F$, each member of which is interpreted as the corresponding $0$ or $1$ in $\mathbb{C}$.
We have $tr(0) = 0, tr(1) = 1 + 1^2 = 0$. Also $tr(a) = a + a^2 = 1$, and $tr(a^2) = a^2 + a^4 = a^2 + a = tr(a) = 1$.
Thus the Gauss sum is $\chi(0)\zeta^{tr(0)} + \chi(1)\zeta^{tr(1)} + \chi(a)\zeta^{tr(a)} + \chi(a^2)\zeta^{tr(a^2)} = 0 + 1 + \zeta \zeta + \zeta^2\zeta = 1 + \zeta^2 + 1 = 2 + \zeta^2$.
But $\zeta^2 = e^{2 \pi i (2/3)} = Cos(4 \pi / 3) + i Sin(4 \pi / 3) = -1/2 - i\sqrt{3}/2$, whence $g(\chi) = 1.5 - \sqrt{3}i/2$, meaning $|g(\chi)| = \sqrt{2.25 + 3/4} = \sqrt{3}$.
The Gauss sum is supposed to have absolute value $\sqrt{|F|} = 2$. What have I done wrong here?