I am a class 9th student. Sorry if my problem is silly.
I am trying to find the sum of squares from 1 to 10. For this I tried summation, and it was fine. But now I came to know that Integration can be also used for summation.
But the problem is I am not able to get correct answer. The sum of squares from 1 to 10 is $$\sum_{n=1}^{10} n^2 = 385$$ but after doing integration answer is $$\int_1^{10} x^2 \, dx= \left[\frac{x^3}{3}\right]_1^{10} = 333$$ which is quite less than the actual answer.
What is the correct way of calculating squares from 1 to 10 via integration? Am I mistaken something?