Calculating Electric Field and Potential for a Line with Uniform Charge Density

Click For Summary

Homework Help Overview

The discussion revolves around calculating the electric field and potential at a point O due to a line with uniform charge density, specifically considering the contributions from various segments of the line (AB, BC, CD) and a semicircular section. Participants are exploring the implications of symmetry and the setup of integrals in the context of electrostatics.

Discussion Character

  • Exploratory, Assumption checking, Mathematical reasoning

Approaches and Questions Raised

  • Participants discuss breaking the problem into sections and using superposition to analyze contributions from different segments. There are questions about the limits of integration and the direction of the unit vector n hat. Some participants express uncertainty about how to handle the semicircular section and the implications of symmetry on the contributions from AB and CD.

Discussion Status

The discussion is ongoing, with participants providing insights and suggestions on handling the integrals and the setup of the problem. Some guidance has been offered regarding the use of polar coordinates and the importance of defining the direction of the integral. However, there is no explicit consensus on the final approach or resolution of the problem.

Contextual Notes

Participants note potential issues with the integrals blowing up and the implications of choosing different paths for integration. There is also a discussion about the validity of using superposition for potentials and the need to consider the absolute value in logarithmic integrals.

E92M3
Messages
64
Reaction score
0

Homework Statement


A line (A-B-C-D) with uniform charge density is shown in the following figure. Calculate the electric field and the potential at center O, where AB=CD=Diameter of the semi-circle.

Homework Equations


[tex]E(r)=\frac{1}{4 \pi \epsilon_0}\int_l \frac{\lambda(r')}{n^2}\hat{n}dl'[/tex]
n is the distance from the charge element to the point r and n hat is its direction.

The Attempt at a Solution


Form super position, I know that i can break it into sections of AB, BC and CD.
I think that the contribution of AB should cancel CD.
I let the length of AB=CD=L. Please verify the followings:
[tex]E(O)_{AB}=\frac{\lambda}{4 \pi \epsilon_0}\int_{\frac{-L}{2}}^{\frac{-3L}{2}}\frac{dx}{x^2}[/tex]
[tex]E(O)_{CD}=\frac{\lambda}{4 \pi \epsilon_0}\int_{\frac{L}{2}}^{\frac{3L}{2}}\frac{dx}{x^2}[/tex]
[tex]E(O)_{AB}=-E(O)_{CD}[/tex]

But I'm stuck here, can't deal with the semi circle.
 

Attachments

  • phys.jpg
    phys.jpg
    2.9 KB · Views: 413
Last edited:
Physics news on Phys.org
E92M3 said:
[tex]E(r)=\frac{1}{4 \pi \epsilon_0}\int_l \frac{\lambda(r')}{n^2}\hat{n}dl'[/tex]
n is the distance from the charge element to the point r and n hat is its direction.

The Attempt at a Solution


From super position, I know that i can break it into sections of AB, BC and CD.
I think that the contribution of AB should cancel CD.
Yes, you can see that from the symmetry. The contributions from AB and CD will be equal but point in opposite directions.
I let the length of AB=CD=L. Please verify the followings:
[tex]E(O)_{AB}=\frac{\lambda}{4 \pi \epsilon_0}\int_{\frac{-L}{2}}^{\frac{-3L}{2}}\frac{dx}{x^2}[/tex]
[tex]E(O)_{CD}=\frac{\lambda}{4 \pi \epsilon_0}\int_{\frac{L}{2}}^{\frac{3L}{2}}\frac{dx}{x^2}[/tex]
I'd switch the limits on the first integral so it comes out positive because if [itex]\lambda>0[/itex], you expect the contribution from AB to point in the +x direction at O. I'd put a negative sign in front of the second integral because CD's contribution should point in the -x direction. The signs in both cases come from [itex]\hat{n}[/itex].
But I'm stuck here, can't deal with the semi circle.
You want to use polar coordinates and express [itex]dl[/itex] in terms of [itex]r[/itex] and [itex]\theta[/itex]. Also, you can argue that only one component matters because the other will cancel by symmetry.
 
I did some more thinking but just get want to get one thing straight: What determines the limits of the integral? Namely, what determines P in:
[tex] E(r)=\frac{1}{4 \pi \epsilon_0}\int_l \frac{\lambda(r')}{n^2}\hat{n}dl'[/tex]

I have 2 thoughts on this:
  1. n hat. For section AB, n hat points to the +x-direction; therefore, the limits are -3L/2 (bottom) to -L/2(top). For section CD, n hat points towards the -x-direction, so the limits are 3L/2(bottom) to L/2(top). This will ensure that their contribution cancels. But what about BC? I know that it probably doesn't matter for this question since I will end up integrating in polar anyways. But should I integrate from B to C or from C to B? This lead me to come up with my second thought.
  2. Define a direction for dl and stick with it. In this case I can choose from ABCD or DCBA. As with my 1st thougt, it won't matter for the semicircle in the middle, but if I do this, AB and CD won't cancel. Which one should I go with?
 
I worked out the solution for the electric field, please chck whether it's right, THANX!
[tex]E=E_{AB}+E_{BC}+E_{CD}[/tex]
[tex]=\frac{\lambda}{4 \pi \epsilon_0} \left [ \int_{-3L/2}^{-L/2}\frac{dx}{x^2} \hat{x}+\int_{-L/2}^{L/2} \frac{dl}{n^2} \hat{n}+ \int_{L/2}^{3L/2} \frac{dx}{x^2} (-\hat{x}) \right ][/tex]
The first and last integrals cancels. Now the center one:
[tex]dl=rd\theta = \frac{L}{2}d\theta[/tex]
[tex]\hat{n}=cos\theta \hat{x}+sin\theta \hat{y}[/tex]
[tex]=\frac{2\lambda}{4 L\pi \epsilon_0} \int_{0}^{\pi}cos\theta \hat{x}+sin\theta \hat{y}d\theta[/tex]
[tex]=\frac{-\lambda}{ L\pi \epsilon_0} \hat{y}[/tex]

Now what about the potential at O? I know that :
[tex]V(r)=-\int E \cdot dl[/tex]
I take the potential at infinity to be zero and this integral is path independent. I choose the path along the y axis, then I have:
[tex]V(O)=\frac{\lambda}{ L\pi \epsilon_0} \int_{\infty}^0 \hat{y} \cdot dy(-\hat{y})[/tex]
[tex]=\frac{-\lambda}{ L\pi \epsilon_0} \int_{\infty}^0 dy[/tex]
This blows up. How can I deal with it?
 
Last edited:
E92M3 said:
The first and last integrals cancels. Now the center one:
[tex]dl=rd\theta = \frac{L}{2}d\theta[/tex]
[tex]\hat{n}=cos\theta \hat{x}+sin\theta \hat{y}[/tex]
You dropped a sign here. [itex]\hat{n}[/itex] should point away from wire when [itex]\lambda>0[/itex].
[tex]=\frac{2\lambda}{4 L\pi \epsilon_0} \int_{0}^{\pi}cos\theta \hat{x}+sin\theta \hat{y}d\theta[/tex]
[tex]=\frac{-\lambda}{ L\pi \epsilon_0} \hat{y}[/tex]
You also flipped a sign here so the answer came out right, but the integral of [itex]\sin\theta=+2[/itex], not -2.
 
E92M3 said:
Now what about the potential at O? I know that :
[tex]V(r)=-\int E \cdot dl[/tex]
I take the potential at infinity to be zero and this integral is path independent. I choose the path along the y axis, then I have:
[tex]V(O)=\frac{\lambda}{ L\pi \epsilon_0} \int_{\infty}^0 \hat{y} \cdot dy(-\hat{y})[/tex]
[tex]=\frac{-\lambda}{ L\pi \epsilon_0} \int_{\infty}^0 dy[/tex]
This blows up. How can I deal with it?
You're using E(O) in the integral, but you need to use E(y) if you take this approach.

They actually want you to integrate over the charge distribution again, but this time using the integrand for calculating the potential instead of for the electric field.
 
vela said:
They actually want you to integrate over the charge distribution again, but this time using the integrand for calculating the potential instead of for the electric field.
In that case I'll use this:
[tex]V=\frac{\lambda}{4 \pi \epsilon_0} \left [ \int_{-3L/2}^{-L/2} x^{-1}dx +\int_{0}^{\pi}d\theta +\int_{L/2}^{3L/2} x^{-1}dx <br /> \right ][/tex]
Well now the first integral blows up. You can't ln a negative number. Wait, can you even do the super position thing for potentials? Also, this brings me to my previous question in my previous post: how do I set the direction of the integral? In the electric part, I choose to integrate from A to D then used n hat to give me the signs that I need. But i could easily have chosen to integrate from D to A instead and still get the right answer. But I think that this is only due to the symmetry in this problem. Suppose the question just has charge distributed from C to D. Then n hat will always point to the negative x-direction. My answer will then depend on the direction I choose dl to be since changing the direction of dl will flip my limits thus changing the sign. So is my approach wrong?
 
Last edited:
E92M3 said:
In that case I'll use this:
[tex]V=\frac{\lambda}{4 \pi \epsilon_0} \left [ \int_{-3L/2}^{-L/2} x^{-1}dx +\int_{0}^{\pi}d\theta +\int_{L/2}^{3L/2} x^{-1}dx <br /> \right ][/tex]
Well now the first integral blows up. You can't ln a negative number.
You forgot the integral has an absolute value:

[tex]\int \frac{dx}{x} = \log |x|+C[/tex]
Wait, can you even do the super position thing for potentials?
Yes, because integration is a linear operation. The line integral of a sum of electric fields is the sum of the line integrals of the individual electric fields.

Also, this brings me to my previous question in my previous post: how do I set the direction of the integral? In the electric part, I choose to integrate from A to D then used n hat to give me the signs that I need.
That's not quite right. What I wrote earlier wasn't clear. The direction of [itex]\hat{n}[/itex] is dictated by the geometry. It points in the direction of the vector going from the element of charge to the point in question. You can't flip its sign arbitrarily to get the answer you want.

[itex]dl[/itex] is a length, so it's inherently positive. If the charge density is positive, then the electric field points in the direction of [itex]\hat{n}[/itex] as it should. The sign of [itex]dx[/itex], on the other hand, is set by the direction of the integral. With the coordinate system you choose, if you integrate from A to B, [itex]dx>0[/itex], so [itex]dl=dx[/itex]. If you integrate from B to A, however, [itex]x[/itex] is decreasing, so [itex]dx<0[/itex] and [itex]dl=-dx[/itex]. To put it simply, [itex]dl=|dx|[/itex].
 
This is still not good. The first and last integral sums to give log(1)=0. The middle one gives pi. This will give me a constant potential. The gradient of V will then be zero. But I thought it must equal the negative of the E field I found previously.
 
  • #10
The first integral should be

[tex]V=\frac{\lambda}{4 \pi \epsilon_0} \int_{-3L/2}^{-L/2} \frac{1}{r}dx=\frac{\lambda}{4 \pi \epsilon_0} \int_{-3L/2}^{-L/2} \frac{1}{-x}dx[/tex]

since the distance [itex]r[/itex] from the charge to O is [itex]-x[/itex].

The answer will come out to be a number because you're calculating the potential for a specific point. If you performed the calculation in general for the point (x,y,z), you'd then get a function of x, y, and z whose gradient would give you E.
 
  • #11
But the distance is a magnitude, how could it have a sign? Plus, if I change the first integral, it won't cancel with the third one. do I change the third one too?
 
  • #12
For both the first and third integral, r=|x|. For the first integral, x runs from -3L/2 to -L/2, so r=|x|=-x. For the third integral, x is positive, so r=|x|=x.

The integrals are not supposed to cancel when you're calculating the potential. The more charge there is, the more work is required to bring a test charge in from infinity, so the two contributions need to add.
 

Similar threads

  • · Replies 18 ·
Replies
18
Views
2K
Replies
11
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
1
Views
2K
Replies
6
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K