Return to Video

www.mathcentre.ac.uk/.../The%20scalar%20product.mp4

  • 0:02 - 0:06
    In this unit, we're going to
    have a look at a method for
  • 0:06 - 0:10
    combining two vectors. This
    method is called the scalar
  • 0:10 - 0:14
    product. And it's called the
    scalar product because when we
  • 0:14 - 0:18
    calculate it, the result that we
    get or the answer is a scalar as
  • 0:18 - 0:20
    opposed to a vector.
  • 0:21 - 0:24
    So let's look at two vectors.
    Here's the first vector.
  • 0:28 - 0:29
    That's cool that vector A.
  • 0:33 - 0:37
    And here's the second vector.
    Let's call this vector B and
  • 0:37 - 0:41
    you'll notice that I've drawn
    these two vectors so that the
  • 0:41 - 0:44
    tales of the two vectors
    coincide.
  • 0:46 - 0:48
    Now that they coincide, we can
  • 0:48 - 0:52
    measure this angle. Between the
    two vectors and I'm going to
  • 0:52 - 0:53
    label the angle theater.
  • 0:55 - 0:56
    So there are two vectors.
  • 0:57 - 1:01
    Now when we calculate the scalar
    product, we do it like this. We
  • 1:01 - 1:05
    find the length. Or the
    magnitude, or the modulus of
  • 1:05 - 1:06
    the first vector.
  • 1:07 - 1:09
    Which is the modulus of a.
  • 1:11 - 1:13
    We multiply it by the length.
  • 1:15 - 1:18
    Of the second vector, which is
    the modulus of beat.
  • 1:20 - 1:25
    And we multiplied by the cosine
    of this angle between the two
  • 1:25 - 1:29
    vectors. We multiplied by the
    cosine of Theta.
  • 1:30 - 1:33
    And that's how we calculate the
    scalar product. The length of
  • 1:33 - 1:37
    the first vector times the
    length of the second vector
  • 1:37 - 1:40
    multiplied by the cosine of the
    angle in between the two
  • 1:40 - 1:44
    vectors. And we have a
    notation for the scalar
  • 1:44 - 1:49
    product and we write it like
    this vector A dot vector be.
  • 1:51 - 1:55
    And this is the definition.
    Sometimes this scalar product is
  • 1:55 - 1:59
    also referred to as a dot
    product because of that dot in
  • 1:59 - 2:04
    there. So sometimes you'll hear
    it referred to as a dot product.
  • 2:07 - 2:11
    OK, so let's have an example and
    see if we can calculate the dot
  • 2:11 - 2:12
    product of two vectors.
  • 2:14 - 2:16
    Let's suppose our vector a here.
  • 2:17 - 2:19
    Has got length for units.
  • 2:23 - 2:29
    And let's suppose we have a
    vector B up here and let's
  • 2:29 - 2:32
    suppose vector B has length
    5 units.
  • 2:33 - 2:38
    And let's suppose that the angle
    for the sake of argument between
  • 2:38 - 2:40
    the two vectors is 60 degrees.
  • 2:41 - 2:45
    And let's use this formula to
    calculate the scalar product A
  • 2:45 - 2:48
    dot B. It's a vector there.
  • 2:49 - 2:52
    A dot B will be.
  • 2:53 - 2:56
    Well, it's the modulus or the
    length of the first vector.
  • 2:57 - 2:58
    Which is 4.
  • 3:02 - 3:05
    Multiplied by the modulus
    or the length of the
  • 3:05 - 3:08
    second vector and the
    length of the second
  • 3:08 - 3:09
    vector is 5.
  • 3:12 - 3:16
    Multiplied by the cosine of the
    angle between the two, and so we
  • 3:16 - 3:19
    want the cosine of 60 degrees.
  • 3:21 - 3:25
    Now the cosine of 60 degrees. If
    you don't know, you can work it
  • 3:25 - 3:29
    out on your Calculator, but it's
    a common angle an the cosine of
  • 3:29 - 3:34
    60 degrees is 1/2, so we've got
    4 * 5 * 1/2, so if we work all
  • 3:34 - 3:38
    that out, we get 4 files, or 20
    and a half of 20 is 10.
  • 3:40 - 3:44
    So that's our first example of
    calculating a scalar product,
  • 3:44 - 3:48
    and let me remind you of
    something that I said Very early
  • 3:48 - 3:51
    on that when we calculate the
    scalar product, the answer is a
  • 3:51 - 3:56
    scalar and you'll see the answer
    here 10 is just a single number
  • 3:56 - 3:59
    Whilst we started with two
    vectors A&B, we finish up with
  • 3:59 - 4:03
    just a single number, a scalar,
    and that's the scalar product.
  • 4:06 - 4:09
    Let me illustrate some other
    features of this scalar product
  • 4:09 - 4:13
    by doing the calculation the
    opposite way round, supposing
  • 4:13 - 4:17
    I'd try to calculate the dotted
    with a instead. Let's work that
  • 4:17 - 4:19
    through and see what happens.
  • 4:20 - 4:24
    So I've done the operation in a
    different order instead of a
  • 4:24 - 4:26
    baby. I've now got dot A.
  • 4:27 - 4:31
    Well, again, using the
    definition we want to say that
  • 4:31 - 4:32
    the dot product of DNA.
  • 4:33 - 4:36
    Is the modulus or length of the
    first vector which is the
  • 4:36 - 4:40
    modulus or the length of be this
    time and the modulus of B is 5?
  • 4:43 - 4:46
    Multiply by the modulus or the
    length of the second vector.
  • 4:48 - 4:49
    Which is now 4.
  • 4:51 - 4:54
    Multiplied by the cosine of the
    angle between the two and the
  • 4:54 - 4:55
    angle still 60 degrees.
  • 4:56 - 5:01
    The cosine of 60 degrees is 1/2,
    so if we work this out this time
  • 5:01 - 5:06
    will get five 420 1/2 of 20 is
    10, so you'll see that whichever
  • 5:06 - 5:10
    way we did the calculation
    whether we worked out a dot B or
  • 5:10 - 5:15
    whether we worked out B dotted
    with a, we get the same answer.
  • 5:16 - 5:21
    10 and that's true in general
    for any two vectors that we
  • 5:21 - 5:23
    choose. If we workout a dot B.
  • 5:27 - 5:31
    That will be the same as working
    out B Dot A.
  • 5:32 - 5:36
    And that's another important
    property of the scalar product,
  • 5:36 - 5:38
    and we call this property
  • 5:38 - 5:43
    commutativity. We say that the
    dot product or the scalar
  • 5:43 - 5:44
    product is commutative.
  • 5:56 - 5:59
    Now, as well as the
    commutativity property, I
  • 5:59 - 6:02
    want to tell you about
    another property which is
  • 6:02 - 6:03
    known as distributivity.
  • 6:05 - 6:11
    Suppose we have a dotted with
    the sum of two vectors B Plus C.
  • 6:13 - 6:16
    The distributivity property
    tells us to expand these
  • 6:16 - 6:20
    brackets in the normal sort of
    algebraic way that you would
  • 6:20 - 6:23
    expect. We work this out by
    saying it's a.
  • 6:24 - 6:25
    Dotted with B.
  • 6:29 - 6:29
    Add it to.
  • 6:31 - 6:34
    A dotted with C.
  • 6:38 - 6:42
    This also works the other
    way round, so suppose we
  • 6:42 - 6:43
    have B Plus C.
  • 6:45 - 6:51
    And we want to dot it with the
    vector a As you might predict
  • 6:51 - 6:54
    the result that will get is B
    dotted with a.
  • 6:58 - 6:58
    Attitude.
  • 7:01 - 7:02
    See dotted with a.
  • 7:03 - 7:09
    And these properties are said to
    be the distributivity.
  • 7:11 - 7:11
    Rules.
  • 7:16 - 7:19
    I will need those rules along
    with the commutativity rules
  • 7:19 - 7:21
    later on in this unit.
  • 7:27 - 7:30
    Now there's another property
    very important property of the
  • 7:30 - 7:34
    scalar product that I like to
    tell you about as well, and
  • 7:34 - 7:37
    it's the scalar product of two
    perpendicular vectors.
  • 7:49 - 7:53
    Let's see what happens when the
    two vectors that we're dealing
  • 7:53 - 7:57
    with A&B are perpendicular. That
    means there at right angles. So
  • 7:57 - 8:02
    we have a situation like this.
    There's a vector B. There's a
  • 8:02 - 8:06
    vector A and they're separated
    by an angle of 90 degrees, so
  • 8:06 - 8:08
    the vectors are perpendicular.
  • 8:10 - 8:13
    Let's use our formula for the
    dot product. The scalar
  • 8:13 - 8:17
    product, the modulus of the
    first one with the modulus of
  • 8:17 - 8:20
    the second one times the
    cosine of the angle between
  • 8:20 - 8:23
    the two. Let's use that
    formula in this specific case,
  • 8:23 - 8:25
    when the vectors are
    perpendicular.
  • 8:28 - 8:31
    Well, we want the length of
    the first one. Still the
  • 8:31 - 8:32
    modulus of A.
  • 8:33 - 8:36
    The length of the second one
    will be the modulus of B and
  • 8:36 - 8:40
    this time we want the cosine of
    Theta, but theater is 90 degrees
  • 8:40 - 8:42
    from the cosine of 90 degrees.
  • 8:44 - 8:47
    Now you either should know
    or you can easily check on
  • 8:47 - 8:50
    your Calculator that the
    cosine of 90 degrees is 0.
  • 8:52 - 8:54
    So these two vectors, these two
  • 8:54 - 8:58
    moduli? Whatever they are
    multiplied by zero. So the
  • 8:58 - 9:00
    answer that will get will be 0.
  • 9:01 - 9:06
    This is a very important result
    that if you have two vectors
  • 9:06 - 9:09
    which are perpendicular, their
    scalar product is 0.
  • 9:22 - 9:25
    So for two perpendicular
    vectors a.
  • 9:26 - 9:27
    The.
  • 9:28 - 9:31
    Important result which
    you should learn that
  • 9:31 - 9:34
    their dot product their
    scalar product is 0.
  • 9:38 - 9:42
    Now the converse of this is also
    true, and by that I mean that if
  • 9:42 - 9:46
    we choose any two vectors at
    all, and we find their dot
  • 9:46 - 9:50
    product and we find that the
    answer is 0, that will mean that
  • 9:50 - 9:53
    provided that neither a norby
    was zero, those two vectors must
  • 9:53 - 9:57
    be perpendicular and will use
    this as a test later on in this
  • 9:57 - 9:59
    unit to test whether or not to
  • 9:59 - 10:02
    given vector. Are
    perpendicular or not?
  • 10:09 - 10:14
    I want to move on now to look at
    how we calculate the scalar
  • 10:14 - 10:17
    product of two vectors when
    they're given in Cartesian form.
  • 10:17 - 10:21
    Let me remind you about
    cartesian form when we're
  • 10:21 - 10:24
    dealing with vectors in
    Cartesian form, where we express
  • 10:24 - 10:28
    the vector in terms of unit
    vectors IJ&K. So we might be
  • 10:28 - 10:30
    dealing with vectors of this
  • 10:30 - 10:33
    form 3I. Minus two J.
  • 10:34 - 10:36
    Plus 7K.
  • 10:38 - 10:41
    Expect to be might be something
    like minus 5I.
  • 10:43 - 10:49
    Plus 4J. Minus 3K. So when
    we see the vectors written down
  • 10:49 - 10:51
    like this with eyes and Jays and
  • 10:51 - 10:55
    kays in. These vectors are now
    given in Cartesian form.
  • 10:56 - 11:00
    And we're going to learn how
    to do now is figure out how
  • 11:00 - 11:02
    to calculate the dot
    product. The scalar product
  • 11:02 - 11:03
    vectors like these.
  • 11:04 - 11:08
    Before we do that, I'd like to
    introduce some other important
  • 11:08 - 11:12
    results. Let me remind you a
    little bit about IJ&K.
  • 11:16 - 11:19
    In three dimensions, where we
    have an X axis.
  • 11:20 - 11:23
    AY axis. And as Ed Access.
  • 11:25 - 11:28
    We did note unit vectors along
    the X axis.
  • 11:29 - 11:36
    I I along the Y axis by J and
    along the Z Axis by K and you'll
  • 11:36 - 11:39
    notice that the vectors IJ&K.
  • 11:40 - 11:44
    US are all it's 90 degrees to
    each other, so the angle between
  • 11:44 - 11:48
    I&J is 90 degrees. The angle
    between Jane K is 90 degrees and
  • 11:48 - 11:52
    the angle between I&K is 90
    degrees and all of these vectors
  • 11:52 - 11:56
    I Jane KA unit vectors. That
    means that their length is one.
  • 11:57 - 12:03
    Now let's just calculate the dot
    product of I with J.
  • 12:08 - 12:12
    We use the result we had before
    the definition of the dot
  • 12:12 - 12:15
    product, which says that we
    write down the length of the
  • 12:15 - 12:18
    first vector and the length of I
    being a unit vector is just one.
  • 12:21 - 12:24
    The length of J being a unit
    vector is also one.
  • 12:26 - 12:30
    And we want the cosine of the
    angle between the two and the
  • 12:30 - 12:33
    angle between the two is 90
    degrees, so we want the cosine
  • 12:33 - 12:38
    of 90 degrees. And again, the
    cosine of 90 degrees is 0, so
  • 12:38 - 12:43
    we find that I got Jay is
    simply zero. We could have
  • 12:43 - 12:46
    deduced that from the
    previous result that I
  • 12:46 - 12:50
    obtained for you, which was
    that for any two vectors
  • 12:50 - 12:53
    which are perpendicular,
    their dot product is 0.
  • 12:55 - 13:00
    So I got Jays 0. Now the same
    argument tells us also that Jay
  • 13:00 - 13:03
    dotted with K must be 0.
  • 13:07 - 13:09
    Be cause J&K are
    perpendicular vectors
  • 13:09 - 13:12
    there at right angles and
    the angle between them is
  • 13:12 - 13:15
    90 degrees and the cosine
    of 90 is 0.
  • 13:17 - 13:24
    What about INK? Well, I dotted
    with K must also be 0.
  • 13:26 - 13:29
    What about dotting the vector
    with itself? Let's just have a
  • 13:29 - 13:32
    look at that. Suppose we wanted
    I dotted with I.
  • 13:34 - 13:37
    Well, the length of the
    first vector is one.
  • 13:38 - 13:42
    The length of the second vector
    is still one, and if we're
  • 13:42 - 13:45
    dotting a vector with itself,
    the angle between the two
  • 13:45 - 13:50
    vectors must be 0. So this time
    we want the cosine of 0.
  • 13:51 - 13:54
    And the cosine of 0. The cosine
    of note is one.
  • 13:55 - 14:00
    So we have 1 * 1 * 1, which
    is just one.
  • 14:00 - 14:04
    So if we're dotting the vector I
    with itself, we get one.
  • 14:05 - 14:09
    A similar argument will tell us
    that if we got the vector Jay
  • 14:09 - 14:14
    with itself, we also get one,
    and if we drop the vector K with
  • 14:14 - 14:15
    itself, we get one.
  • 14:16 - 14:19
    Let me summarize those
    important results here and
  • 14:19 - 14:23
    I've results that you should
    remember that if you took the
  • 14:23 - 14:28
    vector I and dotted it with
    itself, that would be the same
  • 14:28 - 14:30
    as dotting Jay with itself.
  • 14:31 - 14:36
    And it's the same as Dot Inc. A
    with itself, and in any case we
  • 14:36 - 14:37
    get the answer 1.
  • 14:39 - 14:46
    If we don't, I with J we get
    zero if we got I with K if we
  • 14:46 - 14:51
    get zero and if we got J with K
    we also get 0.
  • 14:52 - 14:55
    And all those results are
    particularly important, and
  • 14:55 - 14:59
    once that you should become
    familiar with as you work
  • 14:59 - 15:01
    through the exercises
    accompanying this unit.
  • 15:06 - 15:11
    Now I want to use those results
    about the dot products of those
  • 15:11 - 15:15
    unit vectors to find a way to
    calculate the dot product of two
  • 15:15 - 15:19
    arbitrary vectors that are given
    in Cartesian form. So let's
  • 15:19 - 15:22
    choose two arbitrary vectors.
    Let's suppose the first one.
  • 15:24 - 15:26
    Is a one.
  • 15:27 - 15:28
    I.
  • 15:30 - 15:35
    A2, J and
    a 3K.
  • 15:37 - 15:38
    So this is now an arbitrary
  • 15:38 - 15:44
    vector. A where a one A2 and a
    three are the three cartesian
  • 15:44 - 15:46
    components of the vector A.
  • 15:47 - 15:53
    And let's suppose vector B
    similarly is B1I.
  • 15:54 - 16:01
    Plus B2J Plus V3K and
    again B1B2B3 arbitrary numbers,
  • 16:01 - 16:07
    so this is an arbitrary
    vector in three dimensions.
  • 16:08 - 16:12
    What I want to do is workout the
    dot product of A&B.
  • 16:14 - 16:17
    So let's work it through a
    dot B equals.
  • 16:19 - 16:21
    It's the first vector
    which is all this.
  • 16:31 - 16:36
    Dotted with the second vector
    be, which is all this.
  • 16:46 - 16:51
    OK. Now what we want to do
    now is use our
  • 16:51 - 16:54
    distributivity rule to be
    able to workout to expand
  • 16:54 - 16:57
    these brackets and workout
    the individual dot products.
  • 16:58 - 17:03
    And we can do that using the
    rules that we know that in turn
  • 17:03 - 17:04
    each one of these vectors.
  • 17:05 - 17:08
    In the first bracket,
    multiplies each of these in
  • 17:08 - 17:11
    the SEC bracket and just the
    normal algebraic way. So
  • 17:11 - 17:16
    first of all we want a one I
    dotted with B1 I those terms.
  • 17:24 - 17:26
    Then we want a one I.
  • 17:27 - 17:29
    Dotted with B2J
  • 17:37 - 17:41
    and finally a one
    I dotted with B3K.
  • 17:47 - 17:50
    So that takes care of this first
  • 17:50 - 17:55
    vector here. And we moved to
    the second vector. So now we
  • 17:55 - 17:57
    want plus A2, J, dotted with
    each of these three.
  • 18:01 - 18:04
    So it's a 2 J dotted with B1I.
  • 18:09 - 18:11
    A2 J dotted with B2J.
  • 18:17 - 18:20
    And a two J dotted with B3K.
  • 18:27 - 18:30
    And finally, this loss vector in
    the first bracket dotted with
  • 18:30 - 18:34
    each of these vectors in the SEC
    bracket will be a 3K.
  • 18:37 - 18:39
    Dotted with B1I
  • 18:41 - 18:44
    plus a 3K dotted with B2J.
  • 18:48 - 18:52
    And finally, a 3K
    dotted with B3K.
  • 18:57 - 19:00
    Now this looks horrendous. With
    all these nine terms in here,
  • 19:00 - 19:04
    but a lot of this is going to
    cancel out now. You'll remember
  • 19:04 - 19:07
    that any vectors which are
    perpendicular to each other.
  • 19:08 - 19:10
    Have a dot product which is 0.
  • 19:12 - 19:13
    Now this vector.
  • 19:14 - 19:17
    Is in the eye direction and this
  • 19:17 - 19:22
    vector. Is in the J direction,
    so a one I is perpendicular to
  • 19:22 - 19:23
    be 2 J.
  • 19:24 - 19:28
    So where we have the item dotted
    with the J term, this must be 0.
  • 19:32 - 19:36
    Similarly, any vector in the
    direction of I any multiple of I
  • 19:36 - 19:39
    must be perpendicular to any
    multiple of K.
  • 19:40 - 19:42
    So this dot product is
    also zero.
  • 19:44 - 19:48
    And similarly for the A2JB1I,
    those vectors are perpendicular.
  • 19:48 - 19:50
    Their dot product is 0.
  • 19:53 - 19:56
    A2J dot B3K. A perpendicular
  • 19:56 - 20:01
    that's zero. Similarly, that
    will be 0 and that will be 0.
  • 20:02 - 20:05
    And we'll be left with
    three non zero terms.
  • 20:07 - 20:09
    What about this term here?
  • 20:10 - 20:15
    A1 I be one I now this is a
    multiple of I and this is a
  • 20:15 - 20:17
    multiple of I. So these two
  • 20:17 - 20:22
    vectors are parallel. The angle
    between them is 0, so when we
  • 20:22 - 20:26
    work out the dot product will
    want the length of the first
  • 20:26 - 20:28
    one, which is a one.
  • 20:29 - 20:30
    The length of the second one,
  • 20:30 - 20:32
    which is. He wants.
  • 20:33 - 20:36
    And the cosine of the angle
    between the two. The angle
  • 20:36 - 20:42
    between the two. Is zero and the
    cosine of 0 is one, so we get a
  • 20:42 - 20:43
    one B 1 * 1.
  • 20:44 - 20:48
    So this first term, whilst it
    looked quite complicated, just
  • 20:48 - 20:49
    simplifies to a 1B one.
  • 20:52 - 20:55
    Similarly, these two vectors
    here. This is a vector in the
  • 20:55 - 20:58
    direction of J and this is a
    vector in the direction of Jay.
  • 20:59 - 21:03
    So the angle between the two of
    them is 0, the cosine of 0 is
  • 21:03 - 21:05
    one, so when we workout this dot
  • 21:05 - 21:09
    product we want. The length of
    the first one, which is a 2. The
  • 21:09 - 21:11
    length of the second one which
  • 21:11 - 21:16
    is B2. Multiplied by the cosine
    of 0. Cosine of 0 is one, so we
  • 21:16 - 21:18
    just get a 2B2.
  • 21:19 - 21:22
    And finally, same argument
    applies here. This is a
  • 21:22 - 21:26
    multiple of K. This is a
    multiple of K, so the vectors
  • 21:26 - 21:30
    are parallel. The angle between
    them is zero and the cosine of
  • 21:30 - 21:35
    0 is one. So we get the length
    of the first being A3 length of
  • 21:35 - 21:39
    the second being B3 and the
    cosine of 0 cosine of 0 is one,
  • 21:39 - 21:43
    so the whole lot. All of this
    complicated stuff just
  • 21:43 - 21:47
    simplifies down at the end of
    the day to this very important
  • 21:47 - 21:47
    result here.
  • 21:50 - 21:55
    And what this result says is
    if you want to find the scalar
  • 21:55 - 21:59
    product of two vectors A&B
    which are given in this
  • 21:59 - 22:04
    cartesian form, like that, all
    we need to do is multiply the
  • 22:04 - 22:08
    I components together. You see
    the A1B one is the eye
  • 22:08 - 22:10
    components multiplied
    together.
  • 22:11 - 22:13
    Multiply the J components
  • 22:13 - 22:18
    together A2B2. Multiply the K
    components together A3B3.
  • 22:19 - 22:22
    And then finally add up these
  • 22:22 - 22:24
    results. So the dot product.
  • 22:25 - 22:26
    Is the sum.
  • 22:27 - 22:31
    Of the products of the
    corresponding components.
  • 22:32 - 22:36
    And you'll notice that the
    result we get here on the
  • 22:36 - 22:40
    right hand side doesn't have
    any eyes or Jays orkez in the
  • 22:40 - 22:43
    answer anymore. This is purely
    a number. This is purely a
  • 22:43 - 22:46
    scalar, as we'd expect when we
    calculate a scalar product.
  • 22:48 - 22:53
    Point out also that this
    expression on the right, which
  • 22:53 - 22:57
    is the sum of the products of
    the corresponding components is
  • 22:57 - 23:01
    also sometimes referred to as
    the inner product.
  • 23:02 - 23:08
    Of A&B, so on occasions you may
    hear some staff or reading some
  • 23:08 - 23:12
    textbooks that this is called
    the inner product of Bambi.
  • 23:20 - 23:22
    OK, so we have a formula
    now for the dot product.
  • 23:25 - 23:32
    It's a one B 1 +
    8, two B2 plus A3B3.
  • 23:35 - 23:39
    Can very important results and
    this will allow us to calculate
  • 23:39 - 23:42
    the scalar product of two
    vectors given in cartesian form.
  • 23:42 - 23:44
    Let me give you an example.
  • 23:49 - 23:57
    Suppose the first vector a is
    this one 4I Plus 3J minus.
  • 23:57 - 23:59
    Sorry plus 7K.
  • 24:01 - 24:04
    And Suppose B is the vector two
  • 24:04 - 24:06
    I. +5 J.
  • 24:08 - 24:09
    Plus 4K.
  • 24:11 - 24:16
    Suppose we want to calculate the
    scalar product A dot B.
  • 24:18 - 24:23
    Well, this formula tells us that
    we multiply the corresponding I
  • 24:23 - 24:27
    components together A1B one.
    This is a one for this is B1
  • 24:27 - 24:32
    which is 2. So we multiply the
    four by the two.
  • 24:35 - 24:39
    We multiply the corresponding J
    components together. A2B2 well,
  • 24:39 - 24:44
    this is a two and this is B2, so
    we want 3 * 5.
  • 24:47 - 24:50
    And then we multiply the
    corresponding K components
  • 24:50 - 24:53
    together. A3B3, which is 7 * 4.
  • 24:56 - 25:03
    When we do that and we add up
    all the results and will get 8
  • 25:03 - 25:10
    + 3, five, 15, Seven, 428. And
    if we work those out we shall
  • 25:10 - 25:17
    get 2815 and eight to add up
    to 51. So the dot product of
  • 25:17 - 25:20
    A&B is the scalar 51.
  • 25:22 - 25:26
    Now, sometimes, instead of
    writing it all out like this, we
  • 25:26 - 25:30
    can use column vector notation
    and some people find it a bit
  • 25:30 - 25:34
    easier to work with column
    vectors. So just let me show you
  • 25:34 - 25:37
    how we do the same calculation.
    If we had these vectors given
  • 25:37 - 25:41
    not in this form, but as column
    vectors, suppose we had a
  • 25:41 - 25:47
    written as 437. And
    be written AS254.
  • 25:49 - 25:51
    Then the a dotted with B.
  • 25:52 - 25:58
    Would be 437 dotted
    with 254.
  • 26:00 - 26:03
    Now to multiply corresponding
    components together is quite
  • 26:03 - 26:08
    easy to see what they are now
    because we want 4 * 2, which is
  • 26:08 - 26:14
    8. 3 * 5 which is 15 and 7 *
    4, which is 28. And if we had
  • 26:14 - 26:18
    those that will get 51 like we
    did over here. So some people
  • 26:18 - 26:22
    might find it a bit easier just
    to write them as column vectors
  • 26:22 - 26:24
    and then just read off the
    corresponding components,
  • 26:24 - 26:28
    multiply them together, and add
    them up to get the result.
  • 26:32 - 26:36
    Now it's so important that you
    know how to calculate a scalar
  • 26:36 - 26:40
    product that I'm going to give
    you one more example, just to
  • 26:40 - 26:42
    make sure that you understand
    the process.
  • 26:43 - 26:48
    And will go straight into column
    vector notation. Suppose the
  • 26:48 - 26:51
    vector A is the vector minus 6.
  • 26:52 - 26:54
    3 - 11.
  • 26:56 - 26:59
    That's minus six I plus 3J minus
  • 26:59 - 27:07
    11 K. And let's suppose
    the vector B is the
  • 27:07 - 27:12
    vector 12:04 that's twelve
    IOJ plus 4K.
  • 27:15 - 27:20
    So the dot product A dot B will
    be minus six 3 - 11.
  • 27:22 - 27:24
    Dotted with twelve 04.
  • 27:26 - 27:30
    And in the column vector
    notation, it's so easy to work
  • 27:30 - 27:33
    this out. We want minus 6 * 12,
    which is minus 72.
  • 27:35 - 27:38
    3 * 0 is 0.
  • 27:40 - 27:44
    And minus 11 * 4 is minus 44.
  • 27:45 - 27:47
    And if we add these up, we get.
  • 27:48 - 27:51
    Minus 116
  • 27:53 - 27:57
    so the dot product of A&B is
    just the sum.
  • 27:58 - 28:01
    Of the products of the
    corresponding components.
  • 28:06 - 28:11
    I want to move on now to look at
    some applications of the scalar
  • 28:11 - 28:14
    product and the first
    application is one that I
  • 28:14 - 28:18
    mentioned very early on and it's
    to do with testing whether or
  • 28:18 - 28:20
    not two given vectors are
  • 28:20 - 28:24
    perpendicular or not. Now you
    remember from the definition of
  • 28:24 - 28:28
    the scalar product of two
    vectors, 8 be that is the
  • 28:28 - 28:32
    modulus of the first one times
    the modulus of the second one
  • 28:32 - 28:35
    times the cosine of the angle in
    between the two vectors.
  • 28:36 - 28:39
    Now, if we find that
    when we work this out
  • 28:39 - 28:41
    that the result is 0.
  • 28:42 - 28:47
    Then either the modulus of a
    must be 0, or the modulus of be
  • 28:47 - 28:50
    must be 0. Or Alternatively,
    cosine theater must be 0.
  • 28:52 - 28:56
    Now, if we know that the two
    given vectors do not have a zero
  • 28:56 - 29:00
    length, In other words, the
    modulus of a can't be 0, and the
  • 29:00 - 29:01
    modulus of B can't be 0.
  • 29:02 - 29:07
    Then the only conclusion we can
    draw is that cosine theater must
  • 29:07 - 29:12
    be 0, and from that we did use
    that theater must be 90 degrees.
  • 29:13 - 29:17
    In other words, if we take the
    dot product of two vectors and
  • 29:17 - 29:19
    we find we get the answer 0.
  • 29:20 - 29:25
    Then, provided the two factors
    were nonzero vectors, we can
  • 29:25 - 29:28
    deduce the amb must be
    perpendicular vectors, so.
  • 29:30 - 29:32
    If A&B.
  • 29:34 - 29:36
    A nonzero vectors.
  • 29:42 - 29:43
    Search that.
  • 29:46 - 29:50
    Hey, don't be when we work it
    out. Turns out to be 0.
  • 29:50 - 29:54
    Then A&B.
  • 29:56 - 29:57
    Are perpendicular.
  • 30:03 - 30:04
    There at right angles.
  • 30:04 - 30:08
    Another word we sometimes use is
    orthogonal. You may hear that,
  • 30:08 - 30:11
    particularly in more advanced
    work, two vectors at right
  • 30:11 - 30:15
    angles to vectors which are
    perpendicular are sometimes said
  • 30:15 - 30:16
    to be orthogonal.
  • 30:17 - 30:21
    So we have a test here we take
    the two vectors, we find their
  • 30:21 - 30:24
    dot product and if the answer
    that we get zero then we deduce
  • 30:24 - 30:27
    that the two vectors must be
    perpendicular. So that's a very
  • 30:27 - 30:31
    easy test we can apply to see if
    two vectors are Purple ****.
  • 30:34 - 30:35
    Let me give you an example.
  • 30:40 - 30:47
    Suppose we have the Vector A,
    which is the vector three 2 -
  • 30:47 - 30:53
    1 and the Vector B which is
    1 - 2 - 1.
  • 30:55 - 30:59
    Now I think you would agree that
    just by looking at these vectors
  • 30:59 - 31:01
    three, I +2 J Minus K.
  • 31:02 - 31:06
    And one I minus two J minus K.
    You'd have no idea just from
  • 31:06 - 31:09
    looking at them written down
    like that. Whether or not these
  • 31:09 - 31:11
    vectors where at right angles to
  • 31:11 - 31:16
    each other. We can apply this
    dot product test and workout a
  • 31:16 - 31:20
    baby to see what happens. So
    let's workout a dot B.
  • 31:21 - 31:27
    I want the dot product of three
    2 - 1 with 1 - 2 - 1.
  • 31:29 - 31:30
    And we'll get 3 ones or three.
  • 31:31 - 31:33
    Two times minus 2 - 4.
  • 31:34 - 31:38
    And minus one times minus one is
    plus one. So we've got three and
  • 31:38 - 31:43
    one which is 4 - 4 which is 0.
    So you'll see that when we work
  • 31:43 - 31:47
    out the dot product of these two
    nonzero vectors, the answer that
  • 31:47 - 31:48
    we get is 0.
  • 31:49 - 31:52
    So we can deduce from this
    result that this vector a must
  • 31:52 - 31:56
    be at right angles to this
    vector B and that's something
  • 31:56 - 31:59
    that's not obvious just from
    looking at it. So we've got a
  • 31:59 - 32:03
    very useful test there to test
    for. The two vectors are
  • 32:03 - 32:04
    perpendicular or not.
  • 32:09 - 32:12
    Now another important
    application of the scalar
  • 32:12 - 32:16
    product is to finding the angle
    between two given vectors. Let
  • 32:16 - 32:20
    me remind you of the definition
    of the scalar product again
  • 32:20 - 32:25
    because we will need that the
    scalar product of A&B is found
  • 32:25 - 32:29
    by taking the length of the
    first vector times the length of
  • 32:29 - 32:34
    the second vector times the
    cosine of the angle in between
  • 32:34 - 32:35
    the two vectors so.
  • 32:35 - 32:38
    If we get a vector, if we get
    two vectors in Cartesian form.
  • 32:39 - 32:41
    And we calculate their dot
  • 32:41 - 32:45
    product. And if we know how to
    calculate the modulus of each of
  • 32:45 - 32:49
    those two vectors, then the only
    thing in this expression that we
  • 32:49 - 32:52
    don't know is cosine Theta, so
    will be able to use this
  • 32:52 - 32:55
    definition to calculate cosine
    theater the cosine of the angle
  • 32:55 - 32:59
    between the two vectors, from
    which we can deduce the angle
  • 32:59 - 33:01
    itself. OK, let's rearrange
  • 33:01 - 33:07
    this. If we divide both sides by
    the modular surveying, the
  • 33:07 - 33:12
    modulus of B will be able to get
    cosine theater is a dot B
  • 33:12 - 33:16
    divided by the modulus of a
    modulus of B and that's the
  • 33:16 - 33:21
    formula that we're going to use
    in a minute to find cosine,
  • 33:21 - 33:22
    Theta and hence theater.
  • 33:24 - 33:27
    Now we've done a lot of work
    already in this unit on
  • 33:27 - 33:31
    calculating the dot product. Let
    me just remind you a little bit
  • 33:31 - 33:34
    about how you find the modulus
    of a vector when it's given in
  • 33:34 - 33:42
    cartesian form. If we have a
    Vector A, which is a one
  • 33:42 - 33:45
    I plus A2J plus a 3K.
  • 33:46 - 33:51
    Then the modulus of this
    vector is found by squaring
  • 33:51 - 33:54
    the individual components,
    adding them.
  • 33:56 - 34:00
    And finally, taking the square
    root of the result. So this is a
  • 34:00 - 34:04
    formula that we're going to use
    for finding the modulus of a
  • 34:04 - 34:07
    vector in Cartesian form, and
    this has been covered in an
  • 34:07 - 34:10
    early you unit. If you need to
    look back at that.
  • 34:15 - 34:18
    Let's look at a specific
    example where we want to find
  • 34:18 - 34:19
    the angle between two vectors.
  • 34:24 - 34:26
    So the problem is
    find the angle.
  • 34:35 - 34:41
    Between the two vectors, I'm
    going to choose are A which is
  • 34:41 - 34:44
    4I Plus 3J plus 7K.
  • 34:45 - 34:46
    And B.
  • 34:48 - 34:54
    Which is 2 I plus 5J Plus
    4K, so two vectors given in
  • 34:54 - 34:59
    cartesian form and the
    problem is to find the angle
  • 34:59 - 35:00
    between them.
  • 35:01 - 35:06
    And we have this result that we
    just reduced the cosine of the
  • 35:06 - 35:11
    required angle. Is the dot
    product 8B divided by the length
  • 35:11 - 35:16
    of a times the length of be? So
    that's the formula that we're
  • 35:16 - 35:17
    going to use.
  • 35:18 - 35:24
    OK, a dot B now. In fact a dot B
    has already been evaluated in an
  • 35:24 - 35:28
    earlier example, but I'll just
    remind you of that a dot B. If
  • 35:28 - 35:31
    we use the column vector
    notation will be 437.
  • 35:32 - 35:34
    Dotted with 254
  • 35:37 - 35:44
    which is 428-3515 and Seven 428.
    And if you work that out, you
  • 35:44 - 35:47
    find you get 51.
  • 35:48 - 35:51
    So all we need to do is
    calculate now the modular
  • 35:51 - 35:54
    survey in the modulus of B and
    then we've got everything we
  • 35:54 - 35:56
    need to know to put in the
    right hand side of this
  • 35:56 - 35:57
    formula.
  • 35:58 - 36:00
    OK, the modular survey.
  • 36:02 - 36:07
    Now the modulus of a is found by
    taking the square root of the
  • 36:07 - 36:10
    squares of these components
    added up. So we want 4 squared.
  • 36:11 - 36:13
    3 squared
  • 36:14 - 36:15
    7 squared.
  • 36:17 - 36:20
    Which is going to be
    the square root of 16.
  • 36:21 - 36:27
    330977's of 49 and if you work
    that out, you'll find that
  • 36:27 - 36:29
    that's the square root of 74.
  • 36:32 - 36:38
    Similarly, the modulus of B will
    be the square root of 2 squared.
  • 36:39 - 36:42
    +5 squared, +4 squared.
  • 36:44 - 36:52
    Which is the square root of 4
    + 25 + 16 and 25 +
  • 36:52 - 36:55
    4 + 16 is 45.
  • 36:56 - 36:59
    So we've got all the
    ingredients we need now to
  • 36:59 - 37:00
    pop into this formula.
  • 37:01 - 37:07
    Cosine theater will be a dotted
    with B, which we found was 51
  • 37:07 - 37:12
    divided by the modular survey,
    which is the square root of 74.
  • 37:13 - 37:17
    The modulus of B, which is the
    square root of 45 now will need
  • 37:17 - 37:19
    a Calculator to work this out.
  • 37:22 - 37:23
    We want 51.
  • 37:25 - 37:28
    Divided by the square
    root of 74.
  • 37:29 - 37:30
    Divided by the square root.
  • 37:31 - 37:39
    45 Which is not .8838
    to 4 decimal places. That's the
  • 37:39 - 37:44
    cosine of the angle between the
    two vectors A&B.
  • 37:44 - 37:46
    If we find the inverse cosine.
  • 37:49 - 37:52
    Of .8838.
  • 37:54 - 37:58
    Which is 27.90
    degrees.
  • 38:01 - 38:05
    So there we've seen how we can
    use the scalar product.
  • 38:06 - 38:10
    To find the angle between
    two vectors when they're
  • 38:10 - 38:12
    given in Cartesian form.
  • 38:17 - 38:21
    Now there's one more application
    I'd like to tell you about, and
  • 38:21 - 38:25
    it's concerned with finding the
    components of one vector in the
  • 38:25 - 38:29
    direction of a second vector.
    Let me give you an example.
  • 38:31 - 38:33
    Suppose we have a vector A.
  • 38:35 - 38:37
    Let me have a second vector.
  • 38:38 - 38:39
    B.
  • 38:42 - 38:47
    And I've drawn these vectors so
    that their tails coincide and.
  • 38:48 - 38:51
    As usual, the angle between the
    two vectors is theater.
  • 38:52 - 38:54
    Let's call this .0.
  • 38:55 - 38:59
    And what I'm going to do is
    I'm going to drop a
  • 38:59 - 39:01
    perpendicular from this
    point, which I'll call B
  • 39:01 - 39:01
    down.
  • 39:04 - 39:06
    To meet the vector A.
  • 39:10 - 39:12
    Let's call this point here a.
  • 39:13 - 39:15
    And we can regard the vector OB.
  • 39:17 - 39:21
    As the sum of the vector
    from O2 Capital A and then
  • 39:21 - 39:25
    the vector from A to B. In
    other words, the vector OB.
  • 39:27 - 39:29
    Is the sum of OA.
  • 39:32 - 39:33
    Plus a bee.
  • 39:37 - 39:41
    Now this vector here, which
    we've called OK, that vector is
  • 39:41 - 39:46
    said to be the component of B in
    the direction of a. You'll see
  • 39:46 - 39:51
    we can regard be as being made
    up of two components, one in the
  • 39:51 - 39:56
    direction of A and one which is
    at right angles to that. So this
  • 39:56 - 39:57
    component, oh A.
  • 39:58 - 40:01
    Is the component of B
    in the direction of a.
  • 40:18 - 40:22
    And what we're going to do is
    we're going to see how we can
  • 40:22 - 40:24
    use the scalar product to
    find this component.
  • 40:26 - 40:30
    Let's call this length here the
    length from O to a. Let's call
  • 40:30 - 40:35
    that little. And then let's
    focus our attention on this
  • 40:35 - 40:36
    right angled triangle.
  • 40:37 - 40:38
    Oba.
  • 40:39 - 40:42
    So there's a right angle
    in there.
  • 40:43 - 40:47
    Now, using our knowledge of
    trigonometry, we can write down
  • 40:47 - 40:52
    the cosine of this angle is
    adjacent over hypotenuse, so the
  • 40:52 - 40:53
    cosine of Theta.
  • 40:55 - 40:58
    Is this length L
    the adjacent side?
  • 40:59 - 41:02
    Over the hypotenuse, now
    the hypotenuse is the
  • 41:02 - 41:03
    length of this side.
  • 41:05 - 41:07
    And this is the length of
    this side is the modulus of
  • 41:07 - 41:08
    vector be.
  • 41:12 - 41:16
    Now, In other words, if we
    rearrange this L, the component
  • 41:16 - 41:22
    of B in the direction of a week
    and right as the modulus of be
  • 41:22 - 41:24
    times, the cosine Theta.
  • 41:28 - 41:31
    Now we've already got an
    expression for the cosine of
  • 41:31 - 41:36
    this angle in the previous work
    that we've done, we already know
  • 41:36 - 41:40
    that the cosine of feta can be
    written as the dot product for
  • 41:40 - 41:45
    amb. Divided by the modular
    survey times the modulus of be,
  • 41:45 - 41:47
    that's the result we just had.
  • 41:48 - 41:51
    So if you look at this
    expression now, you'll see
  • 41:51 - 41:54
    with the modulus B in the
    numerator and a modulus of be
  • 41:54 - 41:56
    in the denominator, they
    cancel.
  • 41:57 - 41:58
    So we can write this.
  • 41:59 - 42:04
    As a not be over
    the modulus of A.
  • 42:07 - 42:09
    Let me write that down
    again on the next page.
  • 42:21 - 42:25
    So this remember L is the
    component of be in the direction
  • 42:25 - 42:29
    of a. We can write it like this.
    I'm going to Rearrange this a
  • 42:29 - 42:33
    little bit to write it as a
    divided by the modulus of A.
  • 42:34 - 42:36
    Dotted with effective be.
  • 42:37 - 42:41
    And because of the result we
    got very early on the
  • 42:41 - 42:44
    commutativity of the dot
    product. We can write this as
  • 42:44 - 42:47
    B dot A divided by the modulus
    of A.
  • 42:49 - 42:53
    Now when you take any vector and
    you divide it by its modulus,
  • 42:53 - 42:57
    what you get is a unit vector in
    the direction of that vector,
  • 42:57 - 43:01
    and we write a unit vector as
    the vector with a little hat on
  • 43:01 - 43:05
    like that. So this is a unit
    vector in the direction of A.
  • 43:15 - 43:19
    So this is an important result
    we've got. We've got L, which
  • 43:19 - 43:23
    is the component of be in the
    direction of a can be found by
  • 43:23 - 43:27
    taking the dot product of be
    with a unit vector in the
  • 43:27 - 43:28
    direction of A.
  • 43:31 - 43:38
    So suppose we wish to find the
    component of Vector B which is 3
  • 43:38 - 43:44
    I plus J Plus 4K in the
    direction of the Vector A, which
  • 43:44 - 43:47
    is I minus J Plus K.
  • 43:48 - 43:53
    What we want to do is
    evaluate B dotted with a
  • 43:53 - 43:56
    divided by the modular
    survey.
  • 43:59 - 44:03
    Now we can do that as follows.
    We can workout the dot product B
  • 44:03 - 44:07
    dot A and then divide by the
    modulus of a. So B Dot A is
  • 44:07 - 44:10
    going to be 3 * 1, which is 3.
  • 44:10 - 44:16
    Plus one times minus one which
    is minus 1 + 4 * 1 which is 4 or
  • 44:16 - 44:20
    divided by the modulus of a
    which is the square root of 1
  • 44:20 - 44:24
    squared plus minus one squared
    plus one squared, which is the
  • 44:24 - 44:25
    square root of 3.
  • 44:28 - 44:33
    If we work that out, will get 3
    - 1 is 2 + 4 six six over Route
  • 44:33 - 44:38
    3. This means that the component
    of B in the direction of a is 6.
  • 44:38 - 44:41
    Over Route 3. We might want to
    write that in an alternative
  • 44:41 - 44:45
    form just to tidy it up so we
    don't have the square root in
  • 44:45 - 44:49
    the denominator and we can do
    that by multiplying top and
  • 44:49 - 44:53
    bottom by the square root of 3,
    which will produce Route 3 times
  • 44:53 - 44:56
    route 3 in the denominator,
    which is 3 and three into six
  • 44:56 - 44:59
    goes twice. So that
    would just simplify to
  • 44:59 - 45:00
    two square root of 3.
  • 45:03 - 45:06
    So in this unit we've introduced
    the scalar product.
  • 45:07 - 45:10
    Learn how to calculate it and
    looked at some of its
  • 45:10 - 45:11
    properties and applications.
Title:
www.mathcentre.ac.uk/.../The%20scalar%20product.mp4
Video Language:
English

English subtitles

Revisions