I am trying to get a good understanding of the steps involved in solving the dual of a maximization problem, namely cost minimization. At some point (last two steps), the author ends up with the following function for marginal cost growth: $$\Delta mc=\left [\frac{WN}{C(\cdot )} \right ]\Delta w+\left [1-\frac{WN}{C(\cdot )} \right ]\Delta r -\Delta e$$ Where the relation between price and marginal cost is given by: $$(1-B)P=MC=\frac{G(W,R)}{E}$$ From this latter equation, the difference between the change in price and a weighted average of changes in factor prices, the dual or price-based Solow residual is defined as: $$\alpha \Delta w +(1-\alpha)\Delta r-\Delta p=-B(\Delta p-\Delta r)+(1-B)\Delta e$$ Where the weights for the factor prices are the wage share in output for wages and its complement for capital costs ($\alpha$) and ($1-\alpha$).
I can't figure out how you get to this last step. I tried differentiating the marginal cost equation and substituting in the second one, but I'm missing some terms. The problem comes from the following paper: "Can Imperfect Competition Explain the Difference between Primal and Dual Productivity Measures? Estimates for U.S. Manufacturing" (1995).
*$\Delta x$ is the log difference of the variable X.