Consider the following polynomial in $x$:
$$p(x) = \sum_{n=0}^{2k} x^n - \frac{1}{2k+1} \sum_{n=0}^{2k} (-x)^n.$$
I want to show that $p(x)\geq 0$ for real $x$. It is trivial to show that $p(-1) = 0$, and by graphing $p(x)$ for some $k$ we can see that $x=-1$ is in fact the global minimum of this polynomial, presumably for any $k\in \mathbb{N}^+$.
How can I show that this is in fact true?
Note that $$p(x)=f(x) - \frac{1}{2k+1}f(-x),$$ with $$f(x)=1 + x + \dots + x^{2k}=\frac{x^{2k+1} - 1}{x-1}.$$
You can do this by showing that the numerator of
$$(2k+1)p(x)={2kx^{2k+2}+(2k+2)x^{2k+1}-(2k+2)x-2k\over x^2-1}$$
has just two zeroes, at $x=\pm1$ (so that elsewhere it has the same sign as the denominator, since it clearly tends to $+\infty$ as $x\to\pm\infty$ and is negative at $x=0$). This can be done by looking closely at the numerator's first and second derivatives,
$$(2k+2)(2k)x^{2k+1}+(2k+2)(2k+1)x^{2k}-(2k+2)$$
and
$$(2k+2)(2k+1)(2k)x^{2k}+(2k+2)(2k+1)(2k)x^{2k-1}=(2k+2)(2k+1)(2k)x^{2k-1}(x+1)$$
We see that the second derivative is positive to the left of $-1$ and to the right of $0$, and negative in between. The implies the first derivative is increasing on $(-\infty,-1)$, decreasing on $(-1,0)$, and increasing on $(0,\infty)$. Since the value of the first derivative at $x=-1$ is $(2k+2)(-2k+(2k+1)-1)=0$, the first derivative is non-positive on $(-\infty,0)$, so the numerator is strictly decreasing on that interval, passing through $0$ at $x=-1$. On $(0,1)$, the first derivative increases from a negative value at $x=0$ to a positive value at $x=1$ so the numerator decreases to a minimum (negative) value and then increases to pass through $0$ at $x=1$. It continues increasing on $(1,\infty)$, and thus it has just the two zeroes, at $x=\pm1$.