I'm trying to calculate the area under the curve of $ y=x^2 $ between $ x=1 $ and $x = 3$ and above $y=0$ using the sum of infinitely many rectangles.
So far I've tackled it by first defining the width of every rectangle to be $\Delta x = \frac{3-1}{n} = \frac{2}{n}$.
After that I proceeded by stating that the area of every rectangle under the curve combined is
$\sum_{i=1}^n (\frac{2i}{n})^2*(\frac{2}{n})$
I'm told that $\sum_{i=1}^n i^2 = \frac{n(n+1)(2n+1)}{6}$ which I then used in my calculations:
$\sum_{i=1}^n (\frac{2}{n})^2*i^2*(\frac{2}{n}) = \frac{8}{n^3}*(\frac{n(n+1)(2n+1)}{6})$
Simplifying to:
$8 * \frac{(n+1)(2n+1)}{6n^2} = \frac{8n^2+12n+4}{3n^2}$
Proceeding by calculating the limit as $x$ approaches infinity:
$\lim _{x\to \infty }\left(\frac{\left(8n^2+12n+4\right)}{3n^2}\right) = \frac{8}{3}$.
However, the answer should be $\frac{26}{3}$ which is indeed very close to what I have, but I have no idea where the problem lies. Any ideas?