How to Calculate Slope of Line
If given line makes an angle θ (0 ≤ θ ≤ 180 , θ ≠ 90) with positive direction of x-axis, then slope of line will be tanθ and is usually denoted by letter m.
i.e. m = tanθ.
Slope of line Passing Through Two Points Formula
If A(x1,y1) and B(x2,y2) are the two points on a straight line & x1 ≠ x2 then the formula for slope of line passing through two points is
m = y2−y1x2−x1.
By using above formula, we can easily calculate the slope of line between two points.
Example : Find the slope of a line between the points A = (2, 0) and B = (4,6).
Solution : Here x1,y1 = (2, 0) and x2,y2 = (4, 6).
By using slope of line formula,
m = y2−y1x2−x1 = 6−04−2
m = 62
⟹ m = 3.
Hence slope of line is 3.
Slope of Vertical Lines – Slope of Line Parallel to y-axis :
A vertical line is a line, parallel to y-axis and goes straight, up and down, in a coordinate plane.
In this case, θ = 90
m = tanθ = tan 90 = ∞
i.e. m does not exist when the slope of line is parallel to y-axis.
Slope of Horizontal Lines – Slope of Line Parallel to x-axis :
A horizontal line which is parallel to x-axis and goes straight, left and right in the coordinate plane.
In this case, θ = 0
m = tanθ = tan 0 = 0
i.e. m = 0
Slope of Parallel Lines :
Let m1 and m2 be slopes of two given lines,
then, m1 = m2
Slope of Perpendicular Lines :
Let m1 and m2 be slopes of two given lines,
then, m1 × m2 = -1
Slope of Line Equation :
The slope of line equation is also called equation of line in slope form and is written as
y = mx + c.
where m is the slope of line and c is the intercept on y-axis.
Example : Find the slope of a line whose equation is y = 3x + 4.
Solution : Given equation is y = 3x + 4
Comparing it with slope of line equation, y = mx + c
we get, m = 3.
Hope you learnt how to calculate slope of line, learn more concepts of straight lines and practice more questions to get ahead in the competition. Good luck!