[Physics] Force on a test charge placed at the center of a 13-sided regular polygon

electrostatics

Assume a test charge with charge $Q$ is placed at the center of a 13-sided regular polygon, the vertices of which are charges with equal charge $q$. What is the electrical force on the center charge?

To start we write this as our electrical force…
$$ \vec{F}_{Q} = \sum^{13}_{n} \frac{1}{4\pi\varepsilon_{0}}\frac{qQ}{R^{2}} \left(cos\left(\frac{2n\pi}{13}\right)\hat{i} , sin\left(\frac{2n\pi}{13}\right)\hat{j}\right) $$

and with some simplification we get…
$$ \vec{F}_{Q} = \frac{1}{4\pi\varepsilon_{0}}\frac{qQ}{R^{2}} \left\{1-2cos\left(\frac{\pi}{13}\right) + 2cos\left(\frac{2\pi}{13}\right)-2cos\left(\frac{3\pi}{13}\right) + 2sin\left(\frac{\pi}{26}\right)-2sin\left(\frac{3\pi}{26}\right)+2sin\left(\frac{5\pi}{26}\right), 0\right\}$$
…more simplification…
$$ \vec{F}_{Q} = \frac{1}{4\pi\varepsilon_{0}}\frac{qQ}{R^{2}} \left\{ 1.11022\times10^{-16}, 0 \right\} $$
Now we have an electrical force on the test charge, however, in a ring of equidistant charges such as the one mentioned above, shouldn't the $\hat{i}$ component be equal to zero? Does anyone have any ideas as to why I'm getting a non-zero number for my $\hat{i}$ component?

Best Answer

$\def\l{\left}\def\r{\right}$ You can work in the complex plane. The real component is your $\hat i$-component the imaginary component is your $\hat j$-component. There $\l(\cos(\phi),\sin(\phi)\r)$ is represented as $\exp(i\phi)$ with $i=\sqrt{-1}$.

In this context your sum is $$ \sum_{k=0}^{N-1} e^{i2\pi\frac kN}. $$ if we substitute $a := e^{i\frac{2\pi}N}$ into this formula we obtain $$ \sum_{k=0}^{N-1} a^k $$ which can be transformed into a telescope sum by multiplying with $(1-a)$ $$ (1-a)\sum_{k=0}^{N-1} a^k = \sum_{k=0}^{N-1} a^k - \sum_{k=1}^{N} a^k = 1-a^N $$ Thus, we have $$ \sum_{k=0}^{N-1} a^k = \frac{1-a^N}{1-a} $$ But $1-a^N = (e^{i\frac{2\pi}N})^N = e^{i2\pi} = 1$ and we obtain $$ \sum_{k=0}^{N-1} e^{i2\pi\frac kN} = 0. $$

Your sum is zero in exact arithmetics.

Related Question