Orthonormal basis spanned by 2 matrices

In summary, the inner product of the 2 matrices is <M1, M2> which is [-2 0] and the new basis is v1 = M1. v2 is calculated as M_2 - \frac{<M_2, v_1>}{<v_1, v_1>}v_1. Make sure you calculate each inner product using the formula you gave in post #1.
  • #1
hocuspocus102
45
0

Homework Statement



Let M1 = [1 1] and M2 = [-3 -2]
________[1 -1]_________[ 1 2]
Consider the inner product <A,B> = trace(transpose(A)B) in the vector space R2x2 of 2x2 matrices. Use the Gram-Schmidt process to determine an orthonormal basis for the subspace of R2x2 spanned by the matrices M1 and M2.


The Attempt at a Solution



So the inner product of the 2 matrices is <M1,M2> which is [-2 0]
__________________________________________________[-4 -4]
if I calculated it right which I think I did. But I don't what that has to do with Gram-Schmidt or how it relates to orthonormal bases for R2x2. And I know how to use Gram-Schmidt on individual vectors but not on a whole matrix so I'm pretty stuck.

 
Physics news on Phys.org
  • #2
So I figured out one of the matrices that forms the basis from M1 by treating M1 as vector v1 equal to [1 1 1 -1] and got the orthonormal vector to be [1/2 1/2 1/2 -1/2] which corresponds to the orthonormal matrix [1/2 1/2]
________________________________[1/2 -1/2]
and I tried to extrapolate that and use the second matrix as v2 equal to [-3 -2 1 2] and got the orthonormal vector [-3/2 -1/2 5/2 1/2] using Gram-Schmidt but that was wrong. Can anyone help?
 
  • #3
When you used G-S to get your second matrix, what did you use for the inner product? You can't use the normal inner product for vectors - you need to use the inner product that is defined for this space, namely trace(ATB).
 
  • #4
so since I'd take v2 - (<v1,v2>/|v1|)v1 the <v1,v2> part would be the trace(A^TB) instead of actually just taking the dot product of v1 and v2?
 
  • #6
ok so I did A^T*B = [-2 0 -4 -4] and the trace of that is 8 so then I got v2-8*v1 which came out to [-3 -2 1 2] - 8[1/2 1/2 1/2 -1/2] = [-7 -6 -3 6] which wasn't right... did I do somehtin wrong?
 
  • #7
ok so I actually calculated trace wrong and it's actually -6 but then I did that and came out to [-3 -3 1 2] - -3[1/2 1/2 1/2 -1/2] = [0 1 4 -1] which is also wrong...
 
  • #8
So let's call v1 and v2 the new basis, with v1 = M1. Calculate v2 as follows.
[tex]v_2 = M_2 - \frac{<M_2, v_1>}{<v_1, v_1>}v_1[/tex]

Make sure you calculate each inner product using the formula you gave in post #1. I did the calculation and got v2 as a matrix that is orthogonal to v1. I.e. trace(v1T v2) = 0.

That should give you an orthogonal basis. The only thing left after that is to normalize each matrix, by dividing by its magnitude. Here the magnitude of a matrix M is sqrt(<M, M>), where you use the same inner product as you've been using all along.
 
  • #9
is v1 supposed to be the vector itself [1 1 1 -1] or the vector in normalized form [1/2 1/2 1/2 -1/2]? I think it should be normalized, right? so then <M2,v1> would be tr(M2Tv1)? and is <v1,v1> going to be tr(v1Tv1) which would just be 1/2 +1/2 =1 if v1 is supposed to be the normalized form?
 
  • #10
I think it's a little less work to first get an orthogonal basis, and then normalize the matrices to get an orthonormal basis.

Also, you should probably be thinking in terms of matrices instead of vectors, if only to reinforce the idea that the inner product in this space is the trace of the product of two matrices.

Yes <M2, v1> is tr(M2Tv1>. That's what I've been saying since post #3.
 
  • #11
Ok, I got it right! thank you so much!
 

What is an orthonormal basis?

An orthonormal basis is a set of vectors that are mutually perpendicular (orthogonal) and have a length of 1 (normalized). This means that each vector in the set is perpendicular to all other vectors, and the length of each vector is 1.

How is an orthonormal basis related to matrices?

An orthonormal basis can be used to represent a matrix in a unique way. This is known as a matrix decomposition. By finding an orthonormal basis for a matrix, we can break it down into simpler, more manageable components.

What does it mean for a basis to be spanned by 2 matrices?

When a basis is spanned by 2 matrices, it means that the set of vectors in the basis can be represented as a linear combination of the columns of the 2 matrices. This allows us to express any vector in the space as a combination of the 2 matrices, making it easier to manipulate and analyze.

Why is it useful to have an orthonormal basis spanned by 2 matrices?

An orthonormal basis spanned by 2 matrices can simplify calculations and make it easier to understand and analyze a given set of data. It allows us to break down a complex matrix into simpler components, making it easier to identify patterns and relationships within the data.

How do you find an orthonormal basis spanned by 2 matrices?

To find an orthonormal basis spanned by 2 matrices, we can use a method called Gram-Schmidt orthogonalization. This involves finding a set of orthogonal vectors and then normalizing them to have a length of 1. The resulting set of vectors will be an orthonormal basis for the given matrices.

Similar threads

  • Calculus and Beyond Homework Help
Replies
16
Views
1K
  • Calculus and Beyond Homework Help
Replies
2
Views
363
  • Calculus and Beyond Homework Help
Replies
5
Views
4K
  • Linear and Abstract Algebra
Replies
14
Views
1K
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
  • Calculus and Beyond Homework Help
Replies
14
Views
594
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
Replies
3
Views
2K
  • Calculus and Beyond Homework Help
Replies
15
Views
2K
  • Calculus and Beyond Homework Help
Replies
1
Views
2K
Back
Top