Online Calculators since 2009
In this Physics tutorial, you will learn:
So far, we have discussed more than once about the interaction between electric current and magnetic field. Such an interaction produces a number of physical quantities such as magnetic force, torque, motor effect (motion), magnetic moment, dipole moment, work, energy and so on.
There are many other quantities and relationships we can find using the similarities between magnetic and electric properties of matter. One of them is Ampere's Law, which is a mathematical statement of the relationship between currents and the magnetic fields they generate. It is thus the magnetic equivalent of Gauss's law, which relates charges to their electric fields. In this tutorial, we will discuss extensively about such a relationship, providing some mathematical background required to understand better the material discussed.
When the graph of a function has a non-complex shape - such as a straight line, parabola, trapezium and so on - the area under the graph is easy to calculate as we use known geometric formulae to find it. Look at a few examples below.
However, for more complex curves we cannot find the area under the graph that easily. In such situations, we divide the area under the graph in very small vertical strips of the same thickness Δx (more strips we have, better is) as shown in the figure below.
Each strip can be considered as a small trapezium of height Δx the bases of which have a difference in length of Δy. If we choose to consider one of the small trapeziums (the i-th trapezium), we obtain for its area based on the known formula:
where < yi > is the average value of function in the i-th interval, we obtain for the area of the i-th trapezium:
When we want to calculate the total area under the graph, we consider all small trapeziums formed when dividing the area according the above way. Thus, we write
Usually we write f(x) instead of y. Thus, we have for the area under the graph.
where < f(x1) >, < f(x2) >, < f(xi) >, < f(xn) >, are the average values of function in the 1st, 2nd, ith and nth trapezium respectively. (We have used the method of dividing the graph in small trapeziums when calculating the instantaneous velocity for example. In that case, we considered the slope of the graph around a given point, which corresponds to the lateral side of the small trapezium considered).
The area under the graph calculated in the above way is not 100% accurate as the graph is often a curve, not a straight line. The accuracy increases when we increase the number of divisions (the number of trapeziums therefore) so that the curve resembles more and more to a straight line (remember the Earth shape; it is curved but for small distances it looks flat). Therefore, the accuracy of the area-under-the-graph calculation would be very high if we increased the number of divisions (of small trapeziums) to infinity. In this case, we don't use anymore the symbol "Δ" to represent the width of interval but the symbol "d" instead, which is a symbol used for infinitely small intervals. Also, we use the symbol "∫" instead of "Σ" to represent the sum of all the individual areas of the small trapeziums. In this case, the average value of function fits more and more its lower and upper value in the given trapezium (trapeziums looks more and more as rectangles). Therefore, the last equation becomes
The above expression is called the integral of the function f(x). Geometrically, it represents the area confined by the graph, the horizontal axis and the two vertical lines drawn from the extremities of the graph to the horizontal axis.
The small horizontal segment "dx" is known as the differential part of the integral. It represents the width of each small vertical strip (interval). In other words, dx represents the height of each small trapezium obtained through the above method.
There is a specific method to find the value of integral for a given function. It is widely discussed in mathematics textbooks, but here we will give a few examples of integrals of some ordinary functions.
where a can be aby number, including 1.
Some of the above integrals are used to describe magnetic properties of matter such as Ampere's law, which we will explain in the next paragraph.
In the tutorial 14.6 "Electric Flux - Gauss Law", we explained that the net outward normal electric flux through any closed surface is proportional to the total electric charge enclosed within that closed surface. For example, the net outward electric flux through a charged sphere is
We can use the integral method to find the same result. Thus, for a small segment dA of the sphere, we have
The total flux through the entire surface A is calculated by taking the integral of the above expression. We have:
As you see, the result obtained is the same for both methods used.
Similarly, we can find the net magnetic field due to any distribution of currents by first considering the differential magnetic field dB⃗. The magnitude of the elementary magnetic field produced by a current-length element idL⃗ at the given point P, which is at a distance r from the given current element, is (the scalar version):
The above formula is known as the Biot-Savart Law. If the current distribution has some symmetry, we can integrate the above expression to obtain a simpler expression for the magnetic field. Thus, after making a few arrangements in the integral, we have
The above expression is known as the Ampere's Law and it is especially useful when considering the current flowing through a closed loop. In such cases, we can write:
By definition, Ampere's Law states that for any closed loop path, the sum of the length elements times the magnetic field in the direction of the length element is equal to the permeability of free space times the electric current enclosed in the loop.
The circle in the symbol of integral shows that it is the integral of a closed path (loop). Geometrically, it represents the area bordered by the graph only, not by the horizontal axis as in normal integrals, as shown in the figure.
Any closed loop as those discussed above is known as Amperian loop. The figure below shows an Amperian loop, which encircles two current carrying wires but excludes a third one. The directions of currents are shown through the known symbols ⊗ and ⨀.
The direction of the currents is important to determine the current signs in the final formula after integration. For this purpose, we use the curled right hand rule in which the four fingers are placed in the direction of integration and the outstretched thumb shows the direction of a positive current. If the current is in the negative direction, it is taken as negative. As for the direction of magnetic field B, regardless its direction, it is generally assumed in the direction of integration for simplicity. This means it is not necessary to know the direction of magnetic field prior to integration.
For example, in the figure above, i1 is positive as it is out of page and i2 is negative (onto the page). Also, we have introduced an angle θ in the figure as the direction of magnetic field B is not exactly the same as that of the loop element dL in the given position. Hence, Ampere's law in vector form becomes
It is obvious that the expression B⃗dL⃗ inside the integral represents the scalar product of an elementary element dL of an Amperian loop and the magnetic field B in that position, which is tangent to the element dL. This means the value of integral represents the sum of all such products around the entire loop.
In our figure, the net current is
Therefore, using Ampere's law for these two currents we obtain:
For example, the value of integral above if i1 = 5A and i2 = 3 A is
Now, let's consider a couple of examples in which we can apply simple integration techniques to find what we are missing.
This situation is similar to the one discussed above. The only difference is that now we are considering a single current-carrying wire instead of two parallel or antiparallel ones. Therefore, the magnetic field B will have a cylindrical symmetry and any Ampere's loop we want to consider will have a circular shape, as shown in the figure.
The current direction in this case is out of page. We enclose the current inside the desired Amperian loop of radius r, which is concentric to the wire's cross section. In this way, the integral (which is in the counter-clockwise direction) takes a simpler form than if the loop had a more complicated shape.
Giving that the magnetic field B⃗ is tangent to the loop, its vector is either parallel or antiparallel to the Amperian loop element dL⃗. For simplicity, it is better to assume them as parallel (θ = 0), so that cos θ = 1. Therefore, we obtain for Ampere's law in this situation:
Considering the last two identities
we obtain the well-known formula of magnetic induction (in scalar form) produced by a long current carrying wire at distance r from the wire, which we have provided in tutorial 16.2:
A magnetic field of magnitude 5mT is measured at a distance of 4cm from a long straight wire as shown in the figure.
r = 4 cm = 4 × 10-2 m
B = 0.5 mT = 5 × 10-4 T
(μ0 = 4π × 10-7 N/A2)
In this case, the radius r of Amperian loop is smaller than the radius R of wire. This means the Amperian loop is taken inside the wire's section.
Like in the previous paragraph, the distribution of magnetic field has a cylindrical symmetry as the current is uniformly distributed throughout the wire (the direction is out of page). Therefore, we use a similar approach as in the calculation of magnetic field outside the wire discussed in the previous paragraph.
Using Ampere's law for this situation, we obtain for r < R:
Since the current distribution is uniform, the current enclosed in the loop is proportional to the area of loop at any point, i.e.
Substituting this value for current in the previous formula obtained after integrating Ampere's law equation, yields
The above formula means the magnetic field is zero at centre of cross section of the wire and it has a maximum value for r = R (on the outer surface of wire). This is another proof that the electric charges (that are responsible for the magnetic field generation) are concentrated on the outer layer of conductor, as we have explained in Section 14.
In tutorial 16.2 we have explained that the magnetic field produced by a solenoid which contains N turns is
If we express this equation in terms of the number of turns per unit length n instead of N/L, we obtain for the magnetic field inside the solenoid
This formula is obtained even when we use Ampere's law approach. For this, we have to consider a rectangular Amperial loop abcd as shown below.
An ideal solenoid has a uniform magnetic field inside (the parallel lines in the figure) and zero outside it. Using the rectangular loop abcda, we write the closed integral ∮BdL as the sum of four integrals (one for each segment). Thus, we have:
The only integral, which has a non-zero value, is the first one. On the other hand, the integral according the path cd is zero because magnetic field outside the solenoid is zero. Also, the integrals according the paths bc and da are both zero as the magnetic field lines are perpendicular to the paths (cos 90° = 0). Therefore, if we denote the length ab = h we obtain
As for the net current Iencl enclosed within the Amperian loop, we have
where 'I' is the current flowing through the entire solenoid.
Combining the general form of Ampere's law
with the above (transformed) form of this law, we obtain
This is the same formula obtained in 16.2 for the magnetic field inside a solenoid but now using Ampere's law.
A toroid is a hollow solenoid that has been curved until its two ends meet, forming a sort of hollow bracelet.
We can determine the magnetic field inside the toroid (inside the bracelet-like shape) using Ampere's law.
From symmetry of toroid it is easy to conclude that the magnetic field lines inside a toroid are concentric circles. We can choose a concentric circle of radius r as an Amperian loop.
When solving the integral of Ampere's Law for toroid
where i is the current in the toroid windings (it is positive for windings included inside the Amperian loop) and N is the total number of turns. Hence, we obtain for the magnetic field inside the toroid:
Unlike in solenoids, the magnetic field B is not constant throughout the cross-section of toroids. In addition, the magnetic field outside a toroid is zero.
The direction of magnetic field in toroid can be determined in the same way as in solenoids, i.e. by using the curled right-hand rule in which we grasp the toroid with our right hand (the four fingers are in the direction of current) and the outstretched thumb shows the direction of magnetic field.
A toroid having 500 turns has an inner diameter d = 3 cm and an outer diameter D = 5 cm. What is the magnetic field at centre of cross section of toroid if the current flowing through it is 20 mA?
The centre of cross-section of toroid is at any midpoint between the inner and outer radius. This position corresponds to the value of r in the formula (as in the figure shown in theory). Thus, we have
Giving that N = 500 = 5 × 102 and iencl = 20 mA = 0.02 A = 2 × 10-2 A, we obtain
We can find the net magnetic field due to any distribution of currents by first considering the differential magnetic field dB⃗. The magnitude of the elementary magnetic field produced by a current-length element idL⃗ at the given point P, which is at a distance r from the given current element, is (the scalar version) according the Biot-Savart Law:
After integration, we obtain
The above expression is known as Ampere's law and it is especially useful when considering the current flowing through a closed loop. In such cases, we can write:
By definition, Ampere's law states that for any closed loop path, the sum of the length elements times the magnetic field in the direction of the length element is equal to the permeability of free space times the electric current enclosed in the loop.
Any closed loop used as a reference to determine the magnetic field through Ampere's law is known as Amperian loop.
The direction of the currents is important to determine their signs in the final formula after integration. For this purpose, we use the curled right hand rule in which the four fingers are in the direction of integration and the outstretched thumb shows the direction of a positive current. If the current is in the negative direction, it is taken as negative. As for the direction of magnetic field B, regardless its direction, it is generally assumed in the direction of integration for simplicity. This means it is not necessary to know the direction of magnetic field prior to integration.
The magnetic field at a distance r from a long straight wire with current (using Ampere's law) is:
As for the magnetic field inside a long stretched wire with current, is
where r is the distance from centre of cross section and R is the radius of cross section of the wire.
Ampere's law is also used to calculate the magnetic field inside solenoids and toroids. Thus, the magnetic field inside a solenoid containing N turns is
where n = N / L is the number of turns per unit length. As for toroids, we have
where N is the number of windings and r is the distance from the given point to the centre of toroid.
1) A 4 mT magnetic field is produced at an Amperian loop taken outside a long straight conductor when current I is flowing through it as shown in the figure (it gives an upper view).
What is the magnitude of current flowing through the wire?
Correct Answer: D
2) A 4 cm thick cable (radius = 2 cm) carries 12A current. What is the magnetic field (magnitude and direction) 6 mm away from the centre of cross-section of the cable? (There is a ⊗ symbol at centre of figure)
Correct Answer: B
3) What is the current flowing through the windings of a toroid containing 1000 turns if the magnetic field inside the toroid 4cm away from its centre is 0.045 T?
Correct Answer: A
We hope you found this Physics tutorial "Ampere's Law" useful. If you thought the guide useful, it would be great if you could spare the time to rate this tutorial and/or share on social media, this helps us identify popular tutorials and calculators and expand our free learning resources to support our users around the world have free access to expand their knowledge of physics and other disciplines. In our next tutorial, we expand your insight and knowledge of Magnetism with ourPhysics tutorial on Faraday's Law of Induction.
You may also find the following Physics calculators useful.