<< Chapter < Page Chapter >> Page >

Recall that if P is an orthogonal projection onto a subspace A , we can write any x as

x = P x + ( I - P ) x

where P x A and ( I - P ) x A . We now turn to how to actually find P .

We begin with the finite-dimensional case, assuming that { v 1 , . . . , v N } is a basis for A . If ( I - P ) x A then we have that for any x

( I - P ) x , v j = 0 for j = 1 , . . . , N

We also note that since P x A , we can write P x = k = 1 N c k v k . Thus we obtain

x - k = 1 N c k v k , v j = 0 for j = 1 , . . . , N

from which we obtain

x , v j = k = 1 N c k v k , v j for j = 1 , . . . , N

We know x and v 1 , . . . , v N . Our goal is to find c 1 , . . . , c N . Note that a procedure for calculating c 1 , . . . , c k for any given x is equivalent to one that computes P x .

To find c 1 , . . . , c N , observe that [link] represents a set of N equations with N unknowns.

v 1 , v 1 v 2 , v 1 v N , v 1 v 1 , v 2 v 2 , v 2 v N , v 2 v 1 , v N v 2 , v N v N , v N c 1 c 2 c N = x , v 1 x , v 2 x , v N

More compactly, we want to find a vector c C N such that G c = b where

b = x , v 1 x , v 2 x , v N
  • G is called the “Grammian” or “Gram matrix” of { v j }
  • One can show since v 1 , . . . , v N are linearly independent that G is positive definite, and hence invertible.
  • Also note that by construction, G is conjugate symmetric , or “Hermitian” , i.e., G = G H , where H denotes the conjugate transpose of G .

Thus, since G - 1 exists, we can write c = G - 1 b to calculate c .

As a special case, suppose now that { v j } is an orthobasis for A ? What is G ? It is just the identity matrix I ! Computing c just got much easier, since now c = b . Plugging this c back into out formula for P x we obtain

P x = k = 1 N x , v k v k

Just to verify, note that P is indeed a projection matrix:

P ( P x ) = N k = 1 N j = 1 x , v j v j , v k v k = N k = 1 N j = 1 x , v j v j , v k v k = N j = 1 x , v j v j = P x .

Example Suppose f L 2 ( [ 0 , 4 ] ) is given by

Suppose f L 2 ( [ 0 , 4 ] ) is given by

f ( t ) = t if t [ 0 , 1 2 ] 1 - t if t [ 1 2 , 1 ] .
Illustration of the function f(t).

Let A = { piecewise constant functions on [ 0 , 1 4 ) , [ 1 4 , 1 2 ) , [ 1 2 , 3 4 ) , [ 3 4 , 1 ] } . Our goal is to find the closest (in L 2 ) function in A to f ( t ) . Using v 1 , . . . , v 4 from before, we can calculate c 1 = 1 4 , c 2 = 0 , c 3 = - 2 16 , c 4 = 2 16 . Thus, we have that

f ^ ( t ) = 1 4 v 1 - 2 16 v 3 + 2 16 v 4 .
Illustration of the function f_hat(t), i.e., the best piecewise-constant approximation to f(t).

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Digital signal processing. OpenStax CNX. Dec 16, 2011 Download for free at http://cnx.org/content/col11172/1.4
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Digital signal processing' conversation and receive update notifications?

Ask