Null Space Calculator

Enter a matrix to find every vector x with Ax = 0.

Matrix A
Rows
3
Columns
3

Write rows separated by semicolons, like 1, 2; 3, 4.

Try

Result

You enterednull⁡((123456789))\operatorname{null}\left(\begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{pmatrix}\right)

{(1,−2,1)}\displaystyle \left\{\left(1, -2, 1\right)\right\}

Nullity

1\displaystyle 1
Show the work
  1. Reduced row echelon form

    The null space is every vector x\mathbf{x} with Ax=0A\mathbf{x} = \mathbf{0}. Row operations do not change the solutions, so reduce AA to its simplest equivalent form.

    R2→R2−4R1, R3→R3−7R1, R2→−13R2, R1→R1−2R2, R3→R3+6R2:  (123456789)  ⟶  (10−1012000)R_2 \to R_2 - 4R_1,\ R_3 \to R_3 - 7R_1,\ R_2 \to -\frac{1}{3}R_2,\ R_1 \to R_1 - 2R_2,\ R_3 \to R_3 + 6R_2:\ \ \begin{pmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{pmatrix} \;\longrightarrow\; \begin{pmatrix} 1 & 0 & -1 \\ 0 & 1 & 2 \\ 0 & 0 & 0 \end{pmatrix}
  2. Pivot and free variables

    The columns with a pivot are the pivot variables, and each of the others is a free variable that can take any value. Here the free variable is x3x_{3}.

    rank=2,  nullity=3−2=1\text{rank} = 2,\ \ \text{nullity} = 3 - 2 = 1
  3. One basis vector for each free variable

    Set one free variable to 1 and the others to 0, then read each pivot variable from its row. Scaling to whole numbers with no common factor, and making the first non-zero entry positive, gives a tidy basis. Every solution is a combination of these vectors.

    v1=(1,−2,1)\mathbf{v}_{1} = \left(1, -2, 1\right)
  4. Result

    So a basis for the null space is {(1,−2,1)}\left\{\left(1, -2, 1\right)\right\}.

Worked examples