Question
Question: How do you write an equation of a line that passes through \(\left( { - 5,9} \right)\) and \(\left( ...
How do you write an equation of a line that passes through (−5,9) and (1,3)?
Solution
To find the equation of a line first we have to find the slope and this can be done by dividing the difference of y-coordinates of 2 end-points on a line by the difference of x-coordinates of the same endpoints. The slope of the line can be a positive or negative value, and the formula is given by, Slope of the linem=x2−x1y2−y1, and the equation of line that passes through the points is given by,
(y−y1)=m(x−x1), here, x1 and x2 are x-coordinates and y1 and y2 are y coordinates on x-axis and y-axis respectively, now substituting the values in the formula we will get the required equation.
Complete step by step solution:
The slope of the line is used to calculate the steepness of the line, it is usually denoted by the letter ‘m’. It is the change inydivide by the change inx, and it is given by the formula,
Slope of the linem=x2−x1y2−y1.
Here given points are (−5,9) and (1,3),
So by the formula, here x1=−5, y1=9,x2=1,y2=3,
Now substituting the values in the formula we get,
Slope of line m=1−(−5)3−9,
Now simplifying we get,
Slope m=1+5−6,
Now again simplifying we get,
Slope m=6−6,
Now again simplifying the fraction we get,
Slope m=−1,
Now slope m=−1.
And the equation of line that passes through the points is given by,
(y−y1)=m(x−x1),
So, here x1=−5,y1=9 and m=−1,
By substituting the values in the equation we get,
⇒y−9=(−1)(x−(−5)),
Now simplifying we get,
⇒y−9=(−1)(x+5),
Now multiplying we get,
⇒y−9=−x−5,
Now take all terms to one side we get,
⇒x+5+y−9=0,
Now simplifying we get,
⇒x+y−4=0.
So, the required equation is x+y−4=0,
∴The equation of a line that passes through (−5,9) and (1,3) will be equal to x+y−4=0.
Note:
Remember that if the slope of a line is equal to zero then it is parallel to x-axis and if the slope tends to infinity then it is perpendicular to x-axis. Also, we can remember that if the x-coordinates of the two points through which the line passes are same it must be perpendicular to the x-axis and y-coordinates of the two points through which the line passes are same it must be parallel to the x-axis.