# Magnetic field of a finite-length wire

• Chen
In summary: The correct way to calculate B for a finite wire is to use Biot-Savart's law which takes into account the finite length of the wire.
Chen
Let's say I want to calculate the magnetic field at a distance d from the center of a wire of finite length L, carrying a current I. Why would it be wrong to apply Ampere's law to a circular path of radius d centered on the wire, and say that the integral of B.dl is simply B times 2pi*d? (obviously it gives the wrong answer...)

Is the magnetic field not constant along this circular path? I would say so - the problem obviously has cylindrical symmetry.
Is it not parallel to the path at all points? I would think so - from Biot-Savart's law applied to every small element of the wire.
So where is the mistake in this logic?

Thanks,

That makes a lot of sense, Chen. Do you happen to know what B is around a "short" current carrying wire? It would be interesting to see how it is different from the B for an infinitely long one. I would expect a slightly smaller answer due to the "missing" length on either side.

Looks to me like the finite length L in the Biot-Savard Law gives you a factor of
L/sqrt(L^2 + r^2). Anyhow it goes to 1 as L goes to infinity.

Interesting, but it does not answer your question of why Ampere's Law cannot be applied to the finite length! If you find the answer, I hope you will let me know.

There is a formula here:
http://www.ac.wwu.edu/~vawter/PhysicsNet/Topics/MagneticField/MFStraitWire.html

If we limit our discussion only to the center of the wire, theta=phi and you obtain the result of an infinite wire, times cos(theta). And I am not at all sure where in Ampere's law this factor comes from. There is probably some fine print that I'm missing here.

Last edited by a moderator:
dB = u*i/(4*pi)*sin(A)*dx/r^2 where x runs from -L/2 to L/2, sin(A) = R/r
and r = sqrt(x^2 + R^2)
Here R is the distance from the wire center to the point we are computing B for.
B = u*i/(4*pi)*integral R*dx/(x^2 + R^2)^1.5
B = u*i/(4*pi*R)*[x/sqrt(x^2 + R^2)] evaluated between -L/2 and L/2.
B = u*i/(2*pi*R)*L/sqrt(L^2 + R^2)

This is from the standard derivation for the infinite wire, with only the integral limit being changed to -L/2 to L/2.

Thanks. But I know how to calculate this with Biot-Savart's law. I want to know where the application of Ampere's law to this problem fails.

Ampere's Law is only useful in calculating B for situations with very high symmetry. When calculating B of an infinite wire using Ampere's law we choose our path to be a circle around the wire so that B will always be tangent to our path. If the length of the wire isn't large compared to the distance r where we calculate B, this assumption is no longer valid (the B field is no longer symmetric in this way).

In short your assumption that a finite wire's B field has cylindrical symmetry is not correct--the effects of the ends make the field lines shaped oddly and not in a way Ampere's Law can work for us.

## 1. What is a magnetic field and how is it created?

A magnetic field is a region in space where magnetic forces are present. It is created by moving electric charges, such as the flow of current through a wire.

## 2. How does the length of a wire affect its magnetic field?

The length of a wire does not have a significant effect on the strength of its magnetic field. However, a longer wire will have a larger surface area, resulting in a weaker magnetic field at any given point along the wire.

## 3. How do you calculate the strength of the magnetic field of a finite-length wire?

The magnetic field strength of a finite-length wire can be calculated using the formula B = (μ0*I)/(2π*r), where B is the magnetic field strength, μ0 is the permeability of free space, I is the current flowing through the wire, and r is the distance from the wire.

## 4. What is the direction of the magnetic field around a finite-length wire?

The direction of the magnetic field around a finite-length wire is circular, with the magnetic field lines forming concentric circles around the wire.

## 5. How does the magnetic field of a finite-length wire differ from an infinite-length wire?

The magnetic field of a finite-length wire is stronger near the ends of the wire compared to an infinite-length wire, where the magnetic field is uniform along the entire length of the wire.

• Introductory Physics Homework Help
Replies
12
Views
319
• Introductory Physics Homework Help
Replies
6
Views
351
• Introductory Physics Homework Help
Replies
14
Views
1K
• Introductory Physics Homework Help
Replies
16
Views
385
• Introductory Physics Homework Help
Replies
7
Views
1K
• Introductory Physics Homework Help
Replies
2
Views
3K
• Introductory Physics Homework Help
Replies
3
Views
1K
• Introductory Physics Homework Help
Replies
1
Views
962
• Introductory Physics Homework Help
Replies
6
Views
978
• Introductory Physics Homework Help
Replies
3
Views
322