The Elegant Dance of Vectors
Magnetic Field of a Long Straight Wire
Imagine you are standing on the xy-plane, looking straight down into the abyss of the z-axis. A long, infinitely straight wire is piercing right through the origin, carrying a steady current I away from you, deep into the negative z-direction. Our mission? To find the exact mathematical expression for the magnetic field vector B at any arbitrary point P(x,y) on the plane you are standing on.
This is a classic problem that tests not just your knowledge of Ampere's Law, but your ability to translate physical intuition into rigorous vector mathematics. Let's break it down step-by-step.
Visualizing the Setup and Ampere's Law
First, let's establish the magnitude of the magnetic field. According to Ampere's Law, the magnetic field produced by a long straight wire at a perpendicular distance r is given by:
If our point P has coordinates (x,y), the distance r from the origin is simply the magnitude of the position vector r=xi^+yj^. Using the Pythagorean theorem, we know:
The Right-Hand Grip Rule
Now comes the crucial part: the direction. Physics isn't just about magnitudes; it's about spatial reality. Point your right thumb in the direction of the current—which is into the screen (−z direction). Notice how your fingers curl? They curl in a clockwise direction.
This tells us that the magnetic field lines are concentric circles centered at the origin, flowing clockwise. Therefore, at point P, the magnetic field vector B must be perfectly tangent to this circle. In vector terms, B is perpendicular to the position vector r.
Resolving the Vector
Let the position vector r make an angle θ with the positive x-axis. From basic trigonometry:
Since B is perpendicular to r and points clockwise, it will point downwards and to the right (if P is in the first quadrant). By analyzing the geometry, the angle B makes with the negative y-axis is exactly θ. Resolving B into its Cartesian components gives us:
Notice the negative sign! The y-component points downwards, which is a common trap where many students make a silly mistake.
The Final Synthesis
Now, we simply substitute our expressions for B, sinθ, and cosθ into the vector equation:
B=(2πrμ0I)(ry)i^−(2πrμ0I)(rx)j^
Factoring out the common terms, we get:
Finally, substituting r2=x2+y2, we arrive at our elegant final answer:
B=2π(x2+y2)μ0I(yi^−xj^)
Pro-Tip
The Ninja Technique (Cross Product)
If you want to bypass the trigonometry entirely and solve this like a true physicist, use the cross product! The direction of the magnetic field is given by the cross product of the current direction vector and the position vector: u^B=u^I×u^r.
Here, the current is along −k^. So:
u^B=(−k^)×(rxi^+yj^)=r−x(k^×i^)−y(k^×j^)
Since k^×i^=j^ and k^×j^=−i^, we get:
u^B=r−xj^+yi^=ryi^−xj^
Multiply this unit vector by the magnitude B=2πrμ0I, and you instantly get the same result. Beautiful, isn't it?