i tried integrating $$\int_4^13x-2\,$$, using Riemann sum by definition $$\int_a^bf(x)\,dx = \lim_{n\to\infty}\sum_{i=1}^{n} f(xi)\,\Delta x$$ where $$\Delta x =\frac{b-a}n$$ and $xi$ is any point within each interval i take $\Delta x= \frac {3}{n}$ and $xi=\frac {3i}{n}$ which most right point in each interval , this turn general formula into $$\sum_{i=1}^{n} f(\frac {3i}{n)\frac {3}{n}$$
$\sum_{i=1}^{n} \frac {27i-6n}{n^2}$ if we take the sum it become $\frac {27n^2+27n-12n^2}{2n^2}$ defining $i$ as $\frac {n(n+1)}{2}$ and summation of constant as $cn$. and by taking limit to infinity final answer is $7.5$ that obviously wrong , please point out my mistake