A graph turns a relationship between two quantities into a picture. Once you can read that picture — where a line crosses, how steeply it climbs — you can answer questions about the relationship without doing any algebra at all. This topic sets up the machinery you will use for the rest of the course.
The Cartesian plane
Two number lines crossing at right angles make the Cartesian plane. The horizontal line is the -axis, the vertical line is the -axis, and they meet at the origin, the point .
Every point is named by an ordered pair : go across first, then up. The order matters — and are different points.
The axes cut the plane into four quadrants, numbered anticlockwise starting from the top right:
| Quadrant | Example | ||
|---|---|---|---|
| First | positive | positive | |
| Second | negative | positive | |
| Third | negative | negative | |
| Fourth | positive | negative |
A point sitting on an axis is in no quadrant at all: is on the -axis, is on the -axis.
Choosing a scale
When you draw a graph yourself, the scale is your decision, and marks are given for a sensible one.
- Use the grid you are given. If the paper offers 20 squares and your values run from to , use 2 squares per unit — not 1, which wastes half the page.
- Keep each axis uniform. Squares must not jump from 1 unit to 5 units partway along.
- The two axes need not match each other. in steps of and in steps of is perfectly acceptable if the numbers call for it.
- Label both axes and state the scale.
The equation of a straight line
Every straight line that is not vertical can be written
where is the gradient and is the -intercept.
The gradient tells you how steep the line is: it is the change in for every unit increase in . The -intercept tells you where the line crosses the -axis, at the point .
For : the gradient is and the line crosses the -axis at . Every step of to the right lifts the line units.
For : the gradient is . A negative gradient means the line falls as you move right. It crosses the -axis at .
Sign and steepness at a glance
| Gradient | Line |
|---|---|
| rises left to right | |
| falls left to right | |
| horizontal | |
| undefined | vertical |
The size of is the steepness, ignoring direction. A line with gradient is steeper than one with gradient , even though it is falling.
Gradient from two points
If you know two points on a line, and , the gradient is
Rise over run: the change in divided by the change in .
Find the gradient of the line through and .
The line rises units for every across.
It does not matter which point you call first, as long as you are consistent. Taking them the other way round:
Same answer.
Is a point on the line?
A point lies on a line exactly when its coordinates satisfy the equation. Substitute and check.
Does lie on ?
Substitute :
The equation gives and the point has , so yes, is on the line.
Does lie on ?
So no. The point is on the line; sits units below it.
Finding the equation of a line
There are two standard situations.
Given the gradient and one point
Put the gradient into , substitute the point to find , then write the equation out.
Find the equation of the line with gradient passing through .
Start with :
The line goes through , so and must fit:
So the equation is
Check: at , . Correct.
Given two points
Find the gradient first, then use either point exactly as above.
Find the equation of the line through and .
So . Using :
The equation is .
Check with the other point, which you have not used yet: at , . Correct — and this check is worth doing every time, because it catches an arithmetic slip in the gradient.
Special cases
Horizontal and vertical lines
A horizontal line has gradient . Its equation is — every point on it has the same -coordinate. The line through and is .
A vertical line has undefined gradient, because the run is zero and you cannot divide by zero. Its equation is . The line through and is .
Parallel lines
Two lines are parallel exactly when their gradients are equal. and are parallel: same steepness, different intercepts, so they never meet.
Find the line parallel to passing through .
Parallel means the same gradient, :
So .
Intercepts
The -intercept is found by setting ; the -intercept by setting .
For :
- gives , so the -intercept is .
- gives , so and the -intercept is .
Those two points are enough to draw the whole line.