Skip to content or footer

Slope/Gradient of a Line

This article deals with straight lines as graphs of linear functions.

This article deals with straight lines as graphs of linear functions, i.e. functions of the form f(x)=mx+tf(x)=m \cdot x+t.

The m in the equation above is called the slope of the straight line.

The slope of a straight line indicates by how many units the yy-coordinate of a point changes when its xx-coordinate changes by one unit. In other words, the slope of a straight line measures how steeply it rises.

Calculating the line slope

The gradient/slope of a straight line can be determined from two different points P(x1,y1)P(x_1,y_1) and Q(x2,y2)Q(x_2,y_2) , which lie on the straight line, using the difference quotient:

It does not matter which points you choose, the quotient always has the same value.

Example

Determine the slope of the given line. To do this, select two points, for example P(23)P(2 \mid 3) and Q(56)Q(5 \mid 6) as in the sketch. The triangle drawn is called a gradient triangle.

Image

One determines ΔyΔy and ΔxΔx, i.e. the difference of the yy-coordinates and xx-coordinates of the given points ...

... plugs in the values for the lengths of Δy\Delta y and Δx\Delta x into the formula.

So the line has the slope:

From the slope to the gradient triangle

Take any two points of the straight lines in the coordinate system and draw lines between them parallel to the coordinate axes. Those lines enclose a right-angled triangle.

Geogebra File: https://assets.serlo.org/legacy/1296.xml

Slope 22 means:

"Go from a point on the line 1 length unit to the right and 2 length units upwards".

Slope 1-1 means:

"Go from a point on the line 1 length unit to the right and 1 length unit downwards".

Slope 23\frac{2}{3} means:

"Go from a point on the line 3 length units to the right and 2 length units upwards".

Slope 23-\frac{2}{3} means:

"Go from a point on the line 3 length units to the right and 2 length units downwards".

From the gradient triangle to the slope

If two points of the straight line are given, a gradient triangle can be drawn between them.

The slope of the straight line is then the length of the vertical cathetus (opposite cathetus) divided by the length of the horizontal cathetus (adjacent cathetus). The slope is positive if the straight line rises and negative if the straight line falls.

This results in the same equation as above:

Perpendicular and parallel lines

Consider two lines with their two line equations

Parallel lines

If

then both lines are parallel.

Perpendicular lines

If

then both lines are perpendicular.

Example:

Geogebra File: https://assets.serlo.org/legacy/6881_VNdHuQVt2T.xml

Example:

Geogebra File: https://assets.serlo.org/legacy/6879_8hYC9Of8cY.xml

m1=1.5;m2=23m1m2=1.5(23)=1\def\arraystretch{1.25} \begin{array}{l}m_1=1.5; m_2=-\frac{2}{3}\\\Rightarrow m_1\cdot m_2=1.5\cdot\left(-\frac{2}{3}\right)=-1\end{array}

Angle of inclination

The angle of inclination indicates the angle of a straight line with respect to the xx-axis. The angle of inclination α\alpha of a straight line y=mx+t y = m \cdot x + t satisfies

Slope of special straight lines

Geogebra File: https://assets.serlo.org/legacy/7089_RnqLXYWI6Y.xml

The slope of a straight line that is parallel to the xx-axis is 00.

In this case, the associated function is constant.

An equation for such a function would be y=ny=n.

Geogebra File: https://assets.serlo.org/legacy/7091_GkEjQ87H4V.xml

The slope of a straight line parallel to the yy-axis would be "infinite".

However, there can be no function as a function of xx with such a straight line as a graph, since different yy-values would have to be assigned to the same xx-value.

Nevertheless, such a straight line can be described by an equation of the form x=rx=r.


This content is licensed under
CC BY-SA 4.0Info