Question 65750
<pre><font size = 4><b>determine the ratio in which the line joining (0,7) and (-2,1)is 
divided by the line 2x+y-4=0

<i>Nate above took it that you wanted the ratio of the slopes. I think
you wanted the ratio in which the line divides the segment.</i>


Here's a graph of the line segment joining (0,7) and (-2,1) in red

{{{ graph( 133.3, 300, -3, 1, -1, 8, ((sqrt(-x))/(sqrt(-x)))*((sqrt(x+2))/(sqrt(x+2)))*(3x+7)  ) }}}

Now we'll add the graph of 2x + y - 4 = 0 in green

{{{ graph( 133.3, 300, -3, 1, -1, 8, ((sqrt(-x))/(sqrt(-x)))*((sqrt(x+2))/(sqrt(x+2)))*(3x+7),4-2x  ) }}}

We want to know into what ratio the green line divides the red 
line segment.

Plan:

1. Find the equation of the line joining (0,7) and (-2,1)
2. Solve the system of equations consisting of the results 
   of step 1 and line 2x+y-4=0 to find their point of 
   intersection.
3. Find the distances from the point found in step 3 to 
   (0,7) and (-2,1) 
4. Find the ratio of these two distances.

1. Find the slope, m:

     y<sub>2</sub> - y<sub>1</sub>
m = —————————
     x<sub>2</sub> - x<sub>1</sub>

where (x<sub>1</sub>, y<sub>1</sub>) = (0,7) and (x<sub>2</sub>, y<sub>2</sub>) = (-2,1)

     (1) - (7)     -6     
m = ——————————— = ———— = 3
     (-2) - (0)    -2      

Now substitute in the point slope formula:

y - y<sub>1</sub> = m(x - x<sub>1</sub>)

y - 7 = 3(x - 0)
y - 7 = 3x
    y = 3x + 7

2. Solve the system:
  
    2x + y - 4 = 0
    y = 3x + 7

You can do this by substitution.  
Point of intersection = (-3/5, 26/5) = (-.6, 5.2)

3. Use the distance formula
        _____________________
   d = <font face = "symbol">Ö</font>(x<sub>2</sub> - x<sub>1</sub>)<sup>2</sup>+(y<sub>2</sub> - y<sub>1</sub>)<sup>2</sup>

 to find the distance from (0,7) to (-.6, 5.2)

        _____________________
   d = <font face = "symbol">Ö</font>(-.6 - 0)<sup>2</sup>+(5.2 - 7)<sup>2</sup>
        __________
   d = <font face = "symbol">Ö</font>.36 + 3.24
        ___
   d = <font face = "symbol">Ö</font>3.6

Also use it to find the distance from (-.6, 5.2) to (-2,1)
        _________________________
   d = <font face = "symbol">Ö</font>(-2 - (-.6) )<sup>2</sup>+(1 - 5.2)<sup>2</sup>
        ____________________
   d = <font face = "symbol">Ö</font>(-2 + .6)<sup>2</sup> + (-4.2)<sup>2</sup>
        _______________
   d = <font face = "symbol">Ö</font>(-1.4)<sup>2</sup> + 17.64
        ____________ 
   d = <font face = "symbol">Ö</font>1.96 + 17.64
        ____
   d = <font face = "symbol">Ö</font>19.6
                                    
4. The ratio of the two distances "longer to shorter" is
    ____     ___
i  <font face = "symbol">Ö</font>19.6 to <font face = "symbol">Ö</font>3.6, which can be
   expressed as a fraction
     ________     ______    ___  __
    <font face = "symbol">Ö</font>19.6/3.6  = <font face = "symbol">Ö</font>196/36 = <font face = "symbol">Ö</font>196/<font face = "symbol">Ö</font>36 = 14/6 = 7/3 or 7 to 3 or 7:3.

The ratio "shorter to longer" is 3 to 7 or 3:7

Edwin</pre>