How to Calculate the Magnetic Field Using Ampere's Law in Differential Form?

Click For Summary
SUMMARY

This discussion focuses on calculating the magnetic field using Ampere's Law in differential form for a long cylindrical wire with a specific current density, defined as ##j(r) = j_0 \left( \frac{r}{R_0} \right)^2 \hat{z}## for ##r < R_0##. The correct magnetic field inside the wire is derived as ##B_{in} = \frac{\mu_0 j_0 r^3}{4 R_0^2}##, while the field outside the wire is expressed as ##B_{out} = \frac{C}{r}##, where the constant C is determined by applying boundary conditions. The discussion emphasizes the importance of understanding the curl in cylindrical coordinates and the symmetry of the system to identify which derivatives are non-zero.

PREREQUISITES
  • Understanding of Ampere's Law in differential form: ##\nabla \times B = \mu_0 J##
  • Familiarity with cylindrical coordinates and their application in vector calculus
  • Knowledge of boundary conditions in electromagnetic theory
  • Ability to perform integrals involving current density for magnetic field calculations
NEXT STEPS
  • Study the application of Biot-Savart Law for magnetic field calculations
  • Learn about boundary conditions in electromagnetic fields and their implications
  • Explore the derivation of magnetic fields for different current configurations
  • Investigate the relationship between differential and integral forms of Ampere's Law
USEFUL FOR

Students of electromagnetism, physicists working with magnetic fields, and engineers involved in electromagnetic design will benefit from this discussion.

roam
Messages
1,265
Reaction score
12

Homework Statement


A long cylindrical wire of radius R0 lies in the z-axis and carries a current density given by:

##j(r)= j_0 \left( \frac{r}{R_0} \right)^2 \ \hat{z} \ for \ r< R_0##

##j(r) = 0 \ elsewhere##

Use the differential form of Ampere's law to calculate the magnetic field B inside and outside the wire.

Homework Equations



Differential form of Ampere's law: ##\nabla \times B = \mu_0 J##

Curl in cylindrical coordinates:

##\nabla \times B = [\frac{1}{r}\frac{\partial B_z}{\partial \phi}] \hat{r} + [\frac{\partial B_r}{\partial z} - \frac{\partial B_z}{\partial r}] \hat{\phi} + \frac{1}{r} [\frac{\partial}{\partial r} (r B_\phi)-\frac{\partial B_r}{\partial \phi}]##

The Attempt at a Solution



Could anyone please explain, in the equation above for curl in cylindrical coordinates, which derivative can be non-zero in this case?

If I take this to be the one involving differentiating φ-component with respect to r, then the answer I get for Bin seems to be correct, but Bout is wrong:

##\frac{1}{r} \frac{\partial}{\partial r} (r B_{\phi}) = \mu_0 j_0 (\frac{r}{R_o})^2 \implies B_{in}= \frac{\mu_0 j_0 r^3}{4 R_0^2}##

##\frac{1}{r} \frac{\partial}{\partial r} (r B_{\phi}) = \mu_0 (0) \implies B_{out} = \frac{C}{r}##​

What should I do here? :confused:

P.S. I am checking my answers by comparing them to the ones I've obtained using the integral form of Ampere's law:

##I_{enc, in} = \int^r_0 \frac{j_0 r^2}{R_0^2} . 2 \pi r dr =\frac{j_0 2 \pi r^4}{4 R_0^2}, \ I_{enc, out} = \frac{j_0 2 \pi R_0^2}{4}##

##\therefore \oint B_{in} .da =B_{in} 2\pi r= \frac{j_0 2 \pi r^4}{4 R_0^2} \implies B_{in}=\frac{\mu_0 j_0 r^3}{4 R_0^2}, \ B_{out}=\frac{\mu_0 j_0 R_0^2}{4 r}##

Any help would be appreciated.
 
Physics news on Phys.org
You don't have a mistake, you just didn't finish your derivation. Namely, the constant C in your expression for B_{out} is yet to be determined. To determine it, you need some boundary condition to apply to B_{out}. Do you know what it is?

As for the comparison with the integral form, one simply has to note that \frac{\mu_0 j_0R_0^2}{4} = const. = C where the last equality needs to be proven by the above method.
 
  • Like
Likes   Reactions: roam
ELB27 said:
You don't have a mistake, you just didn't finish your derivation. Namely, the constant C in your expression for B_{out} is yet to be determined. To determine it, you need some boundary condition to apply to B_{out}. Do you know what it is?

As for the comparison with the integral form, one simply has to note that \frac{\mu_0 j_0R_0^2}{4} = const. = C where the last equality needs to be proven by the above method.

That makes sense now. But what sort of boundary conditions do I need to apply to ##B_{out}## in order to get the right ##C##? I really have no idea how to solve for ##C##. Any explanation would be helpful.
 
roam said:
That makes sense now. But what sort of boundary conditions do I need to apply to ##B_{out}## in order to get the right ##C##? I really have no idea how to solve for ##C##. Any explanation would be helpful.
Well, there are two boundaries in the outer region - the surface of the cylinder (which is the boundary between \vec{B_{in}} and \vec{B_{out}}) and r=\infty. Concerning the second boundary, one would expect the magnetic field to go to zero at infinity since these points are infinitely far from any magnetic field source (currents). This condition (\vec{B_{out}}→0 as r→\infty) is alreaady taken care of by the inverse-r relationship that you derived (##\vec{B_{out}} = C/r##). Now, concerning the second boundary: how would you expect the fields \vec{B_{in}} and \vec{B_{out}} to be related in their mutual boundary (in the absence of surface current which is not present in this problem)? i.e., in the place where both \vec{B_{in}} and \vec{B_{out}} exist, how are they related to each other?
You have to remember that both \vec{B_{in}} and \vec{B_{out}} are part of the same function ##\vec{B}##. Can the magnetic field change abruptly from one value to another at such a boundary?
 
Last edited:
  • Like
Likes   Reactions: roam
ELB27 said:
Well, there are two boundaries in the outer region - the surface of the cylinder (which is the boundary between \vec{B_{in}} and \vec{B_{out}}) and r=\infty. Concerning the second boundary, one would expect the magnetic field to go to zero at infinity since these points are infinitely far from any magnetic field source (currents). This condition (\vec{B_{out}}→0 as r→\infty) is alreaady taken care of by the inverse-r relationship that you derived (##\vec{B_{out}} = C/r##). Now, concerning the second boundary: how would you expect the fields \vec{B_{in}} and \vec{B_{out}} to be related in their mutual boundary (in the absence of surface current which is not present in this problem)? i.e., in the place where both \vec{B_{in}} and \vec{B_{out}} exist, how are they related to each other?
You have to remember that both \vec{B_{in}} and \vec{B_{out}} are part of the same function ##\vec{B}##. Can the magnetic field change abruptly from one value to another at such a boundary?

Thank you so much for the explanation. It makes perfect sense now. I got the right constant:

##B_{out} (R_0) = \frac{C}{R_0} = \frac{\mu_0 j_0 R_0^3}{4 R_0^2} = B_{in} (R_0) \implies C= \frac{\mu_0 j_0 R_0^2}{4}##So, the other question I was struggling with was how do we decide which of the derivatives in the expression for ##\nabla \times B## must be non-zero.

So in cylindrical polar coordinates the curl was:

##\nabla \times B = [\frac{1}{r}\frac{\partial B_z}{\partial \phi}] \hat{r} + [\frac{\partial B_r}{\partial z} - \frac{\partial B_z}{\partial r}] \hat{\phi} + \frac{1}{r} [\frac{\partial}{\partial r} (r B_\phi)-\frac{\partial B_r}{\partial \phi}]##

How do we know that only the ##\partial B_{\phi} / \partial r## term must be non-zero? Any explanations or links is greatly appreciated.
 
roam said:
So, the other question I was struggling with was how do we decide which of the derivatives in the expression for ##\nabla \times B## must be non-zero.

So in cylindrical polar coordinates the curl was:

##\nabla \times B = [\frac{1}{r}\frac{\partial B_z}{\partial \phi}] \hat{r} + [\frac{\partial B_r}{\partial z} - \frac{\partial B_z}{\partial r}] \hat{\phi} + \frac{1}{r} [\frac{\partial}{\partial r} (r B_\phi)-\frac{\partial B_r}{\partial \phi}]##

How do we know that only the ##\partial B_{\phi} / \partial r## term must be non-zero? Any explanations or links is greatly appreciated.
First of all, the ##\hat{r}## and ##\hat{\phi}## components of the curl are zero because ##\nabla\times\vec{B} = \vec{J}## and ##J_{r}=J_{\phi}=0##. Concerning the ##\hat{z}## component, there are multiple ways to see that the second term vanishes. First, a nice "trick" with cylinders with currents parallel to their axis is that you can consider them to be straight wires, and then remember that the magnetic field is swirling around them by the right hand rule. A more rigorous way is via Biot-Savart law: \vec{B} = \frac{\mu_0}{4\pi}\int \frac{\vec{J}\times(\vec{r}-\vec{r}&#039;)}{|\vec{r}-\vec{r}&#039;|^3}d\tau&#039; where ##\vec{r}## is the position vector of the point at which the field is being calculated, ##\vec{r}'## is the position vector of a current point and ##d\tau'=dx'dy'dz'=r'dr'd\phi'dz'## is an infinitesimal volume element of current. If you focus on the ##\vec{J}\times(\vec{r}-\vec{r}')## part, you will find that if you integrate it ##d\phi## (i.e. sum it around the cylinder circumferentially), the ##r## component will cancel. Finally, you don't even have to know that ##B_r=0##, you can consider symmetry - your configuration is completely symmetrical in ##\phi## (nothing depends on it - your current density is wholly in ##z## and the same goes for the cylinder). Thus, the field cannot possibly depend on it either and any derivative with respect to it must vanish.

Hope the above explanation makes sense!
 
  • Like
Likes   Reactions: roam
Yes, it's absolutely clear to me now. Thank you so much for the wonderful explanation. I do appreciate your time and expertise.
 

Similar threads

  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
17
Views
4K
  • · Replies 3 ·
Replies
3
Views
648
Replies
1
Views
2K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
6K