Least Squares Path

Calculus Level 4

A = ( 0 , 0 ) , B = ( 1 , 3 ) , C = ( 3 , 4 ) , D = ( 5 , 1 ) A = (0,0), B = (1,3), C = (3,4), D = (5,1)

Point P P is chosen so as to minimize P A 2 + P B 2 + P C 2 + P D 2 PA^2 + PB^2 + PC^2 + PD^2 . What is the length of P A PA to 2 decimal places?

Note: How much harder would this problem be if we were minimizing the sum of the lengths instead of the sum of the squared lengths? Is there some deep reason for this? Also, in hindsight, what operation does the calculation end up reducing to?


The answer is 3.01.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Suppose P ( x , y ) P(x,y) . P A 2 + P B 2 + P C 2 + P D 2 = x 2 + y 2 + ( x 1 ) 2 + ( y 3 ) 2 + ( x 3 ) 2 + ( y 4 ) 2 + ( x 5 ) 2 + ( y 1 ) 2 = ( 2 x 9 2 ) 2 + ( 2 y 4 ) 2 + 24.75 x = 9 4 , y = 2 P A 2 = x 2 + y 2 = 145 16 = 3.01 PA^2+PB^2+PC^2+PD^2=x^2+y^2+(x-1)^2+(y-3)^2+(x-3)^2+(y-4)^2+(x-5)^2+(y-1)^2\\=\left(2x-\frac{9}{2}\right)^2+\left(2y-4\right)^2+24.75\\\Rightarrow x=\frac{9}{4},y=2\\\Rightarrow PA^2=\sqrt{x^2+y^2}=\sqrt{\frac{145}{16}}=3.01

Pratyush Pandey
Feb 25, 2017

The solutions here are already excellent but I would like to present a physics based approach. We know that moment of inertia of a many particle system is least when the axis of rotation passes through the centre of mass of the system (the parallel axis theorem). Place equal masses (say m) on points A, B, C, D and let axis pass through P. For MI of this system = m((PA)^2 + (PB)^2 + (PC)^2 + (PD)^2) to be minimum P must be the centre of mass of the system. Since we have placed equal masses, centre of mass is just the centroid of the system. So P(x,y) = ((0+1+3+5)/4),(0+3+4+1)/4) =(9/4,2) . There we have P, find PA by distance formula.

Steven Chase
Nov 7, 2016

Or we could simply complete the squares in x , y x,y . The sum of the squares of the distances to ( x , y ) (x,y) is 4 ( x 9 4 ) 2 + 4 ( y 2 ) 2 + 99 4 4\big(x -\tfrac94\big)^2 + 4(y-2)^2 + \tfrac{99}{4} which is minimized (without the need for calculus) when x = 9 4 x=\tfrac94 , y = 2 y=2 .

Mark Hennings - 4 years, 7 months ago

Log in to reply

Very nice. Thanks

Steven Chase - 4 years, 7 months ago

Hm, in your current phrasing, it seems like the point ( x , y ) (x,y) should lie on the line from the origin to ( 5 , 1 ) (5,1) . However, I see that contraint isn't present in the solution.

What it seems you want is "Pick a point and connect it to these 4 other points ...".

Calvin Lin Staff - 4 years, 7 months ago

Log in to reply

Looking closer at the phrasing, that's not the case. I was just thrown off by the image + phrasing. I think it could be greatly cleared up to

We want to minimize the sum of squared distances from point P ( x , y ) P (x,y) to these 4 points. At the minimum, what is the distance from P P to the origin?

Calvin Lin Staff - 4 years, 7 months ago

Log in to reply

I think I drew the picture in a rather unfortunate way. I didn't mean to imply co-linearity, but that is what it looks like.

Steven Chase - 4 years, 7 months ago

Point (x,y) is the intersection of the 2 lines that connect the midpoint of the opposite sides in the convex quadrilateral.

Saya Suka - 4 years, 7 months ago

Log in to reply

Cool. It's also the average of the coordinates of the vertices.

Steven Chase - 4 years, 7 months ago

The solution is pretty obvious, we are looking for the center of gravity of the four point of equal mass. It is well known that center of gravity also is the point where the moment of inertia is minimum Ig. Indeed by Steiner we know that moment of inertia in other point Z different of center of gravity values Ig plus the product of the mass by the GZ^2. So the coordinates of our point P will be Xp (0+1+3+5)/4 and Yp (0+3+4+1)/4 so P(9/4, 2) and distance will be 3.0104.

Mariano PerezdelaCruz - 3 years, 5 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...