- #1
StillAnotherDave
- 75
- 8
- Homework Statement
- Calculate the line integral for a magnetic field B around a square in the x-y plane.
- Relevant Equations
- $$\int \:B\cdot dl=\mu_0I$$
Hello folks,
I'm working on a question as follows:
I appreciate that there might be more sophisticated ways to do things, but I just want to check that my approach to the line integral is accurate. I will just give my working for the first side of the path.
So I have set up the path as a square in the x-y plane where x goes from -a to a and likewise y goes from -a to a. This leads to determining the line integral around the four sides of the square.
The first step is to give rho and phi-hat in Cartesian coordinates:
##ρ=\sqrt{x^2+y^2}##
##ϕ=−sinθi+cosθj##
This gives:
##B=\frac{\mu _0I}{2\pi }\frac{1}{\sqrt{x^2+y^2}}\left(-sin\theta i+cos\theta j\right)dx\:##
Beginning with the bottom side of the square, one would need to perform the following integral:
For the bottom side, ##y =-a## and ##dl =idx##, so:
$$∫B⋅dl=-sin\theta \frac{\mu _0I}{2\pi }\int _{-a}^a\frac{1}{\sqrt{x^2+\left(-a\right)^2}}dx\:$$
Is this correct so far? If so, I should be able to complete the rest of the question. I just want to know that I haven't made a fundamental mistake in this first step.
I'm working on a question as follows:
I appreciate that there might be more sophisticated ways to do things, but I just want to check that my approach to the line integral is accurate. I will just give my working for the first side of the path.
So I have set up the path as a square in the x-y plane where x goes from -a to a and likewise y goes from -a to a. This leads to determining the line integral around the four sides of the square.
The first step is to give rho and phi-hat in Cartesian coordinates:
##ρ=\sqrt{x^2+y^2}##
##ϕ=−sinθi+cosθj##
This gives:
##B=\frac{\mu _0I}{2\pi }\frac{1}{\sqrt{x^2+y^2}}\left(-sin\theta i+cos\theta j\right)dx\:##
Beginning with the bottom side of the square, one would need to perform the following integral:
For the bottom side, ##y =-a## and ##dl =idx##, so:
$$∫B⋅dl=-sin\theta \frac{\mu _0I}{2\pi }\int _{-a}^a\frac{1}{\sqrt{x^2+\left(-a\right)^2}}dx\:$$
Is this correct so far? If so, I should be able to complete the rest of the question. I just want to know that I haven't made a fundamental mistake in this first step.
Attachments
Last edited: