






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Let's begin by recapping what we saw in the last lecture. We looked at the differences between real and ideal energy sources. We saw that ideal energy sources always provide the current or voltage that they state whereas real energy sources in the real world can't possibly do that. We looked at how we can model real energy sources. So we saw that a real voltage source comprises of an ideal voltage source plus a series resistor. And we saw that a real current source comprises of an ideal current source plus a parallel resistor. And we also looked at how we can transform between a voltage to current source or a current to voltage source. In this lecture, we're going to introduce a technique called loop analysis. And this is really using Kirchhoff Voltage Law to solve circuits. And we're going to introduce a technique called Nodal Analysis. This is using Kirchhoff Voltage Law to solve circuits.
It's absolutely vital that you can do the two things noted on this slide. So the first one is simplifying algebraic fractions. So what I mean by that is taking an algebraic fraction. So this is an equation in sort of fraction form. And it's got several unknowns, V1 and V2. And we need to be able to transform that into an equation that looks like this. So the two unknowns, V1 + V2, equals some constant value. So if you don't know how to go from an algebraic fraction like this to an expression like this, then it's absolutely imperative that you check out this page: do the examples, read the text, and learn how to do that before you continue with the rest of the slides. Because it just won't make any sense to you if you can't do that. The second thing noted on this slide is simultaneous equations. So here we have an equation that's got two unknowns, V2 and V3. On its own in isolation, it's impossible to solve. There's nothing we could do to find what V2 and V3 are just by looking at this one equation. Whereas if we use a second equation, we can solve them simultaneously to get the answers V2 and V3. So if you don't know how to solve simultaneous equations, so going from those two equations to those two answers, then you will need to check out this online resource. And it's a really nice explanation of how to solve simultaneous equations. So it's absolutely imperative that you can do that before you continue with the rest of this video.
So how do we solve complicated circuits? Well, we really need a systematic method. A clear procedure that will always work. We can't always rely on being able to simplify the circuit. For example, we can't always rely on being able to do source transformations or combining resistors to make a circuit simpler for us to solve. So we need some systematic methods. And really, Loop Analysis and Nodal Analysis are going to be two of those systematic methods. So we'll highlight this with an example. So here we've got a circuit and we're going to apply Loop
Analysis. So as the name implies, Loop Analysis, we're going to be looking at loops in the circuit. So we can see in this particular example, there are two loops in this circuit. Sometimes there may only be one loop. Sometimes there might be 50 loops. It doesn't really matter how many loops but we're systematically going to go around each loop and apply Kirchhoff Voltage Law. So before I begin talking about this example, I just want to highlight the currents at this node. So this causes confusion every year. So here around this loop, we've got a current, we've labeled it I1. Around this loop, we've got a current, we've labeled I2. Down this branch off through this 5Ω resistor, there's a current and we've labeled it I1 - I2. And there's always some confusion where that came from. Let's just label it I3 for a moment. And let's apply Kirchhoff Current Law at this node. So Kirchhoff Current Law tells us whatever flows in must flow out. So flowing into this node is I1, and that must be equal what flows out I2 + I3. So if we rearrange this expression, we get I3 = I1 - I2. So instead of writing I3, I've just written it as I1 and I2. Because as it says here, we're using Kirchhoff Voltage Law to find currents. And I guess, maybe you can see that we've got two loops. So we're going to get two equations involving I and I2. And then we can solve them simultaneously. If we left I3 in there, we end up with three variables and only two equations. So we wouldn't be able to solve them. So by applying Kirchhoff Current Law there, I've been able to write that current flowing through this resistor is I1 - I2. Okay. So let's continue with our Loop Analysis. So firstly, I'm going to look at the first loop. And as I said in the Kirchhoff Voltage Law lecture, it doesn't matter what direction we go around the loop. And it doesn't really matter where we start, we're always going to get the same equations. So you can actually guess the direction and it doesn't matter if you've got the wrong direction, you'll just get a negative answer in the end.
Looking at loop one, I'm going to begin at this point. And I'm going to move around this loop in a clockwise fashion. So when I do that, the first time I come to is minus side of this source, it's going to be -5V. This is going to be a Kirchhoff Voltage Law expression. So all the terms in it are going to be voltages. The next point I come to, is going to be the positive side of this 15Ω resistor. We don't know what the voltage across it is. So I'm just going to write is V_15Ω. Continuing around this loop, I come to the more positive side of this 5Ω resistor. Again, I don't know what the voltage is. So I've written it as plus V_5Ω. And Kirchhoff tells us when we complete this loop, all those voltages must equal zero. So here we have an expression that just contains voltages. And now I'm going to use Ohm's Law to convert each voltage into a current times resistance. So Ohm’s Law says V = I x R. So this resistor here has got I1 flowing through it. So we can say, 15Ω x I1 is equal to the voltage. The resistor here, the 5Ω resistor, it's got 5Ω
that by using Ohm’s Law: 5Ω x (I1 - I2). So that's what I've done here. We could also find it by using V = 5 (so 5V) minus the voltage across this resistor (V_15Ω). So that would be given by 15Ω x 0.19A, which gives us the same 2.22V. Or we could use this voltage drop across this resistor and say 10V - 30 x 0.26. So lots of different ways to get the same answer there. So Loop Analysis is really useful, especially when it for big circuits, when we've got lots of loops. However, often we can find a simpler approach.
On the previous slide, we saw, we could solve a circuit or find the voltage at this point, using Loop Analysis. However, this is a relatively straightforward circuit and loop analysis, it's almost too much. It's overkill to solve this particular circuit. Because if we look at the circuit, we can see that we could solve this much easier using source transformations. So here, we can recognize we've got an ideal voltage source and a series resistor that can be transformed into a real current source. Here, we've again got a real voltage source. So we've got a 10V ideal source with a series 30Ω resistor. So we can convert that into a current source. So to do that conversion, if you remember, we take the voltage, we divide it by the resistance, that gives us our current, and we can move the resistor into that parallel position. And this one, we're going to do 10V divided by 30Ω, which gives us 1/3A, and we move the resistor around into the parallel position. Now, we need to be a little bit careful now. So we can see here, we've got three resistors all in parallel. And there's a real temptation to combine them all together. But if we do that, we lose the current flowing through the 5Ω resistor. You know, this would just be some value less than five. And we would calculate a current but it wouldn't be the current flowing through the 5Ω resistor, which is what we're actually interested in. So we just combine the 15Ω and the 30Ω resistors. So that makes a single 10Ω resistor and we leave 5Ω untouched. And now we can just use our current divider, recognizing that these two current sources are actually series adding. So they can be added together. So now our task is to calculate how much current flows through the 5Ω resistor. And when we do that, we can calculate the voltage across it. And that gives us 2.2V, which is exactly the same answers we've got using Loop Analysis, of course. So that's a slightly quicker and easier way. But you've got to note that it might not always be possible to do a source transformation. So we still need to know how to use Loop Analysis.
So I'd like you to pause the video now and have a go at solving this circuit. It's exactly the same steps as we used in the previous example apart from the numbers are a little different. So pause the video now.
Let's solve this loop analysis question now. We'll begin by drawing the circuit in our note paper. Okay. So now we're ready to start solving this circuit. What we need to do is put a current direction on here. We guess, it's going in that way. And we'll apply Kirchhoff Current Law to write this current in terms of I1 and I2. So we already saw that in the example in class. This is equal to I1 - I2. So that current is flowing through this 10Ω resistor. Now, let's begin our loop analysis procedure. So we're going to look at loop number one in this circuit. Label it loop one. And we'll just start here. It doesn't really matter. The first thing we come to is the negative side of this 20V source. So I can write -20. Then because current is flowing around in this direction, this is the positive side of the 40Ω resistor but we don't know what the voltage is. So we'll just write V_40Ω. Coming further around the loop, the next thing we come to is the more positive side of the 10Ω resistor. We don't know what the voltage is. So we're going to write V_10Ω. And Kirchhoff tells us that must equal zero. So that was loop one. Let's write loop number two down now. So we'll move again around this loop in a clockwise fashion. And the first thing we come to is the negative side of a 10Ω resistor. So I'm going to write - V_10Ω. The next term is going to be the positive side because the current flows into that side of the 20Ω resistor. So V_20Ω. And the final thing that comes with the positive side of that 5V source. Kirchhoff tells us that equals zero. So really, the circuit here is almost done. We just need to convert these voltages into current times resistances. So looking at loop one, we can write -20 (that's already a natural number) plus the current flowing through this resistor (the 40Ω resistor) times 40Ω. So that's going to be 40 x I1. The next resistor we come to is this V_10Ω. So that's going to be plus 10Ω x (I1 - I2) and that equals zero. So it's the same equation.
L_2. Let's do the exactly same process. So we've got a minus (it's a 10Ω resistor. So we know we've got) 10Ω x (I1 - I2). Then we've got +20 x I2 + 5 and that equals zero. So now we've got to untied these equations look a little bit. So what I'm going to do now for loop one or the loop one equation, I'm going to move 20 to the side of equals. So that becomes... Then I've got 40 + 10 x I1. So that's going to be 50 x I1. So 50 x I1 - 10 x I2 = 20. So that's no different. That's loop one equation. Let's do the same thing for loop number two. So I'll move +5 to this side of the equal. So it's going to become -5. And then multiply this bracket out. So it becomes -10 x I1. So - 10 x I1. And then we've got -10 x -I2. So that can become +10 x I2 + 20 x I2. So that'll be +30 x I2. So that's the loop two equation. Now we can see, we've got two unknowns and two equations. So we can solve these simultaneously. And what I'll do is I'll times loop one equation by 3. So then when I add the two expressions together, the I2 will cancel out. So let's
current flowing out. So here we've got I1 flowing in and that must equal I2 + 13. So we've written down our Kirchhoff Current Law equation for that node. And now what I'm going to do is use Ohm's Law to convert these currents into voltages divided by resistances. So as you know, I = V/R. So if we wanted to write I1 as a voltage divided by resistance, what we could do is take the voltage difference across this resistor (so the voltage here compared to the voltage there) and divide by the resistance. And that would give us the current I1. So that's exactly what I've done here. I've taken the voltage at the more positive side of the resistor. And that's absolutely crucial. We know that's the more positive side because that's the side the current flows in. So we've said current is basically flowing upwards in this diagram. So this is the more positive side. So we're going to say 5 (because that's the voltage here) -V. We don't know the voltage of this side. So we've labeled it as an unknown V/15Ω. Let's now look at the 30Ω resistor, this one here. And you can see the current is flowing downwards through it. So this, according to our diagram, is the more positive side. So in our equation, we're going to start now with the unknown term V. Because that's the voltage at this side V minus the voltage at the other side of it. So we know this side, we've got 10V. So if we measured between these two points, we'd see (V - 10V)/30Ω gives us the current I2. And again, if we're looking at I3 this time, we know the voltage at the more positive side. Because our current is flowing in this direction. So this is the more positive side of the resistor according to the golden rule of resistors. So we're going to say V minus the voltage at the other side (which in this case is zero) divided by 5. We don't need to write the zero. Hence here, I've just put V/5. So now our Kirchhoff Current Law expression - we'll call this the nodal equation - is equal to (5 - V)/15 = (V - 10)/30 + V/5. So if you look at this equation, we've only got one unknown V, which means we can solve the equation. So I'm going to simplify that algebraic fraction by multiplying everything by 30. And then I'm going to group like terms together and solve. And when we do that, we find V = 2.22V. So if you know, this is the same circuit as before, but we didn't have to use a simultaneous equation. So actually using Nodal Analysis to solve a circuit rather than Loop Analysis has actually saved quite a lot of time. It's probably still not as quick as doing source transformations though.
Let's have a look at another circuit now. And this is a perfect example of what I was saying on the previous slide. So it wouldn't be a good choice for Loop Analysis. Because there are one, two, three loops in this circuit. So you would end up with three loop equations. And you'd have to do a lot of math to find the answer but it still would work. Whereas if we think about Nodal Analysis, the question actually asked to find the current through the 12k resistor. So if we look
at the 12k resistor to calculate the current, we need to know the voltage at this point and this point. We take the difference in those two voltages, divide by 12k, and we'll get the current. So in terms of Nodal Analysis, we've got two nodes where we don't know the voltage. So that's going to give us two nodal equations and a lot less math to do compared to Loop Analysis. So let's begin by looking at these current directions flowing in and out of this node. So we can say, Kirchhoff Current Law tells us the current through the 12k resistor most equal these two currents flowing out, which is 4mA and the current through the 2k resistor. So we can write that down as I = V/R. So in this case (for the 12k resistor), we're going to do the voltage at node two (because this is the mark positive side) minus the voltage at node one divided by 12k. That's all that flows into node one. What flows out of node one is 4mA. So this is already, you know, a whole number of constant. So we don't need to do any manipulation. That just goes down as 4mA plus the current through the 2k resistor, which we get by taking the voltage at the positive side (which is here) which is going to be V1, subtracting the voltage at the other side (this will be our reference wire). So everything connected to this way will be at 0V. So it's just going to be (V1 - 0)/2k. And we can just simply write that down as V1/2k.
So now we'll simplify the algebraic fraction. And we see that we get 7 x V1 - V2 = -48. So that's one node taken care of, and we've got our nodal equation. Let's look at the second node now. So these currents have been drawn on and they've just been drawn on at random, there's been no thought given to the direction in which they're flowing. And you can see what's actually happening is a physical impossibility. We can't have all these currents flowing out of a node. But as far as nodal analysis concerned, it doesn't make a difference will still get the right answer in the end. So looking at these currents (that directions) when we apply Kirchhoff Current Law, we see that zero equals these three currents flowing out. So we've got the current through the 12k resistor. And we have to be really consistent here. We start at the more positive side and we subtract the voltage at the other side. So we still get (V2 - V1)/12k. We've also got 2mA flowing out. So it's +2. And we've got the current flowing through the 6k resistor, also flowing out. So this is (V2 - 0)/6k. And Kirchhoff tells us all by law must equal zero. So if you really think about this problem, what's actually happening is one of these currents must be flowing in the opposite direction to what's shown, but it doesn't matter as far as Nodal Analysis is concerned. We'll still get the right answer. So again, we're going to simplify this algebraic fraction. And we get another equation now containing just V1 and V2. And that is V1 - 3 x V = 24. So as you can see, we've got two equations with two unknowns, we can solve these
right to left because our current direction shows us that. So more positive side is (V2 - V1)/40. There are no over currents flowing into that nodes. So we put our equal sign. And then we've got the two currents flowing out. One of them is already amperage. You know, we can write 4 there. That's all we need to do. No further manipulation. The other current flowing out is the current through the 20Ω resistor. So we start them off positive side as defined by our current direction. So we say (V1 - 0)/20. So actually, that's the nodal equation. It's not in the simplest form. But it's enough. The circuit here is being done now. Everything else is just math. So we'll simplify that straight away now. And we can write that down by multiplying everything by 40 here, so we end up with V2 - V1 = 4 x 40 (and you've got 160) plus 40 times this divided by
So node two. And we can see that there's no currents flowing into this node. So obviously, the current directions are not correct but it doesn't matter. It's not going to affect that solution. So we can say nothing's flowing in and that must equal 2A flowing out, plus the V2 - 0 (so the voltage across this resistor) divided by 10, plus the current flowing out through the 40Ω resistor which is given by (V2 - V1)/40. Again, I'm looking at the more positive side and subtracting the voltage in the more negative side. So I'll simplify this. And again, I can simplify that by multiplying by 40, which gives me 0 = 2 x 40 (80) + (40 x V2)/10 (so 4 x V2) + (V2 - V1)/ x 40. And I can simplify this now. That 40 to 40, gone. I can simplify this now by bringing my 80 to the other side of the equals. I can say -80 = - V1 + 5 V2. So that's the nodal equation for node two in its simplest possible form. And you know, in an exam if you've got this form and these were correct, you'd probably get 8 of the 10 marks available. You probably only get 2 marks for actually calculating V1 and V2 now. Because the circuit theory part of the problem being completed. So let's finish this problem off. And what I'm going to do is times one of these equations. So I'm going to start with this equation and I'm going to times it by 3. So when I do that, I'm going to get -3 x V1 and then I can use when I'm solving simultaneously, I can get rid of V1 from the problem. So when I times everything by 3 or times this equation by 3, should I say, I end up with -3 x V1 + 15 x V2 = 3 x 80 (which is 240). So this is Eqn-2. I'm going to write Eqn-1 underneath it. It's not strictly necessary but we will do it to make it clear what's going on. So now, when I subtract those values (all those terms), what I'm going to get is -3 x V1 - (-3 x V1), so it becomes a positive number, +3 x V1. So that's basically going to cancel
out. So I end up with 15 x V2 - 1 x V2 (so that gives us 14 x V2) and that's equal to -240 - (which gives us -400). So now I can solve that. And I ended up finding that V2 = -200/7V or in actual numbers -28.57V (. So that's the voltage at node two. And I can take this term substituted back into any one of these equations (this one or this one, or this one, whatever) and I'll find V1 = -62.86V. So those are my two answers.
I've used LTSPICE to draw the circuit and calculate the answers. So you can see it's calculated the voltage at this node (node 1) is -62.86V and the voltage of this node (node 2) is -28.57V.
The previous problems involved either voltage sources or current sources. Now we have a circuit where we've got a mixture between voltage and current. So I'd like you to have a go at solving this one. Please pause the video now.
Before we begin solving this problem, let's draw the circuit diagram. So we have our circuit now. And we're trying to find the voltage at this point (node 2). So in Nodal Analysis, we need current directions but they're not drawn on this diagram. There's only one current we know and the direction of it and it's that current flow there. And it's flowing in this anti-clockwise fashion. Because we've got a current source, the other two currents are completely our own choice, we can pick whichever way we like. I'm going to say, it flows into this node in this direction (right to left) and this one flows out of the node in that direction (top to bottom). That's a complete guess, it could be wrong. But it won't affect our solution. So let's write our nodal equation for this point now. So flowing into the node, we've got 1mA. We've also got the current through the 2k resistor. So we started the more positive side. So +4V minus our unknown voltage (V) divided by 2k. So don't forget that's current. This is also a current. And that must equal the only current flowing out of that node, which is the current through the 4k resistor, which is our unknown voltage, (V - 0)/4K. So we've got one node where we don't know the voltage. So we've got a nodal equation with only one unknown. We're not expecting any simultaneous equations here. So that makes things much easier. Let's multiply this by 4k. That will get rid of fractions. So if you do 4k x 1m (the k and the m cancel, so we end up with 4) plus, and I'm going to times this by 2 essentially, so it's going to be 8 - 2V, and this just equals V. So now, let's group our terms together. And we end up with 4 + 8 on this side of equals 12 and we add