# Physics Exercises/Electrostatics

### Electric field superposition principleEdit

1. In words, and by equation, state the principle of superposition for electric fields.

Figure illustrating superposition principle.

In physics, the electric field superposition principle postulates that, for all linear systems, the net response at a given place and time caused by two or more charges is the sum of the responses which would have been caused by each charge individually.

Mathematically that can be written:

${\displaystyle {\vec {E}}={\vec {E}}_{1}+{\vec {E}}_{2}+{\vec {E}}_{3}+...+{\vec {E}}_{n}=\sum _{i=1}^{n}{\vec {E}}_{i}=\sum _{i=1}^{n}{\frac {1}{4\pi \epsilon _{0}r^{2}}}{\vec {u_{r}}}_{i}}$

Note that this is a vector equation. Hence one must add the components using vector rules.

## Finding the electric field associated with a dipoleEdit

1. An electric dipole is matched, equal but opposite, charges separated by a fixed distance. Find the electric field associated with an electric dipole. Perform this for three cases:

a. Find the electric field perpendicular to the axis between dipole charges. Find the far field approximation.
b. Find the electric field along the axis of the dipole charges. Compare the far field approximation for this case with that of a) above.
c. Find the electric field perpendicular in a plane which includes the dipole charges

A w:water molecule. A molecule of water has an electric moment because of the unequal sharing of its electrons in a "bent" structure. A separation of charge is present with negative charge in the middle (red shade), and positive charge at the ends (blue shade).

In physics, the electric dipole moment is a measure of the separation of positive and negative electrical charges in a system of charges, that is, a measure of the charge system's overall polarity. It is important in understanding practical matters like the construction of a capacitor.

### Finding the electric field perpendicular to the axis between dipole chargesEdit

Figure 1: An electric dipole

To determine the electric field which result from the dipole charges in Figure 1 that are separated by a distance 2a, we simply sum the fields from each charge individually. Note that the fields are vectors.

${\displaystyle {\vec {E}}={{\vec {E}}_{1}}+{{\vec {E}}_{2}}}$

The distance of each charge (r) from the point where the electric field is measured is:

${\displaystyle r={\sqrt {a^{2}+x^{2}}}}$

The magnitude of the electric field (E1) due to the first charge (q1) and the magnitude of the electric field (E2) due to the second charge (q2) are the same although the directions are different.

${\displaystyle E_{1}=E_{2}={\frac {1}{4\pi \epsilon _{0}}}{\frac {q}{r^{2}}}={\frac {1}{4\pi \epsilon _{0}}}{\frac {q}{a^{2}+x^{2}}}}$

The components of the electric field along the x axis ${\displaystyle E_{1_{x}}}$  and ${\displaystyle E_{2_{x}}}$  have the same magnitude but opposite directions and cancel each other out.

${\displaystyle E_{1_{x}}+E_{2_{x}}=0}$

As a result of this the horizontal components of the electric field vectors cancelling is that summing ${\displaystyle {{\vec {E}}_{1}}}$  and ${\displaystyle {{\vec {E}}_{2}}}$  reduces to summing ${\displaystyle E_{1_{y}}}$  and ${\displaystyle E_{2_{y}}}$ . Further, the magnitude of the vertical components are identical, ${\displaystyle E_{1_{y}}=E_{2_{y}}}$ . Since ${\displaystyle \cos \theta ={\frac {adjacent}{hypotenuse}}}$  finding the vertical component reduces to:

${\displaystyle E_{1_{y}}=E_{2_{y}}=E_{1}\cos \theta \,\!}$  or :${\displaystyle E_{y}=2E_{1}\cos \theta \,\!}$

But we also know that:

${\displaystyle \cos \theta ={\frac {a}{\sqrt {a^{2}+x^{2}}}}}$

So we can substitute this into the equation for ${\displaystyle E\,\!}$  which yields:

${\displaystyle E=2E_{1}\cos \theta \,\!={\frac {2}{4\pi \epsilon _{o}}}{\frac {q}{a^{2}+x^{2}}}{\frac {a}{\sqrt {a^{2}+x^{2}}}}={\frac {1}{4\pi \epsilon _{o}}}{\frac {2aq}{(a^{2}+x^{2})^{\frac {3}{2}}}}}$

In the region distant from the dipole x is much greater than a (x>>a). This is commonly referred to as the "far field" region. We can find how the field behaves in the far field region by factoring out x.

${\displaystyle E={\frac {1}{4\pi \epsilon _{o}}}{\frac {2qa}{(a^{2}+x^{2})^{\frac {3}{2}}}}={\frac {1}{4\pi \epsilon _{o}}}{\frac {2qa}{x^{3}}}{\frac {1}{(1+{({\frac {a}{x}})}^{2})^{\frac {3}{2}}}}}$

By inspection we can conclude that when x>>a then this approaches

${\displaystyle E\approx {\frac {1}{4\pi \epsilon _{o}}}{\frac {2qa}{x^{3}}}}$

An important question for some analyses might be: over what range is the far field approximation valid? We can find out by using a binomial expansion (review of binomial expansion immediately below this section if you need it).

${\displaystyle E={\frac {1}{4\pi \epsilon _{o}}}{\frac {2qa}{(a^{2}+x^{2})^{\frac {3}{2}}}}={\frac {1}{4\pi \epsilon _{o}}}{\frac {2qa}{x^{3}}}{\frac {1}{(1+{({\frac {a}{x}})}^{2})^{\frac {3}{2}}}}}$

Where we will expand

${\displaystyle {\frac {1}{(1+{({\frac {a}{x}})}^{2})^{\frac {3}{2}}}}}$ ${\displaystyle =(1+{({\frac {a}{x}})}^{2})^{-{\frac {3}{2}}}=1-{\frac {3}{2}}{({\frac {a}{x}})}^{2}+...}$

If you want to use the approximation only when it introduces an error less than 1%, then - since the first term is unity, you want the second term to be less than 1/100th of unity, or:

${\displaystyle {\frac {1}{100}}>{\frac {3}{2}}{\left({\frac {a}{x}}\right)}^{2}}$
${\displaystyle {\frac {2}{300}}>{\left({\frac {a}{x}}\right)}^{2}}$
${\displaystyle {\sqrt {\frac {2}{300}}}>{\left({\frac {a}{x}}\right)}}$
${\displaystyle x>{\sqrt {150}}\cdot a}$

So if x is 12.3 times larger than a, this approximation is valid within 1%.

#### Binomial expansion reviewEdit

Review of the binomial expansion:

${\displaystyle \mathbf {(1+a)^{n}} =1+{\frac {n}{1!}}\cdot a+{\frac {n(n-1)}{2!}}\cdot a^{2}+{\frac {n(n-1)(n-2)}{3!}}\cdot a^{3}+...}$
${\displaystyle \mathbf {(1+a)^{-{\frac {3}{2}}}} =1+{\frac {1}{1!}}\cdot {\frac {-3}{2}}\cdot a+{\frac {1}{2!}}\cdot {\frac {-3}{2}}\cdot {\frac {-5}{2}}\cdot a^{2}+{\frac {1}{3!}}\cdot {\frac {-3}{2}}\cdot {\frac {-5}{2}}\cdot {\frac {-7}{2}}\cdot a^{3}+...}$

### Finding the electric field along the axis formed by dipole chargesEdit

Figure 2 - the layout for calculating the electric field along the line through the dipole charges.

The net electric field is the sum of the contributions to the electric field from the dipole charges.

${\displaystyle {\vec {E}}={{\vec {E}}_{1}}+{{\vec {E}}_{2}}}$

The first thing one always should do when solving a problem is to consider what you know by simple inspection. In this case the magnitude and layout of the charges tells use several things. Since they are equal and we know that the electric field from a point charge falls off as 1 over r2 then we know that the nearest charge will always dominate. Further we also know that along the axis that we're calculating the electric field there will be no vertical component of the electric field.

${\displaystyle E_{1_{y}}=E_{2_{y}}=0}$

So now we will calculate the magnitude of the electric field from each in the x direction: ${\displaystyle E_{1_{x}}}$  and ${\displaystyle E_{2_{x}}}$ .

${\displaystyle E_{1}={\frac {1}{4\pi \epsilon _{0}}}{\frac {q}{{(r-a)}^{2}}}\qquad \qquad E_{2}={\frac {1}{4\pi \epsilon _{0}}}{\frac {-q}{{(r+a)}^{2}}}}$

Adding the vector magnitudes ${\displaystyle E_{1_{x}}}$  and ${\displaystyle E_{2_{x}}}$

${\displaystyle E=E_{1_{x}}+E_{1_{x}}\,\!}$

And substituting in the equations above yields:

${\displaystyle E={\frac {1}{4\pi \epsilon _{0}}}{\frac {q}{{(r-a)}^{2}}}+{\frac {1}{4\pi \epsilon _{0}}}{\frac {-q}{{(r+a)}^{2}}}={\frac {1}{4\pi \epsilon _{0}}}\left[{\frac {q}{{(r-a)}^{2}}}-{\frac {q}{{(r+a)}^{2}}}\right]={\frac {1}{4\pi \epsilon _{0}}}\ 4aq\ {\frac {r}{{(r^{2}-a^{2})}^{2}}}}$

The quantity 2qa is defined as the dipole moment (p) and so we can substitute:

${\displaystyle p=2qa\,\!}$

With that substitution we now get:

${\displaystyle E={\frac {1}{2\pi \epsilon _{0}}}{\frac {pr}{{(r^{2}-a^{2})}^{2}}}}$

Consider the far field case (i.e., the case where ${\displaystyle r\,\!}$  >> ${\displaystyle a\,\!}$ )

Then one can see that ${\displaystyle r^{2}\,\!}$  >> ${\displaystyle a^{2}\,\!}$  and that ${\displaystyle r^{2}-a^{2}\,\!}$  approaches ${\displaystyle r^{2}\,\!}$ , which allows us to simplify the equation in the far field.

${\displaystyle E={\frac {1}{2\pi \epsilon _{0}}}{\frac {p}{r^{3}}}}$

Note that one can use the binomial theorem just as in the section above to find out where this far field approximation (x>>a) is valid.

### Finding the electric field associated with a dipole anywhere on a planeEdit

Now that you've solved for two special cases and determined that the dipole field falls off as ${\displaystyle {\frac {1}{r^{3}}}}$  at great distances (referred to as the far field), it is instructive to find the field's behavior off the axis.

Consider the case of an electric dipole's field at a point ${\displaystyle P\,\!}$  with the coordinates ${\displaystyle (x,y)\,\!}$  as represented in the figure. Note that we can represent the coordinates either as Cartesian, or as cylindrical.

dipole field in a plane.

${\displaystyle r_{1}={\sqrt {{(y+a)}^{2}+x^{2}}}\quad \cos \alpha ={\frac {y+a}{\sqrt {{(y+a)}^{2}+x^{2}}}}\quad \sin \alpha ={\frac {x}{\sqrt {{(y+a)}^{2}+x^{2}}}}}$

${\displaystyle r_{2}={\sqrt {{(y-a)}^{2}+x^{2}}}\quad \cos \beta ={\frac {y-a}{\sqrt {{(y-a)}^{2}+x^{2}}}}\quad \sin \beta ={\frac {x}{\sqrt {{(y-a)}^{2}+x^{2}}}}}$

In Cartesian coordinates the electric field at any point in the plane from each charge can be found as follows:

${\displaystyle {E_{r}}_{1}={\frac {1}{4\pi \epsilon _{0}}}{\frac {+q}{{(y+a)}^{2}+x^{2}}}\quad {E_{r}}_{2}={\frac {1}{4\pi \epsilon _{0}}}{\frac {-q}{{(y-a)}^{2}+x^{2}}}}$

We can apply the principle of superposition and add the fields from each of the charges, remembering that they are vectors so that the vertical components add to vertical and horizontal add to horizontal.

First finding the horizontal coordinates labeled as ${\displaystyle E_{x}\,\!}$ :

${\displaystyle {{E_{r}}_{1}}_{x}={\frac {1}{4\pi \epsilon _{0}}}{\frac {+q}{{(y+a)}^{2}+x^{2}}}\sin \alpha ={\frac {1}{4\pi \epsilon _{0}}}{\frac {+q}{{(y+a)}^{2}+x^{2}}}{\frac {x}{\sqrt {{(y+a)}^{2}+x^{2}}}}={\frac {1}{4\pi \epsilon _{0}}}{\frac {+qx}{{\left[{(y+a)}^{2}+x^{2}\right]}^{\frac {3}{2}}}}}$
${\displaystyle {{E_{r}}_{2}}_{x}={\frac {1}{4\pi \epsilon _{0}}}{\frac {-q}{{(y-a)}^{2}+x^{2}}}\sin \beta ={\frac {1}{4\pi \epsilon _{0}}}{\frac {-q}{{(y-a)}^{2}+x^{2}}}{\frac {x}{\sqrt {{y-a)}^{2}+x^{2}}}}={\frac {1}{4\pi \epsilon _{0}}}{\frac {-qx}{{\left[{(y-a)}^{2}+x^{2}\right]}^{\frac {3}{2}}}}}$

Next finding the vertical components for each of the two charges labeled as ${\displaystyle E_{y}\,\!}$  we obtain:

${\displaystyle {{E_{r}}_{1}}_{y}={\frac {1}{4\pi \epsilon _{0}}}{\frac {+q}{{(y+a)}^{2}+x^{2}}}\cos \alpha ={\frac {1}{4\pi \epsilon _{0}}}{\frac {+q}{{(y+a)}^{2}+x^{2}}}{\frac {y+a}{\sqrt {{(y+a)}^{2}+x^{2}}}}={\frac {1}{4\pi \epsilon _{0}}}{\frac {+q(y+a)}{{\left[{(y+a)}^{2}+x^{2}\right]}^{\frac {3}{2}}}}}$

${\displaystyle {{E_{r}}_{2}}_{y}={\frac {1}{4\pi \epsilon _{0}}}{\frac {-q}{{(y-a)}^{2}+x^{2}}}\cos \beta ={\frac {1}{4\pi \epsilon _{0}}}{\frac {-q}{{(y-a)}^{2}+x^{2}}}{\frac {y-a}{\sqrt {{y-a)}^{2}+x^{2}}}}={\frac {1}{4\pi \epsilon _{0}}}{\frac {-q(y-a)}{{\left[{(y-a)}^{2}+x^{2}\right]}^{\frac {3}{2}}}}}$

Summing the horizontal components yields:

${\displaystyle E_{x}={\frac {1}{4\pi \epsilon _{0}}}q\left\lbrack {\frac {x}{{\left[{(y+a)}^{2}+x^{2}\right]}^{\frac {3}{2}}}}-{\frac {x}{{\left[{(y-a)}^{2}+x^{2}\right]}^{\frac {3}{2}}}}\right\rbrack }$

And for large r (either large x, large y, or their combination) this becomes:

${\displaystyle E_{x}={\frac {qa}{2\pi \epsilon _{0}}}{\frac {1}{r^{3}}}}$

Summing the vertical components yields:

${\displaystyle E_{y}={\frac {1}{4\pi \epsilon _{0}}}q\left\lbrack {\frac {y+a}{{\left[{(y+a)}^{2}+x^{2}\right]}^{\frac {3}{2}}}}-{\frac {y-a}{{\left[{(y-a)}^{2}+x^{2}\right]}^{\frac {3}{2}}}}\right\rbrack }$

## Finding the electric field associated with an electric quadrupoleEdit

Figure 3 - one form of electric quadrupole

The electric field measured at point along the vertical axis due to any single charge along the horizontal axis (shown in Figure 3) is:

${\displaystyle E_{q}={\frac {q}{4\pi \epsilon _{o}r^{2}}}}$

So the center charges contribute:

${\displaystyle E_{2q}={\frac {2q}{4\pi \epsilon _{o}r^{2}}}}$

While the left and right charges contribute a total field of magnitude:

${\displaystyle E_{-q}={\frac {-q}{4\pi \epsilon _{o}(r^{2}+d^{2})}}}$

By inspection we can see that the horizontal components of the electric field cancel out. Only the vertical components are left. So we multiply by

${\displaystyle sin\theta ={\frac {r}{\sqrt {r^{2}+d^{2}}}}}$

To get the vertical component of the electric field for a single negative charge:

${\displaystyle E_{-q}={\frac {-q}{4\pi \epsilon _{o}(r^{2}+d^{2})}}{\frac {r}{\sqrt {r^{2}+d^{2}}}}}$

And for the two negative charges together we get:

${\displaystyle E_{-2q}={\frac {-2q}{4\pi \epsilon _{o}(r^{2}+d^{2})}}{\frac {r}{\sqrt {r^{2}+d^{2}}}}}$

Now we can add to obtain the total vertical component of the electric field.

${\displaystyle E=E_{2q}+E_{-2q}={\frac {2q}{4\pi \epsilon _{o}r^{2}}}+{\frac {-2q}{4\pi \epsilon _{o}(r^{2}+d^{2})}}{\frac {r}{\sqrt {r^{2}+d^{2}}}}}$

Which simplifies to:

${\displaystyle E={\frac {q}{2\pi \epsilon _{o}}}\left[{\frac {1}{r^{2}}}-{\frac {r}{{(r^{2}+d^{2})}^{\frac {3}{2}}}}\right]}$

Factoring out r3 from the denominator's final term yields:

${\displaystyle E={\frac {q}{2\pi \epsilon _{o}}}\left[{\frac {1}{r^{2}}}-{\frac {r}{{r^{3}(1+({\frac {d}{r}})^{2})}^{\frac {3}{2}}}}\right]}$

Which reduces to:

${\displaystyle E={\frac {q}{2\pi \epsilon _{o}r^{2}}}\left[1-{\frac {1}{{(1+({\frac {d}{r}})^{2})}^{\frac {3}{2}}}}\right]}$

So now we have a perfectly good equation for calculating the field. An engineer might think that sufficient since they can calculate the value when they need it, but a physicist would like to know how this behaves in the "far field" where r >> d. Fortunately we have a tool - our friend the binomial expansion - which allows us to answer the far field question, as follows:

${\displaystyle \left[1-{\frac {1}{{(1+({\frac {d}{r}})^{2})}^{\frac {3}{2}}}}\right]=\left[1-{{\left(1+\left({\frac {d}{r}}\right)^{2}\right)}^{-{\frac {3}{2}}}}\right]=\left[1-\left(1-{\frac {3}{2}}\left({\frac {d}{r}}\right)^{2}\right)+...\right]={\frac {3}{2}}\left({\frac {d}{r}}\right)^{2}}$

Substituting back into the original equation:

${\displaystyle E={\frac {q}{2\pi \epsilon _{o}r^{2}}}{\frac {3}{2}}\left({\frac {d}{r}}\right)^{2}}$

Simplifying, we find that in the far field when r >> d the electric field from a quadrupole falls off as ${\displaystyle {\frac {1}{r^{4}}}}$

${\displaystyle E={\frac {3qd^{2}}{4\pi \epsilon _{o}r^{4}}}}$

## Electric field associated with a line chargeEdit

1. A very long solid nonconducting cylinder of radius R0 and length L (R0 << L) possesses a uniform volume charge density ρE (C/m3). For points far from the ends and for which r << L,
1. Find electric fields for all r, distance from axis of cylinder. You may need separate expressions for r < R0 and r > R0. Show that electric field is continuous at r = R0, i.e. two expressions for electric fields agree at r = R0.
2. Describe the motion of a small free charge Q of opposite sign (i.e. Q ρE < 0) placed inside the cylinder. Find the frequency of oscillation ${\displaystyle \nu }$  if the charge oscillates about the axis of cylinder. (Note: ${\displaystyle \nu }$ , frequency, has units of cycles / second, while ${\displaystyle \omega }$ , angular frequency, has units of radians / second.)
3. Let's change the problem and say we have a cylindrical shell of charge (of radius R0, and σE so that the total charge remains the same). How do the expressions for electric fields change for either regions r < R0 or r > R0? Is the electric field still continuous? Give a plausible argument why we might not expect electric field to be continuous.

## Find the electric field for a finite line with uniform unit charge of λ coulombs per unit lengthEdit

an infinite line with uniform unit charge.

The figure shows an finitely long line chage with linear charge density of ${\displaystyle \lambda \,\!={\frac {dq}{dx}}}$ . The charge extends from x = -a to x = +b which are arbitrary (although not infinite) and are not shown on the figure.

Just as it the derivation for the infinite lint, the magnitude of the electric field which results from a short section dx of this line charge as measured at point P is a result of the charge ${\displaystyle dq=\lambda dx\,\!}$ :

And with that charge we can calculate the field contribution (dE) from dq as:

${\displaystyle dE={\frac {1}{4\pi {\epsilon }_{0}}}{\frac {dq}{r^{2}}}={\frac {1}{4\pi {\epsilon }_{0}}}{\frac {\lambda dx}{x^{2}+y^{2}}}}$            (1)

We can no longer argue by symmetry that the electric field will be the same at any point of equal separation from the infinite line charge, so we can solve this in detail, which we will do using 2 dimensions. Once we have a solution for 2 dimensions, simple rotation around the line charge will allow us to determine the field in the 3rd dimension.

The electric field is a vector which we'll represent as ${\displaystyle d{\vec {E}}}$ . This we'll separate into 2-dimensional Cartesian components:

${\displaystyle dE_{x}=-dE\sin \theta \,\!}$       and      ${\displaystyle dE_{y}=dE\cos \theta \,\!}$

The sign of the electric field at ${\displaystyle dE_{x}\,\!}$  indicates the ${\displaystyle d{\vec {E}}_{x}}$  location of the point with respect to x.

We find the total electric field for the horizontal ${\displaystyle E_{x}}$  and vertical ${\displaystyle E_{y}}$  components to determine ${\displaystyle {\vec {E}}}$  at the point P by integrating. Note that ${\displaystyle \sin \theta }$  is used to find the components of the field horizontally, while ${\displaystyle \cos \theta }$  is used to find them vertically.

${\displaystyle E_{x}=\int dE_{x}=-\int _{x=-a}^{x=+b}\sin \theta \,dE}$

and

${\displaystyle E_{y}=\int dE_{y}=\int _{x=-a}^{x=+b}\cos \theta \,dE}$

Or in full vectorial form:

${\displaystyle {\vec {E}}=\int _{L}\,d{\vec {E}}=\int _{L}{\frac {1}{4\pi \epsilon _{0}}}{\frac {dq}{r^{2}}}{\vec {u_{r}}}=\int _{L}{\frac {1}{4\pi \epsilon _{0}}}{\frac {\lambda dx}{r^{2}}}{\vec {u_{r}}}}$

In this example the distance, r, from the charge to point P can be expressed in terms of Cartesian coordinates x and y.

${\displaystyle r={\sqrt {x^{2}+y^{2}}}}$ .

which allows us to calculation the magnitude of the electric field at point P from the charge dx at r using the equation. ${\displaystyle dE={\frac {1}{4\pi {\epsilon }_{0}}}={\frac {1}{4\pi {\epsilon }_{0}}}{\frac {\lambda dx}{x^{2}+y^{2}}}}$

${\displaystyle \sin \theta ={\frac {opposite}{hypotenuse}}={\frac {x}{\sqrt {x^{2}+y^{2}}}}}$           and         ${\displaystyle \cos \theta ={\frac {adjacent}{hypotenuse}}={\frac {y}{\sqrt {x^{2}+y^{2}}}}}$

However we must recall that that magnitude corresponds to the vector ${\displaystyle d{\vec {E}}}$ , which changes as one moves along the line. So we must find the component of ${\displaystyle d{\vec {E}}}$  which points in the x or in the y directions.

To find the component in the x direction ${\displaystyle dE_{x}=-dE\sin \theta \,\!}$  and to find it in the y direction apply ${\displaystyle dE_{y}=dE\cos \theta \,\!}$ .

The x component of the field ${\displaystyle d{\vec {E}}_{x}}$  can be found by integrating from one end of the line source at -a to the other at a. If the line source is equally long to left and right, the net field in the x direction will cancel as below.

${\displaystyle E_{x}=\int dE_{x}=-\int _{x=-a}^{x=+b}\sin \theta \,dE=-\int _{x=-a}^{x=+b}{\frac {x}{\sqrt {x^{2}+y^{2}}}}\,dE}$

${\displaystyle E_{x}=\int _{x=-a}^{x=+b}{\frac {x}{\sqrt {x^{2}+y^{2}}}},{\frac {1}{4\pi {\epsilon }_{0}}}{\frac {\lambda dx}{x^{2}+y^{2}}}}$         (2)

${\displaystyle E={\frac {\lambda }{4\pi {\epsilon }_{0}}}\int _{x=-a}^{x=+b}{\frac {xdx}{\left[{x^{2}+y^{2}}\right]^{\frac {3}{2}}}}}$            (3)

${\displaystyle E_{x}={\frac {\lambda }{4\pi {\epsilon }_{0}}}\left[-{\frac {1}{\left[a^{2}+y^{2}\right]^{\frac {1}{2}}}}+{\frac {1}{\left[b^{2}+y^{2}\right]^{\frac {1}{2}}}}\right]}$         (4)

#### hold 1Edit

Similarly the y component of the field ${\displaystyle d{\vec {E}}_{y}}$  can be found by integrating from one end of the line source at -a to the other at a.

${\displaystyle E_{y}=\int dE_{y}=\int _{x=-a}^{x=+b}\cos \theta \,dE=\int _{x=-a}^{x=+b}{\frac {y}{\sqrt {x^{2}+y^{2}}}}\,dE}$

And substituting in the equation above we get:

${\displaystyle E_{y}=\int _{x=-a}^{x=+b}{\frac {y}{\sqrt {x^{2}+y^{2}}}}\,{\frac {1}{4\pi {\epsilon }_{0}}}{\frac {\lambda dx}{x^{2}+y^{2}}}={\frac {\lambda y}{4\pi {\epsilon }_{0}}}\int _{x=-a}^{x=+b}{\frac {dx}{\left[x^{2}+y^{2}\right]^{\frac {3}{2}}}}}$         (5)

${\displaystyle E_{y}={\frac {\lambda y}{4\pi {\epsilon }_{0}}}\int _{x=-a}^{x=+b}{\frac {dx}{\left[x^{2}+y^{2}\right]^{\frac {3}{2}}}}}$         (6)

${\displaystyle E_{y}={\frac {\lambda }{4\pi {\epsilon }_{0}y}}\left[{\frac {x}{\left[x^{2}+y^{2}\right]^{\frac {1}{2}}}}\right]_{x=-a}^{x=+b}}$         (7)

## Find the electric field for an infinite line with uniform unit charge of λ coulombs per unit lengthEdit

an infinite line with uniform unit charge.

The figure shows an infinitely long line chage with linear charge density of ${\displaystyle \lambda \,\!={\frac {dq}{dx}}}$ .

The magnitude of the electric field which results from a short section dx of this line charge as measured at point P is a result of the charge ${\displaystyle dq=\lambda dx\,\!}$ :

And with that charge we can calculate the field contribution (dE) from dq as:

${\displaystyle dE={\frac {1}{4\pi {\epsilon }_{0}}}{\frac {dq}{r^{2}}}={\frac {1}{4\pi {\epsilon }_{0}}}{\frac {\lambda dx}{x^{2}+y^{2}}}}$            (1)

Since we can argue by symmetry that the electric field will be the same at any point of equal separation from the infinite line charge, we can solve this in using 2 dimensions. Once we have a solution for 2 dimensions, simple rotation around the line charge will provide the field in the 3rd dimension.

The electric field is a vector which we'll represent as ${\displaystyle d{\vec {E}}}$ . This we'll separate into 2-dimensional Cartesian components:

${\displaystyle dE_{x}=-dE\sin \theta \,\!}$       and      ${\displaystyle dE_{y}=dE\cos \theta \,\!}$

The sign of the electric field at ${\displaystyle dE_{x}\,\!}$  indicates the ${\displaystyle d{\vec {E}}_{x}}$  location of the point with respect to x.

We find the total electric field for the horizontal ${\displaystyle E_{x}}$  and vertical ${\displaystyle E_{y}}$  components to determine ${\displaystyle {\vec {E}}}$  at the point P by integrating. Note that ${\displaystyle \sin \theta }$  is used to find the components of the field horizontally, while ${\displaystyle \cos \theta }$  is used to find them vertically.

${\displaystyle E_{x}=\int dE_{x}=-\int _{x=-\infty }^{x=+\infty }\sin \theta \,dE}$

and

${\displaystyle E_{y}=\int dE_{y}=\int _{x=-\infty }^{x=+\infty }\cos \theta \,dE}$

In these expressions ${\displaystyle E_{x}\,\!}$ > must integrate to zero because every element of charge to the left of the perpendicular point P has a corresponding element on the right so that their contributions to the field in the horizontal direction cancel each other. So ${\displaystyle {\vec {E}}}$  points in the vertical direction only. As for the electric field contributions to ${\displaystyle E_{y}\,\!}$ , the right half and left half of the charged lines will make an equal contribution, so we can write:

${\displaystyle E=E_{y}=2\int _{x=0}^{x=+\infty }\cos \theta \,dE}$

Substituting the expression (1) above into this equation we get:

${\displaystyle E=2\int _{x=0}^{x=+\infty }\cos \theta \,{\frac {1}{4\pi {\epsilon }_{0}}}{\frac {\lambda dx}{x^{2}+y^{2}}}={\frac {\lambda }{2\pi {\epsilon }_{0}}}\int _{x=0}^{x=+\infty }\cos \theta \,{\frac {dx}{x^{2}+y^{2}}}}$           (2)

By definition ${\displaystyle \tan \theta ={\frac {x}{y}}}$ , which we can write as ${\displaystyle x=y\tan \theta \,\!}$ . Differentiating this expression yields: ${\displaystyle dx=y{\sec }^{2}\theta d\theta \,\!}$ . Substitute this into (2) and you will get:

${\displaystyle E={\frac {\lambda }{2\pi {\epsilon }_{0}}}\int _{x=0}^{x=+\infty }\cos \theta \,{\frac {y{\sec }^{2}\theta d\theta }{x^{2}+y^{2}}}={\frac {\lambda }{2\pi {\epsilon }_{0}}}\int _{x=0}^{x=+\infty }{\frac {y}{x^{2}+y^{2}}}\cos \theta {\sec }^{2}\theta d\theta }$       (3)

Applying futher trigonometric relationships: ${\displaystyle \cos \theta ={\frac {y}{r}}}$ ,    ${\displaystyle \sec \theta ={\frac {r}{y}}\quad }$     and    ${\displaystyle \quad x^{2}+y^{2}=r^{2}\,\!}$ ,     we can establish equivalencies:

${\displaystyle {\frac {y}{x^{2}+y^{2}}}\cos \theta {\sec }^{2}\theta d\theta ={\frac {y}{r^{2}}}{\frac {y}{r}}{\frac {r^{2}}{y^{2}}}={\frac {y}{ry}}={\frac {\cos \theta }{y}}}$

Which can the be substituted into equation (3) to yield a significantly simplified integral:

${\displaystyle E={\frac {\lambda }{2\pi {\epsilon }_{0}y}}\int _{x=0}^{x=+\infty }\cos \theta d\theta }$

To evaluate this we need only observe that ${\displaystyle x\rightarrow 0\,\!}$ , ${\displaystyle \theta \rightarrow 0\,\!}$  and similarly ${\displaystyle x\rightarrow +\infty \,\!}$ , ${\displaystyle \theta \rightarrow {\frac {\pi }{2}}\,\!}$ , to simplify our range of integration to:

${\displaystyle E={\frac {\lambda }{2\pi {\epsilon }_{0}y}}\int _{\theta =0}^{\theta ={\frac {\pi }{2}}}\cos \theta d\theta ={\frac {\lambda }{2\pi {\epsilon }_{0}y}}{\Bigg [}\sin {\frac {\pi }{2}}-\sin 0{\Bigg ]}={\frac {\lambda }{2\pi {\epsilon }_{0}y}}}$

Which yields a final solution:

${\displaystyle E={\frac {\lambda }{2\pi {\epsilon }_{0}y}}}$

And this can be generalized for any point at distance r from the line charge to:

${\displaystyle E={\frac {\lambda }{2\pi {\epsilon }_{0}r}}}$