Solve for a m=ad-2f^2