← Back to Math 010

3.3 Orthogonality: Class Notes

Definition

Two nonzero vectors 𝐮 and 𝐯 in Rn are said to be orthogonal (or perpendicular) if 𝐮·𝐯=0. We will also agree that the zero vector in Rn is orthogonal to every vector in Rn.

We write u→⟂v→ for “u→ is perpendicular to v→.”

Definition

A vector 𝐧 that is orthogonal to a line in R2 or R3 or a plane in R3 is called a normal.

A line L in the plane through (x0, y0), a normal vector (a, b), and another point (x, y) on L

A line L through (x0,y0) with normal vector (a,b). For any other point (x,y) on L, the vector (x−x0,y−y0) lies along the line, so it is perpendicular to the normal.

(a,b)·(x−x0,y−y0)=0⇒a(x−x0)+b(y−y0)=0

#4

Find a point-normal form of the equation of the plane passing through P and having 𝐧 as a normal.

P(1,1,4), 𝐧=(1,9,8)

Solution

A plane containing P(1, 1, 4), a normal n = (1, 9, 8) at P, and a vector v from P to a point (x, y, z) in the plane

A plane through P(1,1,4) with normal n→=(1,9,8) drawn from P. The vector v→ goes from P to any point (x,y,z) in the plane.

v→=(x−1,y−1,z−4) is a vector in the plane for a point (x,y,z) in the plane. Then

n→⟂v→ ⇒ n→·v→=0 ⇒ (1,9,8)·(x−1,y−1,z−4)=0

⇒ (x−1)+9(y−1)+8(z−4)=0

Answer: (x−1)+9(y−1)+8(z−4)=0

Expanding gives the general form x+9y+8z−42=0.

Theorem 3.3.1

a) If a and b are constants that are not both zero, then an equation of the form ax+by+c=0 represents a line in R2 with normal 𝐧=(a,b).

b) If a, b, and c are constants that are not all zero, then an equation of the form ax+by+cz+d=0 represents a plane in R3 with normal 𝐧=(a,b,c).

Theorem 3.4.3 (not a typo)

If A is an m×n matrix, then the solution set of the homogeneous linear system A𝐱=𝟎 consists of all vectors in Rn that are orthogonal to every row vector of A.

Consider the homogeneous system

a11x1+a12x2+⋯+a1nxn=0a21x1+a22x2+⋯+a2nxn=0⋮  ⋮am1x1+am2x2+⋯+amnxn=0

Each equation is a dot product of a row of A with x→. For example, the first equation is

(a11,a12,…,a1n)·(x1,x2,…,xn)=0.

Shifting gears a bit,

Theorem 3.3.2 Projection Theorem

If 𝐮 and 𝐚 are vectors in Rn, and if 𝐚≠𝟎, then 𝐮 can be expressed in exactly one way in the form 𝐮=𝐰1+𝐰2, where 𝐰1 is a scalar multiple of 𝐚 and 𝐰2 is orthogonal to 𝐚.

Proof

w→1 parallel to a→ means w→1=ka→. Then

u→·a→=(w→1+w→2)·a→=(ka→+w→2)·a→=ka→·a→+w→2·a→=k‖a→‖2,

since w→2·a→=0 (w→2 is orthogonal to a→). So

u→·a→=k‖a→‖2 ⇒ k=u→·a→‖a→‖2.

So w→1=u→·a→‖a→‖2a→=u→·a→‖a→‖a→‖a→‖.

Then w→2=u→−u→·a→‖a→‖2a→.

Definition

When 𝐮, a vector in Rn, is expressed as 𝐮=𝐰1+𝐰2, where 𝐰1 is a scalar multiple of a vector 𝐚 in Rn,

𝐰1=proj𝐚𝐮=𝐮·𝐚‖𝐚‖2𝐚

is called the orthogonal projection of 𝐮 on 𝐚 or the vector component of 𝐮 along 𝐚. The vector

𝐰2=𝐮−proj𝐚𝐮=𝐮−𝐮·𝐚‖𝐚‖2𝐚

is called the vector component of 𝐮 orthogonal to 𝐚.

#20

Find the vector component of 𝐮 along 𝐚 and the vector component of 𝐮 orthogonal to 𝐚.

𝐮=(5,0,−3,7), 𝐚=(2,1,−1,−1)

Solution

The component along a→ is w→1 and the component orthogonal to a→ is w→2.

w→1=proja→u→=u→·a→‖a→‖2a→=10+0+3−74+1+1+1a→=67a→

Answer: w→1=(127,67,−67,−67)

w→2=u→−w→1=(5,0,−3,7)−(127,67,−67,−67)

Answer: w→2=(237,−67,−157,557)

Check: w→1+w→2=(5,0,−3,7)=u→, and

a→·w→2=(2,1,−1,−1)·(237,−67,−157,557)=467−67+157−557=0.

Standard matrix for a transformation: its columns are the images of the standard basis vectors,

[TA]=[TA(e→1)TA(e→2)⋯TA(e→n)].

#38

Find the standard matrix for the orthogonal projection of R2 onto the stated line, and then use that matrix to find the orthogonal projection of the given point onto that line.

The orthogonal projection of (1,2) onto the line that makes an angle of π/4 (=45∘) with the positive x-axis.

Solution

The line y = x, the unit vector a along it at angle theta, and the point (1, 2) projected onto (3/2, 3/2)

The line y=x makes angle θ=π/4 with the positive x-axis. The unit vector a→ points along the line. The point (1,2) drops perpendicularly (dashed) to the point (32,32) on the line.

Find the image of TA on e→1 and e→2. A unit vector on the line is a→=(cos⁡θ,sin⁡θ), so ‖a→‖=1.

proja→e→1=e→1·a→‖a→‖2a→=cos⁡θ(cos⁡θ,sin⁡θ)=(cos2⁡θ,cos⁡θsin⁡θ)proja→e→2=e→2·a→‖a→‖2a→=sin⁡θ(cos⁡θ,sin⁡θ)=(cos⁡θsin⁡θ,sin2⁡θ)

These are the first and second columns of the standard matrix:

[TA]=[cos2⁡θcos⁡θsin⁡θcos⁡θsin⁡θsin2⁡θ].For θ=45∘, [TA]=[12121212].

[TA][12]=[12121212][12]=[3232]

Answer: [TA]=[12121212],  projection (32,32)

In general, the matrix for orthogonal projection onto the line at angle θ is denoted Pθ:

Pθ=[cos2⁡θsin⁡θcos⁡θsin⁡θcos⁡θsin2⁡θ]=[cos2⁡θ12sin⁡2θ12sin⁡2θsin2⁡θ]

Recall

sin⁡2θ=2sin⁡θcos⁡θ

#36

Find the standard matrix for the reflection of R2 about the stated line, and then use that matrix to find the reflection of the given point about that line.

The reflection of (1,2) about the line that makes an angle of π/4 (=45∘) with the positive x-axis.

Solution

The vector x to (1, 2), its projection onto y = x, and its reflection about y = x ending at (2, 1)

The given vector x→ ends at (1,2). Its projection Pθx→ ends on the line y=x, halfway between x→ and the desired vector Hθx→, the reflection, which ends at (2,1). The dotted segment from (1,2) to (2,1) is perpendicular to the line.

The distance between x→ and Pθx→ is half the distance between x→ and Hθx→, and they point the same way. Thus

Pθx→−x→=12(Hθx→−x→)Hθx→=2Pθx→−x→=(2Pθ−I)x→

where I is the identity matrix. So

Hθ=2Pθ−I=[2cos2⁡θ−1sin⁡2θsin⁡2θ2sin2⁡θ−1]=[cos⁡2θsin⁡2θsin⁡2θ−cos⁡2θ].

(Using cos⁡2θ=2cos2⁡θ−1=1−2sin2⁡θ.) Here 2θ=π/2, so

Hπ/4[12]=[0110][12]=[21].

Answer: Hπ/4=[0110],  reflection (2,1)

Theorem 3.3.3 Theorem of Pythagoras in Rn

If 𝐮 and 𝐯 are orthogonal vectors in Rn with the Euclidean inner product, then ‖𝐮+𝐯‖2=‖𝐮‖2+‖𝐯‖2.

The Euclidean inner product is the dot product.

Proof

‖u→+v→‖2=(u→+v→)·(u→+v→)=‖u→‖2+2u→·v→+‖v→‖2=‖u→‖2+‖v→‖2

since u→⟂v→⇒u→·v→=0.