I need to calculate the antiderivative of $f(x)=2x$ using only Riemann sums.
I tried to create the sums so that the limit when $n$ tends to $\infty$ of: $$\lim_{n\to\infty}\sum\limits_{i=1}^nf(\xi_i^*)\Delta x$$
Will give me the answer, but I can't get rid of the variables $b$ and $a$ which exist in $Δx$ and $\xi_i^*$.
After solving I concluded that the limit is equal to $(b^2-a^2)$ but I doubt that this is the correct answer.
EDIT: Apparently this is the correct answer, so I should change the question to how $b^2-a^2$ is equivalent to the antiderivative $x^2$
I know it may seem trivial, but I would appreciate a complete understanding of the solution
EDIT#2: Just writing my solution, for anyone who wonders how to get there
$$\Delta x=\frac{b-a}{n}$$ $$\xi_i^* =a+\frac{(b-a)i}{n}$$ $$f(\xi_i^*)=2a+\frac{2(b-a)i}{n}$$ So $$\lim_{n\to\infty}\sum\limits_{i=1}^nf(\xi_i^*)\Delta x= \lim_{n\to\infty}\sum\limits_{i=1}^n\left[\left(2a+\frac{2(b-a)i}{n}\right)\frac{b-a}{n}\right]=$$ then $$\lim_{n\to\infty}\sum\limits_{i=1}^n\frac{2ab-2a^2}{n}+\lim_{n\to\infty}\sum\limits_{i=1}^n\frac{2(b-a)^2i}{n^2}=$$ $$2ab-2a^2 +\lim_{n\to\infty} \frac{2(b-a)^2}{n^2}\sum_{i=1}^n i=$$ $$2ab-2a^2 +\lim_{n\to\infty}\frac{2(b-a)^2}{n^2}\frac{n(n+1)}{2} = b^2-a^2$$