What can I do to this to make it independent of x. i.e. manipulate it somehow to cancel out the g(x)?

$\displaystyle \mid\frac{\varepsilon_1}{g(x)}\mid + \mid\frac{\varepsilon_2L}{g(x)M}\mid$

btw $\displaystyle \varepsilon_1 = \mid f(x) - L \mid$ and $\displaystyle \varepsilon_2 = \mid g(x) - M \mid$