The slope triangle of a straight line

Consider a linear function f(x)=ax+bf(x)=ax+b. We know the graph of ff is a straight line, and depending on the values aa and bb, the straight line will look differently. Here we discus the effects that the values of aa and bb have on the straight line.

We start with bb and lets calculate the yy-intercept of ff:

f(0)=a0+b=bf(0)=a\cdot 0+b=b

Thus, we see that

Theorem 1

bb is the yy-intercept of ff, that is, it denotes the location where the straight line intersects the yy-axis.

Giving meaning to aa is a bit more difficult, but not by much. The value aa even has a name, it is called the slope ("Steigung") of ff. We will see in a second why this name is fitting. Here are two concrete examples of linear functions and their graphs:

f(x)=0.5x+1f(x)=0.5x+1 g(x)=2x+1g(x)=-2x+1

That is, a=0.5a=0.5 for ff and a=2a=-2 for gg and for both it is b=1b=1.

To see where aa can be detected in the graphs of ff and gg, we have to draw the so called slope triangle to the straight lines or graphs. To do so,

Recipe 1
  • Choose a starting point on the graph, indicated below by a small circle. This point can be chosen freely as long as it is on the graph.
  • Starting at this point, move to the right by some distance. We denote this distance by Δx\Delta x (say delta x). Again, this distance can be chosen freely.
  • Then move upwards (or downwards) until you get to the graph again. The distance you had to move is denoted by Δy\Delta y (say delta y), and we take the distance negative, if we have to move downwards.
  • In this way, a triangle is plotted - the slope triangle.

The figure above shows a couple of slope triangles for each graph ff and gg.

Note 1
  • for the graph of ff (green line), if we divide Δy\Delta y over Δx\Delta x, we always get 0.50.5, which is just aa: ΔyΔx=12=0.51=0.5\frac{\Delta y}{\Delta x}=\frac{1}{2}=\frac{0.5}{1}=0.5
  • the same is true for gg, we also get aa if we divide Δy\Delta y over Δx\Delta x ΔyΔx=10.5=21=2\frac{\Delta y}{\Delta x}=\frac{-1}{0.5}=\frac{-2}{1}=-2

And in fact that is always the case:

Theorem 2

Given a graph of a linear function f(x)=ax+bf(x)=ax+b, then

a=ΔyΔxa=\frac{\Delta y}{\Delta x}

where Δx\Delta x and Δy\Delta y are the horizontal and vertical sides of a slope triangle to the graph of ff. aa is called the slope of ff.

Note 2
  • The Δ\Delta in front of a variable such as xx or yy is often used to indicate a change in this variable, or a difference. Indeed, we move from the starting point on the graph to the right, so we change the xx-coordinate, then we move upwards and downwards, and therefore change the yy-coordinate.
  • Δx\Delta x is also called run (you run to the right), and Δy\Delta y is called rise because you have to go up (or down). So the fraction ΔyΔx\frac{\Delta y}{\Delta x} is often summarised as rise over run.

The name slope makes sense. The bigger the slope, or the more you have to rise for a given distance run, the steeper is the straight line. This is illustrated in the next exercise.

Exercise 1

Determine the slope of each straight line by constructing slope triangles. Also, answer the following questions:

  1. Does the slope double, if the angle between the xx-axis and the straight line doubles?
  2. What is the slope of a horizontal line?
  3. What is the slope of the diagonal?
  4. What is the slope of a vertical line, and why will we never see this for a linear function?
Solution
  1. no!
  2. a=0a=0
  3. a=1a=1
  4. a=a=\infty, but this cannot be a graph of a function, as one input has many (infinitely many, actually) outputs.
Exercise 2

In a coordinate system, construct straight lines passing through the point A(11)A(1|1), where the line has slope:

  1. 33

  2. 25\frac{2}{5}

  3. 0.25-0.25

  4. 2.5-2.5

Solution
Exercise 3

Determine the exact slope. Hint: construct a slope triangle in such a way that you can determine the run and rise with the help of the points through which the straight line passes.

Solution

Line ff: Take the point on the left as starting point, A(1.270.65)A(1.27\vert 0.65), and move to the right until the other point, B(1.871.81)B(1.87\vert 1.81), is exactly above you. Constructing the slope triangle in this way (see figure below), we have

Δx=BxAx=1.871.27=0.60\Delta x = B_x-A_x = 1.87-1.27 = 0.60

and

Δy=ByAy=1.810.65=1.16\Delta y = B_y-A_y = 1.81-0.65 = 1.16

Thus, the slope is

a=ΔyΔx=1.160.60=1.93a=\frac{\Delta y}{\Delta x} =\frac{1.16}{0.60}=\underline{1.9\overline{3}}

Line gg: Similar. We start again at the left point, C(0.360.12)C(0.36 \vert 0.12 ), and run to the right until D(1.81.15)D(1.8 \vert -1.15) is exactly below you. Constructing the slope triangle in this way (see figure below), we have

Δx=DxCx=1.80.36=1.44\Delta x = D_x-C_x = 1.8-0.36 = 1.44

and

Δy=DyCy=1.150.12=1.27\Delta y = D_y-C_y = -1.15-0.12 = -1.27

Thus, the slope is

a=ΔyΔx=1.271.44=0.882a=\frac{\Delta y}{\Delta x} =\frac{-1.27}{1.44}=\underline{-0.882}
Exercise 4

A straight line ff has slope 1.6771.677.

  1. Another straight line gg is parallel to ff. Determine its exact slope.
  2. Another straight line gg is orthogonal to ff. Determine its exact slope. Hints:
    1. orthogonal means "senkrecht", thus, the lines ff and gg form a right angle at the point of intersection.

    2. You can rotate ff about the point of intersection to get gg. Now, construct a slope triangle for ff, and then rotate it as well ... you get a slope triangle for gg where the sides are interchanged

Solution
  1. Because ff and gg are parallel, we can simply move ff with its slope triangle to get gg with the same slope triangle. So ff and gg have the same slope a=1.677a=\underline{1.677}. See figure below, left.

  2. As you can see from the figure (bottom right), the slope triangle of gg is a rotated version of the slope triangle of ff, where the rotation angle is 9090^\circ. Thus, the run of ff becomes the rise of gg (but negative, because we downwards), and the rise of ff becomes the run of ff. Thus, the slope of gg is

a=11.677=0.596a=\frac{-1}{1.677}=\underline{-0.596}
Exercise 5

Determine the function equation of the graphs shown below with the help of the slope triangle, and the fact that bb is the yy-intercept.

Solution

Line ff: From the slope triangle follows, that the slope is a=31=3a=\frac{-3}{1}=-3. Because of b=2b=2, it follows f(x)=3x+2f(x)=\underline{-3x+2}.

Line gg: From the slope triangle follows, that the slope is a=14a=\frac{1}{4}. Because of b=1b=-1, if follows g(x)=14x1g(x)=\underline{\frac{1}{4}x-1}.

Line hh: From the slope triangle follows, that the slope is a=11=1a=\frac{1}{1}=1. Because of b=0b=0, if follows h(x)=xh(x)=\underline{x}.