Consider a point a distance \(z\) above the center of an infinitesimally thin, square sheet of current. The current is parallel to one of the square sides. (Since the current cannot just begin and end in the middle of nowhere, this current is just the building block for some larger current.)
Use the Biot-Savart Law to find the magnetic field at the point \(z\). You may use any symmetry arguments you like, but do not use Ampere's Law.
Note: if you choose to use Mathematica or another integral calculator to evaluate the integral, it may take you into complex number land, even though the integral is clearly real. To address this issue, you should be explicit about what assumptions you want the program to make (“Assumptions” in Mathematica)
The Biot-Savart law tells how to compute the magnetic field \(\vec B\) due to a steady current density \(\vec J\). \begin{equation} \vec B(\vec r) =\frac{\mu_0}{ 4\pi} \int \frac{\vec J(\vec r')\times(\vec r-\vec r')\,d\tau'} {|\vec r-\vec r'|^3} \end{equation}
Let's put the square of current centered in the \(x\), \(y\)-plane (so that \(-L<x<L\) and \(-L<y<L\) and choose the current to flow in the \(\hat \imath\) direction.
Since the current in this case flows on a two-dimensional plane, the volume current density \(\vec J\) becomes just a surface current density, i.e. \(\vec K =K_0 \,\hat{x}\) and the three-dimensional integral over space (\(\int \dots d\tau'\)) becomes a two-dimensional integral (\(\int \dots dx'\, dy'\)) over the square. \begin{equation} \vec B(\vec r) = \frac{\mu_0}{4\pi} \int_{-L}^L \int_{-L}^L \frac{K_0\,\hat{z}\times(\vec r-\vec r')\, dx'\, dy'}{|\vec r-\vec r'|^3} \end{equation} Now, the vector \(\vec r\) points from the origin (at the center of the square) to the point at which you are trying to measure the magnetic field, a distance \(z\) above the origin. Therefore \(\vec r=z\hat{z}\). We see that the part of the numerator in the integral that comes from \(\vec K\times \vec r\) points always in the \(-\hat{y}\) direction. From the right-hand rule, this is the direction we expect for the answer. What about the other part of the numerator that comes from \(\vec K\times \vec{r'}\)? Well, \(\vec{r'}\) is the vector that points from the origin to the little piece of source current that we are thinking about. \(\vec{r'}=x'\,\hat{x} +y'\hat{y}\). So this dot product will have a \(\hat{z}\) component that we don't expect in the answer. This component will be positive whenever \(y'\) is positive and negative whenever \(y'\) is negative. The symmetry in the shape of the square will therefore make this contribution to \(\vec B\) cancel. So, I don't need to calculate this term. However, I'll keep it, just for fun, so we can watch the math do the physics for us.
What about the denominator? \begin{align} \vert \vec r -\vec{r'}\vert &= \vert z\hat{z} - (x'\hat{x} + y'\hat{y})\vert\\ &= \sqrt{z^2 +x'^2+y'^2} \end{align}
Putting all the pieces together, we have: \begin{align} \vec B(0,0,z) &=\frac{\mu_0 K_0}{ 4\pi} \int_{-L}^L \int_{-L}^L \frac{\hat{x}\times(z\hat{z} -(x'\hat{x}+y'\hat{y})) \, dx'\, dy'}{(z^2 +x'^2+y'^2)^{3/2}}\\ &=\frac{\mu_0 K_0}{ 4\pi}\int_{-L}^L \int_{-L}^L\frac{-z\hat{y}\, dx'\, dy'}{(z^2 l+x'^2+y'^2)^{3/2}}+\frac{\mu_0 K_0}{ 4\pi}\int_{-L}^L \int_{-L}^L \frac{y'\hat{z}\, dx'\, dy'}{(z^2 +x'^2+y'^2)^{3/2}} \end{align} To evaluate the second double integral, notice that the \(y'\) in the numerator and \(y'^2\) in the denominator mean that the \(y'\) integral is the integral of an odd function integrated over an even region (\(-L<y'<L\)), so this integral will be zero. This is the algebraic version of the symmetry argument I made in words, earlier.
To evaluate the first double integral, I would normally use integral tables or Maple. Maple wants to take me into complex number land, when the integral is clearly real. Using Mathematica's online integrator instead (http://integrals.wolfram.com), I will use the following two indefinite integrals that I obtain from that site: \begin{align} \int\left(x^2+a^2\right)^{-\frac{3}{2}}\, dx &= \frac{1}{a^2}\frac{x}{\sqrt{x^2+a^2}}\\ \int\frac{1}{(x^2+a^2)\sqrt{x^2+a^2+b^2}}\, dx &=\frac{1}{ab}\arctan\left(\frac{bx}{a\sqrt{x^2+a^2+b^2}}\right) \end{align} Using some changes of variable and parameter names (you will need to get good at this!): \begin{align} \vec B(0,0,z) &=-\frac{\mu_0 K_0}{ 4\pi}\, \hat{y}\int_{-L}^L \int_{-L}^L \frac{z\, dx'\, dy'}{(x'^2+y'^2+z^2)^{3/2}}\\ &=-\frac{\mu_0 K_0}{ 4\pi}\, \hat{y}\int_{-L}^L \left.\frac{1}{y'^2 +z^2}\frac{z\, x'\,dy'}{\sqrt{x'^2+y'^2+z^2}}\right\vert_{-L}^L\\ &=-\frac{\mu_0 K_0}{ 4\pi}\, \hat{y}\int_{-L}^L \frac{1}{y'^2 +z^2}\frac{2zL\, dy'}{\sqrt{L^2+y'^2+z^2}}\\ &=-\frac{\mu_0 K_0}{ 4\pi}\, \hat{y}\left.\frac{2Lz}{Lz}\arctan{\frac{y'L}{z\sqrt{L^2 +y'^2+z^2}}}\right\vert_{-L}^L\\ &=-\frac{\mu_0 K_0}{ \pi}\, \hat{y}\;\arctan{\frac{L^2}{z\sqrt{2L^2+z^2}}} \end{align} Sense-making: The plate is finite, so I expect the magnetic field to grow larger as I get close to the plate and fall off to infinity very far away. To explore this in more detail I will try a power series expansion, \(\arctan{z} = z - \frac{z^3}{3} + \frac{z^5}{5} + ...\), along with our expansion for square roots. \begin{align} \vec{B}(0,0,z>>L) &= -\frac{\mu_0 K_0}{ \pi}\, \hat{y}\; \arctan{\frac{L^2}{z^2\sqrt{1 + 2(L/z)^2}}} \\ &= -\frac{\mu_0 K_0}{ \pi}\, \hat{y}\; \arctan{\frac{L^2}{z^2}\left(1 - \frac{L^2}{z^2} + \frac{3}{2}\frac{L^4}{z^4} + ...\right)} \\ &= -\frac{\mu_0 K_0}{ \pi}\, \hat{y}\; \left[\left( \frac{L^2}{z^2} - \frac{L^4}{z^4} + \frac{3}{2}\frac{L^6}{z^6} + ... \right) - \frac{1}{3}\left( \frac{L^2}{z^2} - \frac{L^4}{z^4} + \frac{3}{2}\frac{L^6}{z^6} + ... \right)^3 + ... \right] \\ &= -\frac{\mu_0 K_0}{\pi}\, \hat{y}\; \left( \frac{L^2}{z^2} - \frac{L^4}{z^4} + \frac{7}{6}\frac{L^6}{z^6} + ... \right) \end{align} Note that we have discarded any term that is higher order than \((L/z)^6\). This matches the limit at infinity! The limit when \(z<<L\) is explored in the next problem.
In part (a), we found the magnetic field at a point \(z\) above the center of a square of surface current: \begin{equation} \vec B(0,0,z)=-\frac{\mu_0 K_0}{ \pi}\, \hat{y}\;\arctan{\frac{L^2}{z\sqrt{2L^2+z^2}}} \end{equation} Now we need to take the limit as the size of the square \(L\) becomes infinite. Inside the arctangent, there is a fraction with a factor of \(L^2\) in the numerator, but only a factor proportional to \(L\) in the denominator, so the fraction becomes infinite in this limit. The limit of the arctangent, as it's argument goes to infinity is the constant \(\frac{\pi}{2}\). Therefore, we see that the magnetic field due to an infinite sheet of current is a constant, independent of \(z\) the distance of the measuring point from the sheet of current. \begin{equation} \vec B(0,0,z)=-\frac{\mu_0 K_0}{ 2}\, \hat{y} \end{equation} You should think about how this calculation would change if we had taken the point \(z\) to be underneath the square rather than above it!
Discuss your answer in the light of the magnetic field above an infinite sheet of current as found using Ampere's Law.
The magnetic field above infinite sheet of current found using Ampere's Law is the same as part b: \begin{equation} \vec B(0,0,z)=-\frac{\mu_0 K_0}{ 2}\, \hat{y} \end{equation}
Using Ampere's Law is, of course, significantly easier, but it cannot be used in part a.
The differential area element of a cross section of the wire is: \[ \vec{A} = (ds \, \hat{s} + s \, d\phi \, \hat\phi) = s\,ds\,d\phi\,\hat{s}\] \begin{align*} I_{enc} &= \int \vec{J} \cdot d\vec{A}\\ &= \int_0^{2\pi}\int_0^R(\kappa r \hat{z})\cdot \hat{z} \, r\, dr\, d\phi\\ &= \frac{2\pi\kappa R^3}{3} \end{align*}
\begin{align*} I_{enc} &= \int \vec{J} \cdot d\vec{A}\\ &= \int_0^{2\pi}\int_0^{s_2}(\kappa s \hat{z})\cdot \hat{z}\, s\, ds\, d\phi\\ &= {2\pi\kappa s_2^3\over 3} \end{align*}
\(\vec{B}\) must point in the \(\hat{\phi}\) direction. How do we know this? The right-hand rule in the Biot-Savart law shows that \(\vec{B}\) must be perpendicular to the current, so it cannot have a component in the \(z\)-direction. Suppose \(\vec{B}\) had a component in the \(\hat{s}\)-direction. If we reversed the current, it would have a component in the \(-\hat{r}\) direction. If we then turned the wire over (flipping it end-to-end), this flip would not change the direction of the field. After both changes, we would be back to the original configuration, but the direction of the field would have switched. This is not possible. Symmetry also shows that \(\vec{B}\) is a function only of \(r\). How do we know this? Suppose B depended on \(\phi\) or \(z\), then if we rotated the wire or moved it along its axis, then the field would change, but neither of these is a change that we could detect in the wire. Therefore, \(\vec{B}= B(r)\,\hat{\phi}\). Ampere's law is:
\begin{align*} \mu_0 I_{enc} &= \oint \vec{B} \cdot d\hat{r}\\ &= \int B(s_1) \,\hat{\phi} \cdot r_1 \, d\phi \,\hat{\phi}\\ &= 2\pi B(s_1) \,s_1 \end{align*} Using the result from part (a) and solving for B(s), we find \begin{equation*} \vec{B}(s_1)=\frac{\mu_0\kappa R^3}{3 s_1}\, \hat{\phi} \end{equation*}
Use Ampere's law to find the magnetic field at a
distance \(s_2\) inside the wire.
The calculation is the same as in part (c), but using the result from part (b) for the current enclosed. \begin{align*} \mu_0 I_{enc} &= \int \vec{B} \cdot d\vec{r}\\ &= \int B(s_2) \,\hat{\phi} \cdot s_2 \, d\phi \,\hat{\phi}\\ &= 2\pi B(s_2) \,s_2 \end{align*} so that \begin{equation*} \vec{B}(s)=\frac{\mu_0\kappa s^2}{3}\, \hat{\phi} \end{equation*}
We need to turn the field on at \(s=a\) and off at \(s=b\): \[ \vec{B}(s,\phi,z)=\alpha \frac{1}{s}(s^4-a^4)\left[\Theta(s-a)-\Theta(s-b)\right]\, \hat{\phi} \]
Use Maxwell's equation for current density and calculate the curl in cylindrical coordinates. Don't forget to include the step functions and use the product rule! \begin{align} \vec{J}(\vec{r})&=\frac{1}{\mu_0}\vec{\nabla}\times \vec{B}\\ &=\frac{1}{\mu_0} \frac{1}{s}\frac{\partial}{\partial s}\left(s {B}_{\phi}\right)\\ &=\frac{1}{\mu_0} \frac{1}{s}\frac{\partial}{\partial s} \left(\alpha (s^4-a^4)\left[\Theta(s-a)-\Theta(s-b)\right]\right)\, \hat{z}\\ &=\frac{\alpha}{\mu_0} \frac{1}{s}\left(4s^3\left[\Theta(s-a)-\Theta(s-b)\right] +(s^4-a^4)\left[\cancel{\delta(s-a)}-\delta(s-b)\right]\right)\, \hat{z}\\ \end{align} The delta function at \(s=a\) does not contribute since the coefficient of that term \(s^4-a^4\) is zero at \(s=a\).
There is a volume current density with magnitude \(\frac{4\alpha}{\mu_0} s^2\) flowing up the cylinder. The total current due to this current density is the flux through a horizontal plane: \begin{align} I_{\text{total}}&=\int_0^{2\pi}\int_a^b \frac{4\alpha}{\mu_0} s^2\hat{z}\cdot s\, ds\, d{\phi}\hat{z}\\ &=\frac{8\pi\alpha}{\mu_0}\int_a^b s^3\, ds\\ &=\frac{2\pi\alpha}{\mu_0}(b^4-a^4) \end{align} There is also a surface current density which is described as a volume current density with a delta function at \(s=b\) with magnitude \(\frac{\alpha}{\mu_0} \frac{s^4-a^4}{s}\) flowing down the cylinder. The total current due to this current density is the flux through a horizontal plane: \begin{align} I_{\text{total}}&=-\int_0^{2\pi}\int_0^{\infty} \frac{\alpha}{\mu_0} \frac{s^4-a^4}{s}\delta(s-b)\hat{z}\cdot s\, ds\, d{\phi}\hat{z}\\ &=\frac{2\pi\alpha}{\mu_0}\int_0^{\infty} (s^4-a^4)\delta(s-b)\, ds\\ &=\frac{2\pi\alpha}{\mu_0}(b^4-a^4) \end{align} These two total currents are equal in magnitude and opposite in direction, so Ampère's Law tells us that the magnetic field for \(s>b\) is zero, which we see in the original statement of the problem.
Consider a circular loop of wire carrying current \(I\) in a homogeneous (constant) magnetic field.
The loop is in the \(xy\)-plane and the current goes in the counter-clockwise direction (if you're looking down onto the \(xy\)-plane). The magnetic field is \(\vec{B}=B_0 \left(\sin\alpha\, \hat{x}+\cos\alpha\, \hat{z}\right)\).
The Lorentz Force Law \[\vec{F}=q_{\hbox{test}} \left(\vec{E}+\vec{v}\times\vec{B}\right)\] says that the moving charges in the loop will experience a force due to the magnetic field.
Rewrite the Lorentz Force Law as an integral over the current in the loop. Describe in words how you did the conversion, don't just look up a formula in a book.
There is no electric field in this problem, so set \(\vec{E}=0\). Chop the ring into many little pieces. On each piece the charge is \(\lambda\, d\ell\). Combine the \(\lambda\) with the velocity \(\vec{v}\) to get the current \(\vec{I}\) on that little piece of the ring. So we have: \begin{align*} \vec{F}&=q_{\hbox{test}} \left(\vec{E}+\vec{v}\times\vec{B}\right)\\ &\rightarrow \int \lambda \vec{v}\times \vec{B}\, d\ell\\ &= \int \vec{I}\times \vec{B}\, d\ell \end{align*}
On a current loop, we need to use the form of the force formula for a one-dimensional source. We are looking only at the contribution for an external magnetic field, not an external electric field. Therefore we need to evaluate \[\vec{F}=\int \vec{I}\times\vec{B}\, d\ell\] around a closed circular loop. We evaluate the various pieces of the integrand: \begin{align} \vec{I}&=I_0 \hat{\phi}=I_0\left(-\sin\phi\,\hat{x}+\cos\phi\,\hat{y}\right)\\ \vec{B}&=B_0 \left(\sin\alpha\, \hat{x}+\cos\alpha\, \hat{z}\right)\\ d\ell&=R\, d\phi \end{align} where the limits of integration are \(0\le\phi<2\pi\) and \(\theta\), \(B_0\), and \(I_0\) are all constants.
Plugging everything in, we obtain \begin{align} \vec{F}&=\int \vec{I}\times\vec{B}\, d\ell\\ &=\int_0^{2\pi} I_0\left(-\sin\phi\,\hat{x}+\cos\phi\,\hat{y}\right) \times B_0 \left(\sin\alpha\, \hat{x}+\cos\alpha\, \hat{z}\right) R\, d\phi\\ &= I_0 B_0 R \int_0^{2\pi} \left(\sin\phi\cos\alpha\, \hat{y} -\cos\phi\sin\alpha\, \hat{z}+\cos\phi\cos\alpha\, \hat{x}\right)\, d\phi\\ &=0 \end{align} The final answer is zero because all of the integrals are integrals of either \(\sin\phi\) or \(\cos\phi\) over a period.
We see that the force on different parts of the loop is not zero, but the total force IS zero.
We see that the force and torque are related, but be careful! The total force is zero, but the cross product for the torque needs to be evaluated piece-by-piece under the integral sign, i.e. \[\vec\tau\ne\vec{r}\times \left(\int \vec{I}\times\vec{B}\, d\ell\right)\] Rather, we need to chop the ring into a bunch of little pieces and find the torque on each little piece and then add up the torques: \begin{align} \vec\tau&=\int\vec{r}\times \left(\vec{I}\times\vec{B}\, d\ell\right)\\ &=\int_0^{2\pi}\left(R\cos\phi\,\hat{x}+R\sin\phi\,\hat{y}\right)\times I_0 B_0 R \left(\sin\phi\cos\alpha\, \hat{y} -\cos\phi\sin\alpha\, \hat{z}+\cos\phi\cos\alpha\, \hat{x}\right)\, d\phi\\ &=I_0 B_0 R^2\int_0^{2\pi}\left(\cancel{\cos\phi\sin\phi\cos\alpha\,\hat{z}} +\cos^2\phi\sin\alpha\, \hat{y}-\sin\phi\cos\phi\sin\alpha\,\hat{x} \cancel{-\sin\phi\cos\phi\cos\alpha\,\hat{z}} \right)\, d\phi\\ &=\pi I_0 B_0 R^2\sin\alpha\,\hat{y} \end{align} where we have used a partial result from part (a) above.
Note: There is a nice formula for the double cross product, called the vector triple product: \[\vec{F}\times\left(\vec{G}\times \vec{H}\right) =\left(\vec{F}\cdot\vec{H}\right)\vec{G}-\left(\vec{F}\cdot\vec{G}\right)\vec{H}\] It is perfectly correct to use this formula, but it doesn't help much in this case, so I didn't use it.