$K = \int_{b}^{x} f(t)dt - \int_{a}^{x} f(t)dt$
Now just compute these integrals and you've found $K!$