e-f=\left(\frac{bd-dc-ab+ac}{2d}\right)