How Should I Integrate Electric Potential for Oppositely Charged Parallel Lines?

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 2K views
wakko101
Messages
61
Reaction score
0
electric potential...again.

So, I've still got my two infinite lines of charge that run parallel to the x-axis running along the lines x = a and x = -a and with charge density + and - lambda respectively.

I've figured out that using the origin as my reference point allows me to integrate the electric field of my lines from a to the point in question (r). However, because the field goes like 1/r, we end up with a ln of something in the potential. For the line that's positive a away from the x axis, there's no problem. But, for the line that runs along x = -a, how can I integrate? should I be integrating from a to r again, or from -a to r. The problem with the latter is that you can't have the natural logarithm of a negative number.

I would REALLY appreciate any advice. I'm a little desperate...

Cheers,
W. =)
 
Physics news on Phys.org
Remember, the r in 1/r is the distance to the charge so it should always be positive. If your point is (x, y) then the distance to the line x = -a is |x + a| and the distance to the line x=a is |x-a|
 
that makes sense...I figured it was a that I needed to use, but I just wanted to be sure.

Thanks for the help. =)