Skip to content

Mathematics · Ch 11 — Straight Lines

Slope of a Line

2

Slope of a Line

The slope (or gradient) of a line is the single number measuring how steeply it rises or falls, and it is the starting point for everything else in this chapter.

Inclination of a line. The angle of inclination θ\theta of a line is the angle it makes with the positive direction of the x-axis, measured counter-clockwise, taken so that 0∘≤θ<180∘0^\circ \le \theta < 180^\circ. A line parallel to the x-axis has θ=0∘\theta=0^\circ; a line parallel to the y-axis has θ=90∘\theta=90^\circ.

Definition of slope. The slope of a line, denoted mm, is defined as

m=tan⁡θ,m = \tan\theta,

where θ\theta is its inclination — provided θ≠90∘\theta \ne 90^\circ, since tan⁡90∘\tan 90^\circ is undefined. A line parallel to the y-axis is therefore said to have no slope (an undefined slope). A line parallel to the x-axis has θ=0∘\theta=0^\circ, so m=tan⁡0∘=0m=\tan 0^\circ = 0.

Slope from two points on the line (derivation). Let P(x1,y1)P(x_1,y_1) and Q(x2,y2)Q(x_2,y_2), with x1≠x2x_1 \ne x_2, be two points on a line of inclination θ\theta. Draw a horizontal line through PP and a vertical line through QQ; they meet at R(x2,y1)R(x_2,y_1), forming a right triangle PQRPQR with PR=x2−x1PR = x_2-x_1 and QR=y2−y1QR = y_2-y_1 (taking x2>x1x_2>x_1 for the picture), and with ∠RPQ=θ\angle RPQ = \theta (or its supplement, depending on which side QQ lies — the tangent ratio comes out the same value either way). In this right triangle,

tan⁡θ=QRPR=y2−y1x2−x1.\tan\theta = \frac{QR}{PR} = \frac{y_2-y_1}{x_2-x_1}.

Hence

m=y2−y1x2−x1,x1≠x2.\boxed{m = \frac{y_2-y_1}{x_2-x_1}}, \qquad x_1 \ne x_2.

This is the working formula used throughout the chapter. It does not matter which point is labelled 11 and which 22: reversing both signs leaves the ratio unchanged, y1−y2x1−x2=y2−y1x2−x1\dfrac{y_1-y_2}{x_1-x_2}=\dfrac{y_2-y_1}{x_2-x_1}.

Sign of the slope. If m>0m>0, the line rises as xx increases (acute inclination, 0∘<θ<90∘0^\circ<\theta<90^\circ). If m<0m<0, the line falls as xx increases (obtuse inclination, 90∘<θ<180∘90^\circ<\theta<180^\circ). If m=0m=0, the line is horizontal. …