CHAPTER 5�INNER PRODUCT SPACES
Elementary Linear Algebra
R. Larson (8 Edition)
5.1 Length and Dot Product in Rn
5.2 Inner Product Spaces
5.3 Orthonormal Bases: Gram-Schmidt Process
5.4 Mathematical Models and Least Square Analysis
5.5 Applications of Inner Product Space
投影片設計製作者
淡江大學 電機系 翁慶昌 教授
CH 5 Linear Algebra Applied
Electric/Magnetic Flux (p.240) Heart Rhythm Analysis (p.255)
Work (p.248)
Revenue (p.266) Torque (p.277)
2/101
5.1 Length and Dot Product in Rn
The length of a vector in Rn is given by
is called a unit vector.
Elementary Linear Algebra: Section 5.1, p.232
3/101
(a) In R5, the length of is given by
(b) In R3 the length of is given by
(v is a unit vector)
Elementary Linear Algebra: Section 5.1, p.232
4/101
u and v have the same direction
u and v have the opposite direction
the standard unit vector in R2:
the standard unit vector in R3:
Elementary Linear Algebra: Section 5.1, p.232
5/101
Let v be a vector in Rn and c be a scalar. Then
Pf:
Elementary Linear Algebra: Section 5.1, p.233
6/101
If v is a nonzero vector in Rn, then the vector
has length 1 and has the same direction as v. This vector u is called the unit vector in the direction of v.
Pf:
v is nonzero
(u has the same direction as v)
(u has length 1 )
Elementary Linear Algebra: Section 5.1, p.233
7/101
(1) The vector is called the unit vector in the direction of v.
(2) The process of finding the unit vector in the direction of v
is called normalizing the vector v.
Elementary Linear Algebra: Section 5.1, p.233
8/101
Find the unit vector in the direction of ,
and verify that this vector has length 1.
is a unit vector.
Sol:
Elementary Linear Algebra: Section 5.1, p.233
9/101
The distance between two vectors u and v in Rn is
(1)
(2) if and only if
(3)
Elementary Linear Algebra: Section 5.1, p.234
10/101
The distance between u = (0, 2, 2) and v = (2, 0, 1) is
Elementary Linear Algebra: Section 5.1, p.234
11/101
The dot product of and
is the scalar quantity
The dot product of u=(1, 2, 0, -3) and v=(3, -2, 4, 2) is
Elementary Linear Algebra: Section 5.1, p.235
12/101
If u, v, and w are vectors in Rn and c is a scalar,
then the following properties are true.
(1)
(2)
(3)
(4)
(5) , and if and only if
Elementary Linear Algebra: Section 5.1, p.235
13/101
Rn was defined to be the set of all order n-tuples of real numbers. When Rn is combined with the standard operations of vector addition, scalar multiplication, vector length, and the dot product, the resulting vector space is called Euclidean n-space.
Elementary Linear Algebra: Section 5.1, p.235
14/101
Sol:
Elementary Linear Algebra: Section 5.1, p.236
15/101
Given
Sol:
Find
Elementary Linear Algebra: Section 5.1, p.236
16/101
Verify the Cauchy - Schwarz inequality for u=(1, -1, 3)
and v=(2, 0, -1)
If u and v are vectors in Rn, then
( denotes the absolute value of )
Sol:
Elementary Linear Algebra: Section 5.1, p.237
17/101
The angle between the zero vector and another vector is not defined.
Opposite
direction
Same
direction
Elementary Linear Algebra: Section 5.1, p.238
18/101
Sol:
u and v have opposite directions.
Elementary Linear Algebra: Section 5.1, p.238
19/101
Two vectors u and v in Rn are orthogonal if
The vector 0 is said to be orthogonal to every vector.
Elementary Linear Algebra: Section 5.1, p.238
20/101
Determine all vectors in Rn that are orthogonal to u=(4, 2).
Let
Sol:
Elementary Linear Algebra: Section 5.1, p.238
21/101
If u and v are vectors in Rn, then
Pf:
Equality occurs in the triangle inequality if and only if
the vectors u and v have the same direction.
Elementary Linear Algebra: Section 5.1, p.239
22/101
If u and v are vectors in Rn, then u and v are orthogonal
if and only if
Elementary Linear Algebra: Section 5.1, p.239
23/101
(A vector in Rn
is represented as an n×1 column matrix)
Elementary Linear Algebra: Section 5.1, p.240
24/101
Key Learning in Section 5.1
25/101
Keywords in Section 5.1
26/101
5.2 Inner Product Spaces
Let u, v, and w be vectors in a vector space V, and let c be any scalar. An inner product on V is a function that associates a real number <u, v> with each pair of vectors u and v and satisfies the following axioms.
(1)
(2)
(3)
(4) and if and only if
Elementary Linear Algebra: Section 5.2, p.243
27/101
A vector space V with an inner product is called an inner product space.
Vector space:
Inner product space:
Elementary Linear Algebra: Section 5.2, Addition
28/101
Show that the dot product in Rn satisfies the four axioms of an inner product.
Sol:
By Theorem 5.3, this dot product satisfies the required four axioms. Thus it is an inner product on Rn.
Elementary Linear Algebra: Section 5.2, p.243
29/101
Show that the function defines an inner product on R2, where and .
Sol:
Elementary Linear Algebra: Section 5.2, p.244
30/101
Elementary Linear Algebra: Section 5.2, p.244
31/101
Show that the following function is not an inner product on R3.
Sol:
Let
Axiom 4 is not satisfied.
Thus this function is not an inner product on R3.
Elementary Linear Algebra: Section 5.2, p.244
32/101
Let u, v, and w be vectors in an inner product space V, and let c be any real number.
(1)
(2)
(3)
Elementary Linear Algebra: Section 5.2, p.245
33/101
u and v are orthogonal if .
Elementary Linear Algebra: Section 5.2, p.246
34/101
(1) If , then v is called a unit vector.
(2)
(the unit vector in the
direction of v)
not a unit vector
Elementary Linear Algebra: Section 5.2, p.246
35/101
is an inner product
Sol:
Elementary Linear Algebra: Section 5.2, p.246
36/101
(1)
(2) if and only if
(3)
(1)
(2) if and only if
(3)
Elementary Linear Algebra: Section 5.2, p.247
37/101
Let u and v be vectors in an inner product space V.
(1) Cauchy-Schwarz inequality:
(2) Triangle inequality:
(3) Pythagorean theorem :
u and v are orthogonal if and only if
Theorem 5.5
Theorem 5.6
Theorem 5.4
Elementary Linear Algebra: Section 5.2, p.248
38/101
Let u and v be two vectors in an inner product space V, such that . Then the orthogonal projection of u onto v is given by
If v is a init vector, then .
The formula for the orthogonal projection of u onto v takes the following simpler form.
Elementary Linear Algebra: Section 5.2, p.249
39/101
Use the Euclidean inner product in R3 to find the orthogonal projection of u=(6, 2, 4) onto v=(1, 2, 0).
Sol:
Elementary Linear Algebra: Section 5.2, p.249
40/101
Let u and v be two vectors in an inner product space V, such that . Then
Elementary Linear Algebra: Section 5.2, p.260
41/101
Key Learning in Section 5.2
42/101
Keywords in Section 5.2
43/101
5.3 Orthonormal Bases: Gram-Schmidt Process
A set S of vectors in an inner product space V is called an orthogonal set if every pair of vectors in the set is orthogonal.
An orthogonal set in which each vector is a unit vector is called orthonormal.
If S is a basis, then it is called an orthogonal basis or an orthonormal basis.
Elementary Linear Algebra: Section 5.3, p.254
44/101
Show that the following set is an orthonormal basis.
Sol:
Show that the three vectors are mutually orthogonal.
Elementary Linear Algebra: Section 5.3, p.255
45/101
Show that each vector is of length 1.
Thus S is an orthonormal set.
Elementary Linear Algebra: Section 5.3, p.255
46/101
The standard basis is orthonormal.
In , with the inner product
Sol:
Then
Elementary Linear Algebra: Section 5.3, p.255
47/101
Elementary Linear Algebra: Section 5.3, p.255
48/101
If is an orthogonal set of nonzero vectors in an inner product space V, then S is linearly independent.
Pf:
S is an orthogonal set of nonzero vectors
Elementary Linear Algebra: Section 5.3, p.257
49/101
If V is an inner product space of dimension n, then any orthogonal set of n nonzero vectors is a basis for V.
Elementary Linear Algebra: Section 5.3, p.257
50/101
Show that the following set is a basis for .
Sol:
: nonzero vectors
(by Corollary to Theorem 5.10)
Elementary Linear Algebra: Section 5.3, p.257
51/101
If is an orthonormal basis for an inner product space V, then the coordinate representation of a vector w with respect to B is
is orthonormal
(unique representation)
Pf:
is a basis for V
Elementary Linear Algebra: Section 5.3, p.258
52/101
If is an orthonormal basis for V and ,
Then the corresponding coordinate matrix of w relative to B is
Elementary Linear Algebra: Section 5.3, p.258
53/101
Find the coordinates of w = (5, -5, 2) relative to the following orthonormal basis for .
Sol:
Elementary Linear Algebra: Section 5.3, p.258
54/101
is a basis for an inner product space V
is an orthogonal basis.
is an orthonormal basis.
Elementary Linear Algebra: Section 5.3, p.259
55/101
Sol:
Apply the Gram-Schmidt process to the following basis.
Elementary Linear Algebra: Section 5.3, p.260
56/101
Orthogonal basis
Orthonormal basis
Elementary Linear Algebra: Section 5.3, p.260
57/101
Find an orthonormal basis for the solution space of the
homogeneous system of linear equations.
Sol:
Elementary Linear Algebra: Section 5.3, p.262
58/101
Thus one basis for the solution space is
(orthogonal basis)
(orthonormal basis)
Elementary Linear Algebra: Section 5.3, p.262
59/101
Key Learning in Section 5.3
60/101
Keywords in Section 5.3
61/101
5.4 Mathematical Models and Least Squares Analysis
Elementary Linear Algebra: Section 5.4, p.266
62/101
Let W be a subspace of an inner product space V.
(a) A vector u in V is said to orthogonal to W,
if u is orthogonal to every vector in W.
(b) The set of all vectors in V that are orthogonal to every
vector in W is called the orthogonal complement of W.
(read “ perp”)
Elementary Linear Algebra: Section 5.4, p.266
63/101
Elementary Linear Algebra: Section 5.4, Addition
64/101
Let and be two subspaces of . If each vector can be uniquely written as a sum of a vector from and a vector from , , then is the direct sum of and , and you can write .
Let W be a subspace of Rn. Then the following properties are true.
(1)
(2)
(3)
Elementary Linear Algebra: Section 5.4, pp.267-268
65/101
If is an orthonormal basis for the subspace S of V, and , then
Elementary Linear Algebra: Section 5.4, p.268
Pf:
66/101
Find the projection of the vector v onto the subspace W.
Sol:
an orthogonal basis for W
an orthonormal basis for W
Elementary Linear Algebra: Section 5.4, p.269
67/101
Elementary Linear Algebra: Section 5.4, p.269
68/101
Let W be a subspace of an inner product space V, and .
Then for all ,
( is the best approximation to v from W)
Elementary Linear Algebra: Section 5.4, p.269
69/101
Pf:
By the Pythagorean theorem
Elementary Linear Algebra: Section 5.4, p.269
70/101
(1) Among all the scalar multiples of a vector u, the
orthogonal projection of v onto u is the one that is
closest to v. (p.250 Thm 5.9)
(2) Among all the vectors in the subspace W, the vector
is the closest vector to v.
Elementary Linear Algebra: Section 5.4, p.269
71/101
If A is an m × n matrix, then
(1)
(2)
(3)
(4)
Elementary Linear Algebra: Section 5.4, p.270
72/101
Find the four fundamental subspaces of the matrix.
(reduced row-echelon form)
Sol:
Elementary Linear Algebra: Section 5.4, p.270
73/101
Elementary Linear Algebra: Section 5.4, p.270
74/101
Let W is a subspace of R4 and .
(a) Find a basis for W
(b) Find a basis for the orthogonal complement of W.
Sol:
(reduced row-echelon form)
Elementary Linear Algebra: Section 5.4, p.267
75/101
is a basis for W
Elementary Linear Algebra: Section 5.4, p.267
76/101
(A system of linear equations)
(1) When the system is consistent, we can use the Gaussian elimination with back-substitution to solve for x
(2) When the system is inconsistent, how to find the “best possible” solution of the system. That is, the value of x for which the difference between Ax and b is small.
Elementary Linear Algebra: Section 5.4, p.271
77/101
Given a system Ax = b of m linear equations in n unknowns, the least squares problem is to find a vector x in Rn that minimizes with respect to the Euclidean inner product on Rn. Such a vector is called a least squares solution of Ax = b.
Elementary Linear Algebra: Section 5.4, p.271
78/101
(the normal system associated with Ax = b)
Elementary Linear Algebra: Section 5.4, p.271
79/101
The problem of finding the least squares solution of
is equal to he problem of finding an exact solution of the associated normal system .
Elementary Linear Algebra: Section 5.4, p.271
80/101
Find the least squares solution of the following system
(this system is inconsistent)
and find the orthogonal projection of b on the column space of A.
Elementary Linear Algebra: Section 5.4, p.271
81/101
Sol:
the associated normal system
Elementary Linear Algebra: Section 5.4, p.271
82/101
the least squares solution of Ax = b
the orthogonal projection of b on the column space of A
Elementary Linear Algebra: Section 5.4, p.271
83/101
Key Learning in Section 5.4
84/101
Keywords in Section 5.4
85/101
5.5 Applications of Inner Product Spaces
A vector product that yields a vector in R3 is orthogonal to two vectors. This vector product is called the cross product, and it is most conveniently defined and calculated with vectors written in standard unit vector form
Elementary Linear Algebra: Section 5.5, p.277
86/101
Let and be vectors in R3.
The cross product of u and v is the vector
Components of u
Components of v
Elementary Linear Algebra: Section 5.5, p.277
(1) The cross product is defined only for vectors in R3.
(2) The cross product of two vectors in R3 is orthogonal to two vectors.
(3) The cross product of two vectors in Rn, n ≠ 3 is not defined here.
87/101
Sol:
Elementary Linear Algebra: Section 5.5, p.278
88/101
If u, v, and w are vectors in R3 and c is a scalar, then the following properties are true.
Elementary Linear Algebra: Section 5.5, p.278
89/101
Relation between inner and cross products
90/101
Pf:
The vectors u × v and v × u have equal lengths but opposite directions.
Elementary Linear Algebra: Section 5.5, p.278-279
91/101
If u and v are nonzero vectors in R3, then the following properties are true.
1. u × v is orthogonal to both u and v.
2. The angle θ between u and v is given by .
3. u and v are parallel if and only if .
4. The parallelogram having u and v as adjacent sides has an
area of .
Elementary Linear Algebra: Section 5.5, p.279
92/101
Pf:
Base
Height
(1) The three vectors u, v, and u × v form a right-handed system.
(2) The three vectors u, v, and v × u form a left-handed system.
Elementary Linear Algebra: Section 5.5, p.279
93/101
Ex 2: (Finding a Vector Orthogonal to Two Given Vectors)
Sol:
length
unit vector
Elementary Linear Algebra: Section 5.5, p.280
94/101
Ex 3: (Finding the Area of a Parallelogram)
Sol:
area
Elementary Linear Algebra: Section 5.5, p.280
95/101
Key Learning in Section 5.5
96/101
Keywords in Section 5.5
97/101
Electrical engineers can use the dot product to calculate electric or magnetic flux, which is a measure of the strength of the electric or magnetic field penetrating a surface. Consider an arbitrarily shaped surface with an element of area dA, normal (perpendicular) vector dA, electric field vector E and magnetic field vector B. The electric flux Φe can be found using the surface integral Φe = ∫ E‧dA and the magnetic flux can be found using the surface integral Φe = ∫ B‧dA. It is interesting to note that for a given closed surface that surrounds an electrical charge, the net electric flux is proportional to the charge, but the net magnetic flux is zero. This is because electric fields initiate at positive charges and terminate at negative charges, but magnetic fields form closed loops, so they do not initiate or terminate at any point. This means that the magnetic field entering a closed surface must equal the magnetic field leaving the closed surface.
5.1 Linear Algebra Applied
Elementary Linear Algebra: Section 5.1, p.240
98/101
The concept of work is important to scientists and engineers for determining the energy needed to perform various jobs. If a constant force F acts at an angle with the line of motion of an object to move the object from point A to point B (see figure below), then the work done by the force is given by
where represents the directed line segment from A to B. The quantity is the length of the orthogonal projection of F onto Orthogonal projections are discussed on the next page.
5.2 Linear Algebra Applied
Elementary Linear Algebra: Section 5.2, p.248
99/101
Time-frequency analysis of irregular physiological signals, such as beat-to-beat cardiac rhythm variations (also known as heart rate variability or HRV), can be difficult. This is because the structure of a signal can include multiple periodic, nonperiodic, and pseudo-periodic components. Researchers have proposed and validated a simplified HRV analysis method called orthonormal-basis partitioning and time-frequency representation (OPTR). This method can detect both abrupt and slow changes in the HRV signal’s structure, divide a nonstationary HRV signal into segments that are “less nonstationary,” and determine patterns in the HRV. The researchers found that although it had poor time resolution with signals that changed gradually, the OPTR method accurately represented multicomponent and abrupt changes in both real-life and simulated HRV signals.
5.3 Linear Algebra Applied
Elementary Linear Algebra: Section 5.3, p.255
100/101
The least squares problem has a wide variety of real-life applications. To illustrate, in Examples 9 and 10 and Exercises 39, 40, and 41, are all least squares analysis problems, and they involve such diverse subject matter as world population, astronomy, master’s degrees awarded, company revenues, and galloping speeds of animals. In each of these applications, you will be given a set of data and you are asked to come up with mathematical model(s) for the data. For example, in Exercise 40, you are given the annual revenues from 2008 through 2013 for General Dynamics Corporation. You are asked to find the least squares regression quadratic and cubic polynomials for the data, to predict the revenue for the year 2018, and to decide which of the models appears to be more accurate for predicting future revenues.
5.4 Linear Algebra Applied
Elementary Linear Algebra: Section 5.4, p.266
101/101
In physics, the cross product can be used to measure torque—the moment M of a force F about a point A as shown in the figure below. When the point of application of the force is B, the moment of F about A is given by
where represents the vector whose initial point is A and whose terminal point is B. The magnitude of the moment M measures the tendency of to rotate counterclockwise about an axis directed along the vector M.
5.5 Linear Algebra Applied
Elementary Linear Algebra: Section 5.5, p.277
102/101