TeX source:
S_{n}:=\sum_{i=1}^{n} R_{i}\left(t_{i-1}, t_{i}\right)