Your post is quite illegible:

1. Are the sums the same, except for the range.

2. What exactly is meant by K, (x-x_i). Is K a function of x - x_i or is it a constant?

3. THe images don't work.

Answering the last bit, to integrate a fraction of two sums you need to simplify those sums a bit. Do they each have an easy closed form that you know of? Can you do a partial fraction decomposition? The last one is somewhat difficult in general. If the top sum is the same as the bottom but they have different indices of summation, then maybe you can cancel some of the terms by doing long division (i.e. when the degree of the polynomial in the numerator is higher than the degree in the denominator).