SOLUTION: I need to find the equation of the line containg (-2, -7) and (-5, -8)

Algebra ->  Linear-equations -> SOLUTION: I need to find the equation of the line containg (-2, -7) and (-5, -8)      Log On


   



Question 444813: I need to find the equation of the line containg (-2, -7) and (-5, -8)
Found 2 solutions by mananth, ikleyn:
Answer by mananth(16949) About Me  (Show Source):
You can put this solution on YOUR website!
x1 y1 x2 y2
-2 -7 -5 -8

slope m =(y2-y1)/(x2-x1) 0.33
(-8-(-7 ))/(-5-(-2))
(-1/-3)
m=0.33

Plug value of the slope and point (-2,-7) in
Y = m x + b
-7.00 = -0.67 + b
b= -7-0.67
b= -6.33
So the equation will be
Y =0.33 x-6.33

Answer by ikleyn(53419) About Me  (Show Source):
You can put this solution on YOUR website!
.
I need to find the equation of the line containing (-2, -7) and (-5, -8)
~~~~~~~~~~~~~~~~~~~~~~~~~


        This problem requires an exact solution in the form of an equation expressed in rational numbers.
        But @mananth in his post works with decimal numbers with two decimals after the decimal point.
        It does not produces an exact equation in precise form.
        So, what he presents as a solution, is not a solution in precise strict meaning
        and can not be accepted as a solution to the problem.

        Below I develop  EXACT  equation in the form as it  SHOULD  be done.


Calculate the slope  m = %28%28-8%29-%28-7%29%29%2F%28%28-5%29-%28-2%29%29 = %28-1%29%2F%28-3%29 = 1%2F3 = 0.3333333...


So, an equation of the line in slope-intercept form is

    y = mx + b = %281%2F3%29x + b.


We should determine the value of 'b' in this equation. 
For it, substitute coordinates of the either given point into the equation

    -7 = %281%2F3%29%2A%28-2%29 + b,

    -7 = -2%2F3 + b,

    b = -7 + 2%2F3 = -61%2F3 = -19%2F3.


The exact equation is

    y = %281%2F3%29x+-+19%2F3.


At this point, the problem solved PRECISELY and CORRECTLY.

Solved.

--------------------------

I know  (I just deciphered it out for myself some time ago)  that solutions by @mananth
are produced by the computer code.

Detecting this error  (I just detected it for the second time)  means that the computer code
has a defect  (= a hole),  which should be fixed.