SOLUTION: This is a two part question. Can anyone help me set these up. I seem to have issues with these slopes. Thanks! Using point P(2,9) and Q (-3,3) Find distance between P and

Algebra ->  College  -> Linear Algebra -> SOLUTION: This is a two part question. Can anyone help me set these up. I seem to have issues with these slopes. Thanks! Using point P(2,9) and Q (-3,3) Find distance between P and       Log On


   



Question 60981: This is a two part question. Can anyone help me set these up. I seem to have issues with these slopes. Thanks!
Using point P(2,9) and Q (-3,3)
Find distance between P and Q.
Find the equation of the line passing through P and Q.
Thanks again!

Answer by joyofmath(189) About Me  (Show Source):
You can put this solution on YOUR website!
The distance between two points if found by computing the hypotenuse of a right triangle using the Pythagorean Theorem c%5E2+=+a%5E2+%2B+b%5E2.
In the case of P and Q, the length of one side of the triangle is found by calculating the distance between X values and the length of another side is found by calculating the distance between the Y values.
So, the y values are 2 and -3 and their difference is 2-%28-3%29+=+5.
The y values are 9 and 3. Their difference 9-3+=+6.
Use the Pythagorean Theorem to find the shortest distance between these points, the hypotenuse of the triangle with sides 5 and 6.
c%5E2+=+5%5E2+%2B+6%5E2. So, c%5E2+=+5%5E2+%2B+6%5E2+=+61 so c+=+sqrt%2861%29 which is approximately 7.81 and that's the distance between the two points.
The formula for a line is y=mx%2Bb where x is the slope and b is the y-axis intercept. The slope is the ratio of the change in x to the change in y.
We know from our work above that the x increases by 6 for every increase in 5 that the y goes up.
So, the slope is: +m+=+6%2F5+=+1.2.
So, the equation of the line is: +y=%286%2F5%29x%2Bb.
We need to find x.
We can use the x and y values of either point to do that.
Using Q, (-3,3) we find that +3=%286%2F5%29%28-3%29%2Bb.
Or, 3+=+-%2818%2F5%29+%2B+b
Or, 3%2B%2818%2F5%29+=+b.
So, b=6.6.
Thus, the equation of the line is y=1.2x%2B6.6.
We verify this with both points:
If x = -3 and y = 3 then y=1.2%28-3%29%2B6.6 so y=-3.6%2B6.6=3.
If x = 2 and y = 9 then y=1.2%282%29%2B6.6 so y=2.4%2B6.6=9.