By definition of the integral (see Hint 3),
Comparing to the original sum ∑ k = 1 n ( k n ) 2 1 n {\displaystyle \sum _{k=1}^{n}\left({\frac {k}{n}}\right)^{2}{\frac {1}{n}}} we have that f ( x ) = x 2 {\displaystyle f(x)=x^{2}} . Therefore,