This is not a homework question. It is a past exam question and I would appreciate some step by step help, as I never understood this concept in class.
Let $\alpha(t) = n^2$ for $t\in[n,n+1).$ Calculate the Riemann-Stieltjes integral $$\int_0^4x^2d\alpha(x)$$ from the definition.