It's through practice.

Wikipedia gives a comprehensive overview of the rules of working with exponents: Exponentiation - Wikipedia, the free encyclopedia

And most of these are fairly intuitive. For example is equivalent to multiplying by itself m times and then dividing by n times, resulting in . Or for instance .