\frac{\nabla f(\mathbf{x})\cdot(\mathbf{x-c})}{\nabla g(\mathbf{x})\cdot(\mathbf{x-c})}=