I'm really struggling with this complex fractions problem and wondering if someone could show me the steps and not just give me the answer please?

The problem is 1 - 1/p in the numerator and in the denominator it's p/w + w/p

I know the lcd of the numerator is p so it becomes p - 1/p

the lcd of the denominator is pw so it becomes (pw + pw)/pw

Or at least I think these are correct, but when I solve, it doesn't come out with the correct answer of w(p - 1)/p^2 + w^2

Thank you

the top simplified becomes (p - 1)/p

and the denominator is (p^2 + w^2)/(pw)

and [(p - 1)/p] / [(p^2 + w^2)/(pw) ] , recall division by a fraction, invert and multiply
= (p - 1)/p * pw/(p^2 + w^2) , cancel p
= w(p - 1) / (p^2 + w^2)

How does the denominator become p^2 + w^2/ pw?