Linear Algebra

Jan 15, 2024

Vector spaces

A vector space V is a set, the elements of which are called vectors, on which two operations are defined: vectors can be added together, and vectors can be multiploed by real numbers (scalars).

With this V must statisfy the following:

  1. There exists an additive identity 0 in V such that x+0=x for all xV

  2. For each xV, there exists and additive inverse, x, such that x+(x)=0

  3. There exists a multiplicative identity (written 1) in R such that 1x=x for all xV

  4. Commutativity: x+y=y+x for all x,yV

  5. Associativity: (x+y)+z=x+(y+z) and α(βx)=(αβ)x for all x,y,zV and α,βR

  6. Distributivity: α(x+y)=αx+αy and (α+β)x=αx+βx for all x,yV and α,βR

A set of vectors v1,,vnV is said to be linearly independent if

αvn++αnvn=0 imlpies α1==αn=0.

The span of v1,,vnV is the set of all vectors that can be expressed of a linear combination of them:

span{v1,,vn}={vV:α,,αn such that αv1++αnvn=v}

If the set of vectors is linearly independent and its span is the whole V, those vectors are said to be a basis for V. In fact, every linear independent set of vectors forms a basis for its span.

If a vector space is spanned by a finite numbers of vectors, it is said to be finite-dimensional. Otherwise it is infinite-dimensional. The number of vectors in a basis for a finite-dimensional vector space V is called the dimension of V and demoted dim V.

Euclidean space

The quintessential vector space is Eculidean space, which we denote Rn. The vectors in this space consist of n-tuples of real numbers:

x=(x1,x2,,xn)

It is also useful to consider them as a n×1 matrices, or column vectors:

x=[x1x1xn]

Addition and scalar multiplication are defined component-wise on vectors in Rn. x+y=[x1+y1x1+y2xn+yn],αx=[αx1αxn]

Euclidean space is used to mathematically represent physical space, with notions such as distance, length, and angles. Although it becomes hard to visualize fot n>3, these concepts generalize mathematically in obvious ways. Even when you’re wokring in more general settings than Rn, it is often useful to visualize vector addition and scalalr multiplication in terms of 2D vectors in the plane or 3D vectors in space.

Subspaces

Vector spaces can contain other vector spaces. If V is a vector space, then SV is said to be a subspace of V if:

  1. 0S

  2. S is closed under addition: x,yS implies x+yS

  3. S is closed under scalar multiplication: xS,αR implies αxS

Note that V is always a subsapce of V, as is the trivial vector space which contains only 0. As a concrete example, a line passing through the origin is a subsapce of Eculidean space. If U and W are subspaces of V, then their sum is defined as

U+W={u+wuU,wW}

If UW={0}, the sum is said to be a direct sum and written UW. Every vector in UW can be written uniquely as u+w for some uU and wW.

The dimensions of sums of subspaces obey a friendly relationship:

dim(U+W)=dim U+dim Wdim(UW)

It follows that

dim(UW)=dim U+dim W

since dim(UW)=dim({0})=0 if the sum is direct.

Linear maps

A linear map is a function T:VW, where V and W are vector spaces, that statisfies

  1. T(x+y)=Tx+Ty for all x,yV

  2. T(αx)=αTx for all xV,αR

A linear map from V to itself is called a linear operator.

Matrices and transposes

where ai,jR. The (i,j)th entry of A is Ai,j=ai,j.

such that, (AT)i,j=Aj,i

Note: xRn is considered to be a columnn vector in Rn×1

Sums and products of matrcies

(AB)i,j=k=1nAi,kBk,j