Tool to calculate the kernel of an online matrix, obtain its basis, its dimension, and solve the associated linear systems.
Matrix Kernel (Null Space) - dCode
Tag(s) : Matrix
dCode is free and its tools are a valuable help in games, maths, geocaching, puzzles and problems to solve every day!
A suggestion ? a feedback ? a bug ? an idea ? Write to dCode!
The kernel (also called the null space) of a matrix $ A $ of size $ m \times n $ is the set of vectors $ \vec{x} \in \mathbb{R}^n $ (or $ \mathbb{C}^n $) such that $ A \vec{x} = \vec{0} $, where $ \vec{0} $ is the zero vector in $ \mathbb{R}^m $. This set forms a vector subspace of $ \mathbb{R}^n $. It is exactly the null space of the linear transformation associated with $ A $, that is, the set of vectors mapped to the zero vector.
To compute the kernel of $ A $:
— Write the homogeneous system $ A\vec{x} = \vec{0} $.
— Reduce the matrix using Gaussian elimination until obtaining an echelon form (ideally reduced row echelon form).
— Identify pivot variables (columns with pivots) and free variables (columns without pivots).
— Express pivot variables in terms of free variables.
— Parameterize the solutions: the kernel is the set of all solutions, forming a vector subspace generated by vectors obtained by varying the parameters.
The kernel always contains at least the zero vector $ \vec{0} $, since $ A \vec{0} = \vec{0} $. Therefore, it is never empty.
If the kernel reduces to $ { \vec{0} } $, then the linear transformation associated with $ A $ is injective.
This means that distinct vectors always have distinct images.
The kernel is the set of vectors $ \vec{x} $ such that $ A \vec{x} = \vec{0} $. It is a vector subspace of $ \mathbb{R}^n $.
The image is the set of vectors $ \vec{y} $ such that there exists $ \vec{x} $ satisfying $ A\vec{x} = \vec{y} $. It is a vector subspace of $ \mathbb{R}^m $. The fundamental relation is: $ \dim(\operatorname{Ker}(A)) + \dim(\operatorname{Im}(A)) = n $, where $ n $ is the number of columns of $ A $ (rank theorem).
The rank of $ A $, denoted $ \operatorname{Rank}(A) $, measures the dimension of the image. The dimension of the kernel is called the nullity. These two quantities are related by:
$ \dim(\operatorname{Ker}(A)) + \operatorname{Rank}(A) = n $, where $ n $ is the number of columns of $ A $.
Thus, if $ A $ is invertible (so $ \operatorname{Rank}(A) = n $), then its kernel reduces to $ { \vec{0} } $.
If $ A $ is the zero matrix of size $ m \times n $, then $ A \vec{x} = \vec{0} $ for all $ \vec{x} \in \mathbb{R}^n $.
Therefore, $ \operatorname{Ker}(A) = \mathbb{R}^n $, which is the maximum possible kernel dimension for a matrix with $ n $ columns.
dCode retains ownership of the "Matrix Kernel (Null Space)" source code. Any algorithm for the "Matrix Kernel (Null Space)" algorithm, applet or snippet or script (converter, solver, encryption / decryption, encoding / decoding, ciphering / deciphering, breaker, translator), or any "Matrix Kernel (Null Space)" functions (calculate, convert, solve, decrypt / encrypt, decipher / cipher, decode / encode, translate) written in any informatic language (Python, Java, PHP, C#, Javascript, Matlab, etc.) or any database download or API access for "Matrix Kernel (Null Space)" or any other element are not public (except explicit open source licence). Same with the download for offline use on PC, mobile, tablet, iPhone or Android app.
Reminder: dCode is an educational and teaching resource, accessible online for free and for everyone.
The content of the page "Matrix Kernel (Null Space)" and its results may be freely copied and reused, including for commercial purposes, provided that dCode.fr is cited as the source (Creative Commons CC-BY free distribution license).
Exporting the results is free and can be done simply by clicking on the export icons ⤓ (.csv or .txt format) or ⧉ (copy and paste).
To cite dCode.fr on another website, use the link:
In a scientific article or book, the recommended bibliographic citation is: Matrix Kernel (Null Space) on dCode.fr [online website], retrieved on 2026-05-05,