Educerie · IB Diploma · Mathematics: analysis and approaches
IB Mathematics AA 2.1 · SL and HL
Straight lines
A straight line is the simplest relationship there is, so how do you pin one down, write it in whichever form the question wants, and tell when two lines are parallel or meet at a right angle?
What you will learn
- Understand gradient as rise over run, and what its sign and size say about a line.
- Know the gradient-intercept, point-gradient and general forms of a line and when to use each.
- Know that parallel lines share a gradient and perpendicular gradients multiply to −1.
- Understand the gradient of a road or ramp, and of a linear model, as a rate of change.
You must be able to
- Find the equation of a line through two points, or through a point with a given gradient.
- Find the equation of a line parallel or perpendicular to a given line through a given point.
- Write a line in the form ax + by + d = 0 with integer coefficients, and read its gradient.
- Calculate the intercepts of a line and sketch it.
- Solve two linear equations to find where two lines meet.
- Calculate the gradient of an incline as a decimal, a percentage or an angle, and interpret a gradient in context.
In the exam. Paper 1 Section A, as a short 4 to 6 mark question: find a gradient, write an equation in a given form, find where two lines meet. Paper 2, in a context such as a slope, a ramp or a linear cost model. And inside longer questions: tangents and normals in calculus are built with the point-gradient form and the perpendicular rule.
1Gradient: rise over run
The gradient of a line measures how steep it is and which way it slopes.
Take any two points on it, and .
- The run is the horizontal change .
- The rise is the vertical change .
The gradient is
· rise over run, from the formula booklet.
Figure 1 draws it for and .
Two things make this reliable.
- Subtract in the same order. Use B minus A on top and bottom, or A minus B on both. Swapping the order in one place only gives , which is wrong.
- Any two points will do. A straight line has the same gradient everywhere. That is what makes it straight.
Direction and special lines
- Reading from left to right, a line with rises and a line with falls (Figure 2).
- A horizontal line has . The rise is zero whatever the run.
- A vertical line has no gradient (the gradient is undefined). The run is zero and you cannot divide by zero.
- Example: points and give rise , so . The line is .
- Example: points and give run , so the gradient is undefined. The line is .
- The constant coordinate gives the equation. Vertical lines are and horizontal lines are . Do not swap them.
Size. A gradient of 5 is steep, is gentle and falling; 3 and are equally steep.
From a picture
- You are often given a graph. Pick two points the line passes through exactly, such as grid corners or marked intercepts. Use them in the formula.
- Example: a line through and has gradient . It falls, as the picture would show.
- Check your answer against the sign you can see.
2Writing the equation: three forms of one line
The three forms are equivalent: each describes exactly the same set of points, but each is good for something different.
| Form | Written | What it shows at a glance | Use it when |
|---|---|---|---|
| Gradient-intercept | gradient , -intercept | you need to read off the gradient or sketch the line | |
| Point-gradient | gradient and one point on the line | you know a point and a gradient: the fastest way to write the equation | |
| General | nothing directly, but it has no fractions | the question asks for it, usually with integers |
Gradient-intercept form
- When and are given, just write them in.
- Example: a line with gradient cutting the -axis at is . Going the other way, has gradient and -intercept .
- Solve for before you read off . In the gradient is 3, not 6.
Point-gradient form
- Substitute the gradient and a point. There is no to hunt for.
- Example: one line through all three forms passes through with gradient .
Check with the known point: . It lies on the line, so the equation is right. It catches most sign slips.
Figure 3 draws the line with all three forms beside it.
General form with integers
- When a question says , clear every fraction, then move all terms to one side.
- Example: from , multiply by 6 to get . So .
- Any non-zero integer multiple is the same line, so is equally right.
Going back from general form
- Rearrange for . From you get , so the gradient is .
- Example: take . Then , so . The gradient is and the -intercept is .
- Show the rearrangement rather than quoting . It catches sign slips.
A line through two points. Find the gradient first, then use either point in the point-gradient form. For and :
Starting from V gives the same line: . Either point works, so check with the other.
Is a point on the line?
- A point lies on a line exactly when its coordinates make the equation true.
- Example: test on . The left side is , not 0. So the point is not on the line.
- The same substitution finds an unknown constant. If is on , then . So and .
Special lines
- Only the general form can write a vertical line: has .
- A line through the origin has no constant term: , or .
3Intercepts and sketching
An intercept is where a line crosses an axis, and it is a point, so write it as coordinates.
- The -intercept is where . Put into the equation.
- The -intercept is where . Put into the equation.
For (Figure 3):
- With , so . The -intercept is .
- With , so . The -intercept is .
For , the -intercept has , so it is . The -intercept has , so it is .
In the -intercept can be read straight off as . No other form hands you an intercept for free.
A horizontal line has -intercept and no -intercept, since it never reaches the -axis. A vertical line has -intercept and no -intercept.
Sketching a line. Two points fix a line, so find two easy ones and join them. There are two routes.
- From the gradient and intercept. Rearrange to and plot . Then move 1 to the right and up (down if is negative) to find a second point.
- Example: for , plot , then go right 3 and down 1 to reach .
- When is a fraction, run by the denominator and rise by the numerator to land on grid points.
- From the intercepts. Plot both axis crossings and join them. Here they are and for .
- This needs no rearranging. It fails when the line passes through the origin, because the two intercepts are then the same point.
- Example: for , plot the origin and then any second point, such as .
Use a ruler, label the axes, and write the intercept coordinates on the sketch. A sketch shows key features, not exact scale.
4Parallel and perpendicular lines
Two lines with gradients and are:
Parallel when . Perpendicular when , so , the negative reciprocal.
Parallel lines rise at the same rate, so with different intercepts they never meet.
The perpendicular rule needs a picture, and Figure 4 gives it.
Take a triangle with run 4 and rise 3, so . Turn the whole triangle a quarter turn about the origin.
- The run of 4 becomes a rise of 4.
- The rise of 3 becomes a run of , pointing left.
The new gradient is . The numbers have swapped places (the reciprocal) and one sign has flipped (the negative). Multiply them: .
That works for any gradient. Turning through always swaps run and rise and flips one sign.
The rule has one exception you must know. A horizontal line () and a vertical line (no gradient) are perpendicular. But you cannot multiply an undefined gradient by anything. Treat that pair by eye: and meet at a right angle.
Showing a right angle. "Show that triangle PQR has a right angle at Q" is a perpendicular-gradient question. With , , :
End with a sentence: the product alone is not the conclusion.
Both rules on one line. Start from L: , whose gradient is (section 2). Take the point . Figure 5 draws the results.
Parallel to L through
- Same gradient, .
- A quick route in general form: a parallel line has the same and . So it is for some .
- Substitute the point: , so and . The line is .
Perpendicular to L through . Gradient .
In general form, the perpendicular line swapped and and changed one sign: became . That is the negative reciprocal in disguise, and it makes a quick check.
5The perpendicular bisector
Perpendicular bisector of a segment AB = the line through its midpoint at right angles to it.
Every point on it is the same distance from A as from B. It turns up in questions about the point equidistant from two towns or two masts.
There are three steps:
- Find the midpoint.
- Find the gradient of AB.
- Take the negative reciprocal.
Figure 6 draws it for and .
6Where two lines meet
Two lines that are not parallel meet at exactly one point. That point satisfies both equations at once. So solve the two equations simultaneously.
Example: to find where and meet, make the subject of the second and substitute into the first.
- On Paper 1 you do this by hand. The numbers will be kind.
- On Paper 2 you may use your GDC. Use the simultaneous solver, or graph both lines and use the intersect tool, as 2.4 does for curves.
- Example: for and , rearrange the second to if needed. Graph both. The intersection reads to 3 s.f. Give the answer as a point.
- If two lines have the same gradient and different intercepts, they never meet. The equations have no solution.
- Example: and both have gradient 2, but the second has -intercept .
- If they have the same gradient and the same intercept, they are the same line. Every point is a solution.
- Example: and are one line written twice.
7Gradient in the real world: slopes, rates and models
The guide asks you to calculate gradients of inclines. A road, a ramp or a bridge has a gradient in exactly the sense above. Take care with one point: the run is the horizontal distance, not the distance along the slope.
Example: a mountain road climbs 84 m while covering a horizontal distance of 1.2 km. Put both in metres first.
Figure 7 shows that triangle. A road sign reading 7% means exactly this: 7 m up for every 100 m across.
- Angle of inclination = the angle the slope makes with the horizontal.
- The gradient is its tangent, because . So and .
When the length along the slope is given
- A footbridge ramp is 26 m long and climbs 3 m. The 26 m is the hypotenuse.
- Find the horizontal run first by Pythagoras: . Then , which is 11.6%. And (use the unrounded gradient).
Gradient as a rate of change
- In a model the gradient is a rate: the output change per one-unit change in the input.
- Example: a hot-air balloon descends steadily. Its height in metres after minutes is .
- The gradient says the height falls 45 m for every extra minute.
- The intercept 900 is the height when , the starting height.
- The balloon lands when : , so minutes.
- When a question says interpret the gradient, the answer has one shape. For each extra one unit of , increases (or decreases) by units. Name the real units. Interpreting the intercept is the same idea: "the value of when ".
Is a table linear?
- Data are linear when the gradient between every pair of neighbouring rows is the same.
- Example: take with . The -steps are unequal, so divide each change in by its change in : , , .
- The gradient is constant, so the data are linear. With the point the model is . One differing gradient and the data are not linear.
Practice questions
49 questions on this note, from easy to hard. Each one you get right lights a star of this topic's constellation.