I'm trying to understand the first proof suggested here http://math.cmu.edu/~bwsulliv/basel-problem.pdf for the basel problem.
The writer writes:
$\frac{\pi \cos(\pi y)}{\sin(\pi y)} = \frac{1}{y} - \sum_{k=1}^{\infty}\frac{2y}{k^2 - y^2}$ which is true and I understand why it is true. Lets call this formula A.
The problem is with the next part. After this line, the author writes:
$\frac{1}{y} + \sum_{k=1}^{\infty}\frac{1}{k^2 - y^2} = \frac{1}{2y^2}-\frac{\pi \cos (\pi y)}{2y\sin(\pi y)}$
I'm not sure why that's true.
Lets work from formula A and divide it by $-2y$:
$-\frac{\pi \cos(\pi y)}{2y\sin(\pi y)} = -\frac{1}{2y^2} + \sum_{k=1}^{\infty}\frac{1}{k^2 - y^2}$
Now lets add $\frac{1}{2y^2}$ to both sides:
$\frac{1}{2y^2} -\frac{\pi \cos(\pi y)}{2y\sin(\pi y)} = \sum_{k=1}^{\infty}\frac{1}{k^2 - y^2}$
Where did the $\frac{1}{y}$ go? Am I missing something or is the author wrong?