Skip to main content
Вернуться к руководствам
5 min read6 Шаги

How to Calculate the Null Space of a Matrix: Step-by-Step Guide

Learn to manually calculate the null space (kernel) of any matrix. This guide covers the formula, row reduction, worked examples, and common pitfalls.

Оставьте математику — воспользуйтесь калькулятором

Пошаговые инструкции

1

Formulate the Homogeneous System

Begin by setting up the homogeneous system of linear equations, A**x** = **0**, where A is your given matrix, **x** is a vector of unknown variables, and **0** is the zero vector of appropriate dimensions.

2

Augment the Matrix

Create an augmented matrix by appending the zero vector as an additional column to the right of your matrix A. This forms `[A | **0**]`.

3

Perform Row Reduction to RREF

Apply elementary row operations (swapping rows, scaling rows, adding multiples of one row to another) to transform the augmented matrix into its Reduced Row Echelon Form (RREF). Be careful and meticulous with each step.

4

Identify Pivot and Free Variables

Once in RREF, identify the pivot positions (the leading 1s in each non-zero row). Variables corresponding to columns with pivot positions are 'pivot variables'. Variables corresponding to columns without pivot positions are 'free variables'.

5

Write the Parametric Vector Form of the Solution

For each non-zero row in the RREF, write down the corresponding equation. Express each pivot variable in terms of the free variables. Then, write the general solution vector **x** as a linear combination, where each free variable is a scalar multiplier for a specific vector.

6

Extract the Basis Vectors

The vectors that multiply the free variables in the parametric vector form constitute a basis for the null space of matrix A. These vectors are linearly independent and span the entire null space.

The null space, also known as the kernel, of a matrix A is a fundamental concept in linear algebra. It represents the set of all vectors x that, when multiplied by A, result in the zero vector. Mathematically, the null space of an m x n matrix A, denoted as Nul(A), is defined as:

Nul(A) = { **x** ∈ ℝⁿ | A**x** = **0** }

Understanding and calculating the null space is crucial in various fields, including solving systems of linear equations, analyzing linear transformations, and understanding the properties of matrices. It provides insight into the 'input' vectors that are 'collapsed' to zero by the transformation represented by the matrix A.

Prerequisites

Before diving into the calculation, ensure you have a solid understanding of the following concepts:

  • Matrices and Vectors: Basic operations, dimensions.
  • Matrix-Vector Multiplication: How Ax is computed.
  • Systems of Linear Equations: Understanding homogeneous systems (Ax = 0).
  • Elementary Row Operations: Swapping rows, scaling rows, adding multiples of one row to another.
  • Row Echelon Form (REF) and Reduced Row Echelon Form (RREF): The process of transforming a matrix into these forms.
  • Pivot and Free Variables: Identifying these after row reduction.
  • Vector Span: Understanding how a set of vectors can generate a subspace.

The Method: Solving Ax = 0

The core idea behind finding the null space is to solve the homogeneous system of linear equations Ax = 0. Since this system is always consistent (the trivial solution x = 0 always exists), the goal is to find all non-trivial solutions, if they exist. These solutions will form the basis vectors for the null space.

The process involves augmenting the matrix A with a column of zeros and then performing Gaussian elimination to bring the augmented matrix to its Reduced Row Echelon Form (RREF). From the RREF, you can identify the pivot variables and free variables, express the pivot variables in terms of the free variables, and then write the general solution in parametric vector form. The vectors that scale the free variables will constitute a basis for the null space.

Worked Example: Calculating the Null Space

Let's calculate the null space of the following matrix A:

A = [[1, 2, 1], [2, 4, 2], [3, 6, 3]]

Step 1: Formulate the Homogeneous System

We need to solve Ax = 0, where x = [x₁, x₂, x₃]^T and 0 = [0, 0, 0]^T.

[1, 2, 1] [x₁] [0] [2, 4, 2] [x₂] = [0] [3, 6, 3] [x₃] [0]

Step 2: Augment the Matrix

Create the augmented matrix [A | **0**]:

[[1, 2, 1 | 0], [2, 4, 2 | 0], [3, 6, 3 | 0]]

Step 3: Perform Row Reduction to RREF

Apply elementary row operations to transform the augmented matrix into its Reduced Row Echelon Form.

  1. R₂ → R₂ - 2R₁ R₃ → R₃ - 3R₁

    [[1, 2, 1 | 0], [0, 0, 0 | 0], [0, 0, 0 | 0]]

This matrix is now in RREF. The first column has a leading 1 (pivot), while the second and third columns do not have leading 1s, indicating that x₂ and x₃ are free variables.

Step 4: Identify Pivot and Free Variables

From the RREF:

  • Pivot Variables: x₁ (corresponding to the column with a leading 1).
  • Free Variables: x₂, x₃ (corresponding to columns without leading 1s).

Step 5: Write the Parametric Vector Form of the Solution

From the RREF, the only non-zero row gives us the equation:

1x₁ + 2x₂ + 1x₃ = 0

Express the pivot variable x₁ in terms of the free variables x₂ and x₃:

x₁ = -2x₂ - x₃

Now, write the general solution vector x in terms of the free variables:

**x** = [x₁, x₂, x₃]^T = [-2x₂ - x₃, x₂, x₃]^T

Separate this vector into a linear combination where each free variable is a scalar:

**x** = x₂ * [-2, 1, 0]^T + x₃ * [-1, 0, 1]^T

Step 6: Extract the Basis Vectors

The vectors that scale the free variables form a basis for the null space. In this case, the basis for Nul(A) is:

{ [-2, 1, 0]^T, [-1, 0, 1]^T }

Any vector in the null space of A can be expressed as a linear combination of these two basis vectors.

Common Pitfalls to Avoid

  • Row Reduction Errors: Mistakes in elementary row operations are the most frequent source of error. Double-check each step carefully.
  • Incorrectly Identifying Variables: Ensure you correctly distinguish between pivot variables (corresponding to columns with leading 1s in RREF) and free variables (columns without leading 1s).
  • Algebraic Mistakes: When expressing pivot variables in terms of free variables, be meticulous with signs and coefficients.
  • Not Writing in Parametric Vector Form: The final solution must be expressed as a linear combination of vectors, where each free variable is a scalar multiplier.
  • Forgetting the Zero Vector: While the zero vector is always in the null space, the goal is to find the basis vectors that span the null space, which are non-zero if the null space is non-trivial.

When to Use a Null Space Calculator

While understanding the manual calculation is vital for conceptual grasp, a null space calculator offers significant advantages for practical applications:

  • Large Matrices: For matrices larger than 3x4 or 4x4, manual row reduction becomes incredibly tedious and prone to error.
  • Verification: Use a calculator to quickly check your manual calculations, especially during learning or when precision is critical.
  • Efficiency: When you need the null space quickly and accurately for a problem, a calculator saves considerable time.
  • Complex Numbers: If your matrix contains complex numbers, manual calculation becomes even more challenging.

In conclusion, mastering the manual calculation of the null space solidifies your understanding of linear algebra fundamentals. However, for efficiency and accuracy with complex or large matrices, leveraging a reliable null space calculator is an invaluable tool.

Готовы рассчитать?

Откажитесь от ручной работы и получите мгновенные результаты.

Открыть калькулятор

Настройки