We obtain asymptotics for sums of the form $$\begin{aligned} \sum _{n=1}^P e\left( {\alpha }_k\,n^k\,+\,{\alpha }_1 n\right) , \end{aligned}$$
∑
n
=
1
P
e
α
k
n
k
+
α
1
n
,
involving lower order main terms. As an application, we show that for almost all $${\alpha }_2 \in [0,1)$$
α
2
∈
[
0
,
1
)
one has $$\begin{aligned} \sup _{{\alpha }_{1} \in [0,1)} \Big | \sum _{1 \le n \le P} e\left( {\alpha }_{1}\left( n^{3}+n\right) + {\alpha }_{2} n^{3}\right) \Big | \ll P^{3/4 + \varepsilon }, \end{aligned}$$
sup
α
1
∈
[
0
,
1
)
|
∑
1
≤
n
≤
P
e
α
1
n
3
+
n
+
α
2
n
3
|
≪
P
3
/
4
+
ε
,
and that in a suitable sense this is best possible. This allows us to improve bounds for the fractal dimension of solutions to the Schrödinger and Airy equations.