Can anyone help me prove $\int_a^b x^2dx = \frac{b^3 - a^3}{3}$, the long way? I know exactly what to do, but the algebra involved is just too much for me and I keep making a mistake somewhere and getting a different result every time... I need to prove it using the Riemann defintion of an integral, for a start it would be:
$$\int_a^b x^2dx = \displaystyle \lim_{n \to\infty} \sum_{i = 1}^n\left[{a+\frac{bi - ai}{n}}\right]^2\left[\frac{b - a}{n}\right]$$
right? And I need to do so many steps to prove it..is there an easier way or will I just have to go through all the steps?
It suffices we prove $$\int_0^1x^2dx=\frac 1 3 $$
Then $$\int_0^ax^2dx=\frac {a^3} 3$$ will follow by substitution and $$\int_a^bx^2dx=\int_0^bx^2dx-\int_0^ax^2dx=\frac{b^3-a^3}3$$
Now, taking an upper Darboux sum for $x^2$ over $[0,1]$ with a regular partition gives $$D(f,\Pi_n)=\frac 1 n\sum_{k=1}^{n} \frac{k^2}{n^2}=\frac{1}{n^3}\sum_{k=1}^n k^2$$
Now use $\displaystyle\sum_{k=1}^n k^2=\frac{n(2n+1)(n+1)}6$