Facebook Pixel
Mathos AI logo

Understanding and Calculating Slope

Understanding and Calculating Slope

The slope of a line measures its steepness and direction. In mathematics, slope is the rate of change: it tells you exactly how much the yy-value changes for every one-unit increase in the xx-value.

The Slope Formula

The most common way to calculate the slope (usually represented by the letter mm) when you are given two points, (x1,y1)(x_1, y_1) and (x2,y2)(x_2, y_2), is by using the slope formula:

m=y2โˆ’y1x2โˆ’x1m = \frac{y_2 - y_1}{x_2 - x_1}

This is often remembered as "rise over run", where the "rise" is the change in yy and the "run" is the change in xx.

Example: Find the slope of the line passing through (2,3)(2, 3) and (5,9)(5, 9).

  1. Identify your points: (x1,y1)=(2,3)(x_1, y_1) = (2, 3) and (x2,y2)=(5,9)(x_2, y_2) = (5, 9).
  2. Plug them into the formula: m=9โˆ’35โˆ’2m = \frac{9 - 3}{5 - 2} m=63m = \frac{6}{3} m=2m = 2 The slope is 22, meaning for every 11 unit you move to the right, the line goes up by 22 units.

Types of Slopes

Depending on the direction of the line, slopes fall into four categories:

  • Positive Slope: The line rises from left to right. (m>0m > 0)
  • Negative Slope: The line falls from left to right. (m<0m < 0)
  • Zero Slope: A horizontal line. The yy-value never changes, so the "rise" is 00. Therefore, the slope of any horizontal line is 00.
  • Undefined Slope: A vertical line. The xx-value never changes, which means the "run" is 00. Because you cannot divide by zero, the slope is undefined.

Finding Slope from a Graph or Equation

From a Graph: To read a slope directly from a graph, pick two clear points where the line crosses the grid intersections. Count how many units you move up or down (the rise) and how many units you move right (the run) to get from the first point to the second. Divide the rise by the run.

From an Equation: If an equation is written in slope-intercept form, y=mx+by = mx + b, the slope is simply mm, the number attached to xx. For example, in the equation y=โˆ’3x+4y = -3x + 4, the slope is โˆ’3-3.