Calculating angles between matrices

  • Thread starter Thread starter spicytaco
  • Start date Start date
  • Tags Tags
    Angles Matrices
spicytaco
Messages
2
Reaction score
0
Hey all,

I was hoping someone could explain to me how to calculate the angle between matrices, ie. two square matrices

[ 2 0
0 -1]

and

[0 1
1 3^(1/2)]

under the inner product <A|B> = trace (A^TB)

Also, how would you go about determining an angle between x and y when they are functions, ie. x = f(x) = x^2 +2 and y=(g(x)=x^3 -7x, under the inner product below:

⟨f |g⟩ =
1
∫ f (x)g(x)dx.
−1

I already know how to determine angle using cos theta = (x^Ty)/ ||x|| ||y|| but does this only work for column and row matrices?
 
Physics news on Phys.org
Any time you have an inner product, you can use it to define angles between elements using the usual formula:
<br /> \cos\theta(a,b) = \frac{\langle a | b \rangle}{\sqrt{\langle a | a \rangle \langle b | b \rangle}}<br />
This works equally well for your matrices and for your functions.

Whether that angle tells you anything useful for the problem you're trying to solve is another question. :)
 
Thanks so much!
 
For "vectors in space", two or three dimensions, you can use trigonometry to prove that the dot product of two vectors, u and v, are given by u\cdot v= |u||v|cos(\theta) where |u| and |v| are the lengths of the two vectors and \theta is the angle between them. For more abstract vector spaces, we define the length of a vector, v, to be \sqrt{&lt;v, v&gt;} and the angle between u and v to be given by
cos(\theta)= \frac{&lt;u, v&gt;}{|u||v|}
 
In spicytaco's matrix example the angle is the same as the angle for the two vectors (2,0,0,-1) and (0,1,1, 3^1/2) in R^4 with usual euclidean norm.

(2,0,0,-1).(0,1,1,3^1/2) = 0 + 0 + 0 - 3^1/2

|(2,0,0,-1)| = 5^1/2
|(0,1,1,3^1/2)| = 5^1/2

so cos(theta) = (-3^1/2)/5 (theta ~= 110 degrees)

this is why the inner product is defined as trace(A^T.B), for nxn matrices you get R^(n^2) euclidean space with two vectors defined by joining the columns of A and the other by the columns of B.

For the functions example there isn't a "natural" analogy but the answer has been given above, you just plug in the formula for the inner product into the equation for cos(theta)
 
Last edited:
##\textbf{Exercise 10}:## I came across the following solution online: Questions: 1. When the author states in "that ring (not sure if he is referring to ##R## or ##R/\mathfrak{p}##, but I am guessing the later) ##x_n x_{n+1}=0## for all odd $n$ and ##x_{n+1}## is invertible, so that ##x_n=0##" 2. How does ##x_nx_{n+1}=0## implies that ##x_{n+1}## is invertible and ##x_n=0##. I mean if the quotient ring ##R/\mathfrak{p}## is an integral domain, and ##x_{n+1}## is invertible then...
The following are taken from the two sources, 1) from this online page and the book An Introduction to Module Theory by: Ibrahim Assem, Flavio U. Coelho. In the Abelian Categories chapter in the module theory text on page 157, right after presenting IV.2.21 Definition, the authors states "Image and coimage may or may not exist, but if they do, then they are unique up to isomorphism (because so are kernels and cokernels). Also in the reference url page above, the authors present two...
When decomposing a representation ##\rho## of a finite group ##G## into irreducible representations, we can find the number of times the representation contains a particular irrep ##\rho_0## through the character inner product $$ \langle \chi, \chi_0\rangle = \frac{1}{|G|} \sum_{g\in G} \chi(g) \chi_0(g)^*$$ where ##\chi## and ##\chi_0## are the characters of ##\rho## and ##\rho_0##, respectively. Since all group elements in the same conjugacy class have the same characters, this may be...
Back
Top