Answer:
Finding the distance, midpoint, slope, equation and the x y-intercepts of a line passing between the two points p1 (-11,-8) and p2 (-11,-14)
The distance (d) between two points (x1,y1) and (x2,y2) is given by the formula
d = √ ((X2-X1)2+(Y2-Y1)2)
d = √ (-11--11)2+(-14--8)2
d = √ ((0)2+(-6)2)
d = √ (0+36)
d = √ 36
The distance between the points is 6
The midpoint of two points is given by the formula
Midpoint= ((X1+X2)/2,(Y1+Y2)/2)
Find the x value of the midpoint
Xm=(X1+X2)/2
Xm=(-11+-11)/2=-11
Find the Y value of the midpoint
Ym=(Y1+Y2)/2
Ym=(-8+-14)/2=-11
The midpoint is: (-11,-11)
Graphing the two points, midpoint and distance
P1 (-11,-8)
P2 (-11,-14)
Midpoint (-11,-11)
The length of the black line is the distance between the points (6)
Find the slope of the line connecting the two points
Slope = (Y2-Y1) = (-14--8) = (-6) = -Infinity
(X2-X1) (-11--11) (0)
Find the equation of the line passing through the two points
The general equation for a straight line is
y = mx + b
Where m represents the slope of the line which we found in the previous step to be -Infinity
y = -Infinityx + b
We substitute x and y for the values from one of our points (-11,-8)
-8 = -Infinity×-11 + b
-8 = Infinity + b
-8-Infinity = b
-Infinity = b
Knowing both b and m, we can contruct the equation of the line
y= -Infinityx-Infinity
X and Y intercepts
The x-intercept is a point on the graph where y is zero
Using the equation we found in the previous step and substituting zero for y
y= -Infinityx-Infinity
0= -Infinityx-Infinity
Infinityx= -Infinity
x= -Infinity/Infinity = NaN
The x intercept for this straight line is NaN
The y-intercept is a point on the graph where x is zero
Using the equation we found in the previous step and substituting zero for x
y= -Infinity×0-Infinity
y= -Infinity
The y intercept for this straight line is NaN
References
reference image showing the distance between two points on the xy plane
Processing ends successfully