A charge Q is uniformly distributed along an infinite wire. Determine the electric field vector
at the points to a distance from the wire along the perpendicular to the wire.
Problem data:
Problem diagram:
The position vector
r goes from an element of charge
dq to point
P where we want to
calculate the electric field, the vector
rq locates the charge element relative to
the origin of the reference frame, and the vector
rp locates point
P
(Figure 1- A).
\[
\mathbf{r}={\mathbf{r}}_{p}-{\mathbf{r}}_{q}
\]
From the geometry of the problem we choose Cartesian coordinates, the vector
rq
only has a component in the direction
i, which is written as
\( {\mathbf{r}}_{q}=x\;\mathbf{i} \)
and the vector
rp only has a component in the
j direction, which is
written as
\( {\mathbf{r}}_{p}=y\;\mathbf{j} \)
(Figure 1-B), then the vector position will be
\[
\begin{gather}
\mathbf{r}=y\;\mathbf{j}-x\;\mathbf{i} \tag{I}
\end{gather}
\]
From expression (I), the magnitude of the position vector
r will be
\[
\begin{gather}
r^{2}=(-x)^{2}+y^{2}\\
r=\left(x^{2}+y^{2}\right)^{\frac{1}{2}} \tag{II}
\end{gather}
\]
Solution
The electric field vector is given by
\[ \bbox[#99CCFF,10px]
{\mathbf{E}=\frac{1}{4\pi \epsilon_{0}}\int{\frac{dq}{r^{2}}\;\frac{\mathbf{r}}{r}}}
\]
\[
\begin{gather}
\mathbf{E}=\frac{1}{4\pi \epsilon_{0}}\int{\frac{dq}{r^{3}}\;\mathbf{r}} \tag{III}
\end{gather}
\]
Using the expression of the linear density of charge λ, we have the charge element
dq
\[ \bbox[#99CCFF,10px]
{\lambda =\frac{dq}{ds}}
\]
\[
\begin{gather}
dq=\lambda \;ds \tag{IV}
\end{gather}
\]
where
ds is an element of the length of the wire
\[
\begin{gather}
ds=dx \tag{V}
\end{gather}
\]
substituting the expression (V) into expression (IV)
\[
\begin{gather}
dq=\lambda \;dx \tag{VI}
\end{gather}
\]
Substituting expressions (I), (II), and (VI) into expression (III)
\[
\begin{gather}
\mathbf{E}=\frac{1}{4\pi \epsilon_{0}}\int {\frac{\lambda\;dx}{\left[\left(x^{2}+y^{2}\right)^{\frac{1}{2}}\right]^{3}}}\left(-x\;\mathbf{i}+y\;\mathbf{j}\right)\\
\mathbf{E}=\frac{1}{4\pi\epsilon_{0}}\int {\frac{\lambda\;dx}{\left(x^{2}+y^{2}\right)^{\frac{3}{2}}}}\left(-x\;\mathbf{i}+y\;\mathbf{j}\right) \tag{VII}
\end{gather}
\]
As the charge density λ is constant it is moved outside of the integral
\[
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}}\int{\frac{dx}{\left(x^{2}+y^{2}\right)^{\frac{3}{2}}}}\left(-x\;\mathbf{i}+y\;\mathbf{j}\right)
\]
The vector r goes from an element of charge
dq to the point
P from −∞ to
+∞ of the wire (Figure 2).
\[
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}}\int_{{-\infty}}^{{\infty}}{\frac{dx}{\left(x^{2}+y^{2}\right)^{\frac{3}{2}}}}\left(-x\;\mathbf{i}+y\;\mathbf{j}\right)
\]
factoring
y in the numerator and
y2 in the denominator
\[
\begin{gather}
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}}\int_{{-\infty}}^{{\infty}}{\frac{dx}{\left[y^{2}\left(1+\dfrac{x^{2}}{y^{2}}\right)\right]^{\frac{3}{2}}}}y\left(-{\frac{x}{y}}\;\mathbf{i}+\;\mathbf{j}\right)\\[5pt]
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}}\int_{{-\infty}}^{{\infty}}{\frac{dx}{\left(y^{2}\right)^{\frac{3}{2}}\left[1+\left(\dfrac{x}{y}\right)^{2}\right]^{\frac{3}{2}}}}y\left(-{\frac{x}{y}}\;\mathbf{i}+\;\mathbf{j}\right)\\[5pt]
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}}\int_{{-\infty}}^{{\infty}}{\frac{dx}{y^{\cancelto{2}{3}}\left[1+\left(\dfrac{x}{y}\right)^{2}\;\right]^{\frac{3}{2}}}}\cancel{y}\left(-{\frac{x}{y}}\;\mathbf{i}+\;\mathbf{j}\right)\\[5pt]
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}}\int_{{-\infty}}^{{\infty}}{\frac{dx}{y^{2}\left[1+\left(\dfrac{x}{y}\right)^{2}\right]^{\frac{3}{2}}}}\left(-{\frac{x}{y}}\;\mathbf{i}+\;\mathbf{j}\right) \tag{VIII}
\end{gather}
\]
Considering the angle θ measured between the
y-axis and the distance
r of the
element of charge to point
P, the tangent of this angle will be (Figure 3)
\[
\begin{gather}
\tan \theta =\frac{x}{y} \\
x=y\tan \theta \tag{IX}
\end{gather}
\]
substituting the expression (IX) into expression (VIII)
\[
\begin{gather}
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}}\int_{{-{\frac{L}{2}}}}^{{\frac{L}{2}}}{\frac{dx}{y^{2}\left[1+\left(\dfrac{\cancel{y}\tan \theta}{\cancel{y}}\right)^{2}\right]^{\frac{3}{2}}}}\left(-{\frac{\cancel{y}\tan \theta}{\cancel{y}}}\;\mathbf{i}+\;\mathbf{j}\right)\\
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}}\int_{{-{\frac{L}{2}}}}^{{\frac{L}{2}}}{\frac{dx}{y^{2}\left[1+\left(\tan \theta\right)^{2}\right]^{\frac{3}{2}}}}\left(-\tan \theta\;\mathbf{i}+\;\mathbf{j}\right)\\
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}}\int_{{-{\frac{L}{2}}}}^{{\frac{L}{2}}}{\frac{\mathit{dx}}{y^{2}\left(1+\tan ^{2}\theta\right)^{\frac{3}{2}}}}\left(-\tan \theta\;\mathbf{i}+\;\mathbf{j}\right) \tag{X}
\end{gather}
\]
From the expression (IX), we have the element of length
dx relative to the arc element
dθ.
Derivative of
\( x=y\tan \theta \)
\[
\frac{dx}{d\theta}=y\frac{d}{d\theta}\left(\tan \theta \right)
\]
rewriting
\( \tan \theta=\dfrac{\sin \theta}{\cos \theta} \),
we have the derivative of a quotient of functions given by the formula
\[
\left(\frac{u}{v}\right)^{\Large '}=\frac{u'v-u\;v'}{v^{2}}
\]
\[
\begin{align}
\frac{d}{d\theta}\left(\tan \theta \right)=\frac{d}{d\theta}\left(\frac{\sin \theta}{\cos \theta}\right) &=\frac{\cos\theta \cos \theta-\sin \theta (-\sin\theta)}{(\cos \theta)^{2}}=\\
&=\frac{\cos ^{2}\theta+\sin ^{2}\theta}{\cos ^{2}\theta}=\frac{1}{\cos^{2}\theta}
\end{align}
\]
\[
\begin{gather}
\frac{dx}{d\theta}=y\frac{1}{\cos ^{2}\theta}
\end{gather}
\]
Note: The books on
Integral and Differential Calculus give the derivative of the
tangent in form
\( \left(\tan \theta \right)^{'}=\sec^{2}\theta \),
where
\( \sec\theta=\dfrac{1}{\cos \theta} \),
but here for reasons of subsequent simplifications we will let the derivative in the form
shown above.
\[
\begin{gather}
dx=y\frac{1}{\cos ^{2}\theta}\;d\theta \tag{XI}
\end{gather}
\]
substituting the definition of tangent and expression (XI) into expression (X)
\[
\begin{gather}
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}}\int_{{-\infty}}^{\infty}{\frac{1}{y^{\cancel{2}}\left[1+\left(\dfrac{\sin \theta}{\cos \theta}\;\right)^{2}\;\right]^{\frac{3}{2}}}}\cancel{y}\;\frac{d\theta}{\cos^{2}\theta}\;\left(\;-\frac{\sin \theta}{\cos \theta}\;\mathbf{i}+\;\mathbf{j}\;\right)\\[5pt]
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}}\int_{{-\infty}}^{\infty}{\frac{1}{y\left[1+\left(\dfrac{\sin \theta}{\cos \theta}\;\right)^{2}\;\right]^{\frac{3}{2}}}}\;\frac{d\theta}{\cos^{2}\theta}\;\left(\;-\frac{\sin \theta}{\cos \theta}\;\mathbf{i}+\;\mathbf{j}\;\right)
\end{gather}
\]
The position vector
r that goes from an element of charge dq to the point
P makes an angle
θ with the
y-axis. As the element
dq moves from the origin towards ±∞ the
angle will increase and tends to
\( \frac{\pi}{2} \).
The limits of integration for the variable θ vary from
\( -{\frac{\pi}{2}} \),
the maximum angle measured clockwise, when
x is −∞, to
\( \frac{\pi}{2} \)
the maximum angle measured counterclockwise when
x is +∞ (Figure 4).
\[
\begin{gather}
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}}\int_{-{\frac{\pi}{2}}}^{\frac{\pi}{2}}{\frac{1}{y\left(1+\dfrac{\sin ^{2}\theta}{\cos^{2}\theta}\right)^{\frac{3}{2}}}}\;\frac{d\theta}{\cos ^{2}\theta}\left(-{\frac{\sin \theta}{\cos\theta}}\;\mathbf{i}+\;\mathbf{j}\right)\\[5pt]
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}}\int_{-{\frac{\pi}{2}}}^{\frac{\pi}{2}}{\frac{1}{y\left(\dfrac{\cos ^{2}+\sin ^{2}\theta}{\cos ^{2}\theta}\right)^{\frac{3}{2}}}}\;\frac{d\theta}{\cos^{2}\theta}\;\left(-{\frac{\sin \theta}{\cos \theta}}\;\mathbf{i}+\;\mathbf{j}\;\right)\\[5pt]
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}}\int_{-{\frac{\pi}{2}}}^{\frac{\pi}{2}}{\frac{1}{y\left(\dfrac{1}{\cos ^{2}\theta}\right)^{\frac{3}{2}}}}\;\frac{d\theta}{\cos ^{2}\theta}\left(-{\frac{\sin \theta}{\cos \theta}}\;\mathbf{i}+\;\mathbf{j}\right)\\[5pt]
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}}\int_{-{\frac{\pi}{2}}}^{\frac{\pi}{2}}{\frac{1}{y\dfrac{1}{\left(\cos ^{2}\theta\right)^{\frac{3}{2}}}}}\;\frac{d\theta}{\cos ^{2}\theta}\left(-{\frac{\sin \theta}{\cos \theta}\;}\mathbf{i}+\;\mathbf{j}\;\right)\\[5pt]
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}}\int_{-{\frac{\pi}{2}}}^{\frac{\pi}{2}}{\frac{1}{y\dfrac{1}{\cos ^{\cancel{3}}\theta}}}\;\frac{d\theta}{\cancel{\cos^{2}\theta}}\left(-{\frac{\sin \theta}{\cos \theta}}\;\mathbf{i}+\;\mathbf{j}\right)\\[5pt]
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}}\int_{-{\frac{\pi}{2}}}^{\frac{\pi}{2}}{\frac{1}{y\dfrac{1}{\cos \theta}}}\;d\theta\left(-{\frac{\sin \theta}{\cos \theta}}\;\mathbf{i}+\;\mathbf{j}\right)\\[5pt]
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}}\int_{-{\frac{\pi}{2}}}^{\frac{\pi}{2}}{\frac{\cos\theta}{y}}\;d\theta \left(-{\frac{\sin \theta}{\cos\theta}}\;\mathbf{i}+\;\mathbf{j}\right)
\end{gather}
\]
As
y is constant, it is moved outside of the integral, and the integral of the sum is equal to the
sum of the integral
\[
\begin{gather}
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0} y}\left(-\int_{-{\frac{\pi}{2}}}^{\frac{\pi}{2}}\cos \theta\frac{\sin \theta}{\cos \theta}\;d\theta\;\mathbf{i}+\int_{-{\frac{\pi}{2}}}^{{\frac{\pi}{2}}}\cos\theta \;d\theta\;\mathbf{j}\right)\\
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}y}\left(\underbrace{-{\int_{-{\frac{\pi}{2}}}^{\frac{\pi}{2}}\sin \theta \;d\theta\;\mathbf{i}}}_{0}+\int_{-{\frac{\pi}{2}}}^{{\frac{\pi}{2}}}\cos \theta \;d\theta\;\mathbf{j}\right)
\end{gather}
\]
Integration of
\( \displaystyle \int_{-{\frac{\pi}{2}}}^{\frac{\pi}{2}}\cos \theta \;d\theta \)
1st method
As the cosine function is an even function,
f(
x) =
f(−
x), we can
integrate half of the interval,
\( \left(\;\text{from }0\text{ to }\frac{\pi}{2}\;\right) \),
and multiply the integral by 2
\[
\begin{align}
2\int_{0}^{{\frac{\pi}{2}}}\cos \theta \;d\theta &=2\left.\sin \theta \;\right|_{\;0}^{\;\frac{\pi}{2}}=2\left(\sin \frac{\pi}{2}-\sin 0\right)=\\
&=2(1-0)=2
\end{align}
\]
2nd method
We can integrate all the interval
\( \left(\;\text{de }-\frac{\pi}{2}\text{ a }\frac{\pi}{2}\;\right) \)
\[
\int_{{-{\frac{\pi}{2}}}}^{{\frac{\pi}{2}}}\cos \theta \;d\theta=\left.\sin \theta \;\right|_{\;-\frac{\pi}{2}}^{\;\frac{\pi}{2}}=\sin \frac{\pi}{2}-\sin \left(-{\frac{\pi}{2}}\right)
\]
as sine is an odd function,
f(−
x) = −
f(
x), we have
\( \sin \left(-{\frac{\pi}{2}}\right)=-\sin \frac{\pi}{2} \)
\[
\begin{align}
\int_{{-{\frac{\pi}{2}}}}^{{\frac{\pi}{2}}}\cos \theta \;d\theta &=\sin \frac{\pi}{2}-\left(-\sin \frac{\pi}{2}\right)=\\
&=\sin \frac{\pi}{2}+\sin \frac{\pi}{2}=1+1=2
\end{align}
\]
Integration of
\( \displaystyle \int_{{-{\frac{\pi}{2}}}}^{{\frac{\pi}{2}}}\sin \theta\;d\theta \)
1st method
\[
\int_{{-{\frac{\pi}{2}}}}^{{\frac{\pi}{2}}}\sin \theta \;d\theta =-\left.\cos \theta\;\right|_{\;-\frac{\pi}{2}}^{\;\frac{\pi}{2}}=-\left[\cos \frac{\pi}{2}-\cos \left(-{\frac{\pi}{2}}\right)\right]
\]
As cosine is an odd function,
f(
x) =
f(−
x), we have
\( \cos \frac{\pi}{2}=\cos \left(-{\frac{\pi}{2}}\right) \)
\[
\int_{{-{\frac{\pi}{2}}}}^{{\frac{\pi}{2}}}\sin \theta\;d\theta =-\left(\cos \frac{\pi}{2}-\cos \frac{\pi}{2}\right)=0
\]
2nd method
The graph of sine between
\( -{\frac{\pi}{2}} \)
and 0 has a "negative" area below the x-axis, and between 0 and
\( \frac{\pi}{2} \)
a "positive" area above the x-axis, these two areas cancel in the integration, and the
integral is equal to zero in the i direction (Figure 5).
Figure 5
Note: The integral in the direction i, which is zero, represents the
mathematical calculation for the assertion that is usually done that the components of the electric
field parallel to the x-axis, dEP, cancel. Only the normal
components to the x-axis, dEN, contribute to the total electric
field (Figure 6).
\[
\begin{gather}
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}y}\left(-0\;\mathbf{i}+2\;\mathbf{j}\right)\\
\mathbf{E}=\frac{\lambda}{4\pi \epsilon_{0}y}2\;\mathbf{j}
\end{gather}
\]
\[ \bbox[#FFCCCC,10px]
{\mathbf{E}=\frac{\lambda}{2\pi \epsilon_{0}y}\;\mathbf{j}}
\]