\documentclass[12pt]{article} \usepackage{amsmath} \begin{document} $$ \mathbf r^{n+1}_{ij} = \mathbf r^n_j - \mathbf r^n_i $$ \end{document}