Least Squares Problem Please Help

  • Thread starter bodensee9
  • Start date
  • #1
178
0
Can someone help with the folowing?
Suppose L1 is the line through the origin in the direction of a1 and L2 is the line through b in the direction of a2. I am supposed to find the closest points x1a1 and b+x2a2 on the two lines.

So I am trying to find the equations that would minize ||x1a1-x2a2-b||.

Not really sure what equations to write. I know that I'm trying to find some vector c so that (c-x1a1+x2a2+b)^2 will be the minimum. This means that if I take the derivative of the above, then the derivative will be zero. So, if I break c down into its components, would I get

2(c1-x1a1)+2(c2+x2a2+b)=0? Or, would I be trying to find the projection of x2a2+b onto a1? And if I do that, would be projection from a2 onto a1 be a1(a1Ta1)-1aT? But what about for a2? Not sure if that's right either. Thanks.
 

Answers and Replies

  • #2
178
0
Figured out. misunderstood the problem at first. thanks.
 

Related Threads on Least Squares Problem Please Help

  • Last Post
Replies
4
Views
938
  • Last Post
Replies
3
Views
1K
  • Last Post
Replies
3
Views
789
  • Last Post
Replies
1
Views
3K
Replies
2
Views
1K
  • Last Post
Replies
0
Views
748
Replies
3
Views
1K
  • Last Post
Replies
8
Views
2K
  • Last Post
Replies
1
Views
2K
  • Last Post
Replies
7
Views
829
Top