Steply

Linear independence

Linear Algebra ยท 20 problems, easy to harder

โ–ถ Watch the first one solved

How we do it

  1. Write the vector equation
  2. Write the augmented matrix
  3. Row reduce
  4. Count the leading 1s
  5. Find a way to make 0
  6. Check

The steps for Are (1, 2) and (2, 4) independent. Every solution names its steps, so you always know what comes next.

Worked examples

Are (1, 2) and (2, 4) independent Easy

The question

Question: are (1, 2) and (2, 4) linearly independent?

v1 = [1; 2], v2 = [2; 4]

Independent means: the only way to make the zero vector from them is to take 0 of each.

Otherwise they are dependent.

independent: the only way to make 0
is c1 = c2 = 0

1 Write the vector equation

We look for numbers cโ‚ and cโ‚‚ that make the zero vector.

c1[1; 2] + c2[2; 4] = [0; 0]

Careful!

Taking 0 of each always gives 0.

That proves nothing.

The question is: is it the only way?

Careful: c1 = c2 = 0 always works: is it the ONLY way?

2 Write the augmented matrix

Each vector goes in as a column: the first entries make row 1, the second entries row 2.

After the bar: 0s.

Every move keeps them 0.

= [1, 2, 0; 2, 4, 0]

We call the rows R 1 and R 2.

3 Row reduce

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, 0; 0, 0, 0]

4 Count the leading 1s

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

We call it a leading 1, and ring it.

Column 2 has no leading 1.

So cโ‚‚ is free: it can be any number, not only 0.

column 2: no leading 1, so c2 is free

5 Find a way to make 0

We pick cโ‚‚ = 1.

Each row then gives a leading c.

Row 1 says cโ‚ + 2cโ‚‚ = 0.

So cโ‚ = โˆ’2.

c1 = โˆ’2

So โˆ’2vโ‚ + vโ‚‚ = 0, and not all the numbers are 0.

โˆ’2v1 + v2 = 0

So the vectors are linearly dependent.

= dependent

6 Check

Let's check: we work out โˆ’2vโ‚ + vโ‚‚.

= โˆ’2 ร— [1; 2] + [2; 4]
= โˆ’[2 ร— 1; 2 ร— 2] + [2; 4]
= โˆ’[2; 4] + [2; 4]
= [โˆ’2 + 2; โˆ’4 + 4]
= [0; 0]

We get the zero vector.

So the vectors are dependent: the answer is right!

Let's look back.

First: write the vector equation.

Then: write the augmented matrix.

Then: row reduce.

Then: count the leading 1s.

Then: find a way to make 0.

Last: check.

Answer
= dependent

โ–ถ Watch it solved

Are (1, 0, 1), (0, 1, 1), (1, 1, 3) linearly independent Medium

The question

Question: are (1, 0, 1), (0, 1, 1) and (1, 1, 3) linearly independent?

v1 = [1; 0; 1], v2 = [0; 1; 1], v3 = [1; 1; 3]

Independent means: the only way to make the zero vector from them is to take 0 of each.

Otherwise they are dependent.

independent: the only way to make 0
is c1 = c2 = c3 = 0

1 Write the vector equation

We look for numbers cโ‚, cโ‚‚ and cโ‚ƒ that make the zero vector.

c1[1; 0; 1] + c2[0; 1; 1] + c3[1; 1; 3] = [0; 0; 0]

Careful!

Taking 0 of each always gives 0.

That proves nothing.

The question is: is it the only way?

Careful: c1 = c2 = c3 = 0 always works: is it the ONLY way?

2 Write the augmented matrix

Each vector goes in as a column: the first entries make row 1, the second entries row 2.

After the bar: 0s.

Every move keeps them 0.

= [1, 0, 1, 0; 0, 1, 1, 0; 1, 1, 3, 0]

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

3 Row reduce

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, 0, 1, 0; 0, 1, 1, 0; 0, 1, 2, 0]
โ†’ [1, 0, 1, 0; 0, 1, 1, 0; 0, 0, 1, 0]
โ†’ [1, 0, 0, 0; 0, 1, 0, 0; 0, 0, 1, 0]

4 Count the leading 1s

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

We call it a leading 1, and ring it.

Every column has a leading 1.

So each row says one c is 0: cโ‚ = cโ‚‚ = cโ‚ƒ = 0.

That is the only way.

a leading 1 in every column: c1 = c2 = c3 = 0

So the vectors are linearly independent.

= independent

5 Check

Let's check another way.

The vectors make a square matrix.

Its determinant must not be 0.

D = |1, 0, 1; 0, 1, 1; 1, 1, 3|1, 0; 0, 1; 1, 1

Down: 3.

down: 1 ร— 1 ร— 3 + 0 ร— 1 ร— 1 + 1 ร— 0 ร— 1 = 3

Up: 2.

up: 1 ร— 1 ร— 1 + 1 ร— 1 ร— 1 + 3 ร— 0 ร— 0 = 2

Down minus up: D = 1.

D = 3 โˆ’ 2 = 1

D is 1, not 0.

So the vectors are independent: the answer is right!

Let's look back.

First: write the vector equation.

Then: write the augmented matrix.

Then: row reduce.

Then: count the leading 1s.

Last: check.

Answer
= independent

โ–ถ Watch it solved

Are (1, 2), (3, 4), (5, 6) independent Harder

The question

Question: are (1, 2), (3, 4) and (5, 6) linearly independent?

v1 = [1; 2], v2 = [3; 4], v3 = [5; 6]

Independent means: the only way to make the zero vector from them is to take 0 of each.

Otherwise they are dependent.

independent: the only way to make 0
is c1 = c2 = c3 = 0

1 Write the vector equation

We look for numbers cโ‚, cโ‚‚ and cโ‚ƒ that make the zero vector.

c1[1; 2] + c2[3; 4] + c3[5; 6] = [0; 0]

Careful!

Taking 0 of each always gives 0.

That proves nothing.

The question is: is it the only way?

Careful: c1 = c2 = c3 = 0 always works: is it the ONLY way?

A shortcut: 3 vectors with only 2 entries each are always dependent.

Let's see why.

3 vectors in Rยฒ: more vectors than entries

2 Write the augmented matrix

Each vector goes in as a column: the first entries make row 1, the second entries row 2.

After the bar: 0s.

Every move keeps them 0.

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

We call the rows R 1 and R 2.

3 Row reduce

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, 3, 5, 0; 0, โˆ’2, โˆ’4, 0]
โ†’ [1, 3, 5, 0; 0, 1, 2, 0]
โ†’ [1, 0, โˆ’1, 0; 0, 1, 2, 0]

4 Count the leading 1s

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

We call it a leading 1, and ring it.

Column 3 has no leading 1.

So cโ‚ƒ is free: it can be any number, not only 0.

column 3: no leading 1, so c3 is free

5 Find a way to make 0

We pick cโ‚ƒ = 1.

Each row then gives a leading c.

Row 1 says cโ‚ โˆ’ cโ‚ƒ = 0.

So cโ‚ = 1.

c1 = 1

Row 2 says cโ‚‚ + 2cโ‚ƒ = 0.

So cโ‚‚ = โˆ’2.

c2 = โˆ’2

So vโ‚ โˆ’ 2vโ‚‚ + vโ‚ƒ = 0, and not all the numbers are 0.

v1 โˆ’ 2v2 + v3 = 0

So the vectors are linearly dependent.

= dependent

6 Check

Let's check: we work out vโ‚ โˆ’ 2vโ‚‚ + vโ‚ƒ.

= [1; 2] โˆ’ 2 ร— [3; 4] + [5; 6]
= [1; 2] โˆ’ [2 ร— 3; 2 ร— 4] + [5; 6]
= [1; 2] โˆ’ [6; 8] + [5; 6]
= [1 โˆ’ 6 + 5; 2 โˆ’ 8 + 6]
= [0; 0]

We get the zero vector.

So the vectors are dependent: the answer is right!

Let's look back.

First: write the vector equation.

Then: write the augmented matrix.

Then: row reduce.

Then: count the leading 1s.

Then: find a way to make 0.

Last: check.

Answer
= dependent

โ–ถ Watch it solved

Practice

Try each one, then open the answer. Stuck? Open the problem to watch every step.

Easy

  1. are (1, 2) and (2, 4) independent
    Answer
    = dependent
  2. are (1, 3) and (2, 5) independent
    Answer
    = independent
  3. are (2, 1) and (4, 2) independent
    Answer
    = dependent
  4. are (1, 0) and (0, 1) independent
    Answer
    = independent
  5. are (3, 1) and (1, 2) independent
    Answer
    = independent
  6. are (1, -1) and (-2, 2) independent
    Answer
    = dependent

Medium

  1. are (1, 0, 1), (0, 1, 1), (1, 1, 3) linearly independent
    Answer
    = independent
  2. are (1, 2, 0) and (3, 1, 1) independent
    Answer
    = independent
  3. are (1, 1, 0), (0, 1, 1), (1, 2, 1) linearly independent
    Answer
    = dependent
  4. are (1, 0, 2), (2, 1, 0), (0, 1, 1) linearly independent
    Answer
    = independent
  5. are (1, 2, 3) and (2, 4, 6) independent
    Answer
    = dependent
  6. are (1, 1, 1), (1, 2, 3), (2, 3, 4) linearly independent
    Answer
    = dependent
  7. are (1, 1, 2) and (2, 1, 1) independent
    Answer
    = independent
  8. are (0, 1, 2), (1, 0, 1), (1, 1, 3) linearly independent
    Answer
    = dependent

Harder

  1. are (1, 2), (3, 4), (5, 6) independent
    Answer
    = dependent
  2. are (1, 0, 0), (0, 0, 0), (0, 1, 0) independent
    Answer
    = dependent
  3. are (2, -1, 1), (1, 1, 2), (0, 3, 3) independent
    Answer
    = dependent
  4. are (1, -1, 2) and (-2, 2, -4) independent
    Answer
    = dependent
  5. are (1, 1, 0), (1, 0, 1), (0, 1, 1) linearly independent
    Answer
    = independent
  6. are (2, 1) and (1, 3) independent
    Answer
    = independent