I am asked to prove by induction that $$\sum_{i=1}^{n}\frac{1}{i^2}\leq2-\frac{1}{n}$$
The base case is straightforward: $$\sum_{i=1}^{1}\frac{1}{1^2}\leq2-\frac{1}{1}$$
However, for the inductive step, the solution states that $n^2+2n \leq n^2 + 2n + 1$ or $(n+1)n + n \leq (n+1)^2$. This becomes $2 - \frac{1}{n} + \frac{1}{(n+1)^2} \leq 2 - \frac{1}{n+1}$.
"From this, we can use the inductive hypothesis to see $$\sum_{i=1}^{n+1}\frac{1}{i^2}\leq + \frac{1}{(n+1)^2} \leq 2-\frac{1}{n} + \frac{1}{(n+1)^2} \leq 2 - \frac{1}{n+1}"$$
Can you explain how we can come up with a quadratic equation on the right hand side and how that relates to the solution?