I have recently learnt to find some limits and values of some series using integration. This is called as evaluating series and limits using limit as a sum in my textbook.
Now, I tried to derive this series using what I learnt. (It is not part of my textbook. I was just doing this for my own fun):
$$\sum_{r=1}^\infty\frac{1}{r^2}= \frac{π^2}{6}$$
Here is what I did :
Let $S = \lim_{n\to\infty}\sum_{r=1}^n\frac{1}{r^2}$
Using change of variable of $n\to n^2$ and $r\to r^2$, call $n^2 = x$ and $r^2 = y$, we have :
$$S=\lim_{x\to\infty}\frac{1}{x}\sum_{y=1}^x\frac{x}{y}$$
Now using limit as a sum formula, we have :
$$S = \int_0^1\frac{1}{x}dx=\infty$$
Of course this is wrong.
Where did I went wrong? Can you provide a correct proof of this series using this limit as a sum integration method?
(There is a famous question of this series on this site but on the answers to that, I didn't find a solution involving limit as a sum method. Hence my question is different.)