Question
Question: Find the slope of the line which passes through the points [i] (0,0) and (4,-2) [ii] (0,-3) and (...
Find the slope of the line which passes through the points
[i] (0,0) and (4,-2) [ii] (0,-3) and (2,1)
Solution
Hint: Use the fact that the slope of the line joining the points A(x1,y1) and B(x2,y2) is given by m=x2−x1y2−y1. Substitute the value of x1,x2,y1,y2 in each case and hence find the slopes of the lines.
Complete step-by-step answer:
Alternatively, assume that the equation of the line is y=mx+c. Since the line passes through the points, the points satisfy the equation of the line. Hence form two linear equations in two variables m and c. Solve for m and c. The value of m gives the slope of the line.
[i] We have A≡(0,0) and B≡(4,−2)
We know that the slope of the line joining the points A(x1,y1) and B(x2,y2) is given by m=x2−x1y2−y1.
Here x1=0,x2=4,y1=0 and y2=−2
Hence, we have
m=4−0−2−0=4−2=2−1
Hence the slope of the line is 2−1
[ii] We have A≡(0,−3) and B≡(2,1)
We know that the slope of the line joining the points A(x1,y1) and B(x2,y2) is given by m=x2−x1y2−y1.
Here x1=0,x2=2,y1=−3 and y2=1
Hence, we have
m=2−01−(−3)=24=2
Hence the slope of the line is 2.
Note: Alternative solution:
[i] Let the equation of the line passing through the given points be y = mx+c
Since (0,0) lies on the line, we have 0 = 0x+c, i.e. c = 0
Also since (4,-2) lies on the line, we have
-2 = 4m+c
Hence, we have 4m=−2⇒m=2−1
[ii] Let the equation of the line passing through the given points be y = mx+c
Since (0,-3) lies on the line, we have
-3 = m(0) +c, i.e. c = -3
Also since (2,1) lies on the line, we have
1 = m(2) + -3
Hence, we have 2m=4⇒m=2.