I want to calculate the electric field (magnitude and direction) in a parallel plate capacitor. The capacitor has a plus side and a minus side.
What I have been given is that the potential at the plus side, V+, is 0 V and the potential at the minus side,V-, is -105 V. So the potential difference V+ - V- = 105 V.
I want to calculate the electric field between the parallel plates from this relation: $V_{B} - V_{A} = - \int_A^B \! \vec{E} \cdot \mathrm{d}\vec{l} = - \int_A^B E \cos{(\phi)} \, \mathrm{d}l$.
We only work in one dimension here, so the signs will determine the directions of the vectors. I placed an x-axis, with its origin at the plus plate and it is increasing towards the minus side. I also chose the distance between the plates to be 1m. So the x coördinate of the plus-side is 0 and the x coördinate of the minus side is 1. Here is a sketch of the situation:
I chose my $x$-axis in this way because I wanted my $\vec{E}$ to be positive. Now it points in the positive x-direction.
So now let's get into the calculation:
$V_{+} - V_{-} = 10^{5} \, \mathrm{V} = - \int_{x_{-}}^{x_{+}} \! \vec{E} \cdot \mathrm{d}\vec{l} = -\int_{x_{-}}^{x_{+}} \! E \cos{(\phi)} \, \mathrm{d}l$.
We know that E is constant between the two plates and that it points from the plus side to the minus side. We integrate from $x_{-}$ to $x_{+}$ so $\mathrm{d}\vec{l}$ goes from the minus side to the plus side. So $\mathrm{d}\vec{l}$ is in the opposite direction of $\vec{E}$. This means that the angle $\phi$ between them is $\pi$ and $\cos{(\pi)} = -1$. The equation becomes: $10^{5} \, \mathrm{V} = - E \, (-1) \int_{x_{-}}^{x_{+}} \! \mathrm{d}l = E \, (x_{+} - x_{-}) = E \, (0 \, \mathrm{m} - 1 \, \mathrm{m}) = -1 \, \mathrm{m} \, E \Longleftrightarrow E = \frac{10^{5} \, \mathrm{V}}{-1 \, \mathrm{m}} = -10^{5} \frac{\mathrm{V}}{\mathrm{m}} = -10^{5} \frac{\mathrm{N}}{\mathrm{C}}$.
My $E$ turned out to be negative. This confuses me, because I chose my x-axis in a way where E would point to the positive direction. What did I do wrong?