sunjin09 said:
maximize [itex]\frac{<x,y>}{||x||_2||y||_2}[/itex],
I don't know an easy way to do this. You may as well consider only unit vectors, so the problem becomes to maximize [itex]<\hat{x},\hat{y}>[/itex]. As far as I can see this problem falls under the heading of a "bilinear optimization problem" or, more generally, a "multilinear optimization problem".
My intuition is that if you have two vector subspaces that only intersect at the zero vector, then you should be able to find a set of vectors [itex]{e_1,e_2,..,e_n, f_1,f_2,...,f_m}[/itex] such that this set is a (non-orthogonal) basis for the parent n+m dimensional space, the [itex]e_i[/itex] are an orthonormal basis for the first subspace and the [itex]f_i[/itex] are an orthonormal basis for the second subspace.
If that inutition is correct then let [itex]\hat{x} = \sum_1^n \alpha_i e_i[/itex] and [itex]\hat{y} = \sum_1^m \beta_j f_j[/itex]. Let [itex]c_{i,j} = <e_i, f_j>[/itex].
The problem is to maximize the function [itex]\sum_{i=1}^n \sum_{j=1}^m c_{i,j} \alpha_i \beta_j[/itex] subject to the constraints [itex]\sum_1^n \alpha_i^2 = 1[/itex] and [itex]\sum_1^n \beta_j^2 = 1[/itex].
I wonder if there is a simpler formulation.