How can the following identity for positive integer $n$ be proved? It has been confirmed symbolically by Mathematica:
$$ \sum_{i=1}^n (-1)^{1+i} (2n+1-2i) \binom{2n+1}{i} = 2n + 1 $$
Induction seems quite cumbersome as $n$ appears in three instances on the left hand side. Also the usual binomial sum identities have an upper limit equal to the upper number in the binomial coefficient, whereas here these are $n$ and $2n+1$ respectively.
Background. This identity arose from a series expansion where the functions $U_k(\phi)$ recursively satisfy a differential equation depending on $U_{k-2}(\phi)$. After computing the first few by hand, I was able to see the pattern, and proceeded to prove it by induction. However for odd $k \ge 3$, this involved showing the identity
$$ \sum_{\substack{j=1 \\ \text{$j$ odd}}}^{k-2} (-1)^{(j-1)/2} \frac{2j}{(k-j)!!(k+j)!!} = (-1)^{(k+1)/2} \frac{2k}{(2k)!!}. $$
After rearranging and expanding the double factorials in terms of single factorials, obtained me
$$ \sum_{\substack{j=1 \\ \text{$j$ odd}}}^{k-2} (-1)^{(j+k)/2} \frac{j}{k} \binom{k}{(k-j)/2} = 1. $$
Putting $j = 2i-1$ and $k = 2n+1$ gives
$$ \sum_{i=1}^n (-1)^i (2i-1) \binom{2n+1}{n+1-i} = (-1)^n (2n+1), $$
and writing the sum backwards (i.e. replacing $i$ by $n+1-i$) yields the above.
There is a slick answer using generating functions.
Subtracting the $2n+1$ over, and negating, this is equivalent to proving $$ \sum_{i=0}^n\underbrace{(-1)^{i}\binom{2n+1}{i}}_{a_i}\underbrace{(2(n-i)+1)}_{b_{n-i}}=0 $$ where I have given names to certain parts of the summation. We are trying to prove that the convolution of the sequences $a_i$ and $b_i$ is equal to zero. The generating function of the convolution is equal to the product of the generating functions for $a_i$ and $b_i$, so let us compute those: $$ A(x) =\sum_{i=0}^\infty a_ix^i= \sum_{i=0}^\infty \binom{2n+1}{i}(-1)^ix^i = (1-x)^{2n+1} $$ $$ B(x) =\sum_{i=0}^\infty b_ix^i= \sum_{i=0}^\infty(2i+1)x^i = 2\cdot\frac{x}{(1-x)^2}+\frac{1}{(1-x)}=\frac{1+x}{(1-x)^2} $$ Multiplying these, the sum we are trying to compute is the coefficient of $x^n$ in $$ A(x)B(x) = (1+x)(1-x)^{2n-1}=\color{blue}{(1-x)^{2n-1}}+\color{green}{x(1-x)^{2n-1}} $$ The $x^n$ coefficient of $\color{blue}{(1-x)^{2n-1}}$ is $\binom{2n-1}{n}(-1)^n$, and the $x^n$ coefficient of $\color{green}{x(1-x)^{2n-1}}$ is the $x^{n-1}$ coefficient of $(1-x)^{2n-1}$ is equal to $(-1)^{n-1}\binom{2n-1}{n-1}$. Notice these are both central binomial coefficients with opposite signs, so their sum is zero.