I'm trying to prove by induction that $1-4+9-...\pm n^2 = \pm(1+2+...+n)$. The base-case is obvious, and the formula that I write this as is
$$\sum_{i=1}^{n}(-1)^{i+1}i^{2} = (-1)^{n+1}\sum_{i=1}^{n}i$$
If we assume this holds up to $n$ then I try to prove the equation true for $n+1$ but get stuck. I have
$$\sum_{i=1}^{n+1}(-1)^{i+1}i^{2} = (-1)^{n+1}\sum_{i=1}^{n}i + (-1)^{n+2}(n+1)^{2}$$
$$ = (-1)^{n+2}\Big( (n+1)^{2}-\sum_{i=1}^{n}i\Big)$$
At this point I can't think of anyth ing that sounds like a good idea. I suppose I could try to use what I have to get a formula for $n+1$ like moving everything away from this in the inductive hypothesis, $n+1=\pm(1-4+...\pm n^{2})-2-3-...-(n-1)$ but that sounds like I'll just be heading in a circle.
For guidance I can try setting this equal to my goal and reduce it to a known equation, but that doesn't seem to help.
$$(-1)^{n+2}\Big((n+1)^{2}-\sum_{i=1}^{n}i\Big) = (-1)^{n+2}\sum_{i=1}^{n+1}i$$
iff
$$n^{2}+2n+1 = n+1+2\sum_{i=1}^{n}i$$
iff
$$n^{2} = n+ 2\sum_{i=1}^{n-1}i$$
but this is not obviously true and I can't see where to go from here either.
Let's assume $1^2 - 2^2 + 3^2 - \ldots + (n-1)^2 = 1 + 2 + 3 + \ldots + (n - 1)$, and see what happens when we subtract $n^2$. Note that subtraction must come next, as we're assuming we have a positive sum.
To use this proof, you must be able to use the fact that $1 + 2 + \ldots + (n-1) = \frac{n(n-1)}{2}$.
Subtracting $n^2$, we get $$\frac{n(n - 1)}{2} - n^2 = \frac{n^2 - n}{2} - \frac{2n^2}{2} = \frac{-n^2 - n}{2} = -\frac{n(n+1)}{2} = -(1 + 2 + \ldots + n).$$
Does that help?