the first equivalent expression that we can write is:
This is because when we have two exponents we can change the order and the expression does not change.
The second expression we can write is based on the multiplication of the exponents when we have two exponents:
This is because of the rule: