KS Maths
Topic 2.1 · AA and AI, SL and HL

Equations of a straight line

A gradient is not an angle

A ramp into a school building in Bangkok is built at 1 in 12, which is the gradient accessibility codes ask for. Almost everyone hears "1 in 12" and pictures twelve degrees. It is 4.8°, less than half that. A gradient and an angle are different numbers, and mixing them up can make a slope sound far steeper, or far gentler, than it really is.

This video lesson is a free sample. The plans open the rest of the lessons in this course, each with a figure to move and questions that check your answer as you type. See the plans.
Words you need (10 key words in this lesson)

The maths words this lesson uses, in plain English. Open this before you start if English is not your first language.

gradient
How steep a line is. Up divided by across.A line going up 2 for each 1 across has gradient 2.
equation
A statement that two things are equal. It has an equals sign.x plus 2 = 5 is an equation.
straight line
A line that does not bend.A ruler draws a straight line.
perpendicular
Meeting at a right angle, 90 degrees.The sides of a square are perpendicular.
angle
The amount of turn between two lines. We measure it in degrees.A right angle is 90 degrees.
intercept
The point where a line or curve crosses an axis.The y-intercept is where x is zero.
write down
Give the answer with little or no working.Write down the median.
decimal place
A digit after the decimal point. We count places from the point.3.14 has two decimal places.
decimal
A number with a decimal point. It shows parts smaller than one.0.5 is a decimal.
axis
A number line that a graph is drawn on. The x-axis goes across and the y-axis goes up.The y-axis is vertical.

Warm-up

Three quick ones from earlier work. Try each on paper before you open the answer.

  1. Find the gradient of the line through (1, 4) and (5, 12).
    Answer

    2. Rise is 12 − 4 = 8 and run is 5 − 1 = 4, so 8 ÷ 4. Subtract the y values and the x values in the same order.

  2. Make y the subject of 4x − 3y = 12.
    Answer

    y = (4/3)x − 4. Move 4x across to get −3y = −4x + 12, then divide every term by −3. The sign change is the slip to watch.

  3. A slope has tan θ = 0.5. Find θ to 1 decimal place.
    Answer

    26.6°. Use the inverse tangent, tan⁻¹(0.5), in degree mode.

Words used in this lesson
gradient
how steep a line is: rise divided by run. For example: a line that goes up 6 while it goes along 3 has gradient 2.
rise, run
the vertical change and the horizontal change between two points. For example: from (0, 0) to (4, 2) the run is 4 and the rise is 2.
intercept
where a line crosses an axis. For example: the line y = 3x + 7 crosses the y-axis at 7.
parallel
never meeting; the same gradient. For example: y = 2x + 1 and y = 2x + 9 are parallel.
perpendicular
meeting at a right angle. For example: the x-axis and the y-axis are perpendicular.
negative reciprocal
turn the fraction upside down and change its sign. For example: the negative reciprocal of 3/4 is −4/3.
rearrange
move terms about so a different letter stands alone. For example: rearrange 2y = 6x + 4 to get y = 3x + 2.
coefficient
the number multiplying a letter. For example: in 5x + 2y = 9 the coefficient of y is 2.
write down
give the answer with little or no working. For example: “write down the gradient” of y = 5x − 1 means read it off.
hence
use the result you have just found. For example: “find the gradient, and hence the perpendicular gradient”.
1 in 20
0.05gradient
2.9°angle
gentleverdict

The run is the same every time. Only the rise changes, and the gradient is the rise divided by it.

What a gradient actually is

Gradient is rise over run, and it is a ratio, not a number of degrees. The two are connected by the tangent:

  1. gradient = tan(angle), so angle = tan⁻¹(gradient)
  2. 1 in 10 means a gradient of 0.1, so the angle is tan⁻¹(0.1) = 5.7°
  3. A 10° slope has gradient tan 10° = 0.18, which is a rise of about 1 in 5.7

So reading "1 in 10" as ten degrees pictures a slope nearly twice as steep as the real one. Both numbers are small and both describe steepness, which is exactly why nobody notices.

In a straight-lines question, "gradient" always means the ratio. Turning it into an angle uses the tangent from right-angled trigonometry, and it is here because the words are used interchangeably outside mathematics and are not interchangeable inside it. When a question says "find the gradient of the road", it wants the ratio.

Three forms, one line

FormLooks likeUse it when
Gradient-intercepty = mx + cYou want to read the gradient and the y-intercept straight off.
Generalax + by + d = 0The question gives it this way, or you want whole numbers with no fractions.
Point-gradienty − y₁ = m(x − x₁)You have one point and a gradient, which is most of the time.

Take 2x + 3y = 12 and get all three out of it.

  1. Rearrange: 3y = −2x + 12, so y = −⅔x + 4
  2. So the gradient is −0.67 to 2 decimal places, and the y-intercept is 4
  3. The x-intercept comes from y = 0: 2x = 12, so x = 6
  4. Through (3, 2) with that gradient: y − 2 = −⅔(x − 3), which tidies back to the same line

The gradient of 2x + 3y = 12 is not 2, and it is not ⅔. Those are the two answers people give. It is −⅔: you have to divide by the coefficient of y and carry the sign. If you ever read a gradient off the general form without rearranging, write the rearrangement out. It is one line and it is the difference between the mark and nothing.

Parallel and perpendicular

For the same line, gradient −⅔:

  1. Parallel: same gradient, −⅔. A parallel line differs only in its intercept.
  2. Perpendicular: the negative reciprocal, 3⁄2, that is 1.5. Check it: −⅔ × 1.5 = −1.

The product being −1 is the test, and it is quicker than remembering which way round to flip. If your two gradients do not multiply to −1, one of them is wrong.

On the GDC: a line through two points

The machine will fit a straight line to two points and hand you the gradient and the intercept, which saves the arithmetic and none of the thinking.

When you may use it. Applications allows a calculator in every paper. Analysis does not allow one in Paper 1, where a gradient from two points is a one-line subtraction anyway.

TI-Nspire CX II

  1. ctrl doc → Add Lists & Spreadsheet, and type the two x values into one column and the two y values into the next
  2. menu → Statistics → Stat Calculations → Linear Regression (mx+b)
  3. Read m for the gradient and b for the y-intercept
  4. For two points it is exact, so r² comes back as 1. That tells you nothing: any two points lie on a line.

Casio fx-CG50

  1. MENU → Statistics, x values into List 1 and y values into List 2
  2. F2 CALC → F3 REG → F1 X for a linear fit
  3. Read a for the gradient and b for the y-intercept, in y = ax + b
  4. Note the letters: the Casio's a is the gradient, where the Nspire calls it m

The mark people lose. Giving the gradient as an angle, or an angle as a gradient. If a question asks for the gradient of an access ramp and you write 4.8°, you have answered a question nobody asked. The other one is the Casio's letters: in y = ax + b the gradient is a, and students who learned y = mx + c reach for b and write the intercept down as the gradient.

A second example, finished by you

The same ideas on a new line. The first steps are written out with a reason each; the last one is yours.

Line L has equation 3x + 5y = 20. A second line passes through (2, 7) and is perpendicular to L. Find where the second line crosses the y-axis.

  1. 5y = −3x + 20, so y = −(3/5)x + 4Rearrange to y = mx + c so the gradient can be read off. Divide every term by 5, and keep the minus sign.
  2. Gradient of L is −3/5, so the perpendicular gradient is 5/3Negative reciprocal: turn it upside down and change the sign. Check: (−3/5) × (5/3) = −1.
  3. y − 7 = (5/3)(x − 2)Point-gradient form: the line passes through (2, 7), so it is y minus 7 and x minus 2.
  4. Put x = 0 to find the y-intercept, and give it as a decimal.Your step. Write it out in full before you type the answer below.

Your answer. Type the y-intercept of the second line, to 2 decimal places.

Check before you go on

One question that tells you whether the main idea has landed. Each wrong option is a different common slip, so the reply tells you which one you made.

Which line is perpendicular to 4x − 2y = 7?

Which line is perpendicular to 4x βˆ’ 2y = 7?

Where it decides something

A drainage pipe has to fall at least 1 in 50 or the water will not flow properly. A builder lays 72 m of pipe on a plan, and the ground drops 1.2 m along its length.

Write the fall as 1 in n, and find n. Is the pipe steep enough?

Your turn

1. A road sign says 1 in 6. What angle is that, in degrees, to 1 decimal place?

2. What is the gradient of 2x + 5y = 15? Give it to 2 decimal places.

3. What is the gradient of a line perpendicular to it? Give it to 1 decimal place.

4. A ramp has to rise 0.75 m and the code requires a gradient no steeper than 1 in 12. What is the shortest horizontal run that satisfies it, in metres, to 2 decimal places?

5. A road sign says 15%, which means a rise of 15 for every 100 along. Someone says that is the same as a 15° slope. What is the best reply?

Question 5. A road sign says 15 percent, a rise of 15 for every 100 along. Someone says that is the same as a 15 degree slope. What is the best reply?
Where the marks go

1 markRearranging to y = mx + c, shown.

1 markThe gradient, with its sign.

1 markThe intercept, or the second gradient.

The sign is a mark on its own more often than anything else in this sub-topic, because a general form with a positive y coefficient and a positive x coefficient always has a negative gradient, and that is not where the eye goes.

Something to think about

What if two lines are perpendicular? Their gradients multiply to −1. Can you explain why by turning the line y = 2x through a right angle about the origin? Where does the point (1, 2) go?

One way to think about it

A right-angle turn sends the point (1, 2) to (−2, 1). Find the gradient of the line through the origin and that new point, then multiply it by 2. Try the same with the point (1, 3), and then with (1, m) for any m.

Climb to an exam question

Four steps, each one a little harder than the last. Every step is a piece of the exam question at the end, so by the top you have already done each part once.

Step 1 of 4: find a gradient from two points. A straight line passes through P(1, 9) and Q(5, 3). Find its gradient.

Step 2 of 4: find a perpendicular gradient. A line has gradient −3/2. What is the gradient of a line that is perpendicular to it?

A line has gradient βˆ’3/2. What is the gradient of a line that is perpendicular to it?

Step 3 of 4: write the equation through a point. A line has gradient 2/3 and passes through the point (6, 1). Write its equation in the form y = mx + c. Type the value of c.

Step 4 of 4: turn a gradient into an angle. The line with gradient 2/3 that passes through (6, 1) is drawn on axes with the same scale on both. Find the angle it makes with the positive x-axis, in degrees to 1 decimal place.

The exam question

Written for this site in the style of the real papers. Do it on paper first, as you would in the exam, and show your working: most of the marks are for method. Give answers to 3 significant figures unless the question says otherwise. Then check each part below.

Paper 2 style · calculator (GDC) allowed · 7 marks · about 8 minutes

On a plan of a park, drawn with the same scale on both axes and with distances in hundreds of metres, a straight path R passes through the points A(−2, 1) and B(6, 3). A second straight path S is perpendicular to R and passes through the point C(3, 9).

(a) Find the gradient of R. [2]

(b) Hence find the equation of S, in the form y = mx + c. [3]

(c) Find the acute angle between path S and the x-axis. Give your answer in degrees, correct to three significant figures. [2]

Check (a). Type the gradient of R.

Check (b). Type the value of c in the equation of S.

Check (c). Type the acute angle in degrees, to 3 significant figures.

Want the rest of this topic?

This is a free sample lesson. The IB Diploma plan opens every other Diploma lesson, AA and AI, SL and HL, and every lesson from Year 7 for the refreshers. It covers every child in the family and includes all seven revision packs.

$99 for 12 months, or $149 for 2 years

One plan opens every Diploma lesson, AA and AI, SL and HL, for the whole family.

That is $8.25 a month for the whole family.

Student without a card? in one tap.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Already paid? Type the email you paid with in the sign-in box, then click the link we send. See every price, including $19 revision packs.

Teaching this lesson?

Every lesson here has a teacher page beside it: worked answers, what each common wrong answer tells you about a student's thinking, and questions at three levels for the board. Every unit has a free sample lesson for students, and a plan opens every other lesson.

See the teacher pages