Skip to content

Mathematics and Statistics · Ch 5 — Locus and Straight Line

Slope (Gradient) of a Line

2

Slope (Gradient) of a Line

The slope (or gradient) of a straight line measures its steepness and direction of rise. It is denoted by mm and defined through the angle the line makes with the positive direction of the x-axis.

The inclination θ\theta of a line is the angle, measured anticlockwise, from the positive x-axis to the line, with 0∘≤θ<180∘0^\circ \le \theta < 180^\circ. The slope is then

Note

Slope from Inclination

m=tan⁡θm = \tan\theta

Because tan⁡θ\tan\theta is positive for acute θ\theta and negative for obtuse θ\theta, a line rising left-to-right has positive slope, and a line falling left-to-right has negative slope. A horizontal line has θ=0∘\theta = 0^\circ, so m=0m = 0. A vertical line has θ=90∘\theta = 90^\circ, where tan⁡90∘\tan 90^\circ is undefined — a vertical line has no slope (its slope does not exist).

When two points on the line are known, the slope can be found without the angle at all. If A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2) are any two distinct points on the line,

Note

Slope from Two Points

m=y2−y1x2−x1,x1≠x2m = \dfrac{y_2 - y_1}{x_2 - x_1}, \qquad x_1 \neq x_2

This is the rise (change in yy) divided by the run (change in xx). The order of the two points does not matter, provided the same order is used in the numerator and the denominator: computing y1−y2x1−x2\dfrac{y_1 - y_2}{x_1 - x_2} gives exactly the same value. If x1=x2x_1 = x_2 the line is vertical and the slope is undefined, consistent with the inclination view above. …

Definition 1Inclination ($\theta$)

The angle a line makes with the positive x-axis, measured anticlockwise, $0^\circ \le \the …

Definition 2Slope ($m$)

m=tan⁡θm = \tan\theta, equivalently m=y2−y1x2−x1m = \dfrac{y_2-y_1}{x_2-x_1} for two points on the line. Positive if the line rises, negative if it falls, zero if horizo …