I am asked to find the following limit:
$$\lim_{n \rightarrow \infty} \frac{3}{n} \sum_{k=1}^n \left[\left(\frac{3k}{n}\right)^2 - \left(\frac{3k}{n}\right)\right].$$
I am trying to invoke the following rule
$$\int_a^b f(x) dx = \lim_{n \rightarrow \infty } \sum_{k=1}^n f(x+k \Delta x) \Delta x$$
Where $\Delta x = \frac{b-a}{n}$.
So far what I have is that my function $f$ is $f(x)=x^2$ and that $a=1,b=4$. Then I get $$\int_1^4 x^2 dx$$ which is not the correct answer. Can someone help me with where I went wrong? Thanks in advance. Don't necessarily need answer just a hint or someone point out what obvious mistake I am making. Sorry. Also if this is a repeat question I apologize I will take it down, couldn't find one.