The space between the plates of a parallel-plate capacitor is filled with a dielectric whose permittivity varies linearly from f1 at one plate (located at y=0) to f2 at the other plate (located at y=d). Neglecting fringing effects, and assuming that the area of each plate is S, find the capacitance C of the capacitor.