# Line Integral/Ampere's Law: is my logic valid?

• kostoglotov
In summary, the conversation discusses a problem from a section on Line Integrals in a Calculus textbook that involves Ampere's Law, which relates electric current to its magnetic effects. The conversation also mentions a website with a different mathematical form for Ampere's Law and discusses the attempt at a solution for the problem, which involves showing that the magnitude of the magnetic field at a distance r from the center of a wire is given by B = (mu_0I) / (2πr). The conversation also includes a discussion about the second term in the alternative form of Ampere's Law and arguments about the constants in the problem.
kostoglotov
This is a problem from a section on Line Integrals in my Calculus Textbook, I haven't studied any physics relating to E&M yet, and the solutions manual only gives solutions for odd numbered problems. Sorry, if I'm posting in the wrong forum, I hope I'm not.

1. Homework Statement

A steady current $I$ in a long wire produces a magnetic field $\vec{B}$ that is tangent to any circle that lies in the plane perpendicular to the wire and whose center is the axis of the wire.

Ampere's Law relates the electric current to its magnetic effects and states that:

$$\int_C \vec{B} \cdot d\vec{r} = \mu_0I$$

where $I$ is the net current that passes through any surface bounded by a closed curve C, and $\mu_0$ is a constant called the permeability of free space. By taking C to be a circle with radius r, show that the magnitude $B = |\vec{B}|$ of the magnetic field at a distance $r$ from the center of the wire is

$$B = \frac{\mu_0I}{2\pi r}$$

## Homework Equations

$$\vec{A}\cdot \vec{B} = |\vec{A}||\vec{B}|\cos{\theta}$$

I also found this website that gives a different mathematical form for Ampere's Law

http://hyperphysics.phy-astr.gsu.edu/hbase/electric/maxeq2.html#c4

$$\oint B ds = \mu_0I + \frac{1}{c^2}\int E\cdot dA$$

But I don't know what that second term is, so I am assuming that the form of Ampere's Law given me by the textbook is specific to closed circular paths around the wire. Is this correct? What is this second term all about?

## The Attempt at a Solution

So $\int_C \vec{B}\cdot d\vec{r}=\int_C \vec{B} \cdot \vec{T} ds$ where $\vec{T}$ is a unit vector and so $|\vec{T}| = 1$

Also, $ds = r dt$ since the $\vec{r} = \langle r\cos(t),r\sin(t)\rangle$

Then, $\vec{B} \cdot \vec{T} = |\vec{B}||\vec{T}|\cos{\theta}$. Obviously our unit tangent vector magnitude just becomes one, but here I also need to argue that $\theta=0$.

Since it states that the magnetic field will be tangent to a circle at radius r from the wire, I feel comfortable stating that theta will be zero on the circular path.

Here, one continues $\int_C \vec{B} \cdot \vec{T} ds = \int_C |\vec{B}| ds = \mu_0I$, provided C is a circle of radius r in the plane perpendicular to the wire/source and with the wire/source at the center of the circle.

So $\int_C |\vec{B}| ds = \int_0^{2\pi} |\vec{B}| r dt = |\vec{B}|r[t]_0^{2\pi}$, but now I need to argue that $|\vec{B}|$ and $r$ are constants. This is no problem for $r$ as it is assumed to be a constant from the beginning of the exercise, but I am not 100% comfortable arguing that $|\vec{B}|$ is a constant in this case.

I could argue that $|\vec{B}|$ is a constant because it is a function of $r$, and it states that in the setup to the problem itself, so I have no big issue with this intuitively. If we assume something to be so, then so be it...but...

Is there anything in this mathematical statement of Ampere's Law

$$\int_C \vec{B} \cdot d\vec{r} = \mu_0I$$

that tells us for certain that $|\vec{B}|$ is a function of $r$ and that if $r$ is constant then so is $|\vec{B}|$? After all, it is a line integral that equals a constant value.

If a line integral is a constant value, is it generally then the case that the magnitude of the vector field is a function only of the path through that field? Or only for closed paths? Is this what they mean by a conservative field? Or am I just veering completely into nonsense?

Last edited:
kostoglotov said:
This is a problem from a section on Line Integrals in my Calculus Textbook, I haven't studied any physics relating to E&M yet, and the solutions manual only gives solutions for odd numbered problems. Sorry, if I'm posting in the wrong forum, I hope I'm not.

1. Homework Statement

A steady current $I$ in a long wire produces a magnetic field $\vec{B}$ that is tangent to any circle that lies in the plane perpendicular to the wire and whose center is the axis of the wire.

Ampere's Law relates the electric current to its magnetic effects and states that:

$$\int_C \vec{B} \cdot d\vec{r} = \mu_0I$$

where $I$ is the net current that passes through any surface bounded by a closed curve C, and $\mu_0$ is a constant called the permeability of free space. By taking C to be a circle with radius r, show that the magnitude $B = |\vec{B}|$ of the magnetic field at a distance $r$ from the center of the wire is

$$B = \frac{\mu_0I}{2\pi r}$$

## Homework Equations

$$\vec{A}\cdot \vec{B} = |\vec{A}||\vec{B}|\cos{\theta}$$

I also found this website that gives a different mathematical form for Ampere's Law

http://hyperphysics.phy-astr.gsu.edu/hbase/electric/maxeq2.html#c4

$$\oint B ds = \mu_0I + \frac{1}{c^2}\int E\cdot dA$$

But I don't know what that second term is, so I am assuming that the form of Ampere's Law given me by the textbook is specific to closed circular paths around the wire. Is this correct? What is this second term all about?

## The Attempt at a Solution

So $\int_C \vec{B}\cdot d\vec{r}=\int_C \vec{B} \cdot \vec{T} ds$ where $\vec{T}$ is a unit vector and so $|\vec{T}| = 1$

Also, $ds = r dt$ since the $\vec{r} = \langle r\cos(t),r\sin(t)\rangle$

Then, $\vec{B} \cdot \vec{T} = |\vec{B}||\vec{T}|\cos{\theta}$. Obviously our unit tangent vector magnitude just becomes zero, but here I also need to argue that $\theta=0$.

Since it states that the magnetic field will be tangent to a circle at radius r from the wire, I feel comfortable stating that theta will be zero on the circular path.

Here, one continues $\int_C \vec{B} \cdot \vec{T} ds = \int_C |\vec{B}| ds = \mu_0I$, provided C is a circle of radius r in the plane perpendicular to the wire/source and with the wire/source at the center of the circle.

So $\int_C |\vec{B}| ds = \int_0^{2\pi} |\vec{B}| r dt = |\vec{B}|r[t]_0^{2\pi}$, but now I need to argue that $|\vec{B}|$ and $r$ are constants. This is no problem for $r$ as it is assumed to be a constant from the beginning of the exercise, but I am not 100% comfortable arguing that $|\vec{B}|$ is a constant in this case.

I could argue that $|\vec{B}|$ is a constant because it is a function of $r$, and it states that in the setup to the problem itself, so I have no big issue with this intuitively. If we assume something to be so, then so be it...but...

Is there anything in this mathematical statement of Ampere's Law

$$\int_C \vec{B} \cdot d\vec{r} = \mu_0I$$

that tells us for certain that $|\vec{B}|$ is a function of $r$ and that if $r$ is constant then so is $|\vec{B}|$? After all, it is a line integral that equals a constant value.

If a line integral is a constant value, is it generally then the case that the magnitude of the vector field is a function only of the path through that field? Or only for closed paths? Is this what they mean by a conservative field? Or am I just veering completely into nonsense?

Hi, There is indeed an important and nontrivial point here, that unfortunately most books do not explain well (if at all). We have to use a symmetry argument to show that the magnitude of B cannot depend on the angle if we are at a fixed r. The argument is the following:

Let's pick an arbitrary point ##P_1## at a distance r. There is a B field ##\vec{B}_1## there. Let's say that you close your eyes and I rotate the wire by an angle theta (around its axis of symmetry) in such a way that a second point ##P_2## (where there is a B field ##\vec{B}_2##) has being moved to where point ##P_1## was before. Now you open your eyes and you see the field ##\vec{B}_2## where you were seeing ##\vec{B}_1## before I rotated the wire. Now comes the key point: by symmetry, the wire looks exactly the same as what it was before I rotated it. In other words, if I don't tell you that I rotated the wire, you would not be able to see that the wire has been rotated. Therefore, since the wire looks exactly the same as it was just before I rotated it, the B field must also be the same as before! So we conclude that after the rotation, the B field ##\vec{B}_2 ## must be identical to the B field ##\vec{B}_1## that was there before we did the rotation (and by identical I mean both in magnitude and in direction). Since a rotation does not change the magnitudes of the B fields, we obtain immediately that the two B fields must have the same magnitude (note that it is crucial that we are considering two points P1 and P2 at the same distance r from the wire since other wise a rotation would not bring P2 to P1).

Symmetry arguments are very powerful. For example, you can use them to show that the E field produced by an infinite uniform charge density has a direction necessarily perpendicular to the surface.

kostoglotov
kostoglotov said:
I also found this website that gives a different mathematical form for Ampere's Law

http://hyperphysics.phy-astr.gsu.edu/hbase/electric/maxeq2.html#c4

$$\oint B ds = \mu_0I + \frac{1}{c^2}\int E\cdot dA$$

But I don't know what that second term is, so I am assuming that the form of Ampere's Law given me by the textbook is specific to closed circular paths around the wire. Is this correct? What is this second term all about?

You left a time derivative out of the term involving the E field in the second term. A time varying electric field can also contribute to the magnetic flux. In your case, you don't have such a field.

Dick said:
You left a time derivative out of the term involving the E field in the second term. A time varying electric field can also contribute to the magnetic flux. In your case, you don't have such a field.

So then, will Ampere's Law as given by my textbook work just as well for any closed path around the wire?

kostoglotov said:
So then, will Ampere's Law as given by my textbook work just as well for any closed path around the wire?

Well, sure. Isn't that what I said? If there is no time varying electric field, you can leave that term out.

Dick said:
Well, sure. Isn't that what I said? If there is no time varying electric field, you can leave that term out.

No no no, I'm asking if the path around the wire has to be circular or not, in order for Ampere's equation to work.

It has to be a "closed curve" but not necessarily a circle or any specific shape. Since you posted this under "Calculus" rather than "Physics", I will point out that this is basically "Green's theorem" (more specifically, the "Kelvin-Stokes theorem", Green's theorem extended to three dimensions)- that, for F a differentiable function, and C a closed curve with A as its interior,
$$\oint_C \vec{F}\cdot d\vec{r}= \int_A\int \nabla\times \vec{F}\cdot d\vec{S}$$

kostoglotov
HallsofIvy said:
It has to be a "closed curve" but not necessarily a circle or any specific shape. Since you posted this under "Calculus" rather than "Physics", I will point out that this is basically "Green's theorem" (more specifically, the "Kelvin-Stokes theorem", Green's theorem extended to three dimensions)- that, for F a differentiable function, and C a closed curve with A as its interior,
$$\oint_C \vec{F}\cdot d\vec{r}= \int_A\int \nabla\times \vec{F}\cdot d\vec{S}$$

Ok. Now, this closed path line integral equals a constant, in this given case, because we're considering a steady current...and I've just read that for a conservative vector field the line integral of a closed path is zero, so this must mean that the magnetic field around a wire is NOT a conservative vector field?? Intuitively I would have thought it would be. What does it being a constant tell us mathematically?

nrqed said:
Hi,There is indeed an important and nontrivial point here, that unfortunately most books do not explain well (if at all). We have to use a symmetry argument to show that the magnitude of B cannot depend on the angle if we are at a fixed r. The argument is the following:

Let's pick an arbitrary point ##P_1## at a distance r. There is a B field ##\vec{B}_1## there. Let's say that you close your eyes and I rotate the wire by an angle theta (around its axis of symmetry) in such a way that a second point ##P_2## (where there is a B field ##\vec{B}_2##) has being moved to where point ##P_1## was before. Now you open your eyes and you see the field ##\vec{B}_2## where you were seeing ##\vec{B}_1## before I rotated the wire. Now comes the key point: by symmetry, the wire looks exactly the same as what it was before I rotated it. In other words, if I don't tell you that I rotated the wire, you would not be able to see that the wire has been rotated. Therefore, since the wire looks exactly the same as it was just before I rotated it, the B field must also be the same as before! So we conclude that after the rotation, the B field ##\vec{B}_2 ## must be identical to the B field ##\vec{B}_1## that was there before we did the rotation (and by identical I mean both in magnitude and in direction). Since a rotation does not change the magnitudes of the B fields, we obtain immediately that the two B fields must have the same magnitude (note that it is crucial that we are considering two points P1 and P2 at the same distance r from the wire since other wise a rotation would not bring P2 to P1).

Symmetry arguments are very powerful. For example, you can use them to show that the E field produced by an infinite uniform charge density has a direction necessarily perpendicular to the surface.

Certainly, symmetry arguments are more insightful and nicer all around, but it is satisfying to note that formal expressions can also give the same result. In this case, using the Biot-Savart Law (see, eg., http://en.wikipedia.org/wiki/Biot–Savart_law ) results in
$$\vec{B}(\vec{r}) = \frac{\mu_0}{4 \pi} \int \frac{ d \vec{l} \times \vec{r}'}{|\vec{r}'|^3},$$
where ##\vec{r}' = \vec{r} - \vec{l}##. You end up with ##|\vec{B}(\vec{r})| = F(h)##, where ##h## is the (shortest) distance between the point at ##\vec{r}## and the wire (which the OP called ##r## in post #1).

kostoglotov

## 1. What is a line integral in the context of Ampere's Law?

A line integral is a mathematical tool used to calculate the total value of a vector field along a chosen path or curve. In the context of Ampere's Law, it is used to calculate the magnetic field strength at a specific point due to a given current distribution.

## 2. How is Ampere's Law related to electromagnetism?

Ampere's Law is one of the four Maxwell's equations that describe the relationship between electricity and magnetism. It states that the magnetic field around a closed loop is directly proportional to the electric current passing through the loop. This law is crucial in understanding the behavior of magnetic fields in various electrical systems.

## 3. Can Ampere's Law be applied to any current distribution?

Yes, Ampere's Law can be applied to any current distribution, as long as the current is steady and the magnetic field is constant over time. However, for more complex current distributions, the law may need to be applied in differential form, using the concept of line integrals.

## 4. How do you determine the direction of the magnetic field using Ampere's Law?

To determine the direction of the magnetic field using Ampere's Law, you need to use the right-hand rule. This rule states that if you point your right thumb in the direction of the current, then the curled fingers of your right hand will point in the direction of the magnetic field.

## 5. What are some real-life applications of Ampere's Law?

Ampere's Law has many practical applications in various fields, including electrical engineering, physics, and medicine. It is used to design and analyze electromagnets, transformers, and other electrical devices. It is also used in medical imaging techniques such as magnetic resonance imaging (MRI) to generate images of the body's internal structures.

• Calculus and Beyond Homework Help
Replies
3
Views
750
• Calculus and Beyond Homework Help
Replies
20
Views
684
• Introductory Physics Homework Help
Replies
6
Views
223
• Introductory Physics Homework Help
Replies
3
Views
538
• Calculus and Beyond Homework Help
Replies
6
Views
2K
• Introductory Physics Homework Help
Replies
1
Views
300
• Calculus and Beyond Homework Help
Replies
6
Views
1K
• Calculus and Beyond Homework Help
Replies
5
Views
1K
• Introductory Physics Homework Help
Replies
3
Views
124
• Differential Geometry
Replies
3
Views
1K