The Biot-Savart law allows us to calculate magnetic field due to steady current through a small element of wire. Since direction of magnetic field due to different current elements of an extended wire carrying current is not unique, we need to add individual magnetic vectors to obtain resultant or net magnetic field at a point. This method of determining the net magnetic field follows superposition principle, which says that magnetic fields due to individual small current element are independent of each other and that the net magnetic field at a point is obtained by vector sum of individual magnetic field vectors :
We calculate magnetic field due to individual current element (I dl) using Biot-Savart law :
where "dl" is referred as “current length element” and "I dl" as “current element”.
In the case of a straight wire, the task of vector addition is simplified to a great extent because direction of magnetic field at a point due to all current elements comprising the straight wire is same.
A straight line and a point constitute an unique plane. This is true for all points in three dimensional rectangular space (x,y,z). For convenience, let us consider that the point of observation (P) lies in xy plane as shown in the figure below. We can say that the straight wire along y-axis also lie in xy plane. Clearly, this plane is the plane of current length element dl and displacement vector r, which appear in the Biot-Savart expression. The direction of magnetic field is vector cross product dlX r, which is clearly perpendicular to the plane xy. This means that the magnetic field is along z-axis. This conclusion is independent of the relative positions of current length elements of the wire with respect to observation point P.
In a nutshell, we conclude that the directions of magnetic fields due to all current elements constituting straight wire at a point P are same. Though, magnitudes of magnetic fields are different as different current elements are located at different linear distance from the point i.e. displacement vectors (r) are different for different current length elements (dl).
| Magnetic field due to current in straight wire |
|---|
![]() |
See in the figure how magnetic fields due to three current elements in positive y-direction are acting in negative z-direction. The magnetic fields due to different current elements are
The magnetic field is along z-axis either in positive or negative z direction depending on the direction of current and whether observation point is on right or left of the current carrying straight wire. By convention, magnetic field vector into the plane of drawing is denoted by a cross (X) and magnetic field vector out of the plane of drawing is denoted by a dot (.). Following this convention, magnetic field depicted on either side of a current carrying straight wire is as shown here :
| Magnetic field due to current in straight wire |
|---|
![]() |
Here
| Magnetic field due to current in straight wire |
|---|
![]() |
The observations as above are the basis of Right hand thumb rule for finding direction of magnetic field due to current in straight wire. If holding straight wire with right hand so that the extended thumb points in the direction of current, then curl of the fingers gives the direction of magnetic field around the straight wire.
| Right hand thumb rule |
|---|
![]() |
Since directions of magnetic fields due to all current elements are same, we can integrate the expression of magnitude as given by Biot-Savart law for the small current element (we have replaced dl by dy in accordance with notation in the figure) :
| Magnetic field due current in finite straight wire |
|---|
![]() |
In order to evaluate this integral in terms of angle φ, we determine đy, r and θ in terms of perpendicular distance “R” (which is a constant for a given point) and angle “φ”. Here,
Substituting in the integral, we have :
Taking out I and R out of the integral as they are constant :
Integrating between angle “
We follow the convention whereby angle is measured from perpendicular line. The angle below perpendicular line is treated negative and angle above perpendicular line is positive. In case, we want to do away with the sign of angle, we put
Note that angles being used with this expression are positive numbers only. Also note that the magnitude of magnetic field depends on where the point of observation P lies with respect to straight wire, which is reflected in the value of angle φ.
We can also express magnetic field due to current in a straight wire at a perpendicular distance “R” in terms of angles between straight wire and line joining point of observation and end points.
| Magnetic field due to current in wire |
|---|
![]() |
In this case, angles on either side of the bisector are equal :
| Magnetic field at a point on perpendicular bisector |
|---|
![]() |
Magnetic field at a point on perpendicular bisector is :
Let “L” be the length of wire. Then,
Putting in the equation of magnetic field,
Problem : A square loop of side “L” carries a current “I”. Determine the magnetic field at the center of loop.
Solution : The magnetic field due to each side of the square here is same as Magnetic field due to current in straight wire at a distance L/2 on the perpendicular bisector. The magnetic fields due to current in the four sides are in the same direction. Hence, magnitude of magnetic field due to current in loop is four times the magnetic field due to current in one side :
Here, R = L/2
| Magnetic field at the center of square loop |
|---|
![]() |
In this case, the angles involved are :
| Magnetic field due current in finite straight wire |
|---|
![]() |
and
We can also get the expression for magnetic field in terms of length of wire. Here,
Putting in the expression of magnetic field, we have :
In case, R = L, then,
Problem : A current 10 ampere flows through the wire having configuration as shown in the figure. Determine magnetic field at P.
| Magnetic field due to current in the arrangment |
|---|
![]() |
Solution : We shall determine magnetic field to different straight segments of wires. Let us consider the out of plane orientation as positive. Now, for wire segment AC, the point P is at the end of straight wire of length 4 m and is at a perpendicular linear distance of 4 m. The magnetic field at P due to segment AC is perpendicular and out of the plane of drawing. The magnetic field due to segment AC is :
For the wire segment CD, the point P lies on the extended line passing through the wire. The magnetic field due to this segment, therefore, is zero.
For the wire segment DE, the angles between the line segment and line joining the point P with end points are known by geometry of the figure. Hence, Magnetic field due to this segment is :
For the wire segment EF, the point P lies on the extended line passing through the wire. The magnetic field due to this segment, therefore, is zero.
For the wire segment GA, the point P is at the end of straight wire of length 4 m and is at a perpendicular linear distance of 4 m. The magnetic field at P due to segment GA is perpendicular and out of the plane of drawing. The magnetic field is :
The net magnetic field at P is :
The net magnetic field is into the plane of drawing.
The expression for the magnitude of magnetic field due to infinite wire can be obtained by suitably putting appropriate values of angles in the expression of magnetic field due to finite wire. Here,
and
The important point to note here is that magnetic field is independent of the relative angular position of point of observation with respect to infinite wire. Magnetic field, however, depends on the perpendicular distance from the wire.
In reality, however, we always work with finite wire or at the most with long wire. A finite length wire is approximated as infinite or long wire for at least for close points around the wire.
The wire here extends from an identified position to infinity in only one direction. In this case, the angles involved are :
and
Problem : Calculate magnetic field at point P due to current 5 A flowing through a long wire bent at right angle as shown in the figure. The point P lies at a linear distance 1 m from the corner.
| Magnetic field due to current in wire |
|---|
![]() |
The point P lies on the extension of wire segment in x-direction. Here angle between current element and displacement vectors is zero i.e. θ =0 and sinθ . As such this segment does not produce any magnetic field at point P. On the other hand, the point P lies near one of the end of the segment of wire in y-direction. The wire being long, the magnetic field due to wire segment in y-direction is :
Putting values,
Applying Right hand thumb rule, the magnetic field at P is perpendicular to xy plane and into the plane of drawing (i.e. negative z-direction).
Two long straight wires at A and C, perpendicular to the plane of drawing, carry currents such that point D is a null point. The wires are placed at a linear distance of 10 m. If the current in the wire at A is 10 A and its direction is out of the plane of drawing, then find (i) the direction of current and (ii) magnitude of current in the second wire.
| Two straight wires carrying current |
|---|
![]() |
In order to nullify the magnetic field at D due to current in wire at A, the direction of magnetic field due to current in the wire at C should be equal and opposite. This means that the current in the wire at C should be opposite that of wire at A. Hence, the direction of current in the wire at C should be into the plane of drawing. Now, the magnitudes of magnetic fields due to currents are equal. Let the current in second wire be I, then:
| Two straight wires carrying current |
|---|
![]() |
Calculate magnetic field at the center due to current flowing in clockwise direction through a wire in the shape of regular hexagon. The arm of hexagon measures 0.2 m and current through the wire is 10 A.
Applying right hand rule for vector cross product, we realize that magnetic field due to each arm of the hexagon for given current direction (clockwise) is into the plane of hexagon. As such, we can algebraically add magnetic field due to each arm to obtain net magnetic field.
where
| Magnetic field at the center due current |
|---|
![]() |
and
Putting values, we have :
A current 10√2 ampere flows through the wire having configuration as shown in the figure. Determine magnetic field at P.
| Magnetic field due to current in wire |
|---|
![]() |
We shall determine magnetic field to different straight segments of wires. Let us consider the out of plane orientation as positive. Now, for wire segment AC, the point P is at the end of straight wire of length 4 m and is at a perpendicular linear distance of 4 m. The magnetic field at P due to segment AC is perpendicular and out of the plane of drawing. The magnetic field due to segment AC is :
For the wire segment CD, the point P lies on the extended line passing through the wire. The magnetic field due to this segment, therefore, is zero.
For the wire segment DE, the point P is at the end of straight wire of length 2 m and is at a perpendicular linear distance of 2 m. The magnetic field at P due to segment DE is perpendicular and into the plane of drawing. The magnetic field is :
For the wire segment EF, the point P is at the end of straight wire of length 2 m and is at a perpendicular linear distance of 2 m. The magnetic field at P due to segment DE is perpendicular and into the plane of drawing. The magnetic field is :
For the wire segment FG, the point P lies on the extended line passing through the wire. The magnetic field due to this segment, therefore, is zero.
For the wire segment GA, the point P is at the end of straight wire of length 4 m and is at a perpendicular linear distance of 4 m. The magnetic field at P due to segment GA is perpendicular and out of the plane of drawing. The magnetic field is :
The net magnetic field at P is :
The net magnetic field is into the plane of drawing.