I have
\over E_max - E_min
but it doesn't display all of them as a subscript, just the first m after the E_
Put the subscripts in curly braces so that all three characters are included.
\over E_{max} - E_{min}