Linear Algebra II
Exercise Sheet no. 7
Summer term 2011
Prof. Dr. Otto May 18, 2011
Dr. Le Roux Dr. Linshaw
Exercise 1 (Warm up: the trace) Recall Exercise E4.3 about the trace.
LetV:=R(n,n)be theR-vector space of all realn×nmatrices and letS⊆V be the subspace consisting of all symmetric matrices (i.e., all matricesAwithAt=A). ForA,B∈V, we define
〈A,B〉:=Tr(AB), where thetraceTr(A)of a matrixA= (ai j)is defined as
Tr(A):=
n
X
i=1
aii.
(a) Show that〈. , .〉is bilinear.
(b) Show that〈. , .〉is a scalar product onS.
Solution:
a) LetA= (ai j),B= (bi j), andC= (ci j)be matrices andλ∈R. Since
〈A,B〉=
n
X
i,k=1
aikbki
it follows that
〈A+C,B〉=
n
X
i,k=1
(aik+cik)bki=
n
X
i,k=1
aikbki+
n
X
i,k=1
cikbki=〈A,B〉+〈C,B〉,
〈λA,B〉=
n
X
i,k=1
λaikbki=λ
n
X
i,k=1
aikbki=λ〈A,B〉.
In the same way, we show that〈A,B+C〉=〈A,B〉+〈A,C〉and〈A,λB〉=λ〈A,B〉. b) We have
〈A,A〉=
n
X
i,k=1
aikaki=
n
X
i,k=1
(aik)2¾0 .
Furthermore, it follows that we have〈A,A〉=0if and only ifA=0.
Exercise 2 (Cauchy-Schwarz and triangle inequalities) (a) (Exercise 2.1.4 on page 60 of the notes)
Let(V,〈. , .〉)be a euclidean or unitary vector space. Show that equality holds in the Cauchy-Schwarz inequality, i.e., we havek〈v,w〉k=kvk · kwk, if, and only if,vandware linearly dependent.
1
(b) (Exercise 2.1.5 on page 60 of the notes)
Let u,v,w be pairwise distinct vectors in a euclidean or unitary vector space (V,〈. , .〉), and write a := v−u, b:=w−v. Show that equality holds in the triangle inequality
d(u,w) =d(u,v) +d(v,w), or, equivalently,ka+bk=kak+kbk,
if, and only if,aandbarepositive realscalar multiples of each other (geometrically: v=u+s(w−u)for some s∈(0, 1)⊆R).
Solution:
a) Without loss of generality we may assume thatv,w6=0.
Whenvandware linearly dependent, thenw=λvfor someλ. It follows that
k〈v,w〉k=k〈v,λv〉k=kλk k〈v,v〉k=kλkkvk2=kvkkλvk=kvkkwk.
Conversely, suppose that
k〈v,w〉k=kvk · kwk
and writeλ=〈v,w〉〈v,v〉. Then it follows, as in the proof of Proposition 2.1.10 (the Cauchy-Schwarz inequality) on page 59 of the notes, that
〈w−λv,w−λv〉=〈w,w〉 −〈w,v〉〈v,w〉
〈v,v〉 =kwk2−kvk2kwk2 kvk2 =0 . So by positive definiteness of the scalar product,w=λv.
b) Note thata,b6=0, becauseu,v,ware pairwise distinct.
Whenb=λawith0< λ∈R, then
ka+bk=ka+λak= (1+λ)kak=kak+λkak=kak+kλak=kak+kbk.
Conversely, whenka+bk=kak+kbk, also(ka+bk)2= (kak+kbk)2. But
(ka+bk)2=〈a+b,a+b〉=〈a,a〉+〈a,b〉+〈b,a〉+〈b,b〉
¶kak2+2k〈a,b〉k+kbk2,and (kak+kbk)2=kak2+2kakkbk+kbk2.
Thereforekakkbk¶k〈a,b〉k, andkakkbk=k〈a,b〉kby Cauchy-Schwarz. So we know thatb=λafor someλ∈C by Exercise (E3.2). Fromka+bk=kak+kbk, we deduce thatk1+λk=1+kλk, which implies thatλis a positive real.
Exercise 3 (Orthogonal matrices) We consider realn×nmatrices. Set
O(n):={A∈R(n,n) |AtA=En}. Show thatO(n)is a subgroup ofGLn(R).
Solution:
We have to show thatEn∈O(n)and thatO(n)is closed under multiplication and inverses.
SinceEntEn=En, we haveEn∈O(n). Furthermore, forA,B∈O(n), we have (AB)tAB=BtAtAB=BtEnB=BtB=En.
Hence,AB∈O(n). Similarly, one can show thatA−1∈O(n). For the inverse, we first note thatAtA=EnimpliesAt=A−1. Therefore, we have
(A−1)tA−1= (At)tAt=AAt= (AtA)t=Ent =En.
2
Exercise 4 (Orthogonal vectors)
LetV be a euclidean or unitary space andS={v1, . . . ,vn}be a set of non-null pairwise orthogonal vectors.
(a) Show thatSis linearly independent.
(b) Letu∈V. Show that the vector
w:=u−
n
X
i=1
〈vi,u〉
〈vi,vi〉vi
is orthogonal toS. Note thatPn i=1〈vi,u〉
〈vi,vi〉viis the orthogonal projection ofwonspan(S).
(c) [Parseval’s identity]Suppose thatV is finite dimensional and thatSis an othornormal basis ofV. Show that
〈v,w〉=
n
X
i=1
〈v,vi〉〈vi,w〉 for allv,w∈V.
(d) [Bessel’s inequality]Suppose thatV is euclidean andSis orthonormal. Show that
n
X
i=1
〈vi,u〉2≤ kuk2 for allu∈V.
Solution:
a) Supposev1, . . . ,vnsatisfyPn
i=1λivi=0. We need to show that eachλiis zero. For each j=1, . . . ,n, we get that
0=〈vj,0〉=
* vj,
n
X
i=1
λivi +
=
n
X
i=1
λi〈vj,vi〉=λj〈vj,vj〉,
since〈vj,vi〉=0whenever j6=i. Butvj6=0. So〈vj,vj〉 6=0since the scalar product is positive definite. Hence, λj=0for each j=1, . . . ,n. ThereforeSis linearly independent.
b) For each j=1, . . . ,n, we have that
〈vj,w〉=
* vj,u−
n
X
i=1
〈vi,u〉
〈vi,vi〉v +
=〈vj,u〉 −
n
X
i=1
〈vj,u〉
〈vi,vi〉〈vj,vi〉
=〈vj,u〉 − 〈vj,u〉
〈vj,vj〉〈vj,vj〉
=0 . c) By Lemma 2.3.2, we have thatw=Pn
i=1〈vi,w〉vi. Applying the operation〈v, .〉on both sides, we obtain the result.
d) Settingw:=u−Pn
i=1〈vi,u〉viwe have
kwk2=〈w,w〉=
* u−
n
X
i=1
〈vi,u〉vi,u−
n
X
j=1
〈vj,u〉vj +
=〈u,u〉 −2
n
X
i=1
〈vi,u〉2+
n
X
i,j=1
〈vi,u〉〈vj,u〉〈vi,vj〉
=〈u,u〉 −
n
X
i=1
〈vi,u〉2. Sincekwk2≥0, the inequality follows.
3
Exercise 5 (Jordan normal form for describing processes)
Suppose that we use vectorssn∈R3to describe the state of a3-dimensional system at stepn∈N(for example, the position of a particle in space). The evolution of the system from stagenton+1is given by
sn+1=Asn, where A=
−4 2 −1
−4 3 0
14 −5 5
.
(a) Use a transformation of the givenAinto Jordan normal form in order to get a feasible formula forsn, as a function of the indexnand the initial states0.
(b) Computes100fors0=
1 3 1
. Solution:
(a) The characteristic polynomial of Ais pA= (1−X)2(2−X), soλ1 =1and λ2= 2are the eigenvalues ofA. The corresponding eigenspaces are 1-dimensional, with generators
1 2
−1
forVλ1 and
1 4 2
forVλ2. So the Jordan normal form ofAhas two blocks, one of size 2 and one of size 1. As
(A−E3)2=
3 −1 1
12 −4 4
6 −2 2
,
dim(ker(A−E3)2) =2. Hence, the Jordan block of size 2 has entries 1 on the diagonal. Therefore the Jordan normal form ofAis
J=
1 1 0
0 1 0
0 0 2
.
To find a matrixSsuch thatA=SJ S−1, we take as third columnu3=
1 4 2
, an eigenvector with eigenvalue 2, and as
second column an element ofker(A−E3)2\ker(A−E3), for exampleu2=
0 1 1
. The first column will then be
u1= (A−E3)u2=
1 2
−1
. Hence, S=
1 0 1
2 1 4
−1 1 2
. We havesn=Ans0=SJnS−1s0. Furthermore
Jn=
1 n 0
0 1 0
0 0 2n
.
(b) Fors0=
1 3 1
=
1 4 2
−
0 1 1
, we have
sn=2n
1 4 2
−
0 1 1
−n
1 2
−1
. Hence, s100=2100
1 4 2
−
100 201
−99
.
4