< Return to Video

Calculating dot and cross products with unit vector notation

  • 0:01 - 0:03
    So far, when I've told you about
    the dot and the cross
  • 0:03 - 0:06
    products, I've given you the
    definition as the magnitude
  • 0:06 - 0:09
    times either the cosine
    or the sine of the
  • 0:09 - 0:10
    angle between them.
  • 0:10 - 0:12
    But what if you're not given
    the vectors visually?
  • 0:12 - 0:14
    And what if you're not given
    the angle between them?
  • 0:14 - 0:17
    How do you calculate the dot
    and the cross products?
  • 0:17 - 0:19
    Well, let me give you
    the definition that
  • 0:19 - 0:20
    I giving you already.
  • 0:20 - 0:27
    So let's say I have a
    dot b dot product.
  • 0:27 - 0:32
    That's the magnitude of a times
    the magnitude of b times
  • 0:32 - 0:34
    cosine of the angle
    between them.
  • 0:34 - 0:40
    a cross b is equal to the
    magnitude of a times the
  • 0:40 - 0:45
    magnitude of b times sine of
    the angle between them-- so
  • 0:45 - 0:48
    the perpendicular projections
    of them-- times the normal
  • 0:48 - 0:50
    vector that's perpendicular
    to both of them.
  • 0:50 - 0:54
    The normal unit vector, and you
    figure out which of the
  • 0:54 - 0:56
    two perpendicular vectors
    it is by using
  • 0:56 - 0:57
    the right hand rule.
  • 0:57 - 1:00
    But what if we don't have
    the thetas; the
  • 1:00 - 1:01
    angles between them?
  • 1:01 - 1:05
    What if, for example, I were
    to tell you that the vector
  • 1:05 - 1:10
    a,-- if I were to give it to you
    in engineering notation.
  • 1:10 - 1:12
    In engineering notation,
    you're essentially just
  • 1:12 - 1:16
    breaking down the vector into
    its x, y and z components.
  • 1:16 - 1:24
    So let's say vector a is 5i--
    i is just the unit vector in
  • 1:24 - 1:32
    the x direction, minus
    6j, plus 3k.
  • 1:35 - 1:38
    i,j and k are just the unit
    vectors of the x, y and z
  • 1:38 - 1:38
    directions.
  • 1:38 - 1:41
    And the 5 is how much it goes
    in the x direction.
  • 1:41 - 1:43
    The minus 6 is how much it
    goes in the y direction.
  • 1:43 - 1:46
    And the 3 is how much it goes
    in the z direction.
  • 1:46 - 1:47
    You could try to graph it.
  • 1:47 - 1:49
    And actually, I'm trying to look
    for a graphing calculator
  • 1:49 - 1:51
    that'll do this, so I can show
    you it all in videos to give
  • 1:51 - 1:52
    you more intuition.
  • 1:52 - 1:54
    But lets say this is
    all you're given.
  • 1:54 - 2:00
    And let's say that b-- I'm just
    making these numbers up--
  • 2:00 - 2:04
    let's say it's minus 2i-- and,
    of course, we're working in
  • 2:04 - 2:14
    three dimensions right now--
    plus 7j, plus 4k.
  • 2:14 - 2:15
    You could graph it.
  • 2:15 - 2:19
    But obviously, if you were given
    a problem, and if you
  • 2:19 - 2:22
    were actually trying to model
    vectors on a computer
  • 2:22 - 2:24
    simulation, this is the
    way you would do it.
  • 2:24 - 2:26
    You'd break it up into the x, y,
    and z components because of
  • 2:26 - 2:27
    the add vectors.
  • 2:27 - 2:29
    You just have to add the
    respective components.
  • 2:29 - 2:31
    But how do you multiply them
    either taking the cross or the
  • 2:31 - 2:32
    dot product?
  • 2:32 - 2:35
    Well it actually turns out I'm
    not going to prove it here but
  • 2:35 - 2:35
    I'll just show you
    how to do it.
  • 2:35 - 2:38
    The dot product is very
    easy when you have it
  • 2:38 - 2:39
    given in this notation.
  • 2:39 - 2:41
    And actually another way of
    writing this notation,
  • 2:41 - 2:42
    sometimes it's in bracket
    notation.
  • 2:42 - 2:47
    Sometimes they would rewrite
    this as 5 minus 6, 3.
  • 2:47 - 2:49
    Or it's just the magnitudes of
    the x,y and z direction.
  • 2:49 - 2:53
    I just want to make sure you're
    comfortable with all of
  • 2:53 - 2:54
    these various notations.
  • 2:54 - 2:57
    You could have written b
    as minus is 2, 7, 4.
  • 2:57 - 2:58
    These are all the same things.
  • 2:58 - 3:00
    You shouldn't get daunted if
    you see one or the other.
  • 3:00 - 3:05
    But anyway, so how do
    I take a dot b?
  • 3:08 - 3:11
    This, I think you'll find
    fairly pleasant.
  • 3:11 - 3:15
    All you do is you multiply the
    i components, add that to the
  • 3:15 - 3:18
    j components multiplied, and
    then add that to the k
  • 3:18 - 3:20
    components multiplied
    together.
  • 3:20 - 3:34
    So it would be 5 times minus 2
    plus minus 6 times 7 plus 3
  • 3:34 - 3:45
    times 4, so it equals minus
    10 minus 42 plus 12.
  • 3:45 - 3:52
    So this is minus 52 plus 12,
    so it equals minus 40.
  • 3:52 - 3:52
    That's it.
  • 3:52 - 3:55
    It's just a number.
  • 3:55 - 3:57
    And I'd actually be curious
    to graph this on a three
  • 3:57 - 4:01
    dimensional grapher to see
    why it's minus 40.
  • 4:01 - 4:04
    They must be going in
    opposite directions.
  • 4:04 - 4:06
    And their projections onto each
    other go into opposite
  • 4:06 - 4:06
    directions.
  • 4:06 - 4:08
    And that's why we get
    a minus number.
  • 4:11 - 4:13
    The purpose of this-- I don't
    want to get too much into the
  • 4:13 - 4:15
    intuition-- this is just how to
    calculate, but it's fairly
  • 4:15 - 4:16
    straightforward.
  • 4:16 - 4:19
    You just multiply the
    x components.
  • 4:19 - 4:22
    Add that to the y components
    multiplied and add that to the
  • 4:22 - 4:23
    z components multiplied.
  • 4:23 - 4:26
    So whenever I am given something
    in engineering or
  • 4:26 - 4:28
    bracket notation and I have to
    find the dot product, it's
  • 4:28 - 4:34
    very, almost soothing, and
    not so error prone.
  • 4:34 - 4:37
    But, as you will see, taking the
    cross product of these two
  • 4:37 - 4:40
    vectors when given in this
    notation isn't so
  • 4:40 - 4:41
    straightforward.
  • 4:41 - 4:43
    And I want you to keep in mind,
    another way you could
  • 4:43 - 4:45
    have done it, you could have
    figured out the magnitude of
  • 4:45 - 4:49
    each of these vectors and then
    you could have used some fancy
  • 4:49 - 4:52
    trigonometry to figure out the
    thetas and then used this
  • 4:52 - 4:52
    definition.
  • 4:52 - 4:56
    But I think you appreciate the
    fact that this is a much
  • 4:56 - 4:57
    simpler way of doing it.
  • 4:57 - 4:59
    So the dot product
    is a lot of fun.
  • 4:59 - 5:03
    Now let's see if we could
    take the cross product.
  • 5:03 - 5:04
    And once again, I'm not
    going to prove it.
  • 5:04 - 5:06
    I'm just going to show
    you how to do it.
  • 5:06 - 5:09
    In a future video, I'm sure I'll
    get a request to do it
  • 5:09 - 5:12
    eventually, and I'll prove it.
  • 5:12 - 5:15
    But the cross product, this
    is more involved.
  • 5:15 - 5:18
    And I never look forward to
    taking the cross product of
  • 5:18 - 5:20
    two vectors in engineering
    notation.
  • 5:20 - 5:23
    a cross b.
  • 5:23 - 5:24
    It equals.
  • 5:24 - 5:28
    So this is an application
    of matrices.
  • 5:28 - 5:32
    So what you do is you take the
    determinant-- I'll draw a big
  • 5:32 - 5:34
    determinant line-- on the top
    line of the determinant.
  • 5:34 - 5:35
    This is really just
    a way to make you
  • 5:35 - 5:37
    memorize how to do it.
  • 5:37 - 5:39
    It doesn't give you much
    intuition, but the intuition
  • 5:39 - 5:42
    is given by the actual
    definition.
  • 5:42 - 5:44
    How much of the vectors are
    perpendicular to each other.
  • 5:44 - 5:45
    Multiply those magnitudes.
  • 5:45 - 5:47
    Right hand rule figures
    out what direction
  • 5:47 - 5:48
    you're pointing in.
  • 5:48 - 5:51
    But the way to do it if you're
    given engineering notation,
  • 5:51 - 5:56
    you write the i, j, k unit
    vectors the top row.
  • 5:56 - 6:00
    i, j, k.
  • 6:00 - 6:02
    Then you write the first vector
    in the cross product,
  • 6:02 - 6:04
    because order matters.
  • 6:04 - 6:10
    So it's 5 minus 6, 3.
  • 6:10 - 6:12
    Then you take the second vector
    which is b, which is
  • 6:12 - 6:17
    minus 2, 7, 4.
  • 6:17 - 6:20
    So you take the determinant
    of the 3 by 3 matrix,
  • 6:20 - 6:21
    and how do I do that?
  • 6:21 - 6:26
    Well that's equal to the
    subdeterminant for i.
  • 6:26 - 6:28
    So the subdeterminant for i, if
    you get rid of this column
  • 6:28 - 6:32
    and this row, the determinant
    that's left over, so that's
  • 6:32 - 6:41
    minus 6, 3, 7, 4 times i--
    you might want to review
  • 6:41 - 6:42
    determinants if you don't
    remember how to do this, but
  • 6:42 - 6:48
    maybe me working through it
    will just jog your memory.
  • 6:48 - 6:51
    And then remember, it's
    plus, minus, plus.
  • 6:51 - 6:54
    So then minus the subdeterminant
    for j.
  • 6:54 - 6:56
    What's the subdeterminant
    for j?
  • 6:56 - 6:57
    You cross out j's
    row and columns.
  • 6:57 - 7:01
    You have 5, 3, minus 2, 4.
  • 7:05 - 7:08
    We just crossed j's
    row and column.
  • 7:08 - 7:10
    And whatever's left over, those
    are the numbers in its
  • 7:10 - 7:11
    subdeterminant.
  • 7:11 - 7:13
    That's what I call it.
  • 7:13 - 7:18
    j plus-- I want to do them all
    on one line because it would
  • 7:18 - 7:20
    have been a little bit
    neater-- plus the
  • 7:20 - 7:21
    subdeterminant for k.
  • 7:21 - 7:23
    Cross out the row and
    the column for k.
  • 7:23 - 7:35
    We're left with 5 minus 6,
    minus 2 and 7 times k.
  • 7:35 - 7:37
    And now let's calculate them.
  • 7:37 - 7:39
    And let me make some
    space, because I've
  • 7:39 - 7:41
    written this too big.
  • 7:41 - 7:44
    I don't think we need
    this anymore.
  • 7:44 - 7:46
    So what do we get?
  • 7:46 - 7:49
    Let's take this up here.
  • 7:49 - 7:51
    So these 2 by 2 determinants
    are pretty easy.
  • 7:51 - 7:59
    This is minus 6 times
    4 minus 7 times 3.
  • 7:59 - 8:00
    I always make careless
    mistakes here.
  • 8:00 - 8:11
    Minus 24 minus 21 times i minus
    5 times 4 is 20, minus
  • 8:11 - 8:23
    minus 2 times 3, so minus minus
    6 j, plus 5 times 7, 35
  • 8:23 - 8:26
    minus minus 2 times minus 6.
  • 8:26 - 8:29
    So it's minus positive 12k.
  • 8:29 - 8:34
    We could simplify this, which
    equals minus 24 minus 21.
  • 8:34 - 8:41
    It is minus 35-- I didn't have
    to put a parentheses-- i, and
  • 8:41 - 8:44
    then what's 20 minus minus 6?
  • 8:44 - 8:47
    Well that's 20 plus
    plus 6, so 26.
  • 8:47 - 8:48
    And then we have a
    minus out here.
  • 8:48 - 8:52
    So minus 26j.
  • 8:52 - 8:54
    And that was 35 minus
    12, that's 23.
  • 8:54 - 8:57
    Plus 23k.
  • 8:57 - 8:59
    So that's the cross product.
  • 8:59 - 9:01
    And if you were to graph this in
    three dimensions, you will
  • 9:01 - 9:04
    see-- and this is what's
    interesting-- you will see
  • 9:04 - 9:09
    that vector, if my math is
    correct, minus 35i, minus 26j,
  • 9:09 - 9:16
    plus 23k, is perpendicular
    to both of these vectors.
  • 9:16 - 9:19
    I think I'll leave you there for
    now, and I will see you in
  • 9:19 - 9:20
    the next video.
  • 9:20 - 9:22
    And hopefully, I can track down
    a vector graphic program.
  • 9:22 - 9:26
    Because I think it'll be fun to
    both calculate the dot and
  • 9:26 - 9:29
    the cross products using the
    methods I just showed you and
  • 9:29 - 9:30
    then to graph them.
  • 9:30 - 9:31
    And to show that it
    really does work.
  • 9:31 - 9:37
    That this vector really is
    perpendicular to both of these
  • 9:37 - 9:41
    and pointing in the direction as
    you would predict using the
  • 9:41 - 9:43
    right hand rule.
  • 9:43 - 9:44
    I'll see you in the next video.
Title:
Calculating dot and cross products with unit vector notation
Description:

more » « less
Video Language:
English
Team:
Khan Academy
Duration:
09:47

English subtitles

Revisions Compare revisions