How Far Away is Your Point

Geometry Level pending

What is the shortest distance between the line 2 x y + 1 = 0 2x-y+1=0 and the point ( 2 , 1 ) (2,1) ? There are many different methods to solve this problem, some more elegant than others, but all worthy of consideration.

5 7 9 \frac{5\sqrt{7}}{9} 2 3 11 \frac{2\sqrt{3}}{11} 4 5 5 \frac{4\sqrt{5}}{5} 5 5 3 \frac{5\sqrt{5}}{3}

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.

6 solutions

Zee Ell
Aug 6, 2016

The shortest distance between a point and a line is between the point and the intersection of the original line and a perpendicular line, which is going through the point.

By rearranging the equation of the original line, we get:

y = 2 x + 1 y = 2x + 1

The equation of the perpendicular line, going through the point (2 , 1):

y = 0.5 x + 2 y = -0.5x + 2

By solving the simultaneous equations, we will have the coordinates of the point of intersection:

(0.4 , 1.8)

Finally, the distance between these two points:

( 2 0.4 ) 2 + ( 1 1.8 ) 2 = 1. 6 2 + ( 0.8 ) 2 = 4 5 5 \sqrt {(2 - 0.4)^2 + (1 - 1.8)^2} = \sqrt {1.6^2 + (- 0.8)^2 } = \boxed { \frac {4}{5} \sqrt {5} }

Michael Mendrin
Aug 6, 2016

The equation of the line is

y 1 = 2 x y-1=2x

The equation of a circle of radius r r centered at ( 1 , 2 ) \left(1,2\right) is

( y 1 ) 2 = r 2 ( x 2 ) 2 { \left( y-1 \right) }^{ 2 }={ r }^{ 2 }-{ \left( x-2 \right) }^{ 2 }

We solve for x x to find the intersection points in terms of r r , getting

x = 1 5 ( 2 ± 5 r 2 16 ) x=\dfrac { 1 }{ 5 } (2\pm \sqrt { 5{ r }^{ 2 }-16 } )

For this circle to be tangent to the line, the radical needs to vanish, which is true if

r = 4 5 5 r=\dfrac{4\sqrt{5}}{5}

Edit: Another approach:

At x = 2 x=2 , the point on the line is ( 2 , 5 ) (2,5) .
At y = 1 y=1 , the point on the line is ( 0 , 1 ) (0,1) .
The distance between the two points is 2 5 2\sqrt{5} .
The area of the right triangle formed by the 3 3 points is 4 4 .
The altitude of the triangle from the hypotenuse is 4 5 5 \dfrac{4\sqrt{5}}{5} , which, of course, is the minimum distance we seek.

Nice Solution. Out of all the methods, I would argue that the simplest, but not necessarily the most interesting, is finding the equation of a perpendicular to the given line that passes through A, find the point of intersection, and then use the distance formula.

Maxwell Feiner - 4 years, 10 months ago

Log in to reply

Hey, but didn't you want to see all the different ways this could be figured out?

Michael Mendrin - 4 years, 10 months ago

Log in to reply

Of course! I have a pretty interesting solution using similar triangles, if anyone is interested.

Maxwell Feiner - 4 years, 10 months ago

Log in to reply

@Maxwell Feiner Let Y Y be the vertical distance from the given point P ( a , b ) P(a,b) to the given line, X X the horizontal distance and d d the shortest distance. Then using similar triangles we have that

d Y = X X 2 + Y 2 d = X Y X 2 + Y 2 \dfrac{d}{Y} = \dfrac{X}{\sqrt{X^{2} + Y^{2}}} \Longrightarrow d = \dfrac{XY}{\sqrt{X^{2} + Y^{2}}} .

With X = b 1 2 a X = \displaystyle |\dfrac{b - 1}{2} - a| and Y = ( 2 a + 1 ) b Y = |(2a + 1) - b| we can then calculate d d .

In this case X = 2 , Y = 4 X = 2, Y = 4 and d = 8 20 = 4 5 5 d = \dfrac{8}{\sqrt{20}} = \dfrac{4\sqrt{5}}{5} .

Is that roughly what you had in mind?

Brian Charlesworth - 4 years, 10 months ago

@Maxwell Feiner Go for it, Maxwell! I love it when people come up with all kinds of ways of solving the same thing. Meanwhile, I've just put in yet another way to solve this, see added comment to my original answer.

Michael Mendrin - 4 years, 10 months ago
İlker Can Erten
Jan 31, 2020

sin α = 2 5 = h 2 \sin{\alpha}=\dfrac{2}{\sqrt{5}}=\dfrac{h}{2}

h = 4 5 = 4 5 5 h=\dfrac{4}{\sqrt{5}}=\dfrac{4\sqrt{5}}{5}

Solution 2 : the shortest distance between f ( x ) = 2 x + 1 f(x)=2x+1 and ( 2 , 1 ) (2,1) is equal to the shortest distance between f ( x ) = 2 x + 1 f(x)=2x+1 and g ( x ) = 2 x 3 g(x)=2x-3

the vertical lenght between f ( x ) f(x) and g ( x ) g(x) is f 1 ( x ) g 1 ( x ) = 2 |f^{-1}(x)-g^{-1}(x)|=2 and the horizontal lenght between f ( x ) f(x) and g ( x ) g(x) is f ( x ) g ( x ) = 4 |f(x)-g(x)|=4 now make a right triangle with those lenghts and its hypotenuse will be 2 5 2\sqrt{5} . let h h be hypotenuse's altitude(it's also the shortest distance between graphs) then:
2 5 h = 4 2 h = 4 5 5 2\sqrt{5}h=4\cdot 2\Rightarrow h=\dfrac{4\sqrt{5}}{5}

It can be solved using Lagrange multipliers .

{ r 2 = ( x 2 ) 2 + ( y 1 ) 2 2 x y + 1 = 0 \begin{cases} r^2 = (x-2)^2 + (y-1)^2 \\ 2x - y +1 = 0 \end{cases}

Solving for the smallest r r with 2 x y + 1 = 0 2x-y+1=0 as constraint.

F ( x , y , λ ) = ( x 2 ) 2 + ( y 1 ) 2 λ ( 2 x y + 1 ) \begin{aligned} F(x,y,\lambda) & = (x-2)^2 + (y-1)^2- \lambda(2x - y +1) \end{aligned}

\(\begin{array}{} \dfrac {\partial}{\partial x} F(x,y,\lambda) = 2(x-2) - 2 \lambda = 0 & \implies \lambda = x-2 & ...(1) \\ \dfrac {\partial}{\partial y} F(x,y,\lambda) = 2(y-1) + \lambda = 0 & \implies \lambda = 2-2y & ...(2) \\ \dfrac {\partial}{\partial \lambda} F(x,y,\lambda) = 2x - y + 1 = 0 & \implies 2x - y + 1 = 0 & ...(3) \end{array} \)

( 1 ) , ( 2 ) : λ = x 2 = 2 2 y x = 4 2 y \begin{aligned} (1), \ (2): \quad \lambda & = x-2 = 2-2y \\ \implies x = 4-2y \end{aligned}

( 3 ) : 2 x y + 1 = 0 8 4 y y + 1 = 0 y = 9 5 x = 2 5 \begin{aligned} (3): \quad 2x - y + 1 & = 0 \\ 8 - 4y - y + 1 & = 0 \\ \implies y & = \frac 95 \quad \implies x & = \frac 25 \end{aligned}

r 2 = ( x 2 ) 2 + ( y 1 ) 2 = ( 2 5 2 ) 2 + ( 9 5 1 ) 2 = 80 25 r = 4 5 5 \begin{aligned} \implies r^2 & = (x-2)^2 + (y-1)^2 \\ & = \left(\frac 25 - 2 \right)^2 + \left(\frac 95 - 1 \right)^2 \\ & = \frac {80}{25} \\ \implies r & = \boxed{\dfrac {4\sqrt 5}5} \end{aligned}

This is probably the most erudite solution so far, Chew.

Michael Mendrin - 4 years, 10 months ago

Log in to reply

Thanks for your generous comment.

Chew-Seong Cheong - 4 years, 10 months ago

If equation is ax+by+c=0 and given point is(m,n). Then shortest distance is Mod[(am+bn+c)]/root of a^2+b^2 On solving...... 2(2)+1-1/root of 2^2+1................ 4/root of 5..........on rationalisation we get 4×root 5/5

Steven Chase
Aug 6, 2016

In the spirit of diversity, here's a calculus solution.

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...