If we allow some real coefficients an, to get the form it is the same as allowing exponents that are complex numbers. Both forms are certainly useful in applications. A large part of twentieth centuryanalytic number theory was devoted to finding good estimates for these sums, a trend started by basic work of Hermann Weyl in diophantine approximation.
Estimates
The main thrust of the subject is that a sum is trivially estimated by the number N of terms. That is, the absolute value by the triangle inequality, since each summand has absolute value 1. In applications one would like to do better. That involves proving some cancellation takes place, or in other words that this sum of complex numbers on the unit circle is not of numbers all with the same argument. The best that is reasonable to hope for is an estimate of the form which signifies, up to the implied constant in the big O notation, that the sum resembles a random walk intwo dimensions. Such an estimate can be considered ideal; it is unattainable in many of the major problems, and estimates have to be used, where the o function represents only a small saving on the trivial estimate. A typical 'small saving' may be a factor of log, for example. Even such a minor-seeming result in the right direction has to be referred all the way back to the structure of the initial sequencexn, to show a degree of randomness. The techniques involved are ingenious and subtle. A variant of 'Weyl differencing' investigated by Weyl involving a generating exponential sum was previously studied by Weyl himself, he developed a method to express the sum as the value, where 'G' can be defined via a linear differential equation similar to Dyson equation obtained via summation by parts.
History
If the sum is of the form where ƒ is a smooth function, we could use the Euler–Maclaurin formula to convert the series into an integral, plus some corrections involving derivatives of S, then for large values of a you could use "stationary phase" method to calculate the integral and give an approximate evaluation of the sum. Major advances in the subject were Van der Corput's method, related to the principle of stationary phase, and the later Vinogradov method. The large sieve method, the work of many researchers, is a relatively transparent general principle; but no one method has general application.
Types of exponential sum
Many types of sums are used in formulating particular problems; applications require usually a reduction to some known type, often by ingenious manipulations. Partial summation can be used to remove coefficients an, in many cases. A basic distinction is between a complete exponential sum, which is typically a sum over all residue classes modulo some integer N, and an incomplete exponential sum where the range of summation is restricted by some inequality. Examples of complete exponential sums are Gauss sums and Kloosterman sums; these are in some sense finite field or finite ring analogues of the gamma function and some sort of Bessel function, respectively, and have many 'structural' properties. An example of an incomplete sum is the partial sum of the quadratic Gauss sum. Here there are good estimates for sums over shorter ranges than the whole set of residue classes, because, in geometric terms, the partial sums approximate a Cornu spiral; this implies massive cancellation. Auxiliary types of sums occur in the theory, for example character sums; going back to Harold Davenport's thesis. The Weil conjectures had major applications to complete sums with domain restricted by polynomial conditions.
Weyl sums
One of the most general types of exponential sum is the Weyl sum, with exponents 2πif where f is a fairly general real-valued smooth function. These are the sums involved in the distribution of the values according to Weyl's equidistribution criterion. A basic advance was Weyl's inequality for such sums, for polynomial f. There is a general theory of exponent pairs, which formulates estimates. An important case is where f is logarithmic, in relation with the Riemann zeta function. See alsoequidistribution theorem.
Let p be an odd prime and let. Then the Quadratic Gauss sum is given by where the square roots are taken to be positive. This is the ideal degree of cancellation one could hope for without any a priori knowledge of the structure of the sum, since it matches the scaling of a random walk.