Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors...

20
How many solutions? Hung-yi Lee

Transcript of Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors...

Page 1: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

How many solutions?Hung-yi Lee

Page 2: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

Reference

• Textbook: Chapter 1.7

Page 3: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

Review

No solution

Is 𝑏 a linear combination of columns of 𝐴?

Is 𝑏 in the span of the columns of 𝐴?

YESNO

Given a system of linear equations with m equations and n variables

𝐴:𝑚 × 𝑛 𝑥 ∈ 𝑅𝑛 𝑏 ∈ 𝑅𝑚

Have solution

How many solutions?

Page 4: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

Today

The columns of 𝐴are independent.No

solution

Is 𝑏 a linear combination of columns of 𝐴?

Is 𝑏 in the span of the columns of 𝐴?

YES

Rank A = n

Nullity A = 0

Unique solution

The columns of 𝐴are dependent.

Rank A < n

Nullity A > 0

Infinite solution

NO

Given a system of linear equations with m equations and n variables

𝐴:𝑚 × 𝑛 𝑥 ∈ 𝑅𝑛 𝑏 ∈ 𝑅𝑚

Other cases?

Page 5: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

Dependent and Independent

(依賴的、不獨立的)

(獨立的、自主的)

Page 6: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

Definition

• A set of n vectors 𝒂1, 𝒂2, ⋯ , 𝒂𝑛 is linear dependent

• If there exist scalars 𝑥1, 𝑥2, ⋯ , 𝑥𝑛, not all zero, such that

• A set of n vectors 𝒂1, 𝒂2, ⋯ , 𝒂𝑛 is linear independent

𝑥1𝒂1 + 𝑥2𝒂2 +⋯+ 𝑥𝑛𝒂𝑛 = 𝟎

𝑥1𝒂1 + 𝑥2𝒂2 +⋯+ 𝑥𝑛𝒂𝑛 = 𝟎

Only if 𝑥1 = 𝑥2 = ⋯ = 𝑥𝑛 = 0

Find one Obtain many

unique

Page 7: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

Dependent and Independent

Dependent or Independent?

633,

183,

7116

Dependent or Independent?

−4126

,−103015

Given a vector set, {a1, a2, , an}, if there exists any ai that is a linear combination of other vectors

Linear Dependent

Page 8: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

Dependent and Independent

Dependent or Independent?

Any set contains zero vector would be linear dependent

Zero vector is the linear combination of any other vectors

How about a set with only one vector?

Given a vector set, {a1, a2, , an}, if there exists any ai that is a linear combination of other vectors

Linear Dependent

Page 9: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

Dependent and Independent

Given a vector set, {a1, a2, , an}, there exists scalars x1, x2, , xn, that are not all zero, such that x1a1 + x2a2 + + xnan = 0.

Given a vector set, {a1, a2, , an}, if there exists any ai that is a linear combination of other vectors

Linear Dependent

2𝒂𝒊 + 𝒂𝒋 + 3𝒂𝒌 = 𝟎

2𝒂𝒊 + 𝒂𝒋 = −3𝒂𝒌

−2

3𝒂𝒊 + −

1

3𝒂𝒋 = 𝒂𝒌

𝒂𝒊′ = 3𝒂𝒋′ + 4𝒂𝒌′

𝒂𝒊′ − 3𝒂𝒋′ − 4𝒂𝒌′ = 𝟎

Page 10: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

Intuition

• Intuitive link between dependence and the number of solutions

𝑥1𝑥2𝑥3

=111

6 1 73 8 113 3 6

𝑥1𝑥2𝑥3

=142212

1 ∙633

+ 1 ∙183

+ 1 ∙7116

=142212

1 ∙633

+ 1 ∙183

=7116

Infinite Solution

2 ∙633

+ 2 ∙183

=142212

𝑥1𝑥2𝑥3

=220

Dependent: Once we have solution, we have infinite.

Page 11: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

Proof

• Columns of A are dependent → If Ax=b have solution, it will have Infinite Solutions

• If Ax=b have Infinite solutions → Columns of A are dependent

Page 12: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

Proof

Homogeneous linear equations

𝑥 =

𝑥1𝑥2⋮𝑥𝑛

𝐴𝑥 = 𝟎 𝐴 = 𝑎1 𝑎2 ⋯ 𝑎𝑛

(always having 𝟎 as solution)

A set of n vectors 𝒂𝟏, 𝒂𝟐, ⋯ , 𝒂𝒏is linear dependent

𝐴𝑥 = 𝟎 have non-zero solution

A set of n vectors 𝒂𝟏, 𝒂𝟐, ⋯ , 𝒂𝒏is linear independent

𝐴𝑥 = 𝟎 only have zero solution

infinite

Based on the definition

Page 13: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

Proof

• Columns of A are dependent → If Ax=b have solution, it will have Infinite solutions

• If Ax=b have Infinite solutions → Columns of A are dependent

We can find non-zero solution u such that 𝐴𝑢 = 𝟎

There exists v such that 𝐴𝑣 = b

𝐴 𝑢 + 𝑣 = b

𝑢 + 𝑣 is another solution different to v

𝐴𝑢 = b

𝐴𝑣 = b𝐴 𝑢 − 𝑣 = 𝟎

Non-zero𝑢 ≠ 𝑣

Page 14: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

Rank and Nullity

Page 15: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

Rank and Nullity

• The rank of a matrix is defined as the maximum number of linearly independent columns in the matrix.

• Nullity = Number of columns - rank

−3 2 −17 9 00 0 2

1 3 102 6 203 9 30

0 0 00 0 00 0 0

Page 16: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

Rank and Nullity

• The rank of a matrix is defined as the maximum number of linearly independent columns in the matrix.

• Nullity = Number of columns - rank

1 3 42 6 8

0 30 5

52

6

Page 17: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

Rank and Nullity

• The rank of a matrix is defined as the maximum number of linearly independent columns in the matrix.

• Nullity = Number of columns - rank

If A is a mxn matrix:

Rank A = n

Nullity A = 0

Columns of A are independent

Page 18: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

Conclusion

The columns of 𝐴are independent.No

solution

Is 𝑏 a linear combination of columns of 𝐴?

Is 𝑏 in the span of the columns of 𝐴?

YES

Rank A = n

Nullity A = 0

Unique solution

The columns of 𝐴are dependent.

Rank A < n

Nullity A > 0

Infinite solution

NO

𝐴:𝑚 × 𝑛 𝑥 ∈ 𝑅𝑛 𝑏 ∈ 𝑅𝑚

Page 19: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

Conclusion The columns of 𝐴are independent.

Rank A = n

Nullity A = 0

Is 𝑏 a linear combination of columns of 𝐴?

Is 𝑏 in the span of the columns of 𝐴?

Is 𝑏 a linear combination of columns of 𝐴?

Is 𝑏 in the span of the columns of 𝐴?

YESNO

YESNO

No solution

Unique solution

YESNO

No solution

Infinite solution

𝐴:𝑚 × 𝑛

𝑥 ∈ 𝑅𝑛 𝑏 ∈ 𝑅𝑚

Page 20: Hung-yi Leespeech.ee.ntu.edu.tw/~tlkagk/courses/LA_2019/Lecture/...Definition •A set of n vectors 𝒂1,𝒂2,⋯,𝒂 is linear dependent •If there exist scalars 𝑥1,𝑥2,⋯,𝑥

Question

• True or False• If the columns of A are linear independent, then Ax=b

has unique solution.

• If the columns of A are linear independent, then Ax=b has at most one solution.

• If the columns of A are linear dependent, then Ax=b has infinite solution.

• If the columns of A are linear independent, then Ax=0 (homogeneous equation) has unique solution.

• If the columns of A are linear dependent, then Ax=0 (homogeneous equation) has infinite solution.