 Say we have two long infinitely long imagined current carrying wires Separate by some distance D. Then we know that these wires are going to generate their own magnetic fields The magnetic fields will of course be everywhere, but here's the thing current carrying wires inside a magnetic field Experience a force so this wire second wire will experience a force due to the magnetic field generated by the first wire And similarly this wire will experience a force due to the magnetic field generated by this wire Which means these two wires are going to sort of pull or push on each other and in this video We're gonna figure out exactly how much that force is in magnitude and direction. Yay fun stuff so let's start by Considering on one of the wires. Let's figure out the force on the second wire. Let me get rid of the magnetic fields All right, how do I calculate the force on the second wire? Well, since we are calculating force on a current carrying wire due to the magnetic field This is the Lorentz force and we've talked about this before So this force would be in terms of current. It'll be I times L cross B and If you don't know where this is coming from Well, we've talked a lot about this in our previous videos on Force on a current carrying wire inside magnetic field. So feel free to go back and check that out So this is basically coming from the Lorentz force q times v cross B All right now before we continue There are two currents There are two wires and there are two magnetic fields. So can you pause and think about? Which this which is this I1 or I2 L1 or L2 and B1 or B2 can you pause and try that could be confusing? So pause and think clearly about this All right Remember we're calculating force on the second wire, which means the current should be of the second wire What about the length since you're talking about the second wire? This should be the length of the second wire We might say hey, why she just said it's an infinitely long wire So if this is infinity force also becomes infinity. What's going on? Well, of course if you have an infinitely long wire Then if you add up all the forces you will get infinite force, right? Each piece is experiencing some force you add them all up you get infinity So what we can do is instead of substituting infinity. Let's keep it as L2 itself Meaning let's calculate the force on some length of this wire not the entire wire Let's say we're only calculating this much. This is our L2 Okay, so we're only calculating force on this much length of the wire. Let's see what to do about that a little bit later Okay, what about the magnetic field? Is this B1 or B2? Might seem like B2 because everyone everything is 2 but remember this is experiencing a force due to the magnetic field generated by the first wire Let me bring back the magnetic fields remember see this is experiencing a force due to the magnetic field generated by this wire So this is B1, so let me write that so this should be B1 Okay, now let's figure out the direction of the force. What are we the direction? Well, it's in the direction of L2 cross B1 and we know how to calculate direction of the cross product We can use our right hand for that. So L2 direction is upwards and B1 direction is What's the direction of B1? Well B1 is the magnetic field created by I1 this current and how do I get that direction? Oh, I again use my right hand rule. Oh, this is this is so much fun Okay, so first we can use our right hand rule to figure out what the magnetic field direction is at this point Due to this current then we can again use our right hand to figure out what the cross product direction comes out to be So again, can you pause the video and see what you end up with? Okay, so first let's figure out the direction of the magnetic field B1 I use my right hand thumb rule thumb points in the direction of the current and the encircling fingers gives me the direction of the magnetic field and So notice the magnetic field is sort of like coming out of the screen and then goes into the screen So everywhere to the right it'll come out of the screen and go into the screen and the same thing will happen over here So magnetic field is into the screen. This is our B1 Okay Now let's do the cross product L2 is upwards B1 is inwards if you didn't try this before maybe now you can try Okay, let's do this. So let me redraw that So in three dimensions L2 is upwards B1 is into the board I can again use my right hand and I arrange my right hand such that my palm starts with L2 and then I can cross towards B1 and This is what it looks like here goes start with L2 and then move towards B1. See And now thumb gives me the direction of the force So my force will be to the left. That means this wire is being pulled to the left This is the direction of the force. Let's get rid of the hands now Now let's figure out its magnitude. So if I look at just the magnitude F2 that's going to be I2 Times what's the magnitude of L cross B? It's going to be L B L B sign theta where theta is the angle between these two. So what is what is the angle? Well, this is upwards L2 is upwards B is inwards. So the angle is 90 degrees again Here's my awesome drawing In three dimensions as you can see that's 90 degrees, right? So sign 90 is one. Yay. No science sign 90 is one Okay, so I know what I do is I know L2 is I've taken some random length, but it's okay But what is magnetic field B1? Hmm, do I know that can I calculate that? Well, yeah, because magnetic field B1 is generated by I1 And this is a long current and hey in previous videos We figured out the formula for magnetic field due to long straight wire carrying current So we can plug that in and we'll get our answer So again, feel free to pause at any moment if you feel that you want to try this on your own so let me go ahead and Substitute that so F2 is going to be I2 times L2 times. What was that B1? We got that from Ampere's circuit of law if you remember so that would be mu 0 times I by 2 pi R That's what we got if you remember Now what is I over here? Well, this is the current that's generating the magnetic field. That's I1 And what is R? R is a distance. Is that given to us? Yeah, that's D. So this is D So if you put it all together the force F2 is going to be I'm gonna put mu 0 first. That's our constant. So I1 times I2 times L2 divided by 2 pi D Now if I want to calculate that force, I know the value of mu 0 I want an I2 if I know the values I can plug in D is something that is known to me I can plug that in but L2 is I don't know what that I'll do. What do I do with L2? I'll think about it if L2 is larger the force will be more of course, right? If you take a longer section of the wire when you add up all those forces you end up with more total force So how do I represent this? I don't want L2. So you know what we like to do? We divide by L2 on both sides. So let's get rid of that L2 from this side And the L2 would come over here and we can just represent it this way and we could say hey This is the expression for not force but force per unit length Think of it as an SI unit every meter of wire if I put L2 is equal to 1 then every meter of wire Will experience this much force. So this is the expression we like to represent it in terms of force per unit length Now here's my question What would be the direction and the magnitude of the force acting on the first wire? Well, we can redo the whole thing and I encourage you to try redoing it yourself But there's a shortcut we can use Newton's third law if this wire is pulling this wire This wire must also pull this wire So immediately we can say that the two forces must be equal and opposite so the force acting on this should be in this direction and The force acting is equal and opposite So if I take one meter of this wire and experiences a force of I don't know hundred Newton's if this is hundred For one meter then even this one meter should experience exactly the same hundred Newton's of force, right? And therefore immediately just by using Newton's second law as Newton's third law I can say this should be the same for f1 over L1 So in general we can say if you have two long wires carrying current You know of at some distance then the force per length on any of those wires would be so much Newton's per meters, right? This is the unit will be now Newton's per meters Here's a question for you in this case we found when both currents are going upwards they attract each other Right with this force per unit length What if we change the direction of the currents? What if they're both going downwards or what if one was going up and one was going down? oof interesting cases, so I have Three other cases. What if both are going down? What if one goes down one goes up? What is another one? This one goes up and this one goes down in each case Can you pause and think about what will be the direction of the forces? All right, there are multiple ways to answer this question What I like to do is just think about what happens to the signs of these If both the currents are flipped the magnetic field flips So there'll be a negative sign over here think of it that way But L2 will also flip because current is also going down this current I2 is also doing downwards So this will also flip so minus into minus nothing happens So they compensate so force direction remains the same in this case. They will keep pull so they'll pull each other Same What about this case in this case magnetic field becomes negative in the sense an opposite of this direction But L2 stays the same so I'll get a net negative meaning now the force will be in the opposite direction So this will experience a force outwards and if this is pushing this this will also push this Newton's third law And so the same thing will happen over here. They'll push each other So what's interesting is that when the current is in the same direction The wires attract each other with this much force per unit length And then they are the currents are in the opposite direction. They repel each other which this much force per unit length Finally before winding up Ampere did a lot of work is we was one of the pioneers of figuring out this force law And what was so important was that using this we were able to define What one ampere was the SI unit of current was defined using this and if you are wondering What does that even mean? We'll talk about that in future videos