KS Maths
Year 9 ยท Unit 3 Linear relationships ยท Lesson 4 of 7

Writing the equation of a line

From a point and a gradient to an equation

Know one point and the gradient, or two points, and a line has exactly one equation. Build it with point-slope form and turn it into y = mx + c.

FunctionsNo calculator

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.

equation
A statement that two things are equal. It has an equals sign.x plus 2 = 5 is an equation.
gradient
How steep a line is. Up divided by across.A line going up 2 for each 1 across has gradient 2.
expand
Multiply out brackets.Expand 2(x plus 3) to get 2x plus 6.
intercept
The point where a line or curve crosses an axis.The y-intercept is where x is zero.
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.
straight line
A line that does not bend.A ruler draws a straight line.
multiply
Add the same number many times. Find a product.3 multiplied by 4 is 12.
negative
Less than zero. A negative number has a minus sign.Minus 4 is a negative number.
estimate
Find an answer that is close, but not exact.Estimate 19 times 21 as 20 times 20.
equivalent
Having the same value, but written differently.One half and 2 over 4 are equivalent.

Preview You are reading the start of this lesson. The rest opens with a plan. See plans Already paid? Sign in

Warm-up

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

  1. (Lesson 3) State the gradient and the y-intercept of y = 3x โˆ’ 4.
    AnswerGradient 3; y-intercept โˆ’4, the point (0, โˆ’4).
  2. (Lesson 2) Find the gradient of the line through (1, 3) and (5, 11).
    Answer2: the rise is 8 and the run is 4.
  3. Work out 7 โˆ’ 2 ร— (โˆ’3).
    Answer13: multiply first to get โˆ’6, then 7 โˆ’ (โˆ’6) = 13.
Words used in this lesson
point-slope form
an equation written from a point and a gradient (also called point-gradient form). For example: y โˆ’ 3 = 2(x โˆ’ 1).
substitute
put a number in place of a letter. For example: put x = 2 in y = 4x + c.
gradient-intercept form
the form y = mx + c. For example: y = 2x + 1.
expand
multiply out a bracket. For example: 2(x โˆ’ 1) = 2x โˆ’ 2.
equivalent
different in form but the same line. For example: y โˆ’ 3 = 2(x โˆ’ 1) and y = 2x + 1.
check
test an answer with the other point. For example: put the second point back in.

What will the battery show?

A solar lamp's battery reads 30% after 1 hour of charging and 50% after 3 hours, and it charges at a steady rate. You want a rule that works for any time, not a table of readings. Two readings are enough, because they fix a straight line. The question is how to turn two points into an equation.

Predict first: how many hours until it is full, at 100%? Keep your estimate; the worked example settles it. In the first figure, set a gradient and a point, and compare what you get from the point-slope form with the form you know from Lesson 3.

xyโˆ’6โˆ’4โˆ’2246โˆ’8โˆ’48P(1, 3)
y โˆ’ 3 = 2(x โˆ’ 1)point-slope form
1c, where it crosses the y-axis
y = 2x + 1y = mx + c

Through P(1, 3) with gradient 2: y โˆ’ 3 = 2(x โˆ’ 1). Expanding, y = 2x + 1, so c = 3 โˆ’ 2 ร— 1 = 1.

Show me the steps
  1. m = 2, P(1, 3): y โˆ’ 3 = 2(x โˆ’ 1). Expand: y = 2x โˆ’ 2 + 3 = 2x + 1. So c = 1.
  2. m = โˆ’1, P(2, 4): y โˆ’ 4 = โˆ’(x โˆ’ 2). Expand: y = โˆ’x + 2 + 4 = โˆ’x + 6. So c = 6.
  3. m = 1, P(โˆ’2, โˆ’3): y + 3 = x + 2. Subtracting 3 gives y = x + 2 โˆ’ 3 = x โˆ’ 1. So c = โˆ’1.
  4. m = 0, P(3, โˆ’2): y + 2 = 0, so y = โˆ’2. A horizontal line.
  5. m = 2, P(0, โˆ’1): y + 1 = 2x. The point is on the y-axis, so c = โˆ’1 straight away: y = 2x โˆ’ 1.

A line with gradient m through the point (x1, y1) has the equation y โˆ’ y1 = m(x โˆ’ x1). It says: from the point, the change in y is m times the change in x. This is point-slope form (also called point-gradient form). Expand and tidy it to get y = mx + c, where c = y1 โˆ’ m x1.

From two points: find the gradient first, then put one point in point-slope form or in y = mx + c. Either point gives the same line, and the other point is a check.

Read what Keith says

A line with a given gradient through a point has an equation built from that point. From the point, the change up is the gradient times the change across. That is point gradient form. Tidy it, and you get the usual form. Given two points, find the gradient first. Then use either point. Both give the same line, so the other point is your check. Try it on the solar lamp with its two readings.

A common mistake: losing a sign when the point has a negative x. For P(โˆ’3, 2) on a line of gradient 4, c = 2 โˆ’ 4 ร— (โˆ’3) = 2 + 12 = 14, not 2 โˆ’ 12 = โˆ’10. The point is 3 steps to the left of the y-axis, so the line climbs 12 on the way to x = 0.

The rest of this lesson is in the full course

Still to come in this lesson:

  • Two points, then the equation
  • Worked example: the solar lamp
  • Check before you go on
  • Your turn

In the full lesson every figure moves as you drag it, and every answer you type is checked, with a note on what each wrong answer means.

Years 7 to 11 plan$59Every lesson from Year 7 to Year 11, so the refresher links always open, and every Year 7 to 11 revision pack, for the whole family. $59 for 12 months or $99 for 2 years.
IB Diploma plan$99Every lesson from Year 7 to the IB Diploma, AA and AI, SL and HL, for the whole family. $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.

One payment. Nothing renews. Full refund within 30 days. Prices are in US$; Gumroad shows your local currency at checkout. Pay by card on Gumroad, then come back here and type the email you paid with: we email you a sign-in link. For a refund, reply to your Gumroad receipt or email hello@ksmaths.com.

Try a free sample lesson in every unit, and the whole Skill Tree. See this unit.

Already have a revision pack or the Years 7 to 11 plan? Move up and the unused part of what you paid comes off.

Teaching students who need extra support? Student codes for 5, 10 or 30 students.

Year 9 revision pack, $19BuyPlan $59