< Return to Video

kvl Kirchoffs Law example (with matrix set up)

  • 0:02 - 0:04
    Let's do this example of Kirchhoff's law.
  • 0:04 - 0:08
    We've got a circuit here that we're going
    to first define all of our unknowns.
  • 0:08 - 0:11
    We'd like to find all
    the currents in this circuit.
  • 0:11 - 0:14
    So here is the first current, I1.
  • 0:14 - 0:17
    Here is the second current, I2.
  • 0:17 - 0:20
    The third current, I3.
  • 0:20 - 0:22
    The fourth current, I4.
  • 0:22 - 0:26
    So the number of unknowns
    that we have is N = 4.
  • 0:26 - 0:30
    I1, I2, I3, and I4.
  • 0:30 - 0:33
    How did I know which direction
    to define these currents?
  • 0:33 - 0:34
    I didn't, I just guessed.
  • 0:34 - 0:38
    I typically guess left to right and
    top to bottom.
  • 0:38 - 0:42
    Once I've guessed the direction of the
    current though, I can write the polarity.
  • 0:42 - 0:46
    Where the plus goes on the tail of
    the arrow and the minus goes on the tip.
  • 0:46 - 0:49
    Now that I have defined
    the polarity of each of my arrows.
  • 0:49 - 0:53
    I need to be able to write four
    equations for my four unknowns.
  • 0:53 - 0:56
    Lets begin by writing loop equations.
  • 0:56 - 0:57
    Here is loop number 1.
  • 0:58 - 0:59
    And what I am going to
    do is start someplace,
  • 0:59 - 1:01
    here's where I am going
    to choose to start.
  • 1:01 - 1:04
    As I move up through the loop,
  • 1:04 - 1:09
    I'm going to encounter minus,
    plus, minus, and so on.
  • 1:09 - 1:13
    So -V1 + I1 R1 + I3 R3,
  • 1:13 - 1:18
    back to the same place, is equal to 0.
  • 1:18 - 1:20
    Now lets do another loop.
  • 1:20 - 1:23
    Each new loop has to pick up
    some additional elements.
  • 1:23 - 1:26
    This loop is going to pick up R4 and V3.
  • 1:26 - 1:31
    So loop number 2, let's start in the same
    place, and I'm going up through I3.
  • 1:31 - 1:35
    So it's -I3 R3 +
  • 1:35 - 1:41
    I4 R4- V3 is equal to 0.
  • 1:41 - 1:42
    Now let's do loop number 3.
  • 1:42 - 1:46
    I'm going to choose this loop, although
    I certainly could also have done this
  • 1:46 - 1:50
    outside loop,
    picking up all of the additional elements.
  • 1:50 - 1:54
    So loop number 3 is going to be,
    let's start right here.
  • 1:54 - 1:59
    Let's go up through I4- I4 R4
  • 1:59 - 2:03
    + I2 R2 + V2 is equal to 0.
  • 2:03 - 2:06
    Well, there's three equations for
    my four unknowns, so
  • 2:06 - 2:08
    I need one additional equation.
  • 2:08 - 2:09
    Let's transfer over and
  • 2:09 - 2:13
    let's do a node equation now because
    I've done all my possible loops.
  • 2:13 - 2:15
    I've picked up every element.
  • 2:15 - 2:17
    Well, here's a node.
  • 2:17 - 2:18
    That's an ordinary node.
  • 2:18 - 2:20
    That's not going to do me any
    good in my equations, and
  • 2:20 - 2:22
    neither is this ordinary node.
  • 2:22 - 2:25
    Here's an extraordinary node,
    however, this big red node,
  • 2:25 - 2:28
    and that's where I'm going
    to do my current equation.
  • 2:28 - 2:31
    So what I'm going to do for
    equation number four is I'm going to say,
  • 2:31 - 2:35
    all the currents coming in are equal
    to all the currents going out.
  • 2:35 - 2:43
    Well, the current coming in as I1 and
    the currents going out are I2, I3, and I4.
  • 2:43 - 2:46
    So here are my four equations for
    four unknowns.
  • 2:46 - 2:49
    Now, let us convert these
    to matrix equations.
  • 2:49 - 2:52
    So what I'm going to do, because I
    have four equations and four unknowns.
  • 2:52 - 2:58
    I'm going to have a four by four
    matrix equation where my unknowns I1,
  • 2:58 - 3:02
    I2, I3 and I4 are in this vector.
  • 3:04 - 3:06
    My matrix is gonna be right here, and
  • 3:06 - 3:08
    of course my constants
    are gonna be on the other side.
  • 3:08 - 3:13
    For my convenience, I'm going to also
    write my unknowns across the top so
  • 3:13 - 3:16
    that I can keep track of which
    column I'm putting things in.
  • 3:16 - 3:21
    And I'm going to indicate which of
    the equations make up each of my rows.
  • 3:21 - 3:24
    Now what I'm going to do,
    is I'm going to look at my first row and
  • 3:24 - 3:28
    I'm going to see what's multiplied by I1,
    which is R1.
  • 3:28 - 3:30
    What's multiplied by I2?
  • 3:30 - 3:31
    0.
  • 3:31 - 3:33
    What's multiplied by I3?
  • 3:33 - 3:34
    R3.
  • 3:34 - 3:35
    What's multiplied by R4?
  • 3:35 - 3:36
    0.
  • 3:36 - 3:41
    And then what would be on
    the other side would be plus V1.
  • 3:41 - 3:42
    Now let's do equation two.
  • 3:42 - 3:44
    What's multiplied by I1?
  • 3:44 - 3:45
    0.
  • 3:45 - 3:45
    I2?
  • 3:45 - 3:46
    0.
  • 3:46 - 3:49
    13 and I4?
  • 3:49 - 3:52
    And then this needs to come
    over to the other side.
  • 3:53 - 3:54
    Now let's do this equation.
  • 3:54 - 3:55
    What's multiplied by I1?
  • 3:55 - 3:57
    0.
  • 3:57 - 4:00
    I2, I3, and I4?
  • 4:00 - 4:05
    And then my constant coming over
    to this side is a minus V2.
  • 4:05 - 4:06
    Now let's do our last equation.
  • 4:06 - 4:09
    I'm going to bring this over here so
  • 4:09 - 4:15
    I'll actually be programming
    -I1 + I2 + I3 + I4.
  • 4:15 - 4:21
    So a -1 here, 1, 1, 1, and 0,
    there's my matrix equation.
  • 4:21 - 4:25
    This equation is A x = b.
  • 4:25 - 4:29
    What I can do is solve this equation any
    of three ways check out your appendix.
  • 4:29 - 4:30
    You can solve it out.
  • 4:30 - 4:32
    You can solve it by hand,
    that's a lot of work.
  • 4:32 - 4:35
    You can put it in your calculator,
    please practice that.
  • 4:35 - 4:36
    And you can also put it in Matlab.
Title:
kvl Kirchoffs Law example (with matrix set up)
Video Language:
English
Duration:
04:40

English subtitles

Revisions