We now consider an arbitrary interval $[a,b]$ and fixed prime $p$, and again consider polynomials $f$ with $Gal(f) \cong S_p$. We ask whether there always exists an $f$ such that it integrates to $0$ on $[a,b]$, or equivalentely, if $0 \in \mathcal I_{a,b}(S_p)$? The following theorem shows that, no, this is not the case for every interval. Note the following applies to an abitrary group $G$ thus also applies to $S_p$.
Suppose \[ f(x)\in\mathbb Q[x] \] and let \(F(x)\in\mathbb Q[x]\) be an antiderivative of \(f\). Then \[ \int_a^b f(x)\,dx=F(b)-F(a). \] Therefore, our condition is equivalent to \[ F(a)=F(b). \] Now choose an interval $[a,b]$ such that that \(a\) and \(b\) are algebraically independent over \(\mathbb Q\). By definition, this means that no nonzero polynomial \(P(X,Y)\in\mathbb Q[X,Y]\) satisfies \[ P(a,b)=0. \] But if our integral were zero, we would have \[ F(b)-F(a)=0. \] Consider the polynomial \[ P(X,Y)=F(Y)-F(X). \] Since \(F\) is nonconstant, \(P\) is a nonzero polynomial in \(\mathbb Q[X,Y]\). Thus, \[ P(a,b)=0 \] would contradict the algebraic independence of \(a\) and \(b\). Consequently, \[ \int_a^b f(x)\,dx\neq0 \] for every nonzero \(f\in\mathbb Q[x]\). So there exist intervals for which zero cannot belong to \(\mathcal I_{a,b}(G)\). $\blacksquare$
We now move on to an existence question and prove our main result. We will show that for every prime \(p\), there exist infinitely many monic, irreducible polynomials \(f\in\mathbb Q[x]\) of degree \(p\) such that \[ \int_0^1 f(x)\,dx=0 \] and \[ \operatorname{Gal}(f/\mathbb Q)\cong S_p. \] The key is to consider the family \[ F_{p,t}(x)=x^p+tx-\frac1{p+1}-\frac t2. \] Here \(t\) is a parameter. First, observe that \[ \begin{aligned} \int_0^1 F_{p,t}(x)\,dx &=\frac1{p+1}+\frac t2-\frac1{p+1}-\frac t2\\ &=0. \end{aligned} \] Thus every rational specialization \(t\in\mathbb Q\) automatically satisfies the integral condition. We will prove that \[ \operatorname{Gal}(F_{p,t}/\mathbb Q(t))\cong S_p. \] We can then use Hilbert's irreducibility theorem to obtain infinitely many suitable rational values of \(t\). For the rest of the proof, assume \(p\) is an odd prime. We will handle \(p=2\) separately. We prove a series of lemmas which will lead to the final proof.
Lemma 1: $F_{p,t}(x)$ is irreducible.
\(F_{p,t}(x)\) is irreducible as a polynomial in \(x\) over the rational function field \(\mathbb Q(t)\), thus its Galois group acts transitively on its p roots.
PROOF
Rewrite $F_{p,t}(x)$ as \[ F_{p,t}(x) = \underbrace{x^p-\frac1{p+1}}_{A(x)} + t\underbrace{\left(x-\frac12\right)}_{B(x)}. \] Notice that \[ \gcd(A(x),B(x))=1. \] Indeed, the only root of \(B\) is \(1/2\), and \[ A(1/2)=\frac1{2^p}-\frac1{p+1}\neq0. \] Now suppose \(F_{p,t}\) has a non-trivial factorization in \(\mathbb Q[x,t]\). Since it has degree one in \(t\), one of its factors must be independent of \(t\). That factor would have to divide both \(A(x)\) and \(B(x)\). But their greatest common divisor is \(1\). Therefore \(F_{p,t}\) is irreducible in \(\mathbb Q[x,t]\). Since it is monic in \(x\), Gauss's lemma gives $F_{p,t}$ is irreducible over $\mathbb Q(t)$. Consequently, its Galois group acts transitively on its \(p\) roots. $\blacksquare$
Lemma 2: Galois Group contains a p-cycle
The permutation representation of \(Gal(F_{p,t}/Q(t))\) acting on the p roots of $F_{p,t}(x)$ contains a p-cycle.
PROOF
We specialize $F_{p,t}(x)$ by letting \(t=0\). We obtain \[ F_{p,0}(x)=x^p-\frac1{p+1}. \] This polynomial is irreducible over \(\mathbb Q\). To see this, use the binomial irreducibility criterion. Since \(p\) is prime, \(x^p-c\) is irreducible unless \(c\) is a \(p\)-th power in \(\mathbb Q\). Here, \[ c=\frac1{p+1} \] is not a rational \(p\)-th power. Thus its Galois group acts transitively on its \(p\) roots [1]. By the orbit-stabilizer theorem, the order of this Galois group is divisible by \(p\). Cauchy's theorem therefore guarantees an element of order \(p\). Since we are permuting exactly \(p\) roots, this element must be a \(p\)-cycle. We can now use the specialization theorem for Galois groups, and because \(F_{p,0}\) is separable, its Galois group embeds into the generic Galois group (up to conjugacy). Therefore, \[ \operatorname{Gal}(F_{p,t}/\mathbb Q(t)) \text{ contains a }p\text{-cycle}. \] $\blacksquare$
Lemma 3: Galois Group contains a transposition
The permutation representation of \(Gal(F_{p,t}/Q(t))\) acting on the p roots of $F_{p,t}(x)$ contains a transposition.
PROOF
Recall that \[ F_{p,t}(x)=x^p+tx-\frac1{p+1}-\frac t2. \] Think of the equation \(F_{p,t}(x)=0\) as defining \(t\) in terms of \(x\): \[ t=\frac{x^p-\frac1{p+1}}{\frac12-x}. \] Define the rational function \[ R_p(x)=\frac{x^p-\frac1{p+1}}{\frac12-x}. \] The critical points of this rational function are the roots of its derivative. By the quotient rule, \[ R_p'(x)= \frac{ \frac p2x^{p-1}-(p-1)x^p-\frac1{p+1} }{ (\frac12-x)^2 }. \] Let \[ D_p(x)= \frac p2x^{p-1}-(p-1)x^p-\frac1{p+1}. \] We will show that there is a critical value of \(R_p\) corresponding to exactly one critical point, and that this critical point is simple. That will give us a transposition.
Consider \(D_p(x)\) on the negative real axis. At zero, \[ D_p(0)=-\frac1{p+1} \lt 0. \] As \(x\to-\infty\), \[ D_p(x)\to+\infty. \] Furthermore, \[ D_p'(x) = p(p-1)x^{p-2}\left(\frac12-x\right). \] Since \(p\) is odd, \(p-2\) is odd. Thus, for \(x \lt 0\), \[ D_p'(x) \lt 0. \] Consequently, \(D_p\) is strictly decreasing on the negative real axis. By the intermediate value theorem, there is exactly one negative real number \(r\) such that \[ D_p(r)=0. \] Moreover, \[ D_p'(r)\neq0, \] so \(r\) is a simple root of \(D_p\).
This is the key observation. Since \(r\) is a critical point, the derivative of \(F_{p,t}\) with respect to \(x\) vanishes when \(x=r\): \[ \frac{\partial F_{p,t}}{\partial x} = px^{p-1}+t. \] Therefore, the corresponding parameter value is \[ t_0=-pr^{p-1}. \] Now suppose there were another critical point \(s\) corresponding to the same value \(t_0\). Then \[ -ps^{p-1}=-pr^{p-1}, \] which gives \[ s^{p-1}=r^{p-1}. \] Hence we can write \[ s=\zeta r, \qquad \zeta^{p-1}=1. \] Both \(r\) and \(s\) are roots of \(D_p\). Subtracting their defining equations gives \[ 0=D_p(s)-D_p(r). \] Because \(s^{p-1}=r^{p-1}\), \[ 0=-(p-1)r^p(\zeta^p-1). \] But \[ \zeta^p=\zeta \] because \(\zeta^{p-1}=1\). Therefore, \[ \zeta=1, \] and consequently \[ s=r. \] We have proved that \(r\) is the only critical point lying above the critical value \(t_0\).
At \(t=t_0\), the polynomial \(F_{p,t_0}(x)\) has a repeated root at \(x=r\). The repeated root has multiplicity exactly two because \[ \frac{\partial^2 F_{p,t}}{\partial x^2} = p(p-1)x^{p-2}, \] which is nonzero at \(r\). All other roots are simple, since we have shown that no other critical point lies above \(t_0\). Thus, as the parameter \(t\) moves around \(t_0\) in the complex plane, exactly two roots exchange places while all the other roots return to their original positions. Thus, the polynomial has simple ramification at $t_0$. Its corresponding monodromy permutation is a transposition. In Galois-theoretic language, the inertia group at this branch point contains a transposition. Therefore, \[ \operatorname{Gal}(F_{p,t}/\mathbb Q(t)) \text{ contains a transposition}. \] $\blacksquare$
Lemma 4: $G = S_p$
Let \(p\) be prime. Any subgroup \(G\leq S_p\) containing a \(p\)-cycle and a transposition is equal to \(S_p\).
PROOF
Without loss of generality, write \[ \sigma=(0\ 1\ 2\ \cdots\ p-1) \] and suppose \[ \tau=(i\ j). \] Conjugating \(\tau\) by powers of \(\sigma\), we obtain \[ \sigma^k\tau\sigma^{-k} = (i+k\quad j+k), \] where the indices are taken modulo \(p\). Let \[ d=j-i\not\equiv0\pmod p. \] The resulting transpositions correspond to edges \[ \{k,k+d\} \] in a graph whose vertices are the elements of \(\mathbb Z/p\mathbb Z\). Because \(p\) is prime and \(d\neq0\), we have \[ \gcd(d,p)=1. \] Consequently, this graph is connected, so repeatedly adding \(d\) eventually visits every element of \(\mathbb Z/p\mathbb Z\). A standard fact about permutation groups is that the transpositions corresponding to the edges of a connected graph generate the entire symmetric group on its vertices. Thus, \[ \langle \sigma,\tau\rangle=S_p. \] Since both \(\sigma\) and \(\tau\) belong to \(G\), \[ S_p\subseteq G. \] But \(G\leq S_p\), so \[ G=S_p \] This proves the lemma. $\blacksquare$
Theorem: Polynomials satisfying Zero Integral Condition
For every prime \(p\), there exist infinitely many monic, irreducible polynomials \(f\in\mathbb Q[x]\) of degree \(p\) such that \[ \int_0^1 f(x)\,dx=0 \] and \[ \operatorname{Gal}(f/\mathbb Q)\cong S_p. \]
PROOF
Combining the preceding results, we have shown that \[ G=\operatorname{Gal}(F_{p,t}/\mathbb Q(t)) \] contains a \(p\)-cycle and a transposition. Lemma 4 therefore gives \[ \operatorname{Gal}(F_{p,t}/\mathbb Q(t))=S_p. \]
We have established that the generic polynomial \[ F_{p,t}(x)=x^p+tx-\frac1{p+1}-\frac t2 \] has Galois group \(S_p\) over \(\mathbb Q(t)\). Now we invoke Hilbert's irreducibility theorem. In the form we need, the theorem says that if a polynomial over \(\mathbb Q(t)\) is irreducible and has Galois group \(G\), then there are infinitely many rational specializations of \(t\) for which the specialized polynomial retains the same Galois group. Consequently, there are infinitely many \(t_0\in\mathbb Q\) such that \[ \operatorname{Gal}(F_{p,t_0}/\mathbb Q)=S_p. \] For every such specialization, \[ \int_0^1 F_{p,t_0}(x)\,dx=0. \] Furthermore, the polynomial is monic, irreducible, and has degree \(p\). This establishes the theorem for odd primes. For \(p=2\), the same family is irreducible over \(\mathbb Q(t)\), and a generic irreducible quadratic automatically has Galois group \(S_2\). Hilbert irreducibility therefore gives the result in this case as well. $\blacksquare$