$8^(a - b)$ produces only a superscripted
(; the rest of the power is not superscripted.
How can I superscript the whole
Put braces around the entire part that you want superscripted:
Note that from the mathematical point of view, the parentheses
To always get it right you can define a command probably like