I am working on a question and I have the solution to it. I just can't seem to grasp how the last step happens. Can someone please help explain it to me?

Solve for x:

ux^a = x

The answer they give is:

Step 1: ux^a = x

Step 2: x^(a-1) = (1/u)

Step 3: x = (1/u)^((1/(a-1))

I understand until that part. The next step, I don't understand.

Step 4: x = u^(1/(1-a))

How do you get from Step 3 to Step 4?

Thank you!