Linear Algebra

3.4 The Geometry of Linear Systems

Imron Rosyadi

The Geometry of Linear Systems

Unveiling Vector & Parametric Equations

Introduction: Visualizing Linear Algebra

In ECE, understanding linear systems isn’t just about solving equations; it’s about visualizing their geometric interpretations.

This lecture explores how to represent solution sets of linear systems as geometric objects like points, lines, and planes.

Lines in \(R^2\) and \(R^3\): Vector Form

A unique line L is determined by a point \(\mathbf{x}_0\) on the line and a non-zero vector \(\mathbf{v}\) parallel to the line.

The vector \(\mathbf{x} - \mathbf{x}_0\) is a scalar multiple of \(\mathbf{v}\). \[ \mathbf{x} - \mathbf{x}_0 = t\mathbf{v} \] This leads to the vector equation of a line: \[ \mathbf{x} = \mathbf{x}_0 + t\mathbf{v} \quad \text{(1)} \] Where \(t\) is the parameter, varying from \(-\infty\) to \(\infty\).

If \(\mathbf{x}_0 = \mathbf{0}\), the line passes through the origin: \[ \mathbf{x} = t\mathbf{v} \quad \text{(2)} \]

Figure 3.4.2

Note

To define a line in either 2D (ℝ²) or 3D (ℝ³), you need:

  • A point 𝑥0 on the line.
  • A direction vector 𝑣 that is parallel to the line.

Any point 𝑥 on the line satisfies: 𝑥−𝑥0=𝑡𝑣

Which rearranges to the vector equation of a line: 𝑥 =𝑥0+𝑡𝑣

Interactive Line Plot in \(R^2\)

Adjust the starting point \(\mathbf{x}_0\) and direction vector \(\mathbf{v}\) to see how the line changes.

Tip

Try changing the values of x0_val, y0_val, vx_val, and vy_val below. Observe how the line shifts and rotates.

Planes in \(R^3\): Vector Form

A unique plane W is determined by a point \(\mathbf{x}_0\) in the plane and two non-collinear (not lie on the same line) vectors \(\mathbf{v}_1, \mathbf{v}_2\) parallel to the plane.

The vector \(\mathbf{x} - \mathbf{x}_0\) can be expressed as a linear combination of \(\mathbf{v}_1\) and \(\mathbf{v}_2\). \[ \mathbf{x} - \mathbf{x}_0 = t_1\mathbf{v}_1 + t_2\mathbf{v}_2 \] This leads to the vector equation of a plane: \[ \mathbf{x} = \mathbf{x}_0 + t_1\mathbf{v}_1 + t_2\mathbf{v}_2 \quad \text{(3)} \] Where \(t_1, t_2\) are parameters, varying from \(-\infty\) to \(\infty\).

If \(\mathbf{x}_0 = \mathbf{0}\), the plane passes through the origin: \[ \mathbf{x} = t_1\mathbf{v}_1 + t_2\mathbf{v}_2 \quad \text{(4)} \]

Figure 3.4.3

Interactive Plane Plot in \(R^3\)

Visualize a plane defined by a point and two direction vectors.

Tip

Modify the components of x0, v1, and v2 to explore different planes. Notice how v1 and v2 must be non-collinear to define a plane.

Generalizing to \(R^n\)

The concepts of lines and planes extend naturally to higher dimensions.

Definition 1: Line in \(R^n\)

If \(\mathbf{x}_0\) and \(\mathbf{v}\) are vectors in \(R^n\), and if \(\mathbf{v}\) is nonzero, then the equation \[ \mathbf{x} = \mathbf{x}_0 + t\mathbf{v} \quad \text{(5)} \] defines the line through \(\mathbf{x}_0\) that is parallel to \(\mathbf{v}\).

In the special case where \(\mathbf{x}_0 = \mathbf{0}\), the line is said to pass through the origin.

Definition 2: Plane in \(R^n\)

If \(\mathbf{x}_0\), \(\mathbf{v}_1\), and \(\mathbf{v}_2\) are vectors in \(R^n\), and if \(\mathbf{v}_1\) and \(\mathbf{v}_2\) are not collinear, then the equation \[ \mathbf{x} = \mathbf{x}_0 + t_1\mathbf{v}_1 + t_2\mathbf{v}_2 \quad \text{(6)} \] defines the plane through \(\mathbf{x}_0\) that is parallel to \(\mathbf{v}_1\) and \(\mathbf{v}_2\).

In the special case where \(\mathbf{x}_0 = \mathbf{0}\), the plane is said to pass through the origin.

Example 1: Lines in \(R^2\) and \(R^3\)

Part (a): Line in \(R^2\) through origin, parallel to \(\mathbf{v} = (-2,3)\)

Vector equation: \((x,y) = t(-2,3)\)

Parametric equations: \(x = -2t, \quad y = 3t\)

Part (b): Line in \(R^3\) through \(P_0(1,2,-3)\), parallel to \(\mathbf{v} = (4,-5,1)\)

Vector equation: \((x, y, z) = (1, 2, -3) + t(4, -5, 1)\)

Parametric equations: \(x = 1 + 4t, \quad y = 2 - 5t, \quad z = -3 + t\)

Note

The parameter \(t\) allows us to trace any point on the line. Different values of \(t\) correspond to different points.

Interactive Example 1(c): Points on a Line

Using the vector equation from Example 1(b): \[ (x, y, z) = (1, 2, -3) + t(4, -5, 1) \] Let’s find points for different values of \(t\).

Example 2: Plane from Rectangular Equation

Find vector and parametric equations for the plane \(x - y + 2z = 5\).

  1. Solve for one variable: Solve for \(x\): \(x = 5 + y - 2z\)

  2. Introduce parameters: Let \(y = t_1\) and \(z = t_2\).

  3. Parametric equations:

    \(x = 5 + t_1 - 2t_2\)

    \(y = t_1\)

    \(z = t_2\)

  4. Vector Equation: Rewrite in vector form:

    \((x, y, z) = (5 + t_1 - 2t_2, t_1, t_2)\)

    Split into components:

    \((x, y, z) = (5, 0, 0) + t_1(1, 1, 0) + t_2(-2, 0, 1)\)

Important

Note that we could have chosen to solve for \(y\) or \(z\) instead, leading to different parametric forms, but representing the same geometric plane.

Interactive Example 2: Plane Visualization

Visualize the plane \(x - y + 2z = 5\).

Lines Through Two Points in \(R^n\)

A line can also be defined by two distinct points \(\mathbf{x}_0\) and \(\mathbf{x}_1\).

The line determined by \(\mathbf{x}_0\) and \(\mathbf{x}_1\) is parallel to the vector \(\mathbf{v} = \mathbf{x}_1 - \mathbf{x}_0\).

Using the general line equation \(\mathbf{x} = \mathbf{x}_0 + t\mathbf{v}\): \[ \mathbf{x} = \mathbf{x}_0 + t(\mathbf{x}_1 - \mathbf{x}_0) \quad \text{(9)} \]

This can be rewritten as: \[ \mathbf{x} = (1 - t)\mathbf{x}_0 + t\mathbf{x}_1 \quad \text{(10)} \]

These are the two-point vector equations of a line.

Figure 3.4.5

Interactive: Line Through Two Points

Find the vector and parametric equations for a line passing through two given points.

Tip

Enter coordinates for \(\mathbf{x}_0\) and \(\mathbf{x}_1\) to generate the line equations and visualize it.

Line Segments

A line segment is a portion of a line between two specific points.

If \(\mathbf{x}_0\) and \(\mathbf{x}_1\) are vectors in \(R^n\), the equation: \[ \mathbf{x} = \mathbf{x}_0 + t(\mathbf{x}_1 - \mathbf{x}_0) \quad (0 \leq t \leq 1) \quad \text{(13)} \] defines the line segment from \(\mathbf{x}_0\) to \(\mathbf{x}_1\).

Equivalently: \[ \mathbf{x} = (1 - t)\mathbf{x}_0 + t\mathbf{x}_1 \quad (0 \leq t \leq 1) \quad \text{(14)} \]

  • When \(t=0\), \(\mathbf{x} = \mathbf{x}_0\).
  • When \(t=1\), \(\mathbf{x} = \mathbf{x}_1\).
  • For \(0 < t < 1\), \(\mathbf{x}\) lies between \(\mathbf{x}_0\) and \(\mathbf{x}_1\).

Interactive Line Segment

Visualize a line segment between two points and explore intermediate points.

Tip

Adjust the value of t_slider to see how a point moves along the segment. Change x0_coords and x1_coords to define a new segment.

Dot Product Form of a Linear System

Linear equations can be expressed concisely using dot products.

A linear equation \(a_1x_1 + \dots + a_nx_n = b\) can be written as: \[ \mathbf{a} \cdot \mathbf{x} = b \quad \text{(17)} \] where \(\mathbf{a} = (a_1, \dots, a_n)\) and \(\mathbf{x} = (x_1, \dots, x_n)\).

For a homogeneous equation (\(\mathbf{b}=0\)): \[ \mathbf{a} \cdot \mathbf{x} = 0 \quad \text{(18)} \] This implies that every solution vector \(\mathbf{x}\) is orthogonal to the coefficient vector \(\mathbf{a}\).

Dot Product Form of a Linear System

Homogeneous System \(A\mathbf{x} = \mathbf{0}\)

If \(A\) has row vectors \(\mathbf{r}_1, \dots, \mathbf{r}_m\), the system becomes: \[ \begin{array}{r}{\mathbf{r}_{1}\cdot \mathbf{x} = \mathbf{0}}\\ {\mathbf{r}_{2}\cdot \mathbf{x} = \mathbf{0}}\\ \vdots \quad \vdots \\ {\mathbf{r}_{m}\cdot \mathbf{x} = \mathbf{0}} \end{array} \quad \text{(19)} \] Theorem 3.4.3: The solution set of \(A\mathbf{x}=\mathbf{0}\) consists of all vectors in \(R^n\) that are orthogonal to every row vector of \(A\).

Interactive Orthogonality Check

Verify the orthogonality between a solution vector and a row vector.

Tip

Change the solution_vector or row_vector to test different scenarios. A dot product of zero indicates orthogonality.

Relationship Between \(A\mathbf{x}=\mathbf{0}\) and \(A\mathbf{x}=\mathbf{b}\)

The solutions of a nonhomogeneous system are a translation of the solutions of its corresponding homogeneous system.

Consider a consistent linear system \(A\mathbf{x} = \mathbf{b}\).

Let \(\mathbf{x}_p\) be any particular solution to \(A\mathbf{x} = \mathbf{b}\).

Let \(\mathbf{x}_h\) be the general solution to the homogeneous system \(A\mathbf{x} = \mathbf{0}\).

Theorem 3.4.4: The general solution of \(A\mathbf{x} = \mathbf{b}\) is given by: \[ \mathbf{x} = \mathbf{x}_p + \mathbf{x}_h \]

This means the solution set of \(A\mathbf{x}=\mathbf{b}\) is a translation of the solution space of \(A\mathbf{x}=\mathbf{0}\) by the particular solution \(\mathbf{x}_p\).

Figure 3.4.7

Interactive: Solution Space Translation

Visualize how the solution set of \(A\mathbf{x} = \mathbf{b}\) is a translated version of the solution space of \(A\mathbf{x} = \mathbf{0}\).

Note

Here, we simulate a 1D solution space (a line) in 2D for simplicity. The homogeneous solution is a line through the origin. The nonhomogeneous solution is the same line, translated by \(\mathbf{x}_p\).

Conclusion: Key Takeaways

  • Vector & Parametric Equations: Powerful tools to describe lines and planes using points and direction vectors.
  • Generalization to \(R^n\): These geometric concepts extend directly to higher dimensions, crucial for ECE applications.
  • Orthogonality in Linear Systems: Solution vectors of \(A\mathbf{x}=\mathbf{0}\) are orthogonal to the row vectors of \(A\).
  • Solution Space Translation: The solution set of \(A\mathbf{x}=\mathbf{b}\) is a translation of the solution space of \(A\mathbf{x}=\mathbf{0}\).

Important

Understanding the geometry behind linear systems is essential for intuitive problem-solving and deeper insights in fields like signal processing, control systems, and machine learning.