## Calculating Electric Potential: That Tricky Dot Product

I have become exceedingly confused by the various sign changes involved in computing the electric potential produced by a charge distribution, and I am sure I am simply forgetting a negative sign somewhere and am going crazy. However,

V = -int from infty to r of E . ds
ds is the infinitisemal vector along to path from infty to r
so ds = - dr
and E . ds = - Edr
which contradicts everything i've ever seen, and ends up with
V = - Q/{4 pi e_o r}
instead of V being positive, which it should be.
This is one of those things which i'll never figure out unless someone else shows me, because I know how to do this problem, but for the life of me I can't find where I went wrong. Can someone please help?

Thanks,
Jack
 PhysOrg.com science news on PhysOrg.com >> City-life changes blackbird personalities, study shows>> Origins of 'The Hoff' crab revealed (w/ Video)>> Older males make better fathers: Mature male beetles work harder, care less about female infidelity
 Okay, let me clarify that. $$V(r) = - \int_{\infty}^r \vec{E} \cdot d \vec{s}$$ If S is the path from $${\infty}$$ to r, then $$d \vec{s} = - dr \hat{r}$$ in polar coordinates. So $$\vec{E} \cdot d \vec{s} = E \hat{r} \cdot -dr \hat{r} = -E dr$$ $$V(r) = - \int_{\infty}^r -E dr$$ $$V(r) = \int_{\infty}^r E dr$$ et cetera This result being the negative of the correct result. Where did I err?
 Mentor What's the actual question? I don't understand why you are integrating from infinity to r. That doesn't make much sense to me!

## Calculating Electric Potential: That Tricky Dot Product

hm, i thought that was supposed to when finding the potential, because infinity is where the potential is zero.
 the actual question was "where am i messing up"
 or how to compute electric potential using a line integral
 If it's just a sign problem, are you sure you have r and infinity the right way 'round?
 yeah every single place i check says that i have the right formula $$V_B - V_A = - \int_a^b \vec{E} \cdot \vec{ds}$$ I know this is the correct formula, however, I don't know how to deduce the correct answer when E = Q/(4 pi e_0 r^2) in the positive r direction, b is a point R, and a is at infinity, the point of zero potential. I should be getting Q / (4 pi e_0 R), but im getting - Q / (4 pi e_0 R).
 It's like this: $$V = - \int_{\infty}^R \left( \hat R \frac{q}{4 \pi \epsilon_0 R^2} \right) \left( \hat R dR \right)$$ This becomes: $$V = \frac{q}{4 \pi \epsilon_0 R} \,\,\,\, V$$ Your expression for voltage is fine, your differential line element direction is not. The differential should point to infinity, i.e. you travel towards infinity from the reference point of the point charge.
 thank you! whats a general rule for knowing what direction the differential vector should point? i.e, when calculating potential difference between two points for a given charge distribution?

 Quote by tbonepower07 thank you! whats a general rule for knowing what direction the differential vector should point? i.e, when calculating potential difference between two points for a given charge distribution?
Well when you go against the E-field the voltage should be negative. (1)

I think if you use the expression you are given then you always set it up so the differential follows the electric field. Just make sure you satisfy (1) above.
 okay, I think I have this figured out. The problem was that I didn't know how to do line integrals, because we were never taught them. I stared at a calculus book for a long time before I kind of figured it out. So $$- \int_C \vec{E} \cdot d \vec{s} = \int_a^b \vec{E(s)} \cdot \vec{s}'(t) dt$$ The kicker is the E(s) -- when you take the path from infinity to R, the easiest s(t) to set up is s = A - t (you eventually take the limit as A approaches infinity). This s is plugged into the equation for E (q/(4 pi e_0 r^2)), and it takes care of the extranegative sign when the integral is performed. So my calculus book says that this is the right way to do it, making it a parametric thingamijig.

 Quote by tbonepower07 okay, I think I have this figured out. The problem was that I didn't know how to do line integrals, because we were never taught them. I stared at a calculus book for a long time before I kind of figured it out. So $$- \int_C \vec{E} \cdot d \vec{s} = \int_a^b \vec{E(s)} \cdot \vec{s}'(t) dt$$ The kicker is the E(s) -- when you take the path from infinity to R, the easiest s(t) to set up is s = A - t (you eventually take the limit as A approaches infinity). This s is plugged into the equation for E (q/(4 pi e_0 r^2)), and it takes care of the extranegative sign when the integral is performed. So my calculus book says that this is the right way to do it, making it a parametric thingamijig.
Dude I feel you. I never really understood line (path) or surface integrals, parametric equations, or any of the later calc III stuff until I took an emag class. I could do it, but I never really understood it. If you are interested in emag, I would definitely recommend picking up: Field and Wave Electromagnetics

You can probably get it from your school's technical library. It has a great math primer.
 Hey thanks for you help. I'll look into that book. The thing about these integrals is sometimes it looks like something you can sort of do mentally - like really simple applications of Gauss' Law - but it isn't - like the problem I just had.
 I don't understand the confusion over here. The integration is pretty straightforward. Let me start with the original equation for the electric potential: $$V = -\int_{\infty}^{r} \vec E \cdot d\vec r$$ Plug in the expression for the Electric Field: $$V = -\int_{\infty}^{r} \frac{Q}{4 \pi \epsilon_0 r^2} \hat r \cdot \hat r dr = -\frac{Q}{4 \pi \epsilon_0} \int_{\infty}^{r}\frac{dr}{r^2} = -\frac{Q}{4 \pi \epsilon_0} \left[\frac{-1}{r}\right]_{\infty}^{r}$$ Final evaluation gives expression for V.
 thats how i had been doing it for a very long time, and it is correct but then I started trying to learn the more formal way to do line integrals and I couldn't understand why $$d \vec{s}$$ was not equal to -dr, because it starts at infinity and goes to r. However, with frogpad's excellent help i eventually figured out that $$d \vec{s}$$ is a vector valued function (ihope that is the right term) that encompasses all the vectors from the origin to points on the path from infinity to r -- so it is pointing in the positive r direction. this doesn't change the way i'll be solving the integral, but it does clear things in my head conceptually.
 Hey there is no question of confusion.Tbonepower07 you are not at all messing up anywhere.Let's talk about simple terms.We know that work done per unit charge define electric potential i.e. V=dw/dq.Also V=W/q not.Therefore, V=(-q/q not)/(4 x pie x abselon not x R x q not).So,q not cancelles from Nr and Dr.Hence V= -q / (4 x pie x abselon not x R ).IN CONCEPTUAL terms work done on the system will be -ve and work done by the system will be +ve.

 Similar discussions for: Calculating Electric Potential: That Tricky Dot Product Thread Forum Replies Introductory Physics Homework 5 Introductory Physics Homework 6 Introductory Physics Homework 1 Introductory Physics Homework 18 Introductory Physics Homework 4