Slope of a Line

Understand slope (gradient) and how it measures the steepness of a line

Overview

The slope (also called gradient) of a line is a measure of how steep the line is. It quantifies the direction and steepness of a line by measuring the relative changes in the vertical and horizontal directions.

Slope Characteristics:
  • Large positive slope: Line is steeply inclined upward
  • Small positive slope: Line is slightly inclined upward
  • Zero slope: Line is horizontal
  • Negative slope: Line is inclined downward
  • Undefined slope: Line is vertical

The Slope Formula

The slope of a line passing through two points is calculated by measuring the change in the y-direction divided by the change in the x-direction.

Slope (Gradient) Formula:

For two points \(A(x_1, y_1)\) and \(B(x_2, y_2)\), the slope \(m\) is:

\(\displaystyle m = \frac{\Delta y}{\Delta x} = \frac{y_2 - y_1}{x_2 - x_1}\)
Formula Components:
  • \(m\) = slope (gradient) of the line
  • \(\Delta y\) = change in y-coordinate (rise)
  • \(\Delta x\) = change in x-coordinate (run)
  • Slope = "rise over run"

Worked Example

Calculate the Slope of a Line

Given: Points \(A(1, 1)\) and \(D(3, 5)\) on a line

Find: The slope of the line segment \(AD\)

Visual Representation

Line segments with different slopes

Step 1: Identify the coordinates

Point \(A: x_1 = 1, \quad y_1 = 1\)
Point \(D: x_2 = 3, \quad y_2 = 5\)

Step 2: Calculate the changes

\(\Delta y = y_2 - y_1 = 5 - 1 = 4\) (rise)
\(\Delta x = x_2 - x_1 = 3 - 1 = 2\) (run)

Step 3: Calculate the slope

\(\displaystyle m = \frac{\Delta y}{\Delta x} = \frac{4}{2} = 2\)

Result: The slope of line segment \(AD\) is \(2\). This means for every 1 unit moved horizontally to the right, the line rises 2 units vertically.

Parallel Lines

Two lines are parallel if and only if they have the same slope. This is because parallel lines make the same angle with the x-axis.

Parallel Lines Property:

If line 1 and line 2 are parallel, then:

\(m_1 = m_2\)

Example: Parallel Lines

Two parallel lines with equal slope
Identify Parallel Lines

The figure above shows two parallel lines, both with slope \(m = \frac{4}{3} \approx 1.333\). Since the slopes are equal, the lines are parallel and will never intersect.

Slope and Angle to the X-Axis

The slope of a line is equal to the tangent of the angle that the line makes with the x-axis. We can use inverse trigonometric functions to find this angle.

Relationship:

\(m = \tan(\alpha)\), where \(\alpha\) is the angle the line makes with the positive x-axis.

Calculate Angle Using Slope

If we know the slope, we can find the angle using the inverse tangent function:

\(\displaystyle \alpha = \arctan(m) = \arctan\left(\frac{y_2 - y_1}{x_2 - x_1}\right)\)

Alternatively, using the distance and rise/run relationships:

Using inverse sine (arcsin):

\(\displaystyle \alpha = \arcsin\left(\frac{\Delta y}{\sqrt{(\Delta x)^2 + (\Delta y)^2}}\right)\)

Using inverse cosine (arccos):

\(\displaystyle \alpha = \arccos\left(\frac{\Delta x}{\sqrt{(\Delta x)^2 + (\Delta y)^2}}\right)\)

Slope Types Summary

Positive Slope
\(m > 0\): Line rises from left to right
Negative Slope
\(m < 0\): Line falls from left to right
Zero Slope
\(m = 0\): Horizontal line
Undefined Slope
Vertical line (division by zero)

Key Points

  • Slope formula: \(m = \frac{y_2 - y_1}{x_2 - x_1}\) ("rise over run")
  • Slope measures the steepness and direction of a line
  • Parallel lines have equal slopes
  • Slope equals the tangent of the angle with the x-axis: \(m = \tan(\alpha)\)
  • Positive slope: line rises (goes up)
  • Negative slope: line falls (goes down)
  • Zero slope: horizontal line
  • Undefined slope: vertical line


Point coordinates
Midpoint between two points
Distance two points
Slope of a line
Angle definition


Is this page helpful?            
Thank you for your feedback!

Sorry about that

How can we improve it?