\documentclass{article}

\begin{document}
No equation with different subscripts

and none with superscripts

Now an equation that is in both but subtly different
\begin{displaymath}
E=mc^2\ \ \ \ x=1+\sin y^{i+j+k+\cdots}
\end{displaymath}


\end{document}
