Linear Algebra

4.4 Coordinates and Basis

Imron Rosyadi

Coordinates and Basis

A Foundation for Vector Space Understanding

The Essence of Coordinate Systems

Coordinate systems allow us to describe points and vectors numerically. While rectangular systems are common, they are not the only option.

Rectangular Coordinates

  • Familiar \(x, y, z\) axes.
  • Mutually perpendicular axes.
  • Common in basic geometry.

Non-Rectangular Coordinates

  • Axes not necessarily perpendicular.
  • Still define unique positions.
  • More flexible for various applications.

Coordinate Systems: From Geometry to Vectors

In linear algebra, coordinate systems are often defined using vectors. These vectors define the “directions” and “units” for each axis.

Figure 4.4.1: Rectangular coordinates.

Figure 4.4.2: Non-rectangular coordinates.

Defining Coordinates with Vectors

We use vectors, often unit vectors, to identify positive directions. A point \(P\) is then represented by scalar coefficients.

\[ \overrightarrow{OP} = a\mathbf{u}_1 + b\mathbf{u}_2 \quad \mathrm{and} \quad \overrightarrow{OP} = a\mathbf{u}_1 + b\mathbf{u}_2 + c\mathbf{u}_3 \]

Figure 4.4.3: Coordinate systems defined by unit vectors.

Basis Vectors: Generalizing Coordinate Axes

To allow for more generality, we relax the unit vector requirement. The defining vectors, now called basis vectors, only need to be linearly independent.

  • Directions: Established by the basis vectors.
  • Spacing: Determined by the lengths of the basis vectors.
  • Requirement: Basis vectors must be linearly independent.

Figure 4.4.4: Basis vectors determining directions and spacing.

Basis for a Vector Space: Definition

A basis provides a fundamental set of building blocks for a vector space. Vector spaces can be finite-dimensional or infinite-dimensional.

DEFINITION 1

If \(S = \{\mathbf{v}_{1}, \mathbf{v}_{2}, \ldots , \mathbf{v}_{n}\}\) is a set of vectors in a finite-dimensional vector space \(V\), then \(S\) is called a basis for \(V\) if:

  1. \(S\) spans \(V\).
  2. \(S\) is linearly independent.

Finite vs. Infinite-Dimensional Spaces

Vector spaces are categorized by whether they have a finite spanning set.

Finite-Dimensional

  • There exists a finite set of vectors that spans \(V\).
  • Examples: \(R^n\), \(P_n\) (polynomials of degree \(\le n\)), \(M_{mn}\) (matrices).

Infinite-Dimensional

  • No finite set of vectors can span \(V\).
  • Examples: \(P_\infty\) (all polynomials), \(R^\infty\) (infinite sequences), \(C(-\infty, \infty)\) (continuous functions).

EXAMPLE 1: The Standard Basis for \(R^{n}\)

The most familiar basis for \(R^n\) is the standard basis.

The standard unit vectors: \[ \mathbf{e}_{1} = (1,0,0,\ldots ,0), \quad \mathbf{e}_{2} = (0,1,0,\ldots ,0), \ldots , \quad \mathbf{e}_{n} = (0,0,0,\ldots ,1) \]

For \(R^3\), the standard basis is: \[ \mathbf{i} = (1,0,0), \quad \mathbf{j} = (0,1,0), \quad \mathbf{k} = (0,0,1) \]

These vectors are linearly independent and span \(R^n\).

Interactive Example: Standard Basis in \(R^3\)

Visualize the standard basis vectors and a vector formed by their linear combination.

EXAMPLE 2: The Standard Basis for \(P_{n}\)

The vector space \(P_n\) consists of polynomials of degree \(n\) or less. The standard basis for \(P_n\) is \(S = \{1, x, x^{2}, \ldots , x^{n}\}\).

Let’s denote these polynomials as: \[ \mathbf{p}_{0} = 1, \quad \mathbf{p}_{1} = x, \quad \mathbf{p}_{2} = x^{2}, \ldots , \quad \mathbf{p}_{n} = x^{n} \]

These polynomials span \(P_n\) and are linearly independent, forming a basis.

EXAMPLE 3: Another Basis for \(R^{3}\)

A vector space can have multiple bases. Show that \(\mathbf{v}_{1} = (1,2,1)\), \(\mathbf{v}_{2} = (2,9,0)\), and \(\mathbf{v}_{3} = (3,3,4)\) form a basis for \(R^{3}\).

To prove this, we need to show:

  1. Linear Independence: The equation \(c_{1}\mathbf{v}_{1} + c_{2}\mathbf{v}_{2} + c_{3}\mathbf{v}_{3} = \mathbf{0}\) has only the trivial solution (\(c_1=c_2=c_3=0\)).
  2. Spanning: Any vector \(\mathbf{b} = (b_{1},b_{2},b_{3})\) in \(R^{3}\) can be expressed as \(c_{1}\mathbf{v}_{1} + c_{2}\mathbf{v}_{2} + c_{3}\mathbf{v}_{3} = \mathbf{b}\).

Both conditions rely on the invertibility of the coefficient matrix \(A\).

\[ A={\left[\begin{array}{l l l}{1}&{2}&{3}\\ {2}&{9}&{3}\\ {1}&{0}&{4}\end{array}\right]} \]

If \(\det(A) \neq 0\), then \(A\) is invertible, implying both conditions are met.

Interactive Example: Checking Basis for \(R^3\)

Let’s use Python to calculate the determinant of matrix \(A\).

EXAMPLE 4: The Standard Basis for \(M_{mn}\)

The vector space \(M_{mn}\) consists of \(m \times n\) matrices. For \(M_{22}\) ( \(2 \times 2\) matrices), the standard basis is:

\[ M_{1}={\left[\begin{array}{l l}{1}&{0}\\ {0}&{0}\end{array}\right]},\quad M_{2}={\left[\begin{array}{l l}{0}&{1}\\ {0}&{0}\end{array}\right]},\quad M_{3}={\left[\begin{array}{l l}{0}&{0}\\ {1}&{0}\end{array}\right]},\quad M_{4}={\left[\begin{array}{l l}{0}&{0}\\ {0}&{1}\end{array}\right]} \]

Any \(2 \times 2\) matrix \(B = \left[ \begin{array}{ll}a & b \\ c & d \end{array} \right]\) can be uniquely written as:

\[ B = aM_1 + bM_2 + cM_3 + dM_4 \]

These matrices are linearly independent and span \(M_{22}\).

The Zero Vector Space

The simplest vector space is \(V = \{\mathbf{0}\}\).

It is finite-dimensional, spanned by \(\mathbf{0}\).

However, \(\{\mathbf{0}\}\) is not linearly independent.

Tip

For convenience, the empty set \(\varnothing\) is defined as a basis for the zero vector space.

EXAMPLE 5 & 6: Infinite-Dimensional Vector Space

The vector space of all polynomials, \(P_{\infty}\), is infinite-dimensional.

No finite set of polynomials can span \(P_{\infty}\).

Why?

  • If \(S = \{\mathbf{p}_{1}, \ldots , \mathbf{p}_{r}\}\) spanned \(P_{\infty}\), there would be a maximum degree, say \(n\).
  • Then \(x^{n+1}\) could not be expressed as a linear combination of polynomials in \(S\).
  • This contradicts \(S\) spanning \(P_{\infty}\).

Other infinite-dimensional spaces:

  • \(R^{\infty}\) (sequences)
  • \(F(- \infty , \infty)\) (all real-valued functions)
  • \(C(- \infty , \infty)\) (continuous functions)
  • \(C^{m}(- \infty , \infty)\) (functions with \(m\) continuous derivatives)

Coordinates Relative to a Basis

A basis allows us to assign unique coordinates to every vector in a space. This formalizes the idea of a “coordinate system” in abstract vector spaces.

THEOREM 4.4.1 Uniqueness of Basis Representation

If \(S = \{\mathbf{v}_{1}, \mathbf{v}_{2}, \ldots , \mathbf{v}_{n}\}\) is a basis for a vector space \(V\), then every vector \(\mathbf{v}\) in \(V\) can be expressed in the form \(\mathbf{v} = c_{1} \mathbf{v}_{1} + c_{2} \mathbf{v}_{2} + \dots + c_{n} \mathbf{v}_{n}\) in exactly one way.

Defining Coordinate Vectors

The coefficients in the unique linear combination are the coordinates.

DEFINITION 2

If \(S = \{\mathbf{v}_{1}, \mathbf{v}_{2}, \ldots , \mathbf{v}_{n}\}\) is a basis for a vector space \(V\), and \[ \mathbf{v} = c_{1}\mathbf{v}_{1} + c_{2}\mathbf{v}_{2} + \dots + c_{n}\mathbf{v}_{n} \] is the expression for a vector \(\mathbf{v}\) in terms of the basis \(S\), then the scalars \(c_{1}, c_{2}, \ldots , c_{n}\) are called the coordinates of \(\mathbf{v}\) relative to the basis \(S\). The vector \((c_{1}, c_{2}, \ldots , c_{n})\) in \(R^{n}\) is called the coordinate vector of \(\mathbf{v}\) relative to \(S\); it is denoted by \[ (\mathbf{v})_{S} = (c_{1}, c_{2}, \ldots , c_{n}) \tag{6} \]

Ordered Basis

The order of basis vectors matters for coordinate vectors.

Note

When we talk about coordinate vectors, we always assume an ordered basis.

Changing the order of basis vectors changes the coordinate vector.

For example, in \(R^2\), \((1,2)\) is not the same as \((2,1)\).

Figure 4.4.6: Correspondence between vectors in \(V\) and \(R^n\).

EXAMPLE 7: Coordinates Relative to the Standard Basis for \(R^{n}\)

For the standard basis \(S\) in \(R^n\), the coordinate vector is identical to the vector itself.

For \(\mathbf{v} = (a,b,c)\) in \(R^3\) and standard basis \(S = \{\mathbf{i},\mathbf{j},\mathbf{k}\}\): \[ \mathbf{v} = a\mathbf{i} + b\mathbf{j} + c\mathbf{k} \] The coordinate vector relative to \(S\) is: \[ (\mathbf{v})_{S} = (a,b,c) \] This means \((\mathbf{v})_{S} = \mathbf{v}\).

EXAMPLE 8: Coordinate Vectors Relative to Standard Bases

Coordinate vectors for polynomials and matrices are also straightforward with standard bases.

(a) Polynomial \(P_n\)

For \(\mathbf{p}(x) = c_{0} + c_{1}x + \dots +c_{n}x^{n}\) and standard basis \(S = \{1,x,\ldots ,x^{n}\}\), \[ (\mathbf{p})_{S} = (c_{0},c_{1},c_{2},\ldots ,c_{n}) \]

(b) Matrix \(M_{22}\)

For \(B = \left[ \begin{array}{ll}a & b \\ c & d \end{array} \right]\) and standard basis \(S = \{M_1, M_2, M_3, M_4\}\), \[ (B)_{S} = (a,b,c,d) \]

EXAMPLE 9: Coordinates in \(R^{3}\) with a Non-Standard Basis

Using the basis \(S = \{\mathbf{v}_{1},\mathbf{v}_{2},\mathbf{v}_{3}\}\) from Example 3: \(\mathbf{v}_{1} = (1,2,1)\), \(\mathbf{v}_{2} = (2,9,0)\), \(\mathbf{v}_{3} = (3,3,4)\).

(a) Find \((\mathbf{v})_{S}\) for \(\mathbf{v} = (5, - 1,9)\).

We need \(c_{1},c_{2},c_{3}\) such that \(\mathbf{v} = c_{1}\mathbf{v}_{1} + c_{2}\mathbf{v}_{2} + c_{3}\mathbf{v}_{3}\).

This leads to the system: \[ \begin{array}{r l} & {c_{1} + 2c_{2} + 3c_{3} = 5}\\ & {2c_{1} + 9c_{2} + 3c_{3} = -1}\\ & {c_{1}\qquad +4c_{3} = 9} \end{array} \]

Interactive Example: Finding Coordinates

Let’s solve the system to find the coordinates \((\mathbf{v})_{S}\).

The solution is \(c_{1} = 1, c_{2} = - 1, c_{3} = 2\). So, \((\mathbf{v})_{S} = (1, -1,2)\).

EXAMPLE 9: Coordinates in \(R^{3}\) (Continued)

(b) Find the vector \(\mathbf{v}\) in \(R^{3}\) whose coordinate vector relative to \(S\) is \((\mathbf{v})_{S} = (-1,3,2)\).

Here, we are given the coordinates and need to find the actual vector. Using the definition \(\mathbf{v} = c_{1}\mathbf{v}_{1} + c_{2}\mathbf{v}_{2} + c_{3}\mathbf{v}_{3}\):

\[ \begin{array}{r l} & {\mathbf{v} = (-1)\mathbf{v}_{1} + 3\mathbf{v}_{2} + 2\mathbf{v}_{3}}\\ & {\quad = (-1)(1,2,1) + 3(2,9,0) + 2(3,3,4)} \end{array} \]

Interactive Example: Reconstructing Vector from Coordinates

Let’s compute \(\mathbf{v}\) from its coordinate vector.

The resulting vector is \(\mathbf{v} = (11,31,7)\).

Summary

  • Coordinate Systems: Generalize beyond rectangular axes using vectors.
  • Basis: A set of linearly independent vectors that spans a vector space.
  • Uniqueness: Every vector has a unique representation relative to a given basis.
  • Coordinate Vector: The ordered set of scalars representing a vector in terms of a basis.
  • Application: Crucial for understanding transformations, solving systems, and representing data in ECE.