Null Space Calculator

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

Matrix A
Rows
2
Columns
2

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

Try

Result

You enterednull⁡((1224))\operatorname{null}\left(\begin{pmatrix} 1 & 2 \\ 2 & 4 \end{pmatrix}\right)

{(2,−1)}\displaystyle \left\{\left(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−2R1:  (1224)  ⟶  (1200)R_2 \to R_2 - 2R_1:\ \ \begin{pmatrix} 1 & 2 \\ 2 & 4 \end{pmatrix} \;\longrightarrow\; \begin{pmatrix} 1 & 2 \\ 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 x2x_{2}.

    rank=1,  nullity=2−1=1\text{rank} = 1,\ \ \text{nullity} = 2 - 1 = 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=(2,−1)\mathbf{v}_{1} = \left(2, -1\right)
  4. Result

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

Worked examples