Question
Question: The equation of the line passing through the points \[\left( {2,3} \right)\] and \[\left( {4,5} \rig...
The equation of the line passing through the points (2,3) and (4,5) is
A. x−y−1=0
B. x+y+1=0
C. x+y−1=0
D. x−y+1=0
Solution
Here, we are required to find the equation of a line passing through two given points. We will use the formula of the equation of a line which passes through the points (x1,y1) and (x2,y2). We will then substitute the given points to find the required equation.
Formula Used:
Equation of a line which passes through 2 points is given by (x−x1)(y−y1)=x2−x1y2−y1.
Complete step-by-step answer:
When we have to find the equation of a line using a given point and slope, we use the formula (y−y1)=m(x−x1).
Or we can write this as:
m=(x−x1)(y−y1)………………………………(1)
Also, slope of a given line which passes through the points (x1,y1) and (x2,y2) is:
m=x2−x1y2−y1
Putting m=x2−x1y2−y1 value in equation (1), we get,
⇒(x−x1)(y−y1)=x2−x1y2−y1
Hence, this is the formula for the equation of a line which passes through the points (x1,y1) and (x2,y2).
Now, according to the question, we have to find the equation of the line passing through the points (2,3) and (4,5).
Hence, substituting x1=2, y1=3 and x2=4,y2=5 in the formula (x−x1)(y−y1)=x2−x1y2−y1, we get
(x−2)(y−3)=4−25−3
Subtracting the terms, we get
⇒(x−2)(y−3)=22=11
Now, by cross multiplying the terms, we get
⇒(y−3)=(x−2)
Now, subtracting (y−3) from both sides, we get
⇒0=x−2−y+3
⇒0=x−y+1
Or
⇒x−y+1=0
Hence, the equation of the line passing through the points (2,3) and (4,5) is x−y+1=0
Therefore, option D is the correct answer.
Note:
In the standard form, an equation of a straight line is written as y=mx+c. Here m is the slope. A slope of a line states how steep a line is and in which direction the line is going.
When we are required to find an equation of a given line then, we use the relation between x and y coordinates of any point present on that specific line to find its equation.