Given a straight cable, which is placed on the z
-Axis. Assuming a constant current I
is flowing from A
to B
, calculate the magnetic field in a point P
. Assume point A
lies at distance a
from the origin on the z
-Axis. Assume point B
lies at distance b
from the origin on the z-Axis. Assume point P
is at distance p
from the origin on the x
-Axis.
Hint: Biot-Savart law dB=4πμ0⋅I⋅r2dl×ur
, where dB
is the magnetic field created by an infinitely small cable of length and orientation dl
in a point which is at distance r
to the infinitely small cable and the unit vector of the direction of the point relative to the cable is ur
. μ0
is the permeability of free space and I
is the current flowing through the cable.
Solution
We can write the points as A=00a
, B=00b
and P=p00.
In order to calculate the magnetic field, we use the Biot-Savart law which states that a infinite small cable segment with a current I
creates an infinitely small magnetic field in the form of dB=4πμ0⋅I⋅r2dl×ur
.
The unit vector ur
points from a point along the cable (any point, the exact point is given by the angle α
) to the point P
, so the ur
will also depend on alpha:
ur=cosα0sinα
We can write the formula of the magnetic field component wise, because it is a vector, then we can perform the crossproduct to get the formula:dB=dBxdBydBz=4πr2μ0⋅I⋅00dl×cosα0−sinα=4πr2μ0⋅I0cosα⋅dl0
It turns out, that the magnetic field will only have a component in the y
direction, the components in z
and x
direction are always zero. Thus we only have to perform the calculation for the y
direction, which is given by dBy=4πr2μ0⋅I⋅cosα⋅dl
We integrate dBy
to get the total magnetic field in the y
axis:
∫dBy=∫ab4πr2μ0⋅I⋅cosα⋅dl
This equation can be rewritten by pulling out all the constant factors (everything that does not depend on the relative position on the cable): By=4πμ0⋅I∫abr2cosαdl.
Since α
and r
depend on l
, we need to express them in terms of l
. By applying the pythagorean theorem, we know that r=l2+d2
. Furthermore we know that sinα=rd=l2+d2d
. So we can write the integral as By=4πμ0⋅I∫abl2+d23ddl.
As this integral is not easily solvable, we try a different approach, we try not to express α
in terms of l
, but the other way round. Using simple trigonometry, we can write l=d⋅tanα
. We take the derivative and get dαdl=cos2αd
. This gives us By=4πμ0⋅I∫abr2cosαdl=4πμ0⋅I∫φaφbr2cosα⋅cos2αddα.
Where φa
and φb
are the limits of integration expressed in therms of the angle α
.
Next we can write r
in terms of α
as r=cosαd
.
By=4πμ0⋅I∫φaφbcosα⋅d2cos2α⋅cos2αddα.
The cosα
and d
terms cancle, which gives us
By=4π⋅dμ0⋅I∫φaφbcosαdα.
Integrating cosα
gives sinα
, so we get
By=4π⋅dμ0⋅I[sinα]φaφb=4π⋅dμ0⋅I(sinφb−sinφa).
Now can calculate the sinφa=a2+p2a
and sinφb=b2+p2b
.
This gives By=4π⋅dμ0⋅I(b2+d2b−a2+d2a).
So the total magnetic field is given by B=4π⋅dμ0⋅I(b2+d2b−a2+d2a)010.