To calculate the slope of a line you need only two points from that line, (x1, y1) and (x2, y2).
<span>The equation used to calculate the slope from two points is:On a graph, this can be represented as:</span>
There are three steps in calculating the slope of a straight line when you are not given its equation.
<span><span>Step One:<span> Identify two points on the line.</span></span><span>Step Two:<span> Select one to be (x</span>1<span>, y</span>1<span>) and the other to be (x</span>2<span>, y</span>2).</span><span>Step Three:<span> Use the slope equation to calculate slope.</span></span></span>
Take a moment to work through an example where we are given two points.
Example
Let's say that points (15, 8) and (10, 7) are on a straight line. What is the slope of this line?
<span><span>Step One:<span> Identify two points on the line.</span>In this example we are given two points, (15, 8) and (10, 7), on a straight line.</span><span>Step Two:<span> Select one to be (x</span>1<span>, y</span>1<span>) and the other to be (x</span>2<span>, y</span>2).It doesn't matter which we choose, so let's take (15, 8) to be (x2, y2). Let's take the point (10, 7) to be the point (x1, y1).</span><span><span>Step Three:</span><span> Use the equation to calculate slope.</span>Once we've completed step 2, we are ready to calculate the slope using the equation for a slope:We said that it really doesn't matter which point we choose as (x1, y1) and the which to be (x2, y2). Let's show that this is true. Take the same two points (15, 8) and (10, 7), but this time we will calculate the slope using (15, 8) as (x1, y1) and (10, 7) as the point (x2, y2). Then substitute these into the equation for slope:We get the same answer as before!</span></span>
Often you will not be given the two points, but will need to identify two points from a graph. In this case the process is the same, the first step being to identify the points from the graph. Below is an example that begins with a graph.
Example
<span><span>What is the slope of the line given in the graph?
The slope of this line is 2.</span></span>
<span>
[detailed solution to example]</span>
Now, take a moment to compare the two lines which are on the same graph.
Notice that the line with the greater slope is the steeper of the two. The greater the slope, the steeper the line. Keep in mind, you can only make this comparison between lines on a graph if: (1) both lines are drawn on the same set of axes, or (2) lines are drawn on different graphs (i.e., using different sets of axes) where both graphs have the same scale.