Maths · 4 Coordinate geometry
4.4 Equations of linear graphs
Before you start
- Plotting and reading coordinates in all four quadrants (4.1).
- Finding the gradient of a line from a graph and from the coordinates of two points (4.2).
- Changing the subject of a formula, for example making the subject (2.5).
- Working with negative numbers and fractions without a calculator.
Syllabus objectives covered (1)
- Interpret and obtain the equation of a straight-line graph.
Part 1 of 8
What the equation of a line says
- The equation of a line is a rule that connects and . Every point on the line obeys the rule, and no point off the line does.
- Take . The point is on the line, because . The point is not on it, because the rule gives when , not .
- So to test whether a point lies on a line, substitute its and its into the equation. If the two sides are equal, the point is on the line. If they are not, it is not.
- The test works whatever form the equation is in. For , the point gives , so is on that line.
- In the equation of a straight line, and appear only to the power and are never multiplied together. An , a or an term means the graph is a curve, not a line.
Part 2 of 8
The form y = mx + c
- When is on its own on one side, the equation is in the form , and the two numbers and describe the whole line.
- , the number that multiplies , is the gradient. Each time goes up by , goes up by .
- , the number on its own, is the **-intercept**: the line crosses the -axis at . The reason is that every point on the -axis has , and putting into leaves .
- For , the gradient is and the line crosses the -axis at .graph diagram — not drawn yet
Axes from x = -3 to 3 and y = -5 to 7, one unit per square, with the line y = 2x + 1 drawn; the point (0, 1) marked where the line crosses the y-axis, and a gradient triangle from (1, 3) across to (2, 3) and up to (2, 5), labelled 'run 1' and 'rise 2'.
The intercept is where the line meets the y-axis. The gradient is how far the line rises for each 1 across. - The order of the terms does not matter. is the same equation as , so its gradient is , not . The gradient is the number that multiplies , with its sign, wherever it sits.
- If there is no number on its own, then . The line passes through the origin .
- A positive gradient means the line goes up from left to right. A negative gradient means it goes down. Compare the sign with the graph or a quick sketch before you write the answer.
- Fractions work in the same way. is , so the gradient is and the -intercept is .
Part 3 of 8
Horizontal and vertical lines
- A horizontal line has the same -coordinate at every point. The line through , and has the equation , whatever the value of .
- This fits with and . The gradient of a horizontal line is zero.
- A vertical line has the same -coordinate at every point. The line through and has the equation .
- A vertical line cannot be written as . Between any two of its points the change in is zero, and you cannot divide by zero, so its gradient is not defined. That is why is a form of its own.
- The trap is to mix the two up. Ask which coordinate stays fixed along the line: that letter goes on the left. On the vertical line through the -coordinate is always , so the equation is , not .graph diagram — not drawn yet
Axes from -5 to 5 on both, one unit per square, with the horizontal line y = 3 and the vertical line x = -2 drawn and each labelled with its equation; the two lines meet at (-2, 3), which is marked.
On y = 3 every point has y-coordinate 3. On x = -2 every point has x-coordinate -2. - The axes are lines too. The -axis is , because every point on it has -coordinate . The -axis is .
Part 4 of 8
Reading the gradient and intercept from ax + by = c
- Lines are also written in the form , for example . In this form the gradient is not on show. The is not the gradient.
- To find the gradient, make the subject. That turns the equation into the form , where you can read and .
- First subtract from both sides, so that only the term is left on the left.
- Then divide by , because is what multiplies . Divide every term on the right, not only the first one.
- So the gradient is and the line crosses the -axis at .
- The points where the line crosses the axes come straight from the original form. Put : , so . Put : , so . The line crosses the axes at and .
- Those two points give you a check. From to , falls by while rises by , a gradient of . The two methods agree.
- Take care when the number in front of is negative, as in . Dividing by changes the sign of every term. Worked example 1 shows this case.
Part 5 of 8
Obtaining the equation from a graph
- To write the equation of a line that is drawn for you, you need two things: its gradient and its -intercept .
- Choose two points where the line goes exactly through a grid crossing, as far apart as the graph allows. A point read between grid lines is an estimate, and it makes the gradient inaccurate.
- Find the gradient as the change in divided by the change in , using the numbers on the axes, not the number of squares. If the two axes have different scales, counting squares gives the wrong gradient.
- For example, suppose the line passes through and , and on the -axis one square stands for units. The rise is units, which is only squares. The gradient is , not .graph diagram — not drawn yet
Axes with x from 0 to 5 at 1 unit per square and y from 0 to 40 at 5 units per square, with the line y = 5x + 10 drawn; the points (0, 10) and (4, 30) marked, and a gradient triangle between them labelled 'run 4' and 'rise 20'.
The rise covers 4 squares but 20 units. Use the numbers on the axes. - Now read where the line crosses the -axis, which here is . The equation is .
- If the graph does not show , you cannot read from it. Find first, then substitute one point into and solve for , as in the next section.
- Before you write the answer, check the sign. If the line goes down from left to right, your gradient must be negative.
Part 6 of 8
Obtaining the equation from a gradient and a point, or from two points
- If you know the gradient and one point on the line, substitute both into . Then is the only unknown left, so you can solve for it.
- For example, the line with gradient through : put , and into .
- So the line is .
- If you know two points, first find the gradient from them, then do the same as above with either point. Both points give the same value of .
- When you find the gradient, subtract in the same order on the top and the bottom. If you use the second point first on top, use it first on the bottom too. Mixing the order changes the sign of the gradient.
- Finish by substituting the other point into your equation. If the two sides are not equal, there is a slip in or in , and you can find it before you move on.
Part 7 of 8
Giving the equation in a fully simplified or requested form
- The syllabus expects the equation of a line in a fully simplified form. is a correct equation of its line, but it is not simplified. Divide every term by to get .
- In the form , cancel any factor that all three numbers share. becomes when you divide every term by .
- Write a fraction in a gradient in its lowest terms. A gradient of is written .
- Keep exact values. A gradient of stays a fraction: is a rounded value, so an equation that uses it describes a slightly different line.
- Do not mix fractions and decimals in one answer. Write or , not .
- When the question asks for a particular form, such as where , and are integers, give that form. From , multiply every term by to clear the fraction. Then collect the and terms on one side.
- If you multiply the whole equation by , you get . That is the same line, because every point that fits one equation fits the other.
Part 8 of 8
Interpreting the equation in a context
- When a straight-line graph is a model of something real, the letters change, but and keep their meaning.
- The gradient is a rate: how much the vertical quantity changes for each one unit of the horizontal quantity. Its units are vertical units per horizontal unit.
- The intercept is the starting value: the value of the vertical quantity when the horizontal quantity is zero.
- For example, the height cm of a candle hours after it is lit is given by . The gradient means the height goes down by cm each hour. The intercept means the candle was cm tall when it was lit.
- To use the model, substitute or solve. The candle has burned down completely when .
- So the candle lasts hours. Here the point where the line meets the horizontal axis has a meaning too: it is the moment the quantity reaches zero.
- In an Explain answer, say what each number means in the words of the context, with its units and a word such as 'per' or 'each'. 'The gradient is ' only repeats the equation. 'The height goes down by cm each hour' interprets it.
Worked examples
Example 1. Find the gradient and the -intercept of the line with equation .
Show the working
- The gradient is not on show in this form, so make the subject. First subtract from both sides.
- Divide every term by , the number that multiplies . Dividing by a negative number changes the sign of each term.
- Now read the values: the number that multiplies is the gradient, and the number on its own is the -intercept.
- Check with a point. In your equation, gives . In the original equation, . Both agree, so is on the line and the rearrangement is correct.
Answer: Gradient ; -intercept , so the line crosses the -axis at .
Example 2. Find the equation of the line through the points and . Give your answer in the form .
Show the working
- Find the gradient first. Subtract in the same order on the top and the bottom: second point minus first point in both.
- The gradient is negative. That fits the points: as goes up from to , goes down from to .
- Substitute the gradient and one of the points, here , into , and solve for .
- Check with the other point, : . It matches.
Answer:
Example 3. A straight line is drawn on a grid with one unit per square on both axes. It passes through the grid points and . Find the equation of the line. Give your answer in the form , where , and are integers.
Show the working
- Use two points where the line goes exactly through a grid crossing. Here they are and .graph diagram — not drawn yet
Axes from x = -1 to 7 and y = -3 to 3, one unit per square, with a straight line drawn through (0, -2) and (6, 2), both points marked with crosses on grid intersections; the line also passes through (3, 0).
Two points on exact grid crossings give the gradient. The y-axis crossing gives c. - Find the gradient from the two points.
- The line crosses the -axis at , so .
- This is a correct equation, but it is not in the form the question asks for. Multiply every term by to clear the fraction.
- Collect and on one side: subtract from both sides and add to both sides.
- Check with : . It matches. The numbers , and have no common factor, so the equation is fully simplified.
Answer:
Example 4. The fare dollars for a taxi journey is a linear function of the distance km. A km journey costs and a km journey costs . Find in terms of , and explain what each number in your equation means.
Show the working
- Write each journey as a point : and . The horizontal quantity is distance and the vertical quantity is fare.
- Find the gradient from the two points.
- Substitute the gradient and the point into and solve for .
- So . Check with the other journey: . It matches.
- Interpret the gradient as a rate, with units: the fare goes up by $1.40 for each extra kilometre.
- Interpret the intercept as the fare when : a fixed charge of $3.60 that is paid before any distance is travelled.
Answer: . The fare goes up by $1.40 per km, and $3.60 is a fixed charge paid on every journey.
Where people go wrong
Mistake: Reading the gradient of as .
Instead: Make the subject first: , so the gradient is .
The number that multiplies is the gradient only when is on its own on one side.
Mistake: Dividing only some of the terms: from , writing .
Instead: Divide every term by : .
You must divide both whole sides by the same number, and the right-hand side is all of .
Mistake: Finding a gradient by counting squares when the two axes have different scales.
Instead: Use the values on the axes: the change in divided by the change in .
One square can stand for units on one axis and unit on the other, so the number of squares is not the change in value.
Mistake: Writing the vertical line through as .
Instead: Write .
On a vertical line the -coordinate is fixed. is the horizontal line through all the points with -coordinate .
Mistake: Taking the first number as the gradient in .
Instead: The gradient is and the -intercept is .
The gradient is the number that multiplies , with its sign, wherever that term is written.
Check yourself
- State the gradient and the -intercept of the line .
Answer
Gradient ; -intercept , the point . - Does the point lie on the line ? Show how you know.
Answer
Yes. , which is the -coordinate of the point. - Write down the equations of the horizontal line and of the vertical line through .
Answer
Horizontal: . Vertical: . - Find the gradient and the -intercept of the line .
Answer
, so . Gradient ; -intercept . - Find the equation of the line with gradient that passes through .
Answer
gives , so . - Find the equation of the line through and .
Answer
Gradient . Then gives , so . - Write in the form , where , and are integers.
Answer
Multiply every term by : , so . ( is the same line.) - The cost dollars of printing posters is . State what and mean in this context.
Answer
: each extra poster costs $0.80. : a fixed charge of $15 that is paid however many posters are printed.
Exam questions
Try each part first. Open the mark scheme after you have written your answer.
Question 1. The line has equation .
(a) Find the gradient of . 2 marks No calculator
Mark scheme
- M1 or seen, or a gradient calculated from two correct points on , e.g.
- A1 or oe
(b) Write down the coordinates of the point where crosses the -axis. 1 mark No calculator
Mark scheme
- B1
(c) Find the coordinates of the point where crosses the -axis. 1 mark No calculator
Mark scheme
- B1
(d) Show that the point lies on . 2 marks No calculator
Mark scheme
- M1 substitutes and :
- A1 , equal to the right-hand side, with a statement that the point lies on
Question 2. The points and lie on a straight line.
(a) Find the equation of the line . Give your answer in the form . 3 marks No calculator
Mark scheme
- M1 gradient oe
- M1 substitutes or into , or uses oe
- A1 or
(b) Write the equation of the line in the form , where , and are integers. 2 marks No calculator
Mark scheme
- M1 , or another correct equation with the fraction cleared, FT their (a)
- A1 oe
(c) Write down the equation of the vertical line through . 1 mark No calculator
Mark scheme
- B1
Question 3. A car's fuel tank is filled and the car is then driven. The volume of fuel in the tank, litres, after the car has travelled km is shown by a straight-line graph. The graph passes through the points and .
(a) Find an equation for in terms of . 3 marks
Mark scheme
- M1 gradient oe
- B1 intercept seen or used
- A1 oe
(b) Explain what each of the two numbers in your equation tells you about the car's fuel. 2 marks
Mark scheme
- B1 : there were litres of fuel in the tank at the start, when
- B1 : the volume of fuel goes down by litres for each km travelled oe
(c) Calculate the distance the car has travelled when litres of fuel remain in the tank. 2 marks
Mark scheme
- M1 oe, FT their equation
- A1 (km)
How this is examined
- Finding the equation of the line through two given points: A 3-mark Find: two points are given by their coordinates, and you must give the equation of the line, possibly in a stated form such as M1 for the gradient as the change in over the change in , with both subtractions in the same order. M1 for substituting your gradient and one of the points into to find . A1 for the complete equation, fully simplified, for example .
- Writing the equation of a line that is drawn on a grid: A 2- or 3-mark Find or Write down, with a straight line drawn on a grid, where the two axes may have different scales A gradient from two points read exactly at grid crossings, calculated with the values on the axes (not the number of squares), with a sign that matches the direction of the line. The -intercept read where the line crosses the -axis. Then the equation with both values in it.
- Reading the gradient and the -intercept from an equation that is not in the form : A 2-mark Find or Write down: an equation such as is given, and you must give its gradient, its -intercept, or both The method is the rearrangement to , with every term divided by the number that multiplies . The gradient is then the number that multiplies , with its sign: for it is . The intercept is the number on its own: , or the point .
- Explaining what the gradient and the intercept of a straight-line model mean: A 1- or 2-mark Explain or State after a context graph or formula, such as a cost against a distance or a volume against a time One statement for each number, in the words of the context and with units. For the gradient: 'the fare goes up by $1.40 for each kilometre'. For the intercept: 'a fixed charge of $3.60'. Writing '' only repeats the equation and does not interpret it.
- Giving an equation in a requested form, fully simplified: A 1- or 2-mark Write: put an equation that is given or that you found in the form , where , and are integers Fractions cleared by multiplying every term by the same number, then the and terms collected on one side: becomes . No factor shared by all of , and is left.
- Equations of horizontal and vertical lines: A 1-mark Write down: the equation of a horizontal or vertical line through a given point, or of a line drawn parallel to an axis for a vertical line and for a horizontal line, where is the coordinate that stays fixed. A number on its own, such as '', is not an equation.
Words to know
- Gradient
- How steep a line is: the change in divided by the change in between any two points on it. It is in .
- -intercept
- The -coordinate of the point where a line crosses the -axis, found by putting . It is in .
- -intercept
- The -coordinate of the point where a line crosses the -axis, found by putting .
- Coefficient
- The number that multiplies a letter, for example in .
- Linear equation
- An equation whose graph is a straight line: and appear only to the power and are not multiplied together.
- Fully simplified
- Written with no factor left that every term shares, fractions in their lowest terms and like terms collected, for example rather than .