For example in AP: $5,13,21,29 \dots$ the sum of $n$ terms $= 4n^2+n$ and its derivative will be $8n+1$.
The coefficient of $n$ in derivative gives the common difference but what does that '$1$' signify?
And why it is not same as the equation for $n$'th term of AP ?
Sum of $n$ terms of an A.P. with first term $a$ and common difference $d$ is given by : $$S=\frac{n^2d}{2} + n(a-d/2)$$
Therefore it's derivative is :
$$S' = nd + (a-d/2)$$
Therefore coefficient of $n$ represents common difference and constant term is $a-\dfrac{d}{2}$
Note : This function isn't derivable for $n \in \mathbb{N}$, because it is discontinuous.