Question
Question: Prove that the slope of a non-vertical line passing through the points A \[\left( {{x}_{1}},{{y}_{1}...
Prove that the slope of a non-vertical line passing through the points A (x1,y1) and B (x2,y2) is given by m=(x2−x1y2−y1).
Solution
Hint: To prove m=(x2−x1y2−y1) first of all we will have to consider the two points on the Cartesian plane (x-y) and then join the points to each other and construct a right angle triangle with the distance between the points as a hypotenuse. We know that the slope of a line is equal to the tangent value of angle made by the line and x-axis in anticlockwise direction.
Complete step-by-step answer:
Let us consider the given points A (x1,y1) and B (x2,y2) in the x-y plane and the angle made by the line with x-axis in anticlockwise direction to be ′θ′.
Since AC is parallel to x-axis and BD cuts them, we can say that,
⇒∠BAC=θ as these are corresponding angles
From the figure, we can get AC and BC by subtracting the corresponding x and y coordinates of points A, B and C. A and C have the same coordinates.
AC=x2−x1 and BC=y2−y1
Now in triangle ΔABC, we have as follows:
tanA=ACBC
Since ∠A=θ, AC=x2−x1 and BC=y2−y1
⇒tanθ=x2−x1y2−y1
Since we know that slope of a line (m) is also equal to the tangent value of angle made by the line with x-axis in anticlockwise direction.
⇒slope(m)=x2−x1y2−y1=tanθ
Therefore, it is proved that the slope of a line passing through A (x1,y1) and B (x2,y2) is given by m=x2−x1y2−y1.
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, you can remember that if the x-coordinates of the two points through which line passes are same then it must be perpendicular to x-axis and if y-coordinates of the two points through which line passes are same then it must be perpendicular to y-axis or parallel to x-axis.