I'd like to take the derivative of
$$ \cfrac{x_1(p,w)/ x_2(p,w)}{p_1/p_2} = (p_1/p_2)^{\delta-2} $$
I'm supposed to see that
$$ \cfrac{\text d [x_1(p,w)/ x_2(p,w)]}{\text d [p_1/p_2]} = (\delta-1)(p_1/p_2)^{\delta-2} $$
Note that $p = (p_1, p_2)$
I'm obviously not thinking right, but my thought was since we're taking $\text d[p_1/p_2]$ this would mean we could treat $p_1/p_2$ as though it were a single variable and differentiate like so...
$$ (\delta-2)(p_1/p_2)^{\delta-3} $$
What's the correct way to approach this derivative? (I'm happy to number crunch. I'm not not sure where to start.)