Lec 33
Lec 33
for any reals a, b. Indeed, for a w in S we have (au + bv, w) = a(u, w) + b(v, w) = 0
since (u, w) = (v, w) = 0. Similarly, if a vector is orthogonal to S, it is orthogonal
to W = Span S: S = W .
Example 1. Let V = R4 , W = Span{u = [1 1 0 2], v = [2 0 1 1], w = [1 1 1 1]}.
Find a basis of W .
By the previous, W consist of vectors x = [x1 x2 x3 x4 ] such that (x, u) =
(x, v) = (x, w) = 0, i. e.
x1 + x2 + 2x4 = 0
2x1 + x3 + x4 = 0 .
x1 x 2 + x3 x4 = 0
In other words, W is the nullspace of the matrix
1 1 0 2
A = 2 0 1 1 .
1 1 1 1
Its RREF is
1 1
1 0 2 2
B = 0 1 12 3
2
.
0 0 0 0
Putting r, s free and x3 = 2r, x4 = 2s, we have
x = [1 1 2 0]r + [1 3 0 2]s,
1
Theorem. For any subspace U in an inner product space V holds V = U U .
x + 2y 5z = 0.
2
2 5
Hence vectors u1 = 1 and u2 = 0 are a basis of U .
0 1
2
Now find an orthonormal basis {e1 , e2 } of U . Take e1 = ku11 k u1 = 15 1 to
0
satisfy ke1 k = 1. Lets find e2 in the form au1 + bu2 . Coefficients a, b can be found
from the conditions we want from e2 : (e2 , e1 ) = 0 (or equivalently (e2 , u1 ) = 0) and
1
(e2 , e2 ) = 0. Solving this (do it!) we find e2 = 16 2 (or the negative). This finishes
1
(b).
In order to find the distance form v to U , we have to find the projection u =
projU v. As soon as weve found an orthonormal basis {e1 , e2 } in U , we can use the
formula:
4
u = (v, e1 )e1 + (v, e2 )e2 = 5e1 + 2 6e2 = 3 .
2
1
We have w = v u = 2 and the distance
5
kv uk = kwk = 30.
R1
Exercise Let V = Pol(2) with the inner product (p, q) = 0 p(t)q(t)dt. Find the
approximation of t2 by a linear polynomial. [In other words, find the projection of t2
on the subspace Pol(1).] (Answer: t 61 ) What is the distance between t2 and Pol(1)?
3. Section 5.3 p. 319 Exercise 45. (See p.311 for the definition of positive definite).