I am stuck trying to get from:
$$\frac{pZ(a)}{pZ(a) - (1-p)Z(b)} - \frac{p(pZ(a) - (1-p)Z(b))}{pZ(a) - (1-p)Z(b)} $$
to
$$\frac{p(1-p)(Z(a) - Z(b))}{pZ(a) - (1-p)Z(b)} $$
Obviously my problem is the numerator. Could some suggest the route I should take to get from first expression to the last?
First, you can factor out a $p$ in the numerator to give
$$p(Z(a)-pZ(a)-(1-p)Z(b))$$
Next, factor out a $Z(a)$ from the first two terms in the parentheses
$$p((1-p)Z(a)-(1-p)Z(b))$$
Factor out a $(1-p)$ and you're there!