Row vectors, column vectors, and matrices

We define an (n-dimensional) (row) vector to be an element of Rn endowed with addition and scalar multiplication



So, a row vector is something like (x1,x2,,xn). We may omit the commas as in (x1 x2  xn). But vectors are not just elements of Rn. We define addition between row vectors by

(eq:vadd)(x1,,xn)+(y1,,yn)=(x1+y1,,xn+yn).

We also define multiplication by a real number λR by

(eq:svmul)λ(x1,,xn)=(λx1,,λxn).

In this context, the real numbers are called scalars because it scales the vector.

In summary, vectors are elements of Rn where addition and scalar multiplications are defined. We will give more characterization of vectors in later posts.

Example. (1,2),(5,3)R2 are 2-dimensional row vectors. We can add them as

(1,2)+(5,3)=(15,2+3)=(4,5).

We can multiply them by scalars (real numbers):

π(1,2)=(π,2π),1(5,3)=(5,3).

Instead of writing n real numbers in a row like (x1,,xn), we could write them in a column like

(x1xn)

which we call a column vector. Addition and scalar multiplication can be defined similarly to row vectors.


If n is not prime, we can write a point in Rn in multiple rows and columns. For example, a point in R6 may be written as

(x1,x2,x3,x4,x5,x6)

or

(x1x2x3x4x5x6)

or

(x1x2x3x4x5x6)

or

(x1x2x3x4x5x6).

Such a rectangular array of numbers is called a matrix. If there are m rows and n columns in a matrix, we call it an m×n matrix and regard it as a member of the set Rm×n. We can also define element-wise addition and scalar multiplication for matrices. Now we can see that an n-dimensional row vector is really a 1×n matrix, and an n-dimensional column vector is an n×1 matrix. Accordingly, we can define addition and scalar multiplication of matrices in the same way as vectors.

Example

(123456)+(312123)=(215539),

5(123456)=(51015202530).

Note that two matrices can be added if and only if they have the same shape. □

Remark. So far, we have worked with Rn to define vectors (including matrices). We can similarly define vectors and matrices on Cn or Qn where scalars are complex or rational numbers, respectively. Note that R, C and Q are fields. In fact, we may define vectors and matrices over any field. □

Definition (Linear combination)

Let v1,v2,,vn be vectors and λ1,λ2,,λn be scalars. The expression of the form

λ1v1+λ2v2++λnvn

is called the linear combination of the vectors v1,v2,,vn with the coefficients λ1,λ2,,λn.


Example

(5,9)=3(1,1)+2(1,3).

Thus, (5,9) can be represented as a linear combination of (1,1) and (1,3) with coefficients 3 and 2, respectively. □


Comments

Popular posts from this blog

Birth process

Branching processes: Mean and variance

Informal introduction to formal logic