A straight line is the shortest distance between two points.
The gradient of a line is a measure of its slope relative to the x‑axis.
A positive gradient slopes upwards from left to right.
A negative gradient slopes downwards from left to right.
Gradient
The gradient is found by dividing the vertical distance by the horizontal distance.
\[
\text{Gradient } = \frac{\text{Vertical distance}}{\text{Horizontal distance}}
\]
\[
\text{This is often shortened to}
\]
\[
\qquad m = \frac{V}{H}
\]
\[
\text{where } m = \text{gradient},\; V = \text{Vertical distance},\; H = \text{Horizontal distance}
\]
\[
\text{Since the vertical distance corresponds to the } y \text{ direction,}
\]
\[
\text{and the horizontal distance corresponds to the } x \text{ direction,}
\]
\[
\qquad m = \frac{y}{x}
\]
Example
The horizontal distance is 2 units. The vertical distance is 4 units.
\[
m = \frac{V}{H} = \frac{4}{2} = 2
\]
The gradient is 2.
Gradient Triangle
The gradient triangle can be used to find a vertical, horizontal, or gradient.