Components of a magnetic field in a uniform wire

AI Thread Summary
The discussion centers on calculating the x and y components of the magnetic field inside a straight wire carrying a current I, with a uniform current density J. The user initially struggles with evaluating the integral for the magnetic field using Ampere's Law and expresses confusion over deriving the components. They clarify that there is a second wire with a current of -I, which complicates the situation. The user finds a solution by analyzing the contributions from both wires and applying the superposition principle, but questions whether their method is satisfactory. Overall, the conversation highlights the challenges of applying theoretical concepts to practical problems in electromagnetism.
ItsFootballNo
Messages
4
Reaction score
0

Homework Statement



A straight wire, of current I, radius a is centred at (α,β). What are the x and y components of the magnetic field B inside one of the wires?

Homework Equations



∮B.dl = μ I_enc
∫∫J.dS = I

The Attempt at a Solution



Any point (x,y) in the wire has a constant current density J.

Hence:
∫∫J.dS = J pi r^2 = J pi ((x-α)^2 + (y-β)^2)

The wire has total current I and the current density J is uniform, hence:
J = I / (pi a^2)

Therefore:
I_enc = ∫∫J.dS = I ((x-α)^2 + (y-β)^2)/a^2

Therefore:
∮B.dl = μ I ((x-α)^2 + (y-β)^2)/a^2

It is from here that I get stuck, mostly how to evalutate the integral without it becoming one big equation without staying in its components. If I was just looking at magnitude of the magnetic field, I know we could show:
∮B.dl = B (2 pi r)
=> B = μ I r / (2 pi a^2)

But looking at the answers, just the y component comes out as:
B_y = μ I (x-α) / (2 pi a^2) - μ I x / (2 pi [(x+α)^2 + (y+β)^2])

Am I going about this the wrong way or are there any tips on how to get to the next step? Any help is greatly appreciated!
 
Physics news on Phys.org
ItsFootballNo said:

Homework Statement



A straight wire, of current I, radius a is centred at (α,β). What are the x and y components of the magnetic field B inside one of the wires?

Homework Equations



∮B.dl = μ I_enc
∫∫J.dS = I

The Attempt at a Solution



Any point (x,y) in the wire has a constant current density J.

Hence:
∫∫J.dS = J pi r^2 = J pi ((x-α)^2 + (y-β)^2)

The wire has total current I and the current density J is uniform, hence:
J = I / (pi a^2)

Therefore:
I_enc = ∫∫J.dS = I ((x-α)^2 + (y-β)^2)/a^2

Therefore:
∮B.dl = μ I ((x-α)^2 + (y-β)^2)/a^2

It is from here that I get stuck, mostly how to evalutate the integral without it becoming one big equation without staying in its components. If I was just looking at magnitude of the magnetic field, I know we could show:
∮B.dl = B (2 pi r)
=> B = μ I r / (2 pi a^2)

But looking at the answers, just the y component comes out as:
B_y = μ I (x-α) / (2 pi a^2) - μ I x / (2 pi [(x+α)^2 + (y+β)^2])

Am I going about this the wrong way or are there any tips on how to get to the next step? Any help is greatly appreciated!
Hello ItsFootballNo. Welcome to PF !   (I see that you posted in PF once before without getting any reply.)

Your first sentence indicates to me that there is more than one wire. What can you tell us about that?
 
Apologies, the other wire is centred at (-α,-β), also with radius a.
 
The other wire also has current -I (that is, it is parallel but running in the opposite direction)
 
I have been working on it for the past hour or so, and seem to have come up with some sort of solution, but it isn't the most elegant one.

I looked at the case of the magnetic field inside just one of the wires (say, in this case, the one to the right, centred at (α,β) and solved for the magnitude of B. I assumed that:
vec(B) = (B_x, B_y, B_z) = (-B sin(t), B cos(t), 0) = (-B(y-β)/r, B(x-α)/r, 0) = (-μI(y-β)/(2 pi a^2), μI(x-α)/(2 pi a^2), 0)

I then looked at the contribution of the other wire which, as the point we're inspecting is outside of the wire, is:
B=-μI/(2 pi r) [The negative sign arising from the current being negative in this wire]

Again looking at the effect at a point (x,y)
vec(B) = (B_x, B_y, B_z) = (-B sin(t), B cos(t), 0) = (-B(y+β)/r, B(x+α)/r, 0) = (μI(y+β)/(2 pi ((y+β)^2 + (x+α)^2)), (μI(x+α)/(2 pi ((y+β)^2 + (x+α)^2)), 0) [y+β and x+α arising from the new centre of (-α,-β)]

Finding the sum, using the superposition principle, of these gives a correct looking solution.

I just have a problem in that I've just used: vec(B) = |B| theta-hat and subbed in from there. Does this represent a satisfactory means to solve the solution or is there a better method when doing the integral in Ampere's Law?
 
I multiplied the values first without the error limit. Got 19.38. rounded it off to 2 significant figures since the given data has 2 significant figures. So = 19. For error I used the above formula. It comes out about 1.48. Now my question is. Should I write the answer as 19±1.5 (rounding 1.48 to 2 significant figures) OR should I write it as 19±1. So in short, should the error have same number of significant figures as the mean value or should it have the same number of decimal places as...
Thread 'A cylinder connected to a hanging mass'
Let's declare that for the cylinder, mass = M = 10 kg Radius = R = 4 m For the wall and the floor, Friction coeff = ##\mu## = 0.5 For the hanging mass, mass = m = 11 kg First, we divide the force according to their respective plane (x and y thing, correct me if I'm wrong) and according to which, cylinder or the hanging mass, they're working on. Force on the hanging mass $$mg - T = ma$$ Force(Cylinder) on y $$N_f + f_w - Mg = 0$$ Force(Cylinder) on x $$T + f_f - N_w = Ma$$ There's also...
Back
Top