Find Electric Field between Two Plates with Varying Permittivity

We have a problem for our Electromagnetics class. It is the following

"A parallel-plat capacitor of cross-sectional area A an thickness d is filled with a dielectric material whose relative permittivity varies linearly from $$\epsilon_{r}=1$$ at one plate to $$\epsilon_{r}=10$$ at the other plate. a) Find the electric field in the capacitor b) What is the potential difference between the plates"

For a we attempted to use Gauss's law

$$\oint D \bullet ds = Q_{enclosed}$$

We took a cylindrical surface over one of the plates.
Using the formula $$D = \epsilon E$$ we rewrote the surface integral as
$$\int \epsilon_{0} ds + \int \epsilon_{r0} E ds$$
We did a second Gauss's law for the other plate of the capacitor. For the charge enclosed we assumed $$\pi r^2 \rho_s$$ and $$- \pi r^2 \rho_s$$ respectively.
This gave us two equations
$$\rho_s = \epsilon_0 E_1 + \epsilon_{r0} E_{2}$$
$$- \rho_s = \epsilon_0 E_3 + \epsilon_{rd} E_{4}$$

We assumed that $$E_1 = E_4$$
So we solved each equation for those E and then set them equal to each other to get
$$\rho_s - \epsilon_{r0} E_{2} = - \rho_s - \epsilon_{rd} E_{rd}$$

We know from the problem that $$\epsilon_{r0}$$ equals $$\epsilon_0$$ and we set considered $$E_2$$ to be an initial value which we called $$E_0$$.
We also detemined an equation relation $$\epsilon_r$$ to x.
$$\epsilon_r = 1 + \frac {9x} {d}$$
Plugging this in and solving for $$E_{rd}$$ gave us the following equation
$$E_{rd} = \frac {\epsilon_0 E_0 - 2 \rho_s} {(1 + \frac {9x} {d}) \epsilon_0}$$

Our question is whether our approach is right. If it isn't we would like some direction to head in. For the second part of the problem we were going to use the relation
$$E = - \frac {dV} {dx}$$ to find the potential.

Any help is appreciated.
 PhysOrg.com science news on PhysOrg.com >> Ants and carnivorous plants conspire for mutualistic feeding>> Forecast for Titan: Wild weather could be ahead>> Researchers stitch defects into the world's thinnest semiconductor

 Tags electric field, electric potential, electrostatic