Simplification of factor expresion

Homework Statement

$\frac{px^{p-1}}{q(x^{p/q})^{q-1}}$

The answear in the book:

$\frac{px^{p/q-1}}{q}$

The Attempt at a Solution

(1) $\frac{p*x^{p}*x^{-1}}{q*(x^{p/q})^{q}*(x^{p/q})^{-1}}$

(2) $\frac{px^{p/q}}{qx}$

Where is my mistake?

P.S. I omited some steps that seemed pretty straight farward.

Last edited: