Home page for accesible maths 1 Matrices

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

1.3. Vector multiplication

There is an obvious way of adding two vectors to get another vector, and an obvious way of multiplying a vector by a scalar. Below we define a multiplication which has two vectors as its input, and its output is a scalar. We also define a multiplication which has a matrix and a vector as its input, and a vector as its output.

Definition 1.3.1.

Let v=(v1v2vm)m,w=(w1w2wm)m, and AMn×m().

  1. (i)

    (Vector × vector) The scalar product (also dot product) of v and w is the real number

    vw=v1w1+v2w2++vmwm=1imviwi.

    The symbol Σ1im means “sum over all values of i such that 1im”.

  2. (ii)

    (Matrix × vector) The product Av is defined to be the column vector (vi)n, with coefficients

    vi=ai1v1+ai2v2++aimvm=1jmaijvjfor all1in.

    In other words, the i-th coefficient of the column vector Av is the scalar product of the i-th row of A with v.

Example 1.3.2.

  • Let A=(12-2101)M3×2() and v=(3-1)2. The product Av is defined and we have

    Av=(13+2(-1)-23+1(-1)03+1(-1))=(1-7-1)3,vv=33+(-1)(-1)=10.

Example 1.3.3.

  • Let A=(123456)M2×3() and v=(1-12)3. Then

    Av=(511)2,vv=6.
Remark 1.3.4.
  1. (i)

    The multiplication of a matrix with a column vector is defined if and only if the size of the vector is equal to the number of columns of the matrix.

  2. (ii)

    The terms “scalar product” and “scalar multiplication” refer to completely different things.

Definition 1.3.5 (Length of a vector).

The length (or norm) of a vector vm is

||v||=v12++vm2=vv.
Proposition 1.3.6.

If the angle between two vectors v,wRm is called θ[0,π), then

vw=vwcosθ.

In particular v and w are perpendicular to each other if and only if vw=0.

Proof.

We omit the proof. ∎

Example 1.3.7.

  • Find the angle θ between the vectors

    v=(102-2)andw=(-2101)both in 4.

    Solution: We compute the scalar product and lengths of v and w:

    vw=1(-2)+01+20+(-2)1=-4,
    v=12+02+22+22=3andw=(-2)2+12+02+12=6.

    By Proposition 1.3.6, cosθ=-436. Hence the angle between v and w is about 2.15 radians (or 123 degrees).

Example 1.3.8. (Differential operator)

  • Consider a degree n poynomial

    P=a1xn+a2xn-1++anx+an+1.

    We may represent P as an (n+1)-dimensional column vector, v=(ai), simply by recording the coefficients. Then differentiating this polynomial with respect to x is the same as applying the Differential operator:

    Dx=(0n00n-100200010)M(n+1)×(n+1)().

    For example, when n=2, the differential operator is Dx=(000200010). So if v represents the polynomial x2+3x+4, then one calculates

    Dxv=Dx(134)=(023),

    which represents the polynomial 2x+3, as one would expect from calculus.