Talk:PlanetPhysics/Electric Field of a Line of Charge

From Wikiversity
Jump to navigation Jump to search

Original TeX Content from PlanetPhysics Archive[edit source]

%%% This file is part of PlanetPhysics snapshot of 2011-09-01 %%% Primary Title: Electric Field of a Line of Charge %%% Primary Category Code: 41.20.Cv %%% Filename: ElectricFieldOfALineOfCharge.tex %%% Version: 22 %%% Owner: bloftin %%% Author(s): bloftin %%% PlanetPhysics is released under the GNU Free Documentation License. %%% You should have received a file called fdl.txt along with this file. %%% If not, please write to gnu@gnu.org. \documentclass[12pt]{article} \pagestyle{empty} \setlength{\paperwidth}{8.5in} \setlength{\paperheight}{11in}

\setlength{\topmargin}{0.00in} \setlength{\headsep}{0.00in} \setlength{\headheight}{0.00in} \setlength{\evensidemargin}{0.00in} \setlength{\oddsidemargin}{0.00in} \setlength{\textwidth}{6.5in} \setlength{\textheight}{9.00in} \setlength{\voffset}{0.00in} \setlength{\hoffset}{0.00in} \setlength{\marginparwidth}{0.00in} \setlength{\marginparsep}{0.00in} \setlength{\parindent}{0.00in} \setlength{\parskip}{0.15in}

\usepackage{html}

% this is the default PlanetMath preamble. as your knowledge % of TeX increases, you will probably want to edit this, but % it should be fine as is for beginners.

% almost certainly you want these \usepackage{amssymb} \usepackage{amsmath} \usepackage{amsfonts}

% used for TeXing text within eps files %\usepackage{psfrag} % need this for including graphics (\includegraphics) \usepackage{graphicx} % for neatly defining theorems and propositions %\usepackage{amsthm} % making logically defined graphics %\usepackage{xypic}

% there are many more packages, add them here as you need them

% define commands here

\begin{document}

\section{The Electric Field of a Line of Charge}

Calculating the \htmladdnormallink{Electric Field}{http://planetphysics.us/encyclopedia/ElectricField.html} due to a non-moving continuous distribution of \htmladdnormallink{charge}{http://planetphysics.us/encyclopedia/Charge.html} is a common task in electrostatics. Unfortunately, without resorting to numerical methods, we are limited to simple geometries and \htmladdnormallink{field}{http://planetphysics.us/encyclopedia/CosmologicalConstant2.html} points that rely on symmetry in order to make the integrals tractable.

Here we will examine the electric field due to a continuous line of charge on a line segment of length 2L. Analytically, we will compute the E-field at two different \htmladdnormallink{types}{http://planetphysics.us/encyclopedia/Bijective.html} of field points and then look at computing the entire field using the principle of superposition.

\subsection{Center Line}

The electric field at a height h above the line segment and along the center line as shown in below figure is straight forward and is one of the basic examples given in [1][2][3].

\begin{center} \includegraphics[scale=0.8]{ElectricFieldLineSeg.eps} \end{center}

Once the problem is setup correctly, the rest is straightforward. Commbining the notation used in [1] and [2] helps us connect the general formulation with our special case given here. For a line of charge, with a charge density of $\lambda(r')$, the general \htmladdnormallink{formula}{http://planetphysics.us/encyclopedia/Formula.html} is

\begin{equation} {\bf E} = \frac{1}{4 \pi \epsilon_0} \int \frac{\lambda(r')({\bf r} - {\bf r'}) dl'}{\left |{\bf r} - {\bf r'} \right |^3} \end{equation}

The first assumption is that the line of charge has a uniform charge density. This means that for a infinitesimal part dl', the charge per unit length is just $\lambda$. Then, with the coordinate \htmladdnormallink{system}{http://planetphysics.us/encyclopedia/SimilarityAndAnalogousSystemsDynamicAdjointnessAndTopologicalEquivalence.html} setup in the figure

$$ \lambda(r')dl' = \lambda dx $$

The \htmladdnormallink{vector}{http://planetphysics.us/encyclopedia/Vectors.html} setup is next and this is where practice is important. Try out different geometries and coordinate systems until your proficient. Remembering the convention that the prime vector is to the source point and the unprimed vector is to the field point, we get in Cartesian coordinates

$${\bf r'} = x \hatTemplate:\bf x $$ $${\bf r} = h \hatTemplate:\bf y $$

Then for our integral in (1) we have

$$ {\bf r} - {\bf r'} = h \hatTemplate:\bf y - x \hatTemplate:\bf x $$ $$ \left |{\bf r} - {\bf r'} \right | = \sqrt{x^2 + h^2} $$

Substituting these relationships into (1)

\begin{equation} {\bf E} = \frac{\lambda}{4 \pi \epsilon_0} \int_{-L}^{L} \frac{(h \hatTemplate:\bf y - x \hatTemplate:\bf x) dx}{(x^2 + h^2)^{3/2} } \end{equation}

The next step is to break the integral into its x and y components and then integrate

{\bf x} component:

Usually, one looks at this setup and quickly sees the symmetry and how all the x components cancel, so it should be obvious that this integral will be zero. However, for the practice let's go throught the \htmladdnormallink{motions}{http://planetphysics.us/encyclopedia/CosmologicalConstant.html} $$ {\bf E}_x = -\int_{-L}^{L} \frac{x \hatTemplate:\bf x dx}{(x^2 + h^2)^{3/2} } $$

Using u substitution set

$$ u = x^2 + h^2 $$ $$ du = 2x dx $$ $$ dx = du / 2x $$

notice that when we plug in the limits of integration from -L to L we get for both limits

$$ u = L^2 + h^2 $$

$$ {\bf E}_x = -\int_{L^2 + h^2}^{L^2 + h^2} \frac{du}{2(u)^{3/2} } $$

however the limits of integration are the same, so we know that the integral is zero.

\begin{equation} {\bf E}_x = 0 \end{equation}

{\bf y} component:

$$ {\bf E}_y = \int_{-L}^{L} \frac{h \hatTemplate:\bf ydx}{(x^2 + h^2)^{3/2} } $$

This integral is a little more tricky, but is straight forward once you realize you need to use trigonometric substitution. Trig. substitution is nicely explained in [4] or any other calculus textbook. Use the right triangle in below figure to setup the needed relationships:

\begin{center} \includegraphics[scale=.4]{TrigSub.eps} \end{center}

$$ \tan u = \frac{x}{h} $$ $$ x = h \tan u $$ $$ dx = h \sec^2 u du $$ $$ \cos u = \frac{h}{\sqrt{x^2 + h^2}} $$ $$ \sqrt{x^2 + h^2} = \frac{h}{\cos u} = h \sec u $$


Putting all these together into the integral leaves us with

$$ {\bf E}_y = \hat{y} \int \frac{h^2 \sec^2 u du }{h^3 \sec^3u} $$

simplfying

$$ {\bf E}_y = \frac{\hat{y}}{h} \int \frac{ du }{\sec u} $$

but this is just

$$ {\bf E}_y = \frac{\hat{y}}{h} \int \cos u $$

Note that we can pull out the \htmladdnormallink{unit vector}{http://planetphysics.us/encyclopedia/PureState.html} $\hat{y}$ because they are constant in cartesian coordinates. Make sure that you do not do this for other coordinate systems where the unit vectors may not be constant. Carrying out this simple integration yeilds

$$ {\bf E}_y = \frac{\hat{y}}{h} \left. \right |_{-L}^{L} \sin u $$

we cannot simply plug in the limits of integration here, first convert back using the right triangle in figure

$$ \sin u = \frac{x}{\sqrt{x^2 + h^2}} $$

$$ {\bf E}_y = \frac{\hat{y}}{h} \left. \right |_{-L}^{L} \frac{x}{\sqrt{x^2 + h^2}}$$

Finally, evaluating this gives the the y component of the electric field.

$$ {\bf E}_y = \frac{\hat{y}}{h} \left ( \frac{2L}{\sqrt{L^2 + h^2}} \right )$$

Now that we know the x component is zero, the overall electric field along the center line is just in the y direction and is given by

$$ {\bf E} = \frac{\lambda L \hat{y}}{2 \pi \epsilon_0 h \sqrt{L^2 + h^2}}$$

\subsection{End Line}

The electric field at a height h above the line segment and along the end line as shown in below figure is simliar to the previous example, except our x components of the electric field will not cancel out this time.

\begin{center} \vspace{10 pt} \includegraphics[scale=.8]{ElectricFieldLineSegEnd.eps} \vspace{10 pt} \end{center}

The vector setup is the same as for the center line and the only difference is the limits of integration

\begin{equation} {\bf E} = \frac{\lambda}{4 \pi \epsilon_0} \int_{0}^{2L} \frac{(h \hatTemplate:\bf y - x \hatTemplate:\bf x) dx}{(x^2 + h^2)^{3/2} } \end{equation}

Once again, break the integral into its x and y components and integrate

\underline{{\bf x} component}:

This time the x component is non zero $$ {\bf E}_x = -\int_{0}^{2L} \frac{x \hatTemplate:\bf x dx}{(x^2 + h^2)^{3/2} } $$

Using u substitution set

$$ u = x^2 + h^2 $$ $$ du = 2x dx $$ $$ dx = du / 2x $$

notice that when we plug in the limits of integration we now get

$$ u = h^2$$

and

$$ u = 4L^2 + h^2 $$

$$ {\bf E}_x = -\hat{x} \int_{ h^2}^{4L^2 + h^2} \frac{du}{2(u)^{3/2} } $$

integrating yields

$$ {\bf E}_x = \hat{x} \left. \right |_{h^2}^{4L^2 + h^2} \frac{1}{(u)^{1/2} } $$

finally, evaluate the limits of integration and add in the constants to get

\begin{equation} {\bf E}_x = \frac{\lambda }{4 \pi \epsilon_0} \left ( \frac{\hat{x}}{\sqrt{4L^2 + h^2}} - \frac{\hat{x}}{h} \right ) \end{equation}


{\bf y} component:

The y component also just differs in the limits of integration so starting from previous setup

$$ {\bf E}_y = \int_{0}^{2L} \frac{h \hatTemplate:\bf ydx}{(x^2 + h^2)^{3/2} } $$

which we now know gives

$$ {\bf E}_y = \frac{\hat{y}}{h} \left. \right |_{0}^{2L} \frac{x}{\sqrt{x^2 + h^2}}$$

Finally, evaluating this gives the the y component of the electric field.

$$ {\bf E}_y = \frac{\hat{y}}{h} \left ( \frac{2L}{\sqrt{4L^2 + h^2}} \right )$$

Now combining x and y components with the other constants of integration, gives the overall electric field along the end line \begin{equation} {\bf E} = \frac{\lambda }{4 \pi \epsilon_0} \left [ \frac{\hat{x}}{\sqrt{4L^2 + h^2}} - \frac{\hat{x}}{h} + \frac{2L \hat{y}}{h \sqrt{4L^2 + h^2}} \right ] \end{equation}

\subsection{ General Solution }

For the general solution of the electric field due to a line of charge, we will show off the \htmladdnormallink{power}{http://planetphysics.us/encyclopedia/Power.html} of the principle of superposition. Since, we know electric fields follow the principle of superposition, we can build upon simpler solutions to get a total electric field through their sums

\begin{equation} E_{tot} = E_1 + E_2 + \dots ... + E_n \end{equation}

So we can now find the electric field at any point, P(x,y), in the plane by adding two cases of the earlier end line example. One electric field to handle the line of charge left of the point and one to handle the line of charge right of the point and then sum their solutions.

\begin{center} \includegraphics[scale=0.8]{PlaneFieldSetupSeg.eps} \end{center}

The key here is to get the signs correct when adding the fields and make sure we do not mix up the new terms we introduce. The relationship between the above figure and our previous analysis is

$$ 2L_1 + x = L $$

$$ 2L_2 - x = L $$

rearranging gives

\begin{equation} L_1 = (L - x)/2 \end{equation} \begin{equation} L_2 = (L + x)/2 \end{equation}

Starting with the x component of equation (6) we get the electric field at $P(x,y)$ from the left side of the line segment by inserting $L = L_1$ and $h = y$

$$ {\bf E_{x1}} = \frac{\lambda }{4 \pi \epsilon_0} \left [ \frac{\hat{x}}{\sqrt{4L_1^2 + y^2}} - \frac{\hat{x}}{y} \right ] $$

For the right side the electric field is in the x direction is opposite to the left side and we must apply a negative sign

$$ {\bf E_{x2}} = \frac{\lambda }{4 \pi \epsilon_0} \left [ - \frac{\hat{x}}{\sqrt{4L_2^2 + y^2}} + \frac{\hat{x}}{y} \right ] $$

The total electric field in the x direction is then

\begin{equation} {\bf E_x} = {\bf E_{x1}} + {\bf E_{x2}} = \frac{\lambda \hat{x}}{4 \pi \epsilon_0} \left [\frac{1}{\sqrt{4L_1^2 + y^2}} - \frac{1}{\sqrt{4L_2^2 + y^2}} \right ] \end{equation}

Inserting equations (8) and (9) into (10) we get

\begin{equation} {\bf E_x} = {\bf E_{x1}} + {\bf E_{x2}} = \frac{\lambda \hat{x}}{4 \pi \epsilon_0} \left [\frac{1}{\sqrt{(L-x)^2 + y^2}} - \frac{1}{\sqrt{(L+x)^2 + y^2}} \right ] \end{equation}

Now for the y components, this time however, both the left and right side are in the same direction so we add them straight away

$$ {\bf E_{y}} = \frac{\lambda }{4 \pi \epsilon_0} \left [ \frac{2L_1 \hat{y}}{y \sqrt{4L_1^2 + y^2}} + \frac{2L_2 \hat{y}}{y \sqrt{4L_2^2 + y^2}}\right ] $$

Once again, inserting equations (8) and (9) and a little rearranging of the signs we get

\begin{equation} {\bf E_{y}} = \frac{\lambda \hat{y} }{4 \pi \epsilon_0 y} \left [ \frac{(x + L) }{\sqrt{(x+L)^2 + y^2}} - \frac{(x-L)}{\sqrt{(x-L)^2 + y^2}}\right ] \end{equation}

Combining equations (11) and (12), we get the total electric field at point $P(x,y)$ due to a line segment of length 2L with the origin of the x and y coordinate frame at the center of the segment

\begin{equation} {\bf E} = \frac{\lambda }{4 \pi \epsilon_0} \left [ \frac{\hat{x}}{\sqrt{(L-x)^2 + y^2}} - \frac{\hat{x}}{\sqrt{(L+x)^2 + y^2}} + \frac{\hat{y}(x + L) }{y\sqrt{(x+L)^2 + y^2}} - \frac{\hat{y}(x-L)}{y\sqrt{(x-L)^2 + y^2}}\right ] \end{equation}

Finally, it would be a good exercise for the reader to apply the techniques above regarding the field and source points to find the electric field directly from equation (1). The below figure displays the setup and you should get the same answer as equation (13).

\begin{center} \includegraphics[scale=0.8]{PlaneSourceFieldSetupSeg.eps} \end{center}

[1] Reitz, J., "Foundations of Electromagnetic Theory" Fourth Edition. Addison-Wesley Publishing Company, Inc. 1993.

[2] Griffiths, D. "Introduction to Electrodynamics", Prentice-Hall, Inc., 1999.

[3] Halliday, D., Resnick, R., Walker, J.: "\htmladdnormallink{fundamentals of physics}{http://planetphysics.us/encyclopedia/CosmologicalConstant.html}". 5th Edition, John Wiley \& Sons, New York, 1997.

[4] Etgen, G. "Calculus" John Wiley \& Sons, New York, 1999.

\end{document}