document.write( "Question 1159296: I'm trying to figure out this problem to help my son with his homework. \r
\n" ); document.write( "\n" ); document.write( "Write the equation of a line that passes through (-2,-1) and (2,3).
\n" ); document.write( "
\n" ); document.write( "

Algebra.Com's Answer #782290 by jim_thompson5910(35256)\"\" \"About 
You can put this solution on YOUR website!

\n" ); document.write( "Answer: y = x + 1
\n" ); document.write( "slope = 1, y intercept = 1
\n" ); document.write( "You can think of y = x+1 as y = 1x + 1\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "=======================================================================================\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Work Shown:\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Find the slope of the line through (x1,y1) = (-2,-1) and (x2,y2) = (2,3)
\n" ); document.write( "m = (y2 - y1)/(x2 - x1)
\n" ); document.write( "m = (3 - (-1))/(2 - (-2))
\n" ); document.write( "m = (3 + 1)/(2 + 2)
\n" ); document.write( "m = 4/4
\n" ); document.write( "m = 1\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Plug m = 1 and (x1,y1) = (-2,-1) into the point slope formula. Solve for y.
\n" ); document.write( "y - y1 = m(x - x1)
\n" ); document.write( "y - (-1) = 1(x - (-2)) ... substitution
\n" ); document.write( "y + 1 = 1(x + 2) ... subtracting a negative is the same as adding
\n" ); document.write( "y + 1 = x + 2
\n" ); document.write( "y + 1 - 1 = x + 2 - 1 ... subtract 1 from both sides to isolate y
\n" ); document.write( "y = x + 1\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "To confirm we have the correct answer, lets test out the point (-2, -1). This means x = -2 and y = -1 pair up together
\n" ); document.write( "y = x+1
\n" ); document.write( "-1 = -2+1 ... replace x with -2, y with -1
\n" ); document.write( "-1 = -1 ... true equation
\n" ); document.write( "since we get a true equation (ie the same number on both sides), this means we have confirmed (-2,-1) as a solution. Let's check the other ordered pair.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "Plug in (x,y) = (2,3)
\n" ); document.write( "y = x+1
\n" ); document.write( "3 = 2+1 ... replace x with 2, y with 3
\n" ); document.write( "3 = 3 ... also true
\n" ); document.write( "We have confirmed both points, so this fully confirms the answer.\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "------------------------\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "If you wish to have the equation in standard form (Ax+By = C), then one way is to do the following steps
\n" ); document.write( "y = x + 1
\n" ); document.write( "y-x = x+1-x ... subtract x from both sides
\n" ); document.write( "-x+y = 1
\n" ); document.write( "-x+y = 1 .... technically this is in standard form, but many books require that A > 0
\n" ); document.write( "-1(-x+y) = -1*1 ... to make A > 0, multiply both sides by -1
\n" ); document.write( "x-y = -1 ... distribute and multiply\r
\n" ); document.write( "
\n" ); document.write( "\n" ); document.write( "x-y = -1 is in the form Ax+By = C where A = 1, B = -1, C = -1
\n" ); document.write( "
\n" ); document.write( "
\n" );