dingo_d
- 199
- 0
Homework Statement
Find the potential [tex]\phi[/tex] and electric field [tex]\vec{E}[/tex] for homogenous charged line segment with the length 2a, that lies between a and -a along the z-axis, if the total charge on the segment is q
Homework Equations
[tex]\phi(\vec{r})=\int\frac{\rho(\vec{r}')}{|\vec{r}-\vec{r}'|}d\tau '[/tex]
[tex]\vec{E}=-\nabla\phi[/tex]
The Attempt at a Solution
So since I have line segment on z-axes I set:
[tex]\vec{r}'=z'\hat{z},\ z\in[-a,a][/tex] so the distance between the point where I look the potential and the charged segment is:
[tex]|\vec{r}-\vec{r}'|=\sqrt{x^2+y^2+(z-z')^2}[/tex].
I'm dealing with line segment so my charge density is:
[tex]\rho(\vec{r}')d\tau'=\lambda dz'[/tex], where [tex]\lambda=\frac{q}{2a}[/tex].
So after putting that all in integral I get:
[tex]\phi(\vec{r})=\frac{q}{2a}\int_{-a}^a\frac{dz'}{\sqrt{x^2+y^2+(z-z')^2}}[/tex]
and the result (by checking Bronstein and Semendyayev, even Mathematica) is:
[tex]\phi(\vec{r})=\frac{q}{2a}\ln\left(\frac{z+a+\sqrt{x^2+y^2+(z+a)^2}}{z-a+\sqrt{x^2+y^2+(z-a)^2}}\right)[/tex].
Now I got the solved problems hand written from a guy who finished this course years ago and in his notes it says that the solution is:
[tex]\phi(\vec{r})=\frac{q}{2a}\ln\left(\frac{z-a+\sqrt{x^2+y^2+(z-a)^2}}{z+a+\sqrt{x^2+y^2+(z+a)^2}}\right)[/tex].
And he wrote that that's the same result as from the book where he got it (didn't mention the name -.-)...
So what am I doing wrong?