Least Squares Problem

  • #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
Figured out. misunderstood the problem at first. thanks.
 

Suggested for: Least Squares Problem

Replies
1
Views
784
Replies
3
Views
751
Replies
3
Views
2K
Replies
10
Views
1K
Replies
2
Views
1K
Replies
4
Views
4K
Replies
7
Views
1K
Replies
12
Views
3K
Replies
3
Views
1K
Back
Top