40
Chapter 5 Section 1

Chapter 5

  • Upload
    salaam

  • View
    26

  • Download
    0

Embed Size (px)

DESCRIPTION

Chapter 5. Section 1. Theorem 5.1.1: If x and y are two nonzero vectors in either R 2 or R 3 and θ is the angle between them, then x T y =|| x |||| y ||cosθ. y -x. x. y. θ. Example. The projection of x onto y. x. y. θ. The projection of x onto y. x. y. θ. - PowerPoint PPT Presentation

Citation preview

Page 1: Chapter 5

Chapter 5

Section 1

Page 2: Chapter 5

Theorem 5.1.1: If x and y are two nonzero vectors in either R2 or R3 and θ is the angle between them, then xTy=||x||||y||cosθ

x

y

y-x

θ

Page 3: Chapter 5

Example

Page 4: Chapter 5

x

The projection of x onto y

Page 5: Chapter 5

x

The projection of x onto y

Page 6: Chapter 5

x

The projection of x onto y

u

=1

|| r y ||r y

Page 7: Chapter 5

x

The projection of x onto y

uαu

Page 8: Chapter 5

x

The projection of x onto y

uαu

x-αu

Page 9: Chapter 5

x

The projection of x onto y

αu

x-αu

Page 10: Chapter 5

x

The projection of x onto y

αu

x-αu

Page 11: Chapter 5

x

The projection of x onto y

αu

x-αu

Page 12: Chapter 5

x

The projection of x onto y

αu

x-αu

Page 13: Chapter 5

Example

Page 14: Chapter 5

Example

Page 15: Chapter 5

Example

Page 16: Chapter 5

Example

y=(1,2)T

x=(5,2)T

Page 17: Chapter 5

Equations of Planes

Page 18: Chapter 5

Extensions to Rn:

|| x ||= (xT x)12 = (x1

2 + x22 + ...+ xn

2)12

|| x − y ||= ((x − y)T (x − y))12 = ((x1 − y1)

2 + ...+ (xn − yn )2)12

cosθ = xT y|| x ||⋅ || y ||

xT y = 0

Scalar Product:

Distance:

Angle:

Orthogonal when:

Page 19: Chapter 5

Extensions to Rn:

|| x ||= (xT x)12 = (x1

2 + x22 + ...+ xn

2)12

|| x − y ||= ((x − y)T (x − y))12 = ((x1 − y1)

2 + ...+ (xn − yn )2)12

cosθ = xT y|| x ||⋅ || y ||

xT y = 0

Scalar Product:

Distance:

Angle:

Orthogonal when:

Page 20: Chapter 5

Extensions to Rn:

|| x ||= (xT x)12 = (x1

2 + x22 + ...+ xn

2)12

|| x − y ||= ((x − y)T (x − y))12 = ((x1 − y1)

2 + ...+ (xn − yn )2)12

cosθ = xT y|| x ||⋅ || y ||

xT y = 0

Scalar Product:

Distance:

Angle:

Orthogonal when:

Page 21: Chapter 5

Extensions to Rn:

|| x ||= (xT x)12 = (x1

2 + x22 + ...+ xn

2)12

|| x − y ||= ((x − y)T (x − y))12 = ((x1 − y1)

2 + ...+ (xn − yn )2)12

cosθ = xT y|| x ||⋅ || y ||

xT y = 0

Scalar Product:

Distance:

Angle:

Orthogonal when:

Page 22: Chapter 5

Vectors in Rn:

|| x + y ||2= (x + y)T (x + y)

=(xT + yT )(x + y)

= xT x + xT y + yT x + yT y

=|| x ||2 +2xT y+ || x ||2

Page 23: Chapter 5

Vectors in Rn:

|| x + y ||2= (x + y)T (x + y)

=(xT + yT )(x + y)

= xT x + xT y + yT x + yT y

=|| x ||2 +2xT y+ || x ||2

Page 24: Chapter 5

Vectors in Rn:

|| x + y ||2= (x + y)T (x + y)

=(xT + yT )(x + y)

= xT x + xT y + yT x + yT y

=|| x ||2 +2xT y+ || x ||2

Page 25: Chapter 5

Vectors in Rn:

|| x + y ||2= (x + y)T (x + y)

=(xT + yT )(x + y)

= xT x + xT y + yT x + yT y

=|| x ||2 +2xT y+ || x ||2

Page 26: Chapter 5

Vectors in Rn:

|| x + y ||2= (x + y)T (x + y)

=(xT + yT )(x + y)

= xT x + xT y + yT x + yT y

=|| x ||2 +2xT y+ || y ||2

Page 27: Chapter 5

Vectors in Rn:

|| x + y ||2= (x + y)T (x + y)

=(xT + yT )(x + y)

= xT x + xT y + yT x + yT y

=|| x ||2 +2xT y+ || x ||2

If x and y are orthogonal…..

|| x + y ||2=|| x ||2 + || y ||2

x

y

x+y

Page 28: Chapter 5

B1: Applied Linear AlgebraB2: Elementary Linear AlgebraB3: Elementary Linear Algebra with

ApplicationsB4: Linear Algebra and its

applications

B5: Linear Algebra with ApplicationsB6: Matrix Algebra with

ApplicationsB7: Matrix Theory

Search Engines

Books:

Keywords: algebra, application, elementary, linear, matrix, theory

Page 29: Chapter 5

B1: Applied Linear AlgebraB2: Elementary Linear AlgebraB3: Elementary Linear Algebra with

ApplicationsB4: Linear Algebra and its

applications

B5: Linear Algebra with ApplicationsB6: Matrix Algebra with

ApplicationsB7: Matrix Theory

Keywords Book 1 Book 2 Book 3 Book 4 Book 5 Book 6 Book 7

algebra 1 1 1 1 1 1 0

application 1 0 1 1 1 1 0

elementary 0 1 1 0 0 0 0

linear 1 1 1 1 1 0 0

matrix 0 0 0 0 0 1 1

theory 0 0 0 0 0 0 1

Search Engines

Books:

Page 30: Chapter 5

Keywords Book 1 Book 2 Book 3 Book 4 Book 5 Book 6 Book 7

algebra 1 1 1 1 1 1 0

application 1 0 1 1 1 1 0

elementary 0 1 1 0 0 0 0

linear 1 1 1 1 1 0 0

matrix 0 0 0 0 0 1 1

theory 0 0 0 0 0 0 1

Search Engines

A =

1 1 1 1 1 1 01 0 1 1 1 1 00 1 1 0 0 0 01 1 1 1 1 0 00 0 0 0 0 1 10 0 0 0 0 0 1

⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢

⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥

Page 31: Chapter 5

Keywords Book 1 Book 2 Book 3 Book 4 Book 5 Book 6 Book 7

algebra 1 1 1 1 1 1 0

application 1 0 1 1 1 1 0

elementary 0 1 1 0 0 0 0

linear 1 1 1 1 1 0 0

matrix 0 0 0 0 0 1 1

theory 0 0 0 0 0 0 1

Search EnginesWords to Search For:AppliedLinear Algebra

A =

1 1 1 1 1 1 01 0 1 1 1 1 00 1 1 0 0 0 01 1 1 1 1 0 00 0 0 0 0 1 10 0 0 0 0 0 1

⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢

⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥

Page 32: Chapter 5

Keywords Book 1 Book 2 Book 3 Book 4 Book 5 Book 6 Book 7

algebra 1 1 1 1 1 1 0

application 1 0 1 1 1 1 0

elementary 0 1 1 0 0 0 0

linear 1 1 1 1 1 0 0

matrix 0 0 0 0 0 1 1

theory 0 0 0 0 0 0 1

Search EnginesWords to Search For:AppliedLinear Algebra

x =

110100

⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢

⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥

A =

1 1 1 1 1 1 01 0 1 1 1 1 00 1 1 0 0 0 01 1 1 1 1 0 00 0 0 0 0 1 10 0 0 0 0 0 1

⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢

⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥

6 ×1

6 × 7

Page 33: Chapter 5

Keywords Book 1 Book 2 Book 3 Book 4 Book 5 Book 6 Book 7

algebra 1 1 1 1 1 1 0

application 1 0 1 1 1 1 0

elementary 0 1 1 0 0 0 0

linear 1 1 1 1 1 0 0

matrix 0 0 0 0 0 1 1

theory 0 0 0 0 0 0 1

Search Engines

AT x =

1 1 0 1 0 01 0 1 1 0 01 1 1 1 0 01 1 0 1 0 01 1 0 1 0 01 1 0 0 1 00 0 0 0 1 1

⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢

⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥

110100

⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢

⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥

Page 34: Chapter 5

Keywords Book 1 Book 2 Book 3 Book 4 Book 5 Book 6 Book 7

algebra 1 1 1 1 1 1 0

application 1 0 1 1 1 1 0

elementary 0 1 1 0 0 0 0

linear 1 1 1 1 1 0 0

matrix 0 0 0 0 0 1 1

theory 0 0 0 0 0 0 1

Search Engines

AT x =

1 1 0 1 0 01 0 1 1 0 01 1 1 1 0 01 1 0 1 0 01 1 0 1 0 01 1 0 0 1 00 0 0 0 1 1

⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢

⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥

110100

⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢

⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥

=

3233320

⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢

⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥

B1: Applied Linear AlgebraB2: Elementary Linear AlgebraB3: Elementary Linear Algebra

with ApplicationsB4: Linear Algebra and its

applicationsB5: Linear Algebra with

ApplicationsB6: Matrix Algebra with

ApplicationsB7: Matrix Theory

Page 35: Chapter 5

Relative Frequency Searches

Key Words Doc 1 Doc 2 Doc 3 Doc 4 Doc 5 Doc 6 Doc 7 Doc 8

determinants 0 6 3 0 1 0 1 1

eigenvalues 0 0 0 0 0 5 3 2

linear 5 4 4 5 4 0 3 3

matrices 6 5 3 3 4 5 3 2

numerical 0 0 0 0 3 0 4 3

orthogonality 0 0 0 0 4 6 0 2

spaces 0 0 5 2 3 3 0 1

systems 5 3 3 2 4 2 1 1

transformations 0 0 0 5 1 3 1 0

vector 0 4 4 3 4 1 0 3

Page 36: Chapter 5

Relative Frequency Searches

Key Words Doc 1 Doc 2 Doc 3 Doc 4 Doc 5 Doc 6 Doc 7 Doc 8

determinants 0 6 3 0 1 0 1 1

eigenvalues 0 0 0 0 0 5 3 2

linear 5 4 4 5 4 0 3 3

matrices 6 5 3 3 4 5 3 2

numerical 0 0 0 0 3 0 4 3

orthogonality 0 0 0 0 4 6 0 2

spaces 0 0 5 2 3 3 0 1

systems 5 3 3 2 4 2 1 1

transformations 0 0 0 5 1 3 1 0

vector 0 4 4 3 4 1 0 3€

|| Doc1 ||

= 52 + 62 + 52

= 86

q1 = Doc1|| Doc1 ||

=

00

586

686

000

586

00

⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢

⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥

=

00

0.5390.647

000

0.53900

⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢

⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥

Page 37: Chapter 5

Relative Frequency Searches

Key Words Doc 1 Doc 2 Doc 3 Doc 4 Doc 5 Doc 6 Doc 7 Doc 8

determinants 0 6 3 0 1 0 1 1

eigenvalues 0 0 0 0 0 5 3 2

linear 0.539 4 4 5 4 0 3 3

matrices 0.647 5 3 3 4 5 3 2

numerical 0 0 0 0 3 0 4 3

orthogonality 0 0 0 0 4 6 0 2

spaces 0 0 5 2 3 3 0 1

systems 0.539 3 3 2 4 2 1 1

transformations 0 0 0 5 1 3 1 0

vector 0 4 4 3 4 1 0 3

Page 38: Chapter 5

Relative Frequency Searches

Q =

0 .594 0.327 0 0.100 0 0.147 0.1540 0 0 0 0 .500 .442 0.309

.539 0.396 0.436 .574 0.400 0 .442 0.463

.647 0.495 0.327 0.344 0.400 0.400 .442 0.3090 0 0 0 0.300 0 .590 0.4630 0 0 0 0.400 0.600 0 0.3090 0 0.546 0.229 0.300 0.300 0 0.154

.539 .297 0.327 0.229 0.400 0.200 0.147 0.1540 0 0 0.574 0.100 0.300 0.147 00 0.396 0 0.344 0.400 0.100 0 0.463

⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢

⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥

Page 39: Chapter 5

Relative Frequency Searches

Key Words Doc 1 Doc 2 Doc 3 Doc 4 Doc 5 Doc 6 Doc 7 Doc 8

determinants 0 6 3 0 1 0 1 1

eigenvalues 0 0 0 0 0 5 3 2

linear 0.539 4 4 5 4 0 3 3

matrices 0.647 5 3 3 4 5 3 2

numerical 0 0 0 0 3 0 4 3

orthogonality 0 0 0 0 4 6 0 2

spaces 0 0 5 2 3 3 0 1

systems 0.539 3 3 2 4 2 1 1

transformations 0 0 0 5 1 3 1 0

vector 0 4 4 3 4 1 0 3

Words to Search For:orthogonality

spacesvector

x =

0000011001

⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢

⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥

|| x ||= 3

u =

00000

13

13

00

13

⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢

⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥

=

00000

0.5770.577

00

0.577

⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢

⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥

Page 40: Chapter 5

Relative Frequency Searches Words to Search For:orthogonality

spacesvector

QT u =

00.2290.5670.3310.6350.5770.577

00

0.577

⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢ ⎢

⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥ ⎥

Note: Since y5=0.635 is the entry of y that is closest to 1, the direction of the search vector u is closest to the direction of q5 and hence document 5 is the one that best matches our search criteria