Steply

Null space of [1, 2, 1; 2, 4, 3; 3, 6, 4]

Step by step, with the reason for every step · Null space · Linear Algebra

Step by step

The question

Question: find the null space of A.

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

The null space of A is every vector v that A sends to 0: A times v is the zero vector.

null space of A: every v with A v = 0

1 Write A v = 0

A has 3 columns, so v has 3 entries: x, y and z.

We want every v that gives 0s.

[1, 2, 1; 2, 4, 3; 3, 6, 4] × [x; y; z] = [0; 0; 0]

2 Row reduce

As an augmented matrix the part after the bar is all 0s, and every move keeps it 0.

So we leave it out and row reduce A itself.

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

We call the rows R 1, R 2 and R 3.

We use the three row moves: swap two rows, times a row by a number that is not 0, add a multiple of one row to another.

They never change the answers.

Our goal: a leading 1 in each row, with 0s above and below it.

swap two rows
× a row by a number (not 0)
add a multiple of one row to another
→ [1, 2, 1; 0, 0, 1; 0, 0, 1]
→ [1, 2, 0; 0, 0, 1; 0, 0, 0]

3 Find the free letters

The first number that is not 0 in each row is a 1.

We call it a leading 1, and ring it.

The letters x and z have a leading 1.

The letter y is free: any number.

leading 1: x, z
free: y

4 Write the leading letters with the free ones

Row 1 as an equation: x + 2y = 0.

x + 2y = 0

We want x alone.

To remove + 2y, we take away 2y on both sides.

x + 2y − 2y = −2y

They cancel on the left.

So x = −2y.

x = −2y

Row 2 as an equation: z = 0.

So z = 0.

z = 0

5 Write it as vectors

We stack the letters in a column.

The letter y is free, so it stays y.

[x; y; z] = [−2y; y; 0]

We split it up: what goes with y makes one vector, (−2, 1, 0).

[x; y; z] = y[−2; 1; 0], y any number

Careful!

In the vector of y, the y entry itself is 1.

Do not leave it out.

Careful: the free letter's own entry is 1

6 Write the basis

Every vector of the null space is made from this one vector.

So it is a basis: (−2, 1, 0).

= basis: [−2; 1; 0]

The dimension of the null space is how many basis vectors: 1, one for each free letter.

dimension = 1 (one for each free letter)

7 Check

Let's check: A times each basis vector must be 0.

= [1, 2, 1; 2, 4, 3; 3, 6, 4] × [−2; 1; 0]
= [1 × (−2) + 2 × 1 + 1 × 0; 2 × (−2) + 4 × 1 + 3 × 0; 3 × (−2) + 6 × 1 + 4 × 0]

We work out every times.

= [−2 + 2 + 0; −4 + 4 + 0; −6 + 6 + 0]

We get 0s: (−2, 1, 0) is in the null space.

= [0; 0; 0]

A sends every basis vector to 0.

So the answer is right!

Let's look back.

First: write A v = 0.

Then: row reduce.

Then: find the free letters.

Then: write the leading letters with the free ones.

Then: write it as vectors.

Then: write the basis.

Last: check.

Answer
dimension = 1 (one for each free letter)

Your turn

Try this one yourself, then check:

Find the null space of A = [1, 4, 1; 2, 8, 3; 3, 12, 4]
Show the answer
[−4; 1; 0]

More from Null space

The whole lesson: Null space →