If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Field due to straight wire carrying current (inside)

Let's find the expression for the magnetic field inside a straight long wire carrying current. Since the magnetic field is symmetric around the conductor, we can use Ampere's circuital law. Created by Mahesh Shenoy.

Want to join the conversation?

Video transcript

we have a long but thick wire of radius r carrying a current i and our goal in this video is to find the magnetic field inside the wire now in a previous video we already did this but we calculated for outside the wire and we did that by using ampere's circular law and when we simplified we found the expression for the magnetic field outside to be this minus i by 2 pi r and for details you can go back and check our previous video but i want to give you a very quick refresher of how we did it we went to some point at a distance r outside the wire and we we realized that the magnetic field is in circles and the magnetic field value is the same everywhere along that circle its magnitude and so because we chose an amperior loop which is also a circle of radius r and because of that over the entire loop b and d l are in the same direction and and b has the same value and so when we simplified b dot dl we just got bdl and since b is a constant over the entire loop its magnitude is a constant we we pull the b outside the integral and the integral of dl is just adding up all the deals around along that circle giving us circumference which is 2 pi r and according to the law that equals mu naught times the enclosed current and to find the enclosed current we attached a surface and found that the entire current i is being enclosed and so we get this to be b times 2 pi r equals mu naught into i and if we rearrange we get this expression but again a full detailed version can be found in our previous video but now we need to figure out what the magnetic field is inside the wire so let me get rid of this so this time let's consider a point inside the wire and again let's say that the distance from here to that point some point inside is r how do i find the magnetic field over here well we can start similar to what we did over here we look at what the magnetic field looks like and just like outside even inside it should be in circles like y would be any different symmetry right so the magnetic field inside will also be in circles so the magnetic field over there would also be a circle so let's try and draw that here it goes and according to our right hand thumb rule it's going to be this way and just like before the magnetic field everywhere is a constant and it's tangential to the circle which means the amperion loop that we're going to choose just like before should also be a circle so here it goes here is our amperior loop which is also a circle will also travel in the same direction and if we now calculate what b dot dl in that closed loop is what do you think we'll get now can you pause the video and think about this all right since b and d l are in the same direction and b is a constant everywhere b dot dl becomes bdl and b can be pulled out integral of dl gives you 2 pi r exactly the same thing as you got before absolutely no difference i mean why would there be difference the geometry is exactly the same so the left hand saddle directly right now is going to be b times 2 pi r 2 pi into r no difference whatsoever so maybe we get the same answer let's see let's see what will be the right hand side well right hand side is mu naught times i enclosed and again what is i enclosed you have to attach a surface dip this imagine dipping it into a soap solution this loop there will be a film that gets attached let's attach that here we go and now the current that is penetrating through that surface that becomes your iron closed the question is what is that value is that the entire current i is that is i the i enclosed not really because think about it current i is the total current passing through this entire area let me show you what i mean if i consider this entire area of radius r then the total current that is passing through that entire area that is i but our area is less than that right small r is less than that so what we want to calculate i enclosed is the total current penetrating that area and the question is how much is that clearly it has to be less than i right but how much and how do we figure that out hmm well one assumption that we can do and let me write that down over here we can assume that current is uniformly distributed over the entire area so let me write that we can assume uniform current distribution so we're assuming that per square meter or per centimeter square whatever you want the current will remain exactly the same so uniform distribution so given that we are dealing with uniform distribution given you know that in this area the current is i can you pause the video and think about how much will be the current through this much area can you pause and try okay now i never used to understand how to do it when there were variables but i felt my brain worked when there were numbers easy numbers so what i would just do is i would just take some random numbers so let's say the current is i don't know 50 amperes some nice numbers let's say this area is i don't know maybe 10 meter square and let's say this area which is a little bit less i don't know maybe it's three meters square and our goal now is to find out how much current is passing over here i know it's less than 50 amps but how much so how would i do this ha now i know see the first thing i'll do is calculate how much amperes i'm getting per meter square so to do that i will just divide the two so 50 divide by 10 and so i know immediately ah i'm getting 5 amperes for every meter square for 3 meter square i just multiply by 3. and that will give me 15 15 amperes and that's the answer 15 amperes now the answer is not important i just look at this calculation and now i think about how did i do this so i took the total current and divided by the total area that gives me the current per area and then i multiplied it by the area that is needed that is this area so if you didn't if you didn't get this before can you now try and figure out what that current is going to be all right so let's do that so this current is going to be total current i divided by this area that area is not r r is the radius what is the area it's pi r squared pi r squared let's write that pi r squared so this m this gives me the current uh amperes per meter square and now if i want in this much area i multiplied by this much area so that is pi small r squared so i get pi small r squared and so notice pi cancels and there we go now if i rearrange i'll get my expression so the magnetic field inside turns out to be let me write this mu naught i r square one r cancels as well okay so yeah you just get 1r divided by 2 pi r squared so now let's digest this formula what is this formula telling us well it's saying that the magnetic field is proportional to the current more current more magnetic field very similar over outside as well so that makes a lot of sense but something interesting that you see now is that the smaller is in the numerator meaning as we go further and farther away from the center the magnetic field actually increases notice in the denominator there is a capital r square and capital r is a constant it's a thickness of the wire that does not change so as i go farther and farther away magnetic field starts increasing why is that happening because outside the magnetic field starts decreasing why why is that well think about it as i go farther and farther away clearly the length of the loop starts increasing as you can see over here 2 pi r starts increasing but it will start the loop will start enclosing more and more current so your current will also start increasing the enclosed current also starts increasing and notice the enclosed current depends on r square so that increases faster and therefore it all nicely works out that you'll finally see that the magnetic field starts increasing as you go farther and farther and farther away so they go from center center magnetic field would be zero because r is zero so you start with zero as you go farther and farther away magnetic field starts increasing linearly because b is proportional to r so if you draw a graph it will be a straight line please draw a graph okay we will draw a graph okay so it'll be a straight line anyways linear starts increasing increasing increasing increasing increasing increasing and then we'll reach a maximum and then if i go outside now i use this formula i use this expression and now you will see the magnetic field starts decreasing you may ask why why is it that magnetic field decreases as i go further away because once you come outside now as you go farther away the length of the loop increases but now the total current enclosed is the same i so this does not increase at all and therefore now as you go further away the magnetic field drops off as one over r that's the story and so the last thing i would encourage you to do is write this entire story in a graph so let's do that let me do that somewhere over here let me make some space all right so if you were to draw a graph of magnetic field b versus the distance r can you pause and think about what would that graph look like all right as long as we are inside the conductor we will get a linear graph be proportional to r so we get a straight line and keep increasing until then until we are inside but how do i represent that in the graph well until the r value is equal to capital r because once r becomes more than capital r i come outside so this will be true until r value equals capital r so r equals capital r now once i go once r value increases more than that now i'm outside and now i have to use this formula and this is b going decreases as 1 over r is no longer linear you will get a decrease like this finally if you are really really curious you may ask mahesh what about when we are at r equals r on the surface we know it's a maximum but which formula do i use do i use the formula for inside or do i use the formula for the outside i'll say you can use any one of them in fact both of them should give us the same answer and you can check that if i use a capital r the capital r capital r cancels and i get mu naught i by 2 pi r if i substitute r over here you get the same answer minus i by 2 pi r so on the surface you get mu naught i by 2 pi capital r and that my dear friends is the story of magnetic field due to long thick conductor carrying currents