# Slope of a Straight Line in terms of Coordinates of two points

Slope of a straight line can be expressed in terms of coordinates of any two points of the same straight line. It is also used to calculate the slope of the straight line but this method is actually used to calculate slope of the straight line when the angle, made by the straight line is unknown but the coordinates of any two points of the line is known.

## Geometrical Explanation

Assume, $\stackrel{↔}{AB}$ is a straight line in a plane and it makes an angle with horizontal axis in anticlockwise direction.

Now, draw a line from point $A$ (parallel to horizontal axis) and also draw a line from point $B$ (perpendicular to the horizontal axis). The lines drawn from point $A$ and $B$ intersect at a point, which is assumed to call point $C$. Thus, it forms a right angled triangle $\Delta BAC$. The line segments $\stackrel{‾}{AB},\stackrel{‾}{AC}$ and $\stackrel{‾}{BC}$ become hypotenuse, adjacent side and opposite side of the right angled triangle $\Delta BAC$. Assume, the angle between adjacent side and hypotenuse is $\theta$. Observe, right angled triangle $\Delta BAC$ carefully. The angle of the right angled triangle is same as the angle made by the straight line $\stackrel{↔}{AB}$.

According to principle definition of slope of the straight line, the relation between slope of the straight line and angle made by the straight line is written in mathematics as follows.

The slope of the straight line is $\left(m\right)=tan\theta$

Assume, the point $A$ is located at $\left({x}_{1},{y}_{1}\right)$ and also assume the point $B$ is located at $\left({x}_{2},{y}_{2}\right)$.

Observe the right angled triangle $\Delta BAC$ carefully.

The length of the opposite side is

The length of the adjacent side is

However, trigonometric function tangent can be expressed as ratio of opposite side to adjacent side. It is written in mathematical form as follows.

We have known that slope of a straight line is $m=tan\theta$

Now, replace the value of tangent to get the slope of straight line in terms of the coordinates of any two points of the straight line $\stackrel{↔}{AB}$.

Therefore, the slope of the straight line $\stackrel{↔}{AB}$ is

It is used as a mathematical formula to calculate the slope of any straight line when the angle made by the straight line is unknown but coordinates of any two points of the straight line is known.

Save (or) Share