The error is in the integral. When you use partial summation, you work with integers. So, in your case$$\int_{1}^{x}A\left(t\right)dt\
eq\int_{1}^{x}\left(t+1\right)tdt$$ but, since you're working now in an continuous context,$$\int_{1}^{x}A\left(t\right)dt=\int_{1}^{x}\left(\left\lfloor t\right\rfloor +1\right)\left\lfloor t\right\rfloor dt$$ where $\left\lfloor t\right\rfloor$ is the integer part of $t$ (or floor function). As copper.hat suggested, working with $x$ real makes problem because you are obligated to work with the floor function even out of the integral (note that in the integral case is inevitable).