Math 221: LINEAR ALGEBRA 4-2. Projections and Planes Le Chen 1 - - PowerPoint PPT Presentation

math 221 linear algebra
SMART_READER_LITE
LIVE PREVIEW

Math 221: LINEAR ALGEBRA 4-2. Projections and Planes Le Chen 1 - - PowerPoint PPT Presentation

Math 221: LINEAR ALGEBRA 4-2. Projections and Planes Le Chen 1 Emory University, 2020 Fall (last updated on 08/27/2020) Creative Commons License (CC BY-NC-SA) 1 Slides are adapted from those by Karen Seyffarth from University of Calgary.


slide-1
SLIDE 1

Math 221: LINEAR ALGEBRA

§4-2. Projections and Planes

Le Chen1

Emory University, 2020 Fall

(last updated on 08/27/2020) Creative Commons License (CC BY-NC-SA) 1Slides are adapted from those by Karen Seyffarth from University of Calgary.

slide-2
SLIDE 2

Definition

Let u =   x1 y1 z1   and v =   x2 y2 z2   be vectors in R3. The dot product of u and v is

  • u ·

v = x1x2 + y1y2 + z1z2, i.e., u · v is a scalar. Another way to think about the dot product is as the matrix

slide-3
SLIDE 3

Definition

Let u =   x1 y1 z1   and v =   x2 y2 z2   be vectors in R3. The dot product of u and v is

  • u ·

v = x1x2 + y1y2 + z1z2, i.e., u · v is a scalar.

  • Note. Another way to think about the dot product is as the 1 × 1 matrix
  • uT

v =

  • x1

y1 z1

 x2 y2 z2   =

  • x1x2 + y1y2 + z1z2
  • .
slide-4
SLIDE 4

Properties of the Dot Product

Theorem

Let u, v, w be vectors in R3 (or R2) and let k ∈ R.

slide-5
SLIDE 5

Properties of the Dot Product

Theorem

Let u, v, w be vectors in R3 (or R2) and let k ∈ R. 1. u · v is a real number.

slide-6
SLIDE 6

Properties of the Dot Product

Theorem

Let u, v, w be vectors in R3 (or R2) and let k ∈ R. 1. u · v is a real number. 2. u · v = v · u. (commutative property)

slide-7
SLIDE 7

Properties of the Dot Product

Theorem

Let u, v, w be vectors in R3 (or R2) and let k ∈ R. 1. u · v is a real number. 2. u · v = v · u. (commutative property) 3. u · 0 = 0.

slide-8
SLIDE 8

Properties of the Dot Product

Theorem

Let u, v, w be vectors in R3 (or R2) and let k ∈ R. 1. u · v is a real number. 2. u · v = v · u. (commutative property) 3. u · 0 = 0. 4. u · u = || u||2.

slide-9
SLIDE 9

Properties of the Dot Product

Theorem

Let u, v, w be vectors in R3 (or R2) and let k ∈ R. 1. u · v is a real number. 2. u · v = v · u. (commutative property) 3. u · 0 = 0. 4. u · u = || u||2.

  • 5. (k

u) · v = k( u · v) = u · (k v). (associative property)

slide-10
SLIDE 10

Properties of the Dot Product

Theorem

Let u, v, w be vectors in R3 (or R2) and let k ∈ R. 1. u · v is a real number. 2. u · v = v · u. (commutative property) 3. u · 0 = 0. 4. u · u = || u||2.

  • 5. (k

u) · v = k( u · v) = u · (k v). (associative property) 6. u · ( v + w) = u · v + u · w. (distributive properties)

  • u · (

v − w) = u · v − u · w.

slide-11
SLIDE 11

Let u and v be two vectors in R3 (or R2). There is a unique angle θ between u and v with 0 ≤ θ ≤ π.

  • u
  • v

θ

  • u
  • v

θ

cos

slide-12
SLIDE 12

Let u and v be two vectors in R3 (or R2). There is a unique angle θ between u and v with 0 ≤ θ ≤ π.

  • u
  • v

θ

  • u
  • v

θ

Theorem

Let u and v be nonzero vectors, and let θ denote the angle between u and

  • v. Then
  • u ·

v = || u|| || v|| cos θ.

slide-13
SLIDE 13

Let u and v be two vectors in R3 (or R2). There is a unique angle θ between u and v with 0 ≤ θ ≤ π.

  • u
  • v

θ

  • u
  • v

θ

Theorem

Let u and v be nonzero vectors, and let θ denote the angle between u and

  • v. Then
  • u ·

v = || u|| || v|| cos θ.

Remark

◮ This is an intrinsic description of the dot product.

slide-14
SLIDE 14

Let u and v be two vectors in R3 (or R2). There is a unique angle θ between u and v with 0 ≤ θ ≤ π.

  • u
  • v

θ

  • u
  • v

θ

Theorem

Let u and v be nonzero vectors, and let θ denote the angle between u and

  • v. Then
  • u ·

v = || u|| || v|| cos θ.

Remark

◮ This is an intrinsic description of the dot product. ◮ The proof uses the Law of Cosines, which is a generalization of the Pythagorean Theorem.

slide-15
SLIDE 15
  • u ·

v = || u|| || v|| cos θ. If , then cos . If , then cos . If , then cos . Therefore, for nonzero vectors and , if and only if . if and only if . if and only if .

slide-16
SLIDE 16
  • u ·

v = || u|| || v|| cos θ. ◮ If 0 ≤ θ < π

2 , then cos θ > 0.

If , then cos . If , then cos . Therefore, for nonzero vectors and , if and only if . if and only if . if and only if .

slide-17
SLIDE 17
  • u ·

v = || u|| || v|| cos θ. ◮ If 0 ≤ θ < π

2 , then cos θ > 0.

◮ If θ = π

2 , then cos θ = 0.

If , then cos . Therefore, for nonzero vectors and , if and only if . if and only if . if and only if .

slide-18
SLIDE 18
  • u ·

v = || u|| || v|| cos θ. ◮ If 0 ≤ θ < π

2 , then cos θ > 0.

◮ If θ = π

2 , then cos θ = 0.

◮ If π

2 < θ ≤ π, then cos θ < 0.

Therefore, for nonzero vectors and , if and only if . if and only if . if and only if .

slide-19
SLIDE 19
  • u ·

v = || u|| || v|| cos θ. ◮ If 0 ≤ θ < π

2 , then cos θ > 0.

◮ If θ = π

2 , then cos θ = 0.

◮ If π

2 < θ ≤ π, then cos θ < 0.

Therefore, for nonzero vectors u and v, ◮ u · v > 0 if and only if 0 ≤ θ < π

2 .

if and only if . if and only if .

slide-20
SLIDE 20
  • u ·

v = || u|| || v|| cos θ. ◮ If 0 ≤ θ < π

2 , then cos θ > 0.

◮ If θ = π

2 , then cos θ = 0.

◮ If π

2 < θ ≤ π, then cos θ < 0.

Therefore, for nonzero vectors u and v, ◮ u · v > 0 if and only if 0 ≤ θ < π

2 .

◮ u · v = 0 if and only if θ = π

2 .

if and only if .

slide-21
SLIDE 21
  • u ·

v = || u|| || v|| cos θ. ◮ If 0 ≤ θ < π

2 , then cos θ > 0.

◮ If θ = π

2 , then cos θ = 0.

◮ If π

2 < θ ≤ π, then cos θ < 0.

Therefore, for nonzero vectors u and v, ◮ u · v > 0 if and only if 0 ≤ θ < π

2 .

◮ u · v = 0 if and only if θ = π

2 .

◮ u · v < 0 if and only if π

2 < θ ≤ π.

slide-22
SLIDE 22

Definition

Vectors u and v are orthogonal if and only if u = 0 or v = 0 or θ = π

2 .

slide-23
SLIDE 23

Definition

Vectors u and v are orthogonal if and only if u = 0 or v = 0 or θ = π

2 .

Theorem

Vectors u and v are orthogonal if and only if u · v = 0.

slide-24
SLIDE 24

Problem

Find the angle between u =   1 −1   and v =   1 −1  . cos

slide-25
SLIDE 25

Problem

Find the angle between u =   1 −1   and v =   1 −1  .

Solution

  • u ·

v = 1, || u|| = √ 2 and || v|| = √ 2. Therefore, cos θ =

  • u ·

v || u|| || v|| = 1 √ 2 √ 2 = 1 2. Since 0 ≤ θ ≤ π, θ = π

3 .

Therefore, the angle between u and v is π

3 .

slide-26
SLIDE 26

Problem

Find the angle between u =   7 −1 3   and v =   1 4 −1  .

slide-27
SLIDE 27

Problem

Find the angle between u =   7 −1 3   and v =   1 4 −1  .

Solution

  • u ·

v = 0, and therefore the angle between the vectors is π

2 .

slide-28
SLIDE 28

Problem

Find all vectors v =   x y z   orthogonal to both u =   −1 −3 2   and w =   1 1  .

slide-29
SLIDE 29

Problem

Find all vectors v =   x y z   orthogonal to both u =   −1 −3 2   and w =   1 1  .

Solution

There are infinitely many such vectors.

slide-30
SLIDE 30

Problem

Find all vectors v =   x y z   orthogonal to both u =   −1 −3 2   and w =   1 1  .

Solution

There are infinitely many such vectors. Since v is orthogonal to both u and

  • w,
  • v ·

u = −x − 3y + 2z = 0

  • v ·

w = y + z = 0 This is a homogeneous system of two linear equation in three variables. −1 −3 2 1 1

  • → · · · →

1 −5 1 1

  • Therefore,

v = t   5 −1 1   for all t ∈ R.

slide-31
SLIDE 31

Example

Are A(4, −7, 9), B(6, 4, 4) and C(7, 10, −6) the vertices of a right angle triangle?

slide-32
SLIDE 32

Example

Are A(4, −7, 9), B(6, 4, 4) and C(7, 10, −6) the vertices of a right angle triangle? Solution. − → AB =   2 11 −5   , − → AC =   3 17 −15   , − → BC =   1 6 −10  

slide-33
SLIDE 33

Example

Are A(4, −7, 9), B(6, 4, 4) and C(7, 10, −6) the vertices of a right angle triangle? Solution. − → AB =   2 11 −5   , − → AC =   3 17 −15   , − → BC =   1 6 −10   ◮ − → AB · − → AC = 6 + 187 + 75 = 0.

slide-34
SLIDE 34

Example

Are A(4, −7, 9), B(6, 4, 4) and C(7, 10, −6) the vertices of a right angle triangle? Solution. − → AB =   2 11 −5   , − → AC =   3 17 −15   , − → BC =   1 6 −10   ◮ − → AB · − → AC = 6 + 187 + 75 = 0. ◮ − → BA · − → BC = (−− → AB) · − → BC = −2 − 66 − 50 = 0.

slide-35
SLIDE 35

Example

Are A(4, −7, 9), B(6, 4, 4) and C(7, 10, −6) the vertices of a right angle triangle? Solution. − → AB =   2 11 −5   , − → AC =   3 17 −15   , − → BC =   1 6 −10   ◮ − → AB · − → AC = 6 + 187 + 75 = 0. ◮ − → BA · − → BC = (−− → AB) · − → BC = −2 − 66 − 50 = 0. ◮ − → CA · − → CB = (−− → AC) · (−− → BC) = − → AC · − → BC = 3 + 102 + 150 = 0.

slide-36
SLIDE 36

Example

Are A(4, −7, 9), B(6, 4, 4) and C(7, 10, −6) the vertices of a right angle triangle? Solution. − → AB =   2 11 −5   , − → AC =   3 17 −15   , − → BC =   1 6 −10   ◮ − → AB · − → AC = 6 + 187 + 75 = 0. ◮ − → BA · − → BC = (−− → AB) · − → BC = −2 − 66 − 50 = 0. ◮ − → CA · − → CB = (−− → AC) · (−− → BC) = − → AC · − → BC = 3 + 102 + 150 = 0. None of the angles is π

2 , and therefore the triangle is not a right angle

triangle.

slide-37
SLIDE 37

Example

A rhombus is a parallelogram with sides of equal length. Prove that the diagonals of a rhombus are perpendicular.

slide-38
SLIDE 38

Example

A rhombus is a parallelogram with sides of equal length. Prove that the diagonals of a rhombus are perpendicular. Solution.

  • u
  • v

Define the parallelogram (rhombus) by vectors u and v. Then the diagonals are u + v and u − v. Show that u + v and u − v are perpendicular.

slide-39
SLIDE 39

Example

A rhombus is a parallelogram with sides of equal length. Prove that the diagonals of a rhombus are perpendicular. Solution.

  • u
  • v

Define the parallelogram (rhombus) by vectors u and v. Then the diagonals are u + v and u − v. Show that u + v and u − v are perpendicular.

( u + v) · ( u − v) =

  • u ·

u − u · v + v · u + v · v = || u||2 − u · v + u · v − || v||2 = || u||2 − || v||2 = 0, since || u|| = || v||. Therefore, the diagonals are perpendicular.

slide-40
SLIDE 40

Projections

Given nonzero vectors u and d, express u as a sum u = u1 + u2, where u1 is parallel to d and u2 is orthogonal to d.

  • d
  • u
  • u1
  • u
  • u2

is the projection of

  • nto

, written proj . Since is parallel to , for some . Furthermore, if , then . Since and are

  • rthogonal,
slide-41
SLIDE 41

Projections

Given nonzero vectors u and d, express u as a sum u = u1 + u2, where u1 is parallel to d and u2 is orthogonal to d.

  • d
  • u
  • u1
  • u
  • u2
  • u1 is the projection of

u onto d, written u1 = proj

d

u. Since is parallel to , for some . Furthermore, if , then . Since and are

  • rthogonal,
slide-42
SLIDE 42

Projections

Given nonzero vectors u and d, express u as a sum u = u1 + u2, where u1 is parallel to d and u2 is orthogonal to d.

  • d
  • u
  • u1
  • u
  • u2
  • u1 is the projection of

u onto d, written u1 = proj

d

u. Since u1 is parallel to d, u1 = t d for some t ∈ R. Furthermore, if u = u1 + u2, then u2 = u −

  • u1. Since

u1 and u2 are

  • rthogonal,
slide-43
SLIDE 43

Projections

Given nonzero vectors u and d, express u as a sum u = u1 + u2, where u1 is parallel to d and u2 is orthogonal to d.

  • d
  • u
  • u1
  • u
  • u2
  • u1 is the projection of

u onto d, written u1 = proj

d

u. Since u1 is parallel to d, u1 = t d for some t ∈ R. Furthermore, if u = u1 + u2, then u2 = u −

  • u1. Since

u1 and u2 are

  • rthogonal,
  • u2 ·

u1 =

  • u2 · (t

d) = t( u2 · d) =

  • u2 ·

d =

slide-44
SLIDE 44
  • u2 ·

d = ( u − u1) · d =

  • u ·

d − u1 · d =

  • u ·

d − (t d) · d =

  • u ·

d − t( d · d) =

  • u ·

d − t|| d||2 =

  • u ·

d = t|| d||2 Since , we get and therefore

slide-45
SLIDE 45
  • u2 ·

d = ( u − u1) · d =

  • u ·

d − u1 · d =

  • u ·

d − (t d) · d =

  • u ·

d − t( d · d) =

  • u ·

d − t|| d||2 =

  • u ·

d = t|| d||2 Since d = 0, we get t = u · d || d||2 , and therefore

slide-46
SLIDE 46
  • u2 ·

d = ( u − u1) · d =

  • u ·

d − u1 · d =

  • u ·

d − (t d) · d =

  • u ·

d − t( d · d) =

  • u ·

d − t|| d||2 =

  • u ·

d = t|| d||2 Since d = 0, we get t = u · d || d||2 , and therefore

  • u1 =

u · d || d||2

  • d.
slide-47
SLIDE 47

Theorem

Let u and d be vectors with d = 0.

slide-48
SLIDE 48

Theorem

Let u and d be vectors with d = 0. 1. proj

d

u = u · d || d||2

  • d.
slide-49
SLIDE 49

Theorem

Let u and d be vectors with d = 0. 1. proj

d

u = u · d || d||2

  • d.

2.

  • u −

u · d || d||2

  • d

is orthogonal to d.

slide-50
SLIDE 50

Example

Let u =   2 −1   and v =   3 1 −1  . Find vectors u1 and u2 so that

  • u =

u1 + u2, with u1 parallel to v and u2 orthogonal to v.

slide-51
SLIDE 51

Example

Let u =   2 −1   and v =   3 1 −1  . Find vectors u1 and u2 so that

  • u =

u1 + u2, with u1 parallel to v and u2 orthogonal to v. Solution.

  • u1 = proj

v

u = u · v || v||2 v = 5 11   3 1 −1   =   15/11 5/11 −5/11   .

slide-52
SLIDE 52

Example

Let u =   2 −1   and v =   3 1 −1  . Find vectors u1 and u2 so that

  • u =

u1 + u2, with u1 parallel to v and u2 orthogonal to v. Solution.

  • u1 = proj

v

u = u · v || v||2 v = 5 11   3 1 −1   =   15/11 5/11 −5/11   .

  • u2 =

u − u1 =   2 −1   − 5 11   3 1 −1   = 1 11   7 −16 5   =   7/11 −16/11 5/11   .

slide-53
SLIDE 53

Distance from a Point to a Line

Example

Let P(3, 2, −1) be a point in R3 and L a line with equation   x y z   =   2 1 3   + t   3 −1 −2   . Find the shortest distance from P to L, and find the point Q on L that is closest to P.

slide-54
SLIDE 54

Distance from a Point to a Line

Example

Let P(3, 2, −1) be a point in R3 and L a line with equation   x y z   =   2 1 3   + t   3 −1 −2   . Find the shortest distance from P to L, and find the point Q on L that is closest to P. Solution.

L P0 P Q

  • u

Let P0 = P0(2, 1, 3) be a point on L, and let d = 3 −1 −2 T. Then − − → P0Q = proj

d

− − → P0P, − → 0Q = − − → 0P0 + − − → P0Q, and the shortest distance from P to L is the length of − → QP, where − → QP = − − → P0P − − − → P0Q.

slide-55
SLIDE 55

Example (continued)

− − → P0P =

  • 1

1 −4 T, d =

  • 3

−1 −2 T. − − → P0Q = proj

d

− − → P0P = − − → P0P · d || d||2

  • d = 10

14   3 −1 −2   = 1 7   15 −5 −10   .

slide-56
SLIDE 56

Example (continued)

− − → P0P =

  • 1

1 −4 T, d =

  • 3

−1 −2 T. − − → P0Q = proj

d

− − → P0P = − − → P0P · d || d||2

  • d = 10

14   3 −1 −2   = 1 7   15 −5 −10   . Therefore, − → 0Q =   2 1 3   + 1 7   15 −5 −10   = 1 7   29 2 11   , so Q = Q 29

7 , 2 7, 11 7

  • .
slide-57
SLIDE 57

Example (continued)

Finally, the shortest distance from P(3, 2, −1) to L is the length of − → QP, where − → QP = − − → P0P − − − → P0Q =   1 1 −4   − 1 7   15 −5 −10   = 2 7   −4 6 −9   .

slide-58
SLIDE 58

Example (continued)

Finally, the shortest distance from P(3, 2, −1) to L is the length of − → QP, where − → QP = − − → P0P − − − → P0Q =   1 1 −4   − 1 7   15 −5 −10   = 2 7   −4 6 −9   . Therefore the shortest distance from P to L is ||− → QP|| = 2 7

  • (−4)2 + 62 + (−9)2 = 2

7 √ 133.

slide-59
SLIDE 59

Equations of Planes

Given a point P0 and a nonzero vector n, there is a unique plane containing P0 and orthogonal to n.

Definition

A nonzero vector n is a normal vector to a plane if and only if n · v = 0 for every vector v in the plane. Consider a plane containing a point and orthogonal to vector , and let be an arbitrary point on this plane. Then

  • r, equivalently,

and is a vector equation of the plane.

slide-60
SLIDE 60

Equations of Planes

Given a point P0 and a nonzero vector n, there is a unique plane containing P0 and orthogonal to n.

Definition

A nonzero vector n is a normal vector to a plane if and only if n · v = 0 for every vector v in the plane. Consider a plane containing a point P0 and orthogonal to vector n, and let P be an arbitrary point on this plane. Then

  • r, equivalently,

and is a vector equation of the plane.

slide-61
SLIDE 61

Equations of Planes

Given a point P0 and a nonzero vector n, there is a unique plane containing P0 and orthogonal to n.

Definition

A nonzero vector n is a normal vector to a plane if and only if n · v = 0 for every vector v in the plane. Consider a plane containing a point P0 and orthogonal to vector n, and let P be an arbitrary point on this plane. Then

  • n · −

− → P0P = 0,

  • r, equivalently,

and is a vector equation of the plane.

slide-62
SLIDE 62

Equations of Planes

Given a point P0 and a nonzero vector n, there is a unique plane containing P0 and orthogonal to n.

Definition

A nonzero vector n is a normal vector to a plane if and only if n · v = 0 for every vector v in the plane. Consider a plane containing a point P0 and orthogonal to vector n, and let P be an arbitrary point on this plane. Then

  • n · −

− → P0P = 0,

  • r, equivalently,
  • n · (−

→ 0P − − − → 0P0) = 0, and is a vector equation of the plane.

slide-63
SLIDE 63

The vector equation

  • n · (−

→ 0P − − − → 0P0) = 0 can also be written as

  • n · −

→ 0P = n · − − → 0P0. Now suppose , , and . Then the previous equation becomes so where is simply a scalar. A scalar equation of the plane has the form where

slide-64
SLIDE 64

The vector equation

  • n · (−

→ 0P − − − → 0P0) = 0 can also be written as

  • n · −

→ 0P = n · − − → 0P0. Now suppose P0 = P0(x0, y0, z0), P = P(x, y, z), and n =

  • a

b c T. Then the previous equation becomes so where is simply a scalar. A scalar equation of the plane has the form where

slide-65
SLIDE 65

The vector equation

  • n · (−

→ 0P − − − → 0P0) = 0 can also be written as

  • n · −

→ 0P = n · − − → 0P0. Now suppose P0 = P0(x0, y0, z0), P = P(x, y, z), and n =

  • a

b c T. Then the previous equation becomes   a b c   ·   x y z   =   a b c   ·   x0 y0 z0   , so where is simply a scalar. A scalar equation of the plane has the form where

slide-66
SLIDE 66

The vector equation

  • n · (−

→ 0P − − − → 0P0) = 0 can also be written as

  • n · −

→ 0P = n · − − → 0P0. Now suppose P0 = P0(x0, y0, z0), P = P(x, y, z), and n =

  • a

b c T. Then the previous equation becomes   a b c   ·   x y z   =   a b c   ·   x0 y0 z0   , so ax + by + cz = ax0 + by0 + cz0, where d = ax0 + by0 + cz0 is simply a scalar. A scalar equation of the plane has the form where

slide-67
SLIDE 67

The vector equation

  • n · (−

→ 0P − − − → 0P0) = 0 can also be written as

  • n · −

→ 0P = n · − − → 0P0. Now suppose P0 = P0(x0, y0, z0), P = P(x, y, z), and n =

  • a

b c T. Then the previous equation becomes   a b c   ·   x y z   =   a b c   ·   x0 y0 z0   , so ax + by + cz = ax0 + by0 + cz0, where d = ax0 + by0 + cz0 is simply a scalar. A scalar equation of the plane has the form ax + by + cz = d, where a, b, c, d ∈ R.

slide-68
SLIDE 68

Problem

Find an equation of the plane containing P0(1, −1, 0) and orthogonal to

  • n =
  • −3

5 2 T.

slide-69
SLIDE 69

Problem

Find an equation of the plane containing P0(1, −1, 0) and orthogonal to

  • n =
  • −3

5 2 T.

Solution

A vector equation of this plane is   −3 5 2   ·   x − 1 y + 1 z   = 0.

slide-70
SLIDE 70

Problem

Find an equation of the plane containing P0(1, −1, 0) and orthogonal to

  • n =
  • −3

5 2 T.

Solution

A vector equation of this plane is   −3 5 2   ·   x − 1 y + 1 z   = 0. A scalar equation of this plane is −3x + 5y + 2z = −3(1) + 5(−1) + 2(0) = −8, i.e., the plane has scalar equation −3x + 5y + 2z = −8.

slide-71
SLIDE 71

Here are two solutions to the problem of finding the shortest distance from a point to a plane.

slide-72
SLIDE 72

Here are two solutions to the problem of finding the shortest distance from a point to a plane.

Example

Find the shortest distance from the point P(2, 3, 0) to the plane with equation 5x + y + z = −1, and find the point Q on the plane that is closest to P.

slide-73
SLIDE 73

Here are two solutions to the problem of finding the shortest distance from a point to a plane.

Example

Find the shortest distance from the point P(2, 3, 0) to the plane with equation 5x + y + z = −1, and find the point Q on the plane that is closest to P. Solution 1

P0

  • n

Q P(2, 3, 0) Pick an arbitrary point P0 on the plane. Then − → QP = proj

n

− − → P0P,

||− → QP|| is the shortest distance, and − → 0Q = − → 0P − − → QP.

slide-74
SLIDE 74

Here are two solutions to the problem of finding the shortest distance from a point to a plane.

Example

Find the shortest distance from the point P(2, 3, 0) to the plane with equation 5x + y + z = −1, and find the point Q on the plane that is closest to P. Solution 1

P0

  • n

Q P(2, 3, 0) Pick an arbitrary point P0 on the plane. Then − → QP = proj

n

− − → P0P,

||− → QP|| is the shortest distance, and − → 0Q = − → 0P − − → QP.

  • n =
  • 5

1 1 T.

slide-75
SLIDE 75

Here are two solutions to the problem of finding the shortest distance from a point to a plane.

Example

Find the shortest distance from the point P(2, 3, 0) to the plane with equation 5x + y + z = −1, and find the point Q on the plane that is closest to P. Solution 1

P0

  • n

Q P(2, 3, 0) Pick an arbitrary point P0 on the plane. Then − → QP = proj

n

− − → P0P,

||− → QP|| is the shortest distance, and − → 0Q = − → 0P − − → QP.

  • n =
  • 5

1 1

  • T. Choose P0 = P0(0, 0, −1).
slide-76
SLIDE 76

Here are two solutions to the problem of finding the shortest distance from a point to a plane.

Example

Find the shortest distance from the point P(2, 3, 0) to the plane with equation 5x + y + z = −1, and find the point Q on the plane that is closest to P. Solution 1

P0

  • n

Q P(2, 3, 0) Pick an arbitrary point P0 on the plane. Then − → QP = proj

n

− − → P0P,

||− → QP|| is the shortest distance, and − → 0Q = − → 0P − − → QP.

  • n =
  • 5

1 1

  • T. Choose P0 = P0(0, 0, −1).

Then − − → P0P =

  • 2

3 1 T.

slide-77
SLIDE 77

Example (continued)

P0

  • n

Q P(2, 3, 0) − − → P0P = 2 3 1 T.

  • n =

5 1 1 T.

slide-78
SLIDE 78

Example (continued)

P0

  • n

Q P(2, 3, 0) − − → P0P = 2 3 1 T.

  • n =

5 1 1 T. − → QP = proj

n

− − → P0P = − − → P0P · n || n||2 n = 14 27 5 1 1 T .

slide-79
SLIDE 79

Example (continued)

P0

  • n

Q P(2, 3, 0) − − → P0P = 2 3 1 T.

  • n =

5 1 1 T. − → QP = proj

n

− − → P0P = − − → P0P · n || n||2 n = 14 27 5 1 1 T . Since ||− → QP|| = 14

27

√ 27 = 14

√ 3 9

, the shortest distance from P to the plane is 14

√ 3 9

.

slide-80
SLIDE 80

Example (continued)

P0

  • n

Q P(2, 3, 0) − − → P0P = 2 3 1 T.

  • n =

5 1 1 T. − → QP = proj

n

− − → P0P = − − → P0P · n || n||2 n = 14 27 5 1 1 T . Since ||− → QP|| = 14

27

√ 27 = 14

√ 3 9

, the shortest distance from P to the plane is 14

√ 3 9

. To find Q, we have − → 0Q = − → 0P − − → QP = 2 3 0 T − 14 27 5 1 1 T = 1 27 −16 67 −14 T .

slide-81
SLIDE 81

Example (continued)

P0

  • n

Q P(2, 3, 0) − − → P0P = 2 3 1 T.

  • n =

5 1 1 T. − → QP = proj

n

− − → P0P = − − → P0P · n || n||2 n = 14 27 5 1 1 T . Since ||− → QP|| = 14

27

√ 27 = 14

√ 3 9

, the shortest distance from P to the plane is 14

√ 3 9

. To find Q, we have − → 0Q = − → 0P − − → QP = 2 3 0 T − 14 27 5 1 1 T = 1 27 −16 67 −14 T . Therefore Q = Q

  • − 16

27 , 67 27 , − 14 27

  • .
slide-82
SLIDE 82

The Cross Product

Definition

Let u =

  • x1

y1 z1 T and v =

  • x2

y2 z2

  • T. Then
  • u ×

v =   y1z2 − z1y2 −(x1z2 − z1x2) x1y2 − y1x2   . is a vector that is orthogonal to both and . A mnemonic device: where

slide-83
SLIDE 83

The Cross Product

Definition

Let u =

  • x1

y1 z1 T and v =

  • x2

y2 z2

  • T. Then
  • u ×

v =   y1z2 − z1y2 −(x1z2 − z1x2) x1y2 − y1x2   . Note. u × v is a vector that is orthogonal to both u and v. A mnemonic device: where

slide-84
SLIDE 84

The Cross Product

Definition

Let u =

  • x1

y1 z1 T and v =

  • x2

y2 z2

  • T. Then
  • u ×

v =   y1z2 − z1y2 −(x1z2 − z1x2) x1y2 − y1x2   . Note. u × v is a vector that is orthogonal to both u and v. A mnemonic device:

  • u ×

v =

  • i

x1 x2

  • j

y1 y2

  • k

z1 z2

  • , where

i =   1   , j =   1   , k =   1   .

slide-85
SLIDE 85

Theorem

Let v, w ∈ R3.

slide-86
SLIDE 86

Theorem

Let v, w ∈ R3. 1. v × w is orthogonal to both v and w.

slide-87
SLIDE 87

Theorem

Let v, w ∈ R3. 1. v × w is orthogonal to both v and w.

  • 2. If

v and w are both nonzero, then u × w = 0 if and only if v and w are parallel.

slide-88
SLIDE 88

Problem

Find all vectors orthogonal to both u =

  • −1

−3 2 T and

  • v =
  • 1

1

  • T. (We previously solved this using the dot product.)
slide-89
SLIDE 89

Problem

Find all vectors orthogonal to both u =

  • −1

−3 2 T and

  • v =
  • 1

1

  • T. (We previously solved this using the dot product.)

Solution

  • u ×

v =

  • i

−1

  • j

−3 1

  • k

2 1

  • = −5
  • i +

j − k =   −5 1 −1   . Any scalar multiple of u × v is also orthogonal to both u and v, so t   −5 1 −1   , ∀t ∈ R, gives all vectors orthogonal to both u and v. (Compare this with our earlier answer.)

slide-90
SLIDE 90

Distance between skew lines

Problem

Given two lines L1 :   x y z   =   3 1 −1   + s   1 1 −1   and L2 :   x y z   =   1 2   + t   1 2   ,

  • A. Find the shortest distance between L1 and L2.
  • B. Find the shortest distance between L1 and L2, and find the points P on

L1 and Q on L2 that are closest together.

slide-91
SLIDE 91

Distance between skew lines

Problem

Given two lines L1 :   x y z   =   3 1 −1   + s   1 1 −1   and L2 :   x y z   =   1 2   + t   1 2   ,

  • A. Find the shortest distance between L1 and L2.
  • B. Find the shortest distance between L1 and L2, and find the points P on

L1 and Q on L2 that are closest together.

Solution

P2 Q P P1

Choose P1(3, 1, −1) on L1 and P2(1, 2, 0) on L2. Let d1 =   1 1 −1   and d2 =   1 2   denote direction vectors for L1 and L2, respectively.

slide-92
SLIDE 92

P2(1, 2, 0) Q P P1(3, 1, −1)

  • d1 =

  1 1 −1  , d2 =   1 2   The shortest distance between L1 and L2 is the length

  • f the projection of −

− − → P1P2 onto n = d1 × d2.

and proj and proj Therefore, the shortest distance between and is .

slide-93
SLIDE 93

P2(1, 2, 0) Q P P1(3, 1, −1)

  • d1 =

  1 1 −1  , d2 =   1 2   The shortest distance between L1 and L2 is the length

  • f the projection of −

− − → P1P2 onto n = d1 × d2.

− − − → P1P2 =   −2 1 1   and

  • n =

  1 1 −1   ×   1 2   =   2 −3 −1   proj and proj Therefore, the shortest distance between and is .

slide-94
SLIDE 94

P2(1, 2, 0) Q P P1(3, 1, −1)

  • d1 =

  1 1 −1  , d2 =   1 2   The shortest distance between L1 and L2 is the length

  • f the projection of −

− − → P1P2 onto n = d1 × d2.

− − − → P1P2 =   −2 1 1   and

  • n =

  1 1 −1   ×   1 2   =   2 −3 −1   proj

n

− − − → P1P2 = − − − → P1P2 · n || n||2

  • n,

and ||proj

n

− − − → P1P2|| = |− − − → P1P2 · n| || n|| . Therefore, the shortest distance between and is .

slide-95
SLIDE 95

P2(1, 2, 0) Q P P1(3, 1, −1)

  • d1 =

  1 1 −1  , d2 =   1 2   The shortest distance between L1 and L2 is the length

  • f the projection of −

− − → P1P2 onto n = d1 × d2.

− − − → P1P2 =   −2 1 1   and

  • n =

  1 1 −1   ×   1 2   =   2 −3 −1   proj

n

− − − → P1P2 = − − − → P1P2 · n || n||2

  • n,

and ||proj

n

− − − → P1P2|| = |− − − → P1P2 · n| || n|| . Therefore, the shortest distance between L1 and L2 is |−8|

√ 14 = 4 7

√ 14.

slide-96
SLIDE 96

Solution B.

P2(1, 2, 0) Q P P1(3, 1, −1)

  • d1 =

  1 1 −1  , d2 =   1 2  ; − → 0P =   3 + s 1 + s −1 − s   for some s ∈ R; − → 0Q =   1 + t 2 2t   for some t ∈ R.

Now is orthogonal to both and , so and i.e., This system has unique solution and . Therefore, and

slide-97
SLIDE 97

Solution B.

P2(1, 2, 0) Q P P1(3, 1, −1)

  • d1 =

  1 1 −1  , d2 =   1 2  ; − → 0P =   3 + s 1 + s −1 − s   for some s ∈ R; − → 0Q =   1 + t 2 2t   for some t ∈ R.

Now − → PQ = −2 − s + t 1 − s 1 + s + 2t T is orthogonal to both L1 and L2, so − → PQ · d1 = 0 and − → PQ · d2 = 0, i.e., This system has unique solution and . Therefore, and

slide-98
SLIDE 98

Solution B.

P2(1, 2, 0) Q P P1(3, 1, −1)

  • d1 =

  1 1 −1  , d2 =   1 2  ; − → 0P =   3 + s 1 + s −1 − s   for some s ∈ R; − → 0Q =   1 + t 2 2t   for some t ∈ R.

Now − → PQ = −2 − s + t 1 − s 1 + s + 2t T is orthogonal to both L1 and L2, so − → PQ · d1 = 0 and − → PQ · d2 = 0, i.e., −2 − 3s − t = s + 5t = 0. This system has unique solution and . Therefore, and

slide-99
SLIDE 99

Solution B.

P2(1, 2, 0) Q P P1(3, 1, −1)

  • d1 =

  1 1 −1  , d2 =   1 2  ; − → 0P =   3 + s 1 + s −1 − s   for some s ∈ R; − → 0Q =   1 + t 2 2t   for some t ∈ R.

Now − → PQ = −2 − s + t 1 − s 1 + s + 2t T is orthogonal to both L1 and L2, so − → PQ · d1 = 0 and − → PQ · d2 = 0, i.e., −2 − 3s − t = s + 5t = 0. This system has unique solution s = − 5

7 and t = 1 7 .

Therefore, and

slide-100
SLIDE 100

Solution B.

P2(1, 2, 0) Q P P1(3, 1, −1)

  • d1 =

  1 1 −1  , d2 =   1 2  ; − → 0P =   3 + s 1 + s −1 − s   for some s ∈ R; − → 0Q =   1 + t 2 2t   for some t ∈ R.

Now − → PQ = −2 − s + t 1 − s 1 + s + 2t T is orthogonal to both L1 and L2, so − → PQ · d1 = 0 and − → PQ · d2 = 0, i.e., −2 − 3s − t = s + 5t = 0. This system has unique solution s = − 5

7 and t = 1 7 . Therefore,

P = P 16 7 , 2 7 , − 2 7

  • and

Q = Q 8 7 , 2, 2 7

  • .
slide-101
SLIDE 101

The shortest distance between L1 and L2 is ||− → PQ||. Since P = P 16 7 , 2 7 , − 2 7

  • and

Q = Q 8 7 , 2, 2 7

  • ,

and Therefore the shortest distance between and is .

slide-102
SLIDE 102

The shortest distance between L1 and L2 is ||− → PQ||. Since P = P 16 7 , 2 7 , − 2 7

  • and

Q = Q 8 7 , 2, 2 7

  • ,

− → PQ = 1 7   8 14 2   − 1 7   16 2 −2   = 1 7   −8 12 4   , and Therefore the shortest distance between and is .

slide-103
SLIDE 103

The shortest distance between L1 and L2 is ||− → PQ||. Since P = P 16 7 , 2 7 , − 2 7

  • and

Q = Q 8 7 , 2, 2 7

  • ,

− → PQ = 1 7   8 14 2   − 1 7   16 2 −2   = 1 7   −8 12 4   , and ||− → PQ|| = 1 7 √ 224 = 4 7 √ 14. Therefore the shortest distance between and is .

slide-104
SLIDE 104

The shortest distance between L1 and L2 is ||− → PQ||. Since P = P 16 7 , 2 7 , − 2 7

  • and

Q = Q 8 7 , 2, 2 7

  • ,

− → PQ = 1 7   8 14 2   − 1 7   16 2 −2   = 1 7   −8 12 4   , and ||− → PQ|| = 1 7 √ 224 = 4 7 √ 14. Therefore the shortest distance between L1 and L2 is 4

7

√ 14.

slide-105
SLIDE 105

Shortest Distances

Challenge

Write yourself a plan to fjnd the shortest distance between either a point, line

  • r plane, to either a point, line or plane.