\documentclass[10pt]{article}
\usepackage{graphicx, multicol,wrapfig,exscale,epsfig,fancybox,fullpage}
\pagestyle{empty}

\parindent=0pt
\parskip=.1in

\newcommand\hs{\hspace{6pt}}

\begin{document}

\let\DS=\displaystyle

\newcommand{\bmit}[1]{\mathchoice
        {\mbox{\boldmath$\displaystyle#1$}}
        {\mbox{\boldmath$\textstyle#1$}}
        {\mbox{\boldmath$\scriptstyle#1$}}
        {\mbox{\boldmath$\scriptscriptstyle#1$}}
        }
\newcommand{\vf}[1]{\vec{\bmit#1}}
\newcommand{\VF}[1]{\kern-0.5pt\vec{\kern0.5pt\bmit#1}}
\newcommand{\Hat}[1]{\kern1pt\hat{\kern-1pt\bmit#1}}
\newcommand{\HAT}[1]{\kern-0.25pt\hat{\kern0.25pt\bmit#1}}
\newcommand{\Prime}{{}\kern0.5pt'}

\renewcommand{\AA}{\vf A}
\newcommand{\BB}{\vf B}
\newcommand{\EE}{\vf E}
\newcommand{\FF}{\vf F}
\newcommand{\GG}{\vf G}
\newcommand{\HH}{\vf H}
\newcommand{\II}{\vf I}
\newcommand{\JJ}{\kern1pt\vec{\kern-1pt\bmit J}}
\newcommand{\KK}{\vf K}
\newcommand{\gv}{\VF g}
\newcommand{\rr}{\VF r}
\newcommand{\rrp}{\rr\Prime}
\newcommand{\vv}{\VF v}
\newcommand{\grad}{\vec\nabla}
\newcommand{\zero}{\kern-1pt\vec{\kern1pt\bf 0}}

\newcommand{\ii}{\Hat\imath}
\newcommand{\jj}{\Hat\jmath}
\newcommand{\kk}{\Hat k}
\newcommand{\nn}{\Hat n}
\newcommand{\rhat}{\HAT r}
\newcommand{\xhat}{\Hat x}
\newcommand{\yhat}{\Hat y}
\newcommand{\zhat}{\Hat z}
\newcommand{\that}{\Hat\theta}
\newcommand{\phat}{\Hat\phi}

\newcommand{\LargeMath}[1]{\hbox{\large$#1$}}
\newcommand{\INT}{\LargeMath{\int}}
\newcommand{\OINT}{\LargeMath{\oint}}
\newcommand{\LINT}{\mathop{\INT}\limits_C}

\newcommand{\Int}{\int\limits}
\newcommand{\dint}{\mathchoice{\int\!\!\!\int}{\int\!\!\int}{}{}}
\newcommand{\tint}{\int\!\!\!\int\!\!\!\int}
\newcommand{\DInt}[1]{\int\!\!\!\!\int\limits_{#1~~}}
\newcommand{\TInt}[1]{\int\!\!\!\int\limits_{#1}\!\!\!\int}

\newcommand{\Bint}{\TInt{B}}
\newcommand{\Dint}{\DInt{D}}
\newcommand{\Eint}{\TInt{E}}
\newcommand{\Lint}{\int\limits_C}
\newcommand{\Oint}{\oint\limits_C}
\newcommand{\Rint}{\DInt{R}}
\newcommand{\Sint}{\DInt{S}}

\newcommand{\Partial}[2]{{\partial#1\over\partial#2}}

\newcommand{\Item}{\smallskip\item{$\bullet$}}

\renewcommand{\thesubsection}{\arabic{subsection}}


\section*{Activity 3: Solution for electric field}
\subsection*{Find the electric field in all space due to a ring with total charge $Q$ and
radius $R$}

\begin{equation}
\vf E = {1\over 4\pi\epsilon_0} \sum_{i=1}^N
{q_i\,\rr-\rr_i\over|\rr-\rr_i|^3}
\end{equation}
For a ring of charge this becomes
\begin{eqnarray}
\vf E = \int\limits_{\hbox{ring}}
        {1\over 4\pi\epsilon_0} {\lambda(\rrp)\,|d\rrp|\,\rr-\rrp\over|\rr-\rrp|^3}
\end{eqnarray}
where $\rr$ denotes the position in space at which the electric
field is measured and $\rrp$ denotes the position of the charge.

In cylindrical coordinates, $|d\rrp|=R\,d\phi'$, where $R$ is the
radius of the ring. Thus,
\begin{eqnarray}
\vf E = {1\over 4\pi\epsilon_0} \int\limits_0^{2\pi}
       {\lambda(\rrp)\,R\,d\phi'\,\rr-\rrp\over|\rr-\rrp|^3}
\end{eqnarray}
Assuming constant linear charge density for a ring with charge Q and
radius R, $\lambda(\rrp) = {Q\over{2\pi R}}$ Thus,
\begin{eqnarray}
\vf E = {1\over 4\pi\epsilon_0} {Q\over 2\pi} \int\limits_0^{2\pi}
{d\phi'\,\rr-\rrp\over|\rr-\rrp|^3}
\end{eqnarray}
Since $\rr$ and $\rrp$ are not necessarily in the same direction, we
cannot simply leave $|\rr-\rrp|$ in curvilinear coordinates and
integrate directly. One solution to this problem is to go back and
forth between cylindrical and cartesian coordinates to represent
$\rr-\rrp$  $\medskip$
\begin{eqnarray}
\rr-\rrp &=& (x - x\Prime)\ii +(y - y\Prime)\jj + (z -
z\Prime)\kk\\\noalign{\smallskip} &=& (r\cos\phi -
R\cos\phi\Prime)\ii + (r\sin\phi - R\sin\phi\Prime)\jj + (z -
z\Prime)\kk
\end{eqnarray}
And
\begin{equation}
|\rr-\rrp| = \sqrt{r^2 - 2rR\cos(\phi - \phi') + R^2 + z^2}
\end{equation}
The electric field can now be represented by the elliptic integral
\begin{eqnarray}
\vf E = {1\over 4\pi\epsilon_0} {Q\over 2\pi} \int\limits_0^{2\pi}
{{[(r\cos\phi - R\cos\phi')\ii + (r\sin\phi - R\sin\phi')\jj +
z\kk]\,d\phi'}\over{(r^2 - 2rR\cos(\phi - \phi') + R^2 +
z^2)^{3/2}}}
\end{eqnarray}
\subsection{The $z$ axis}
For points on the $z$ axis, $r = 0$ and the integral simplifies to
\begin{eqnarray}
\vf E = {1\over 4\pi\epsilon_0} {Q\over 2\pi} \int\limits_0^{2\pi}
{{[-R\cos\phi'\,\ii + -R\sin\phi'\,\jj + z\kk]\,d\phi'}\over{(R^2 +
z^2)^{3/2}}}
\end{eqnarray}
Doing the integral results in
\begin{eqnarray}
\vf E = {Q\over 4\pi\epsilon_0} {{z\kk}\over{(R^2 + z^2)^{3/2}}}
\end{eqnarray}
\subsection{The $x$ axis}
For points on the $x$ axis, $z = 0$ and $\phi = 0$, so the integral
simplifies to
\begin{eqnarray}
\vf E = {1\over 4\pi\epsilon_0} {Q\over 2\pi} \int\limits_0^{2\pi}
{{[(r - R\cos\phi')\,\ii + -R\sin\phi'\,\jj]\,d\phi'}\over{(r^2 -
2rR\cos\phi' + R^2)^{3/2}}}
\end{eqnarray}
let $u =r^2 - 2rR\cos\phi' + R^2$, then $du = 2rR\sin\phi'd\phi'$,
and for the $\jj$ component the integral becomes
\begin{eqnarray}
\vf E_j = {1\over 4\pi\epsilon_0} {Q\over 2\pi}{1\over {2r}}
\int\limits_0^{2\pi} {{du\jj}\over{u^{3/2}}}
\end{eqnarray}
Doing the integral results in
\begin{equation}
\vf E_j  = 0
\end{equation}
Thus the $\jj$  component disappears and results in the elliptic
integral with only an $\ii$  component
\begin{eqnarray}
\vf E = {1\over 4\pi\epsilon_0} {Q\over 2\pi} \int\limits_0^{2\pi}
{{(r - R\cos\phi')\,\ii\,d\phi'}\over{(r^2 - 2rR\cos\phi' +
R^2)^{3/2}}}
\end{eqnarray}
 \vfill\eject
\end{document}
