I'm trying to find online the derivation for the 2 parameter margules equation but cant find it anywhere.
basically need to prove $$ \frac{d}{dn1} (x_{1}x_{2}(A_{21}x_{1} + A_{12}x_{2})) = x_2^2(A_{12} + 2(A_{21}-A_{12})x_{1}) $$
but everytime I try just end up with a page full of rubbish. I've searched online for the derivation but cant find it anywhere.
EDIT: the A values are functions of temperature only and can be considered constants