If two point charges $q_{1}$ and $q_{2}$ are seperated by a distance $l$ apart, and the space between them is filled with a variable dielectric constant. Near $q_{1}$, the dielectric constant is $K_{1}$, and near $q_{2}$, it is $K_{2}$ while increasing linearly with distance. Then I need to find the interaction force between the two charges.
I saw this answer, but I don't understand how I can use that result for my problem. I assume the answer involves integration(which I know), since the dielectric constant is varying.
Please, I don't need a solution, just a brief explanation of how to go about this.