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

Upload: others

Post on 11-Aug-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

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.