e-f=\frac{1}{2}\left(a+b-{ab \over d}\right)-{1 \over 2}\Bigg(a+c-\frac{ac}{d}\Bigg)