Topic 10 Inner Products
Topic 10 Inner Products
h, i : V V R
that takes two vectors u, v V as input and whose output is a scalar denoted by hu, vi satisfying the following
properties:
A vector space that is equipped with an inner product is called an inner product space.
(a) Verify that the dot product defined above is an inner product on Rn .
1 3
(b) If u = and v = , compute hu, vi, hv, vi, hu + v, vi and hu, 2vi.
2 2
(a) Verify that the dot product defined above is an inner product on Rmn .
1 0 1 3
(b) If A = 0 2 and B = 2 0, compute hA, Bi, hA, Ai, hA + B, Bi and hA, 2Bi.
1 1 4 0
Z b
2
3. V = F ([a, b]) hf, gi = f (x)g(x) dx
ba a
(a) Verify that the dot product defined above is an inner product on F ([a, b]).
(b) Let a = and b = . If f1 (x) = sin(x) and f2 (x) = sin(2x), g1 (x) = cos(x) and g2 (x) = cos(2x),
compute hf1 , f2 i, hf1 , g1 i, hg2 , g2 i and hf1 , f1 + g1 i.
Definition 2 Let V be a vector space with inner product h, i. We define the norm/length of the vector u V by
p
||u|| = hu, ui.
Properties of || ||
1. ||cu|| = |c| ||u||
More terminologies:
If ||u|| = 1, then we say that u is a unit vector.
If u 6= 0, we define and denote the unit vector in the direction of u by
1
u = u.
||u||
Examples 2: From Examples 1, find the norm of the given vectors in V and the unit vector in the direction of each
vector.
Definition 3 Given a norm || || on V , we define the distance between two vectors u and v in V by
Properties of d(, )
1. d(u, v) = d(v, u)
2. d(u, v) d(u, z) + d(z, v) (Triangle inequality)
3. d(u, v) 0 and d(u, v) = 0 if and only if u = v
Examples 3: In Example 1, find the distance bet. two given vectors in V , relative to the std inner product of V .
Examples 4: For the following examples, let h, i be
the standard
inner product in Rn .
1
1 1 2 3 1
Let w = 0 , x = 1, y = 5, z = 2 , a =
1
1 1 1 3
1
1. ||a|| = 5. d(x, y) =
2. || 2a||
6. d(w, y) =
3. a
4. d(w, x) = 7. d(z, z) =
Definition 4 Two vectors u and v are said to be orthogonal if and only if hu, vi = 0. In this case we write u v.
The angle between u and v is the angle [0, ] satisfying
hu, vi
cos =
||u||||v||
Examples 5:
1 3
1. Relative to the standard inner product on R2 , is u = orthogonal to v = ?
2 2
1 1
2. Relative to the standard inner product on R3 , is u = 0 orthogonal to v = 1?
1 1
Definition 5 A set S V is an orthogonal set if its elements are pairwise orthogonal. If, in addition, all the
vectors in the set are unit vectors, we say that the set is orthonormal.
Examples 6:
1. In the space V = R22 , show that the set S below is orthogonal relative to the standard inner product
0 1 1 0 0 1 1 0
S= , , ,
1 0 0 1 1 0 0 1
2. Let fn be the function fn (x) = sin(nx). Show that the set S = {f1 , f2 , f3 , . . .} is an orthonormal set in
F ([, ]).
3. Determine if the following sets are orthogonal/orthonormal
1 1 1 1
3 1 1
21 21 12 21
(a) S1 = 1 , 2 , 2
(c) S3 = 2 , 2 , 2 , 2
1 1 7
1 1 1 1
21 2 2 2
1 1 1
0 1 1 2 2 2 2
(b) S2 = 0 , 2 , 2
0 1 7
(d) S4 = {e1 , . . . , en }.
Remark: An orthogonal set that does not contain the zero vector is linearly independent.
Definition 6 An orthogonal/orthonormal basis for V is a basis that is also an orthogonal/orthonormal set.
3 0 2
Example 7: Let B = 1 , 1 , 3 .
1 1 3
b = Ux x = UT b
Example 8: Consider the orthogonal basis B of R3 given in Example 7. Express e1 as a linear combination of
elements of B.
Remark: Let V be a general vector space. If {v1 , . . . , vn } form an orthogonal basis for V relative to the inner
product h, i, then
hvi ,bi
b = x1 v1 + a2 v2 + + xn vn xi = hvi ,vi i
Remark: W is a subspace of Rn (use subspace test and properties of the dot product).
Example 10: Find the orthogonal complement of the following sets in Rn .
1 0 1 6
1. W1 = 0 , 1 3. W3 = 0 , 1
0 0 1 0
a c 6d
2. W2 = b a, b R 4. W4 = d c, d R
0 c
2. W W = {0V }
3. Let B be a basis for W . Then z W if and only if z B for all i = 1, . . . , k.
T
v1 0
n .. .. T
4. Let S = {v1 , . . . , vk } R . If z S . z = . z N ul( v1 vk )
vkT 0
V = {0V }
If {v1 , . . . , vk } forms a basis for W and {u1 , . . . , up } is a basis for W , then {v1 , . . . , vk , u1 , . . . , up } is a basis
for V .