Add Maths · 7 Straight-line graphs
7 Straight-line graphs
Before you start
- Plotting points and reading coordinates, including negative ones.
- Solving a pair of linear simultaneous equations by substitution or elimination.
- Pythagoras' theorem for a right-angled triangle.
- Simplifying surds: .
- The laws of logarithms from topic 6: , , and that means while means .
Syllabus objectives covered (4)
- Use the equation of a straight line.
- Know and use the condition for two lines to be parallel or perpendicular.
- Solve problems involving midpoint and length of a line, including finding and using the equation of a perpendicular bisector.
- Transform given relationships to and from straight-line form, including determining unknown constants by calculating the gradient or intercept of the transformed graph.
Part 1 of 8
Gradient from two points
- The gradient of a line measures how steep it is: how much changes for every unit you move to the right. Between two points and it is the change in divided by the change in .
- None of the straight-line formulas in this lesson is on the List of formulas, so you must recall them. Each one comes from a simple picture, which is how you rebuild it if you forget.
- For and : . Take the two points in the same order on the top and the bottom. If you mix the order, the sign flips.
- Read the sign as a direction. A positive gradient slopes up from left to right and a negative one slopes down. A horizontal line has gradient , because never changes.
- A vertical line has no gradient: and you cannot divide by zero. Its equation is , for example . A horizontal line has equation .
Part 2 of 8
The equation of a line
- One point and the gradient fix a line. Take the known point and any other point on the line. The gradient between them is , so . Multiply both sides by :
- Reach for this form first, because it uses exactly what you are given: a point and a gradient. For the line through with gradient , notice that becomes .
- If the question asks for the form with integers, clear the fraction by multiplying every term by : . Collect the and terms on the left.
- Check with the second point : . It works. A point lies on a line exactly when its coordinates satisfy the equation, so this check takes seconds and catches a sign slip.
- In the form , the coefficient of is the gradient and is the -intercept: the line crosses the -axis at . This reading only works once is on its own with coefficient .
- So to find the gradient of , rearrange first: , so . The gradient is , not , and the -intercept is .
Part 3 of 8
Where two lines meet
- The point where two lines cross lies on both of them, so its coordinates satisfy both equations at once. Find it by solving the two equations simultaneously.
- For and , substitute the second into the first, because it already gives on its own. Keep the bracket, since the whole of is multiplied by .
- Then , so the lines meet at . Check in the other equation: . Give both coordinates; finding is only half the point.
- Two lines with the same gradient and different intercepts are parallel and never meet. If you try to solve their equations simultaneously, the and terms cancel and leave a false statement such as : there is no solution.
Part 4 of 8
Parallel and perpendicular lines
- Parallel lines have the same steepness, so the condition is equal gradients.
- Perpendicular lines meet at right angles. The condition is that their gradients multiply to .
- Why: a line with gradient goes across and up. Turn that step through anticlockwise and it goes to the left and up, which is a gradient of . And .
- So the perpendicular gradient is the negative reciprocal: turn the gradient upside down and change its sign. becomes , becomes , and becomes . Both changes are needed.
- One pair the rule cannot describe: a horizontal line and a vertical line are perpendicular, but a vertical line has no gradient to multiply. Recognise this pair by sight, for example and .
- To test two given lines, rearrange each one to find its gradient. gives , gradient . gives , gradient . The product is , so they are perpendicular.
- To find the line through parallel to , use the same gradient with the new point. Multiplying by gives , so . Check: .
- Notice that the left-hand side did not change. Parallel lines written as differ only in the constant , which is a quick way to check your answer.
Part 5 of 8
Midpoint and length of a line segment
- The midpoint is halfway along in both directions, so it is the average of the -coordinates and the average of the -coordinates.
- The length comes from Pythagoras. The change in and the change in are the two shorter sides of a right-angled triangle, and the segment is its hypotenuse.
- For and , the midpoint is . The changes are across and up, so .graph diagram — not drawn yet
Square-scaled axes for −3 ≤ x ≤ 5 and −6 ≤ y ≤ 4. Mark P(−2, 3) and Q(4, −5) with labelled dots and join them with a solid segment. Draw a dashed horizontal leg from P to (4, 3) labelled '6' and a dashed vertical leg from (4, 3) down to Q labelled '8', with a right-angle mark at (4, 3). Label the segment PQ '10'. Mark the midpoint M(1, −1) on PQ with a labelled dot.
The changes in and are the shorter sides of a right-angled triangle, so , and sits halfway in both directions. - Squaring removes the sign, so it does not matter which point you start from. But square the whole difference: . Without the bracket, means .
- When the length is not a whole number, give it as a simplified surd on the non-calculator paper. From to : .
- Run the midpoint idea backwards to find a missing endpoint. If is the midpoint of and is , then is as far past as is before it. In : to is up , so carry on to . In : to is down , so carry on to . So .
- Check with the formula: . In symbols, .
Part 6 of 8
The perpendicular bisector
- The perpendicular bisector of is the line that cuts in half at right angles. Each word fixes one of the two things a line needs: 'bisector' means it passes through the midpoint of , and 'perpendicular' fixes its gradient.
- So the method always runs in the same order: the midpoint of , the gradient of , the negative reciprocal of that gradient, then through the midpoint.
- For and : the midpoint is . The gradient of is , so the perpendicular gradient is .
- The trap is to get one of the two ingredients wrong. Using the gradient of itself gives a line parallel to . Using or as the point gives a line that is perpendicular but misses the middle. The line must use the perpendicular gradient and pass through .
- What makes this line useful: every point on it is the same distance from as from . Take , which is on because . Its distance to is , and its distance to is .graph diagram — not drawn yet
Square-scaled axes for −4 ≤ x ≤ 6 and −2 ≤ y ≤ 8. Mark A(−3, 2) and B(5, 6) with labelled dots and join them with a solid segment. Mark the midpoint M(1, 4) with a labelled dot and a right-angle mark where the line y = −2x + 6 crosses AB at M. Draw y = −2x + 6 across the grid, from about (−1, 8) to (4, −2), labelled with its equation. Mark the point (3, 0) on it and join it to A and to B with dashed segments, each labelled '√40'.
The perpendicular bisector passes through at right angles to , and any point on it, such as , is the same distance from as from . - So a question asking for a point that is equidistant from and and also lies on some other line is asking where the perpendicular bisector meets that other line. Here, the point on the -axis that is equidistant from and is .
- The centre of any circle through and lies on their perpendicular bisector too, because the centre is the same distance (the radius) from every point on the circle.
Part 7 of 8
Straight-line form: Y = mX + c
- Some relationships between and draw a curve, but give a straight line if you plot the right expressions instead of and . The aim is to write the relationship as , where and are expressions in the variables only, and the unknown constants appear only in and .
- Take , with constants and . Match it to : put and . Plotting against gives a straight line with gradient and intercept on the vertical axis.
- 'Plot against ' means goes up the vertical axis and along the horizontal axis. Swapping them turns the gradient upside down.
- Now go the other way, from a line to the relationship. Suppose plotted against is a straight line through and . These are values: and , not and . The gradient is .
- Find the intercept by putting one point into : , so . Do this by substitution rather than by reading a graph. If the horizontal axis does not start at , the place where the line meets the left edge of the graph is not the intercept.
- Replace and by what they stand for. The relationship is , so and in . Check with the other point: . If you are asked for in terms of , undo the cube:
- The same steps handle : plot against , and the gradient is and the intercept is . To make the subject at the end, take of both sides: , so .
Part 8 of 8
Using logarithms: y = Axⁿ and y = Abˣ
- When the unknown constants are multiplied together or sit in a power, no choice of and separates them directly. Taking logs turns multiplication into addition and brings powers down, which produces exactly the shape .
- For , take of both sides. The product law splits into , and the power law brings down. So plot against : the gradient is and the intercept is .
- For , the same two laws give a different shape. Here was the power, so it comes down as itself. Plot against : the gradient is and the intercept is .
- To tell them apart, ask where is. If is the base, as in , plot against . If is the power, as in , plot against .
- Here is why it works on data. The values with fit . To 3 decimal places, is . Each step of in raises by about , so the points lie on a straight line.graph diagram — not drawn yet
Axes with x from 0 to 4.5 horizontally and lg y from 0 to 2.4 vertically, the vertical axis labelled 'lg y'. Plot the points (1, 0.778), (2, 1.255), (3, 1.732) and (4, 2.210) as crosses and draw a ruled straight line through them, extended back to meet the vertical axis at (0, 0.301), which is labelled. Draw a gradient triangle between x = 1 and x = 3 with the horizontal side labelled '2' and the vertical side labelled '0.954'.
Plotting against for gives a straight line with intercept and gradient . - Read the constants off the line, then undo the logs. The gradient is , so to 3 significant figures. The intercept is , so . Those match .
- The trap is to stop one step early. The intercept is , not , and for the gradient is , not . Only in comes straight off the graph, because the power law has already brought it down in front of as a plain multiplier.
- works the same way, with in place of when you undo it: an intercept of on a graph of means , so . Use whichever log the question names.
- On the calculator paper, keep full accuracy until the end. If you round and and then use the rounded values to find or , the answer can drift in the third significant figure. Where you can, substitute into the straight-line equation itself, such as with the unrounded gradient and intercept.
Worked examples
Example 1. The points and lie on the line . The line passes through and is perpendicular to . (a) Find the equation of in the form . (b) Find the coordinates of the point where and meet. (c) Hence find the exact shortest distance from to .
Show the working
- Gradient of , from and , with the points in the same order top and bottom.
- is perpendicular, so its gradient is the negative reciprocal, . Check: .
- (a) Use with : , so . Collect the terms.
- (b) To find where the lines meet you need the equation of as well. Through with gradient : . Multiply by : .
- Solve simultaneously. From , . Substitute: , so and . Then . Check on : .
- (c) The shortest distance from a point to a line is along the perpendicular, which is exactly . Use the length formula with and .
Answer: (a) (b) (c)
Example 2. The points and lie on a circle whose centre lies on the line . Find the equation of the perpendicular bisector of , the coordinates of , and the exact radius of the circle.
Show the working
- Midpoint of : average the coordinates.
- Gradient of : . The perpendicular gradient is its negative reciprocal, .
- Line through the midpoint with gradient : . Multiply by : .
- The centre is the same distance from as from , so it lies on the perpendicular bisector. It is also on , so replace by : , which gives . So .
- The radius is the distance from to either point.
- Check with : . The two distances agree, as they must.
Answer: Perpendicular bisector (or ); ; radius .
Example 3. The variables and are related by , where and are constants. When is plotted against , the result is a straight line passing through the points and . Find the value of and the exact value of .
Show the working
- First turn the relationship into straight-line form, so you know what the gradient and intercept stand for. Take of both sides and use the product and power laws.
- Match with : , , the gradient is and the intercept is . The points and are values.
- Gradient from the two points.
- Intercept: substitute into , so and .
- Undo the log: means . Leave it exact; the question asks for it.
- Check with the other point. means , and then , so .
Answer: and , so .
Example 4. The variables and , where , are such that when is plotted against a straight line is obtained. The line passes through and . (a) Find in terms of . (b) Find the exact value of when .
Show the working
- The axes are and , so the line is . The two points are values.
- Gradient from the two points.
- Intercept: substitute into , so and .
- (a) Replace and by and . Check with : .
- (b) Put : . Since , take the positive root and simplify the surd.
Answer: (a) (b)
Where people go wrong
Mistake: Taking the perpendicular gradient to as or as .
Instead: It is : turn the fraction upside down and change the sign.
The condition is . and ; only .
Mistake: Reading the gradient of as .
Instead: Rearrange to . The gradient is .
The coefficient of is the gradient only when is the subject with coefficient .
Mistake: Drawing the perpendicular bisector of through , or giving it the gradient of .
Instead: Use the midpoint of as the point and the negative reciprocal of the gradient of as the gradient.
'Bisector' means it cuts in half, so it passes through the middle. 'Perpendicular' means the gradients multiply to . Each word fixes one of the two things a line needs.
Mistake: Giving the intercept of a graph of against as the value of .
Instead: The intercept is , so , or for a graph of .
The vertical axis shows , so every value read from it is a log. The same is true of the gradient of against , which is , not .
Mistake: For , plotting against .
Instead: Plot against .
. The comes down from the power as itself, not as . Plotting against is right for , where is the base.
Check yourself
- Find the gradient of the line through and , and its equation in the form .
Answer
. Then , so . Check: . - Find the gradient and the -intercept of the line .
Answer
Rearrange: , so . The gradient is and the -intercept is , at . - Find the equation of the line through that is perpendicular to . Give your answer in the form .
Answer
Perpendicular gradient . ; multiply by : , so . Check: . - Determine whether the lines and are parallel, perpendicular or neither.
Answer
gives , gradient . gives , gradient . The product is , so they are perpendicular. - For and , find (a) the length (b) the equation of the perpendicular bisector of in the form .
Answer
(a) . (b) Midpoint . Gradient of , so the perpendicular gradient is . gives , so . - is the midpoint of , and is . Find the coordinates of and the exact length of .
Answer
. . - The variables and are related by . (a) State what you would plot to get a straight line, and what its gradient and intercept stand for. (b) That straight line has gradient and intercept . Find and to 3 significant figures.
Answer
(a) Plot against , since ; the gradient is and the intercept is . (b) and . - When is plotted against , a straight line is obtained through and . Find in terms of , and hence write in terms of .
Answer
Gradient ; intercept from , so . So , and taking : .
Exam questions
Try each part first. Open the mark scheme after you have written your answer.
Question 1. The points and have coordinates and .
(a) Find the equation of the perpendicular bisector of , giving your answer in the form . 4 marks No calculator
Mark scheme
- B1 midpoint
- B1 gradient of soi
- M1 line through their midpoint with gradient their gradient of
- A1 cao
(b) The perpendicular bisector meets the -axis at the point . Show that the area of triangle is . 3 marks No calculator
Mark scheme
- B1
- M1 and the distance from to the midpoint oe, or another complete method such as an enclosing rectangle or
- A1 reached with no errors from a complete method, e.g. with the distance from to the midpoint as the perpendicular height, or , or
Question 2. The points and have coordinates and . The line through that is perpendicular to meets the line at the point .
(a) Find the coordinates of . 3 marks No calculator
Mark scheme
- M1 perpendicular gradient from gradient of
- M1 equation of with their perpendicular gradient through , e.g. , and substituted
- A1
(b) is a rectangle. Find the coordinates of . 2 marks No calculator
Mark scheme
- M1 complete method, e.g. midpoint of equated to midpoint of , or the step from to applied to
- A1
Question 3. The variables and are related by , where and are constants. When is plotted against , a straight line is obtained that passes through the points and .
(a) Show that . 2 marks
Mark scheme
- M1 takes of both sides and uses the product law:
- A1 uses the power law, , to reach the given result with no errors
(b) Find the value of and the value of . 4 marks
Mark scheme
- M1 gradient and equated to
- M1 intercept found from a point, e.g. , and equated to
- A1 awrt
- A1 awrt
(c) Calculate the value of when . 2 marks
Mark scheme
- M1 substituted into their , or into with their unrounded values
- A1 awrt
How this is examined
- Turning or into a straight line with logs, then finding the constants from that line: a multi-part question: Show that the log form is linear, Find the constants from two given points on the line (or from a line you Plot from a table), then use the relationship to find or Logs taken of both sides with the product and power laws written out, e.g. ; the gradient worked out as from the transformed values; the intercept found by substituting a point; then each log undone, and , to 3 significant figures on the calculator paper.
- Finding the equation of a perpendicular bisector: a Find worth about four marks, followed by parts that use the line, such as where it meets an axis or another line The midpoint correct, the gradient of correct, its negative reciprocal used with the midpoint in , and the equation given in the form the question asks for.
- A line through a given point, parallel or perpendicular to a given line, and where it meets another line: a Find for an equation followed by a Find for a point of intersection, sometimes inside a triangle, rectangle or other shape The given line rearranged to read its gradient, the parallel gradient or perpendicular gradient stated, with the given point, then the simultaneous equations solved to give both coordinates.
- Going back from a straight line of transformed variables to the original relationship: a Find that gives a straight line such as against through two points, and asks for in terms of or for at a given The gradient and intercept found from the transformed values, not from and ; the relationship written with numbers in, e.g. ; then rearranged for if the question asks.
- Exact lengths, and areas built from them: a Find or Show that for a length, or for the area of a triangle once its perpendicular height is known, on the non-calculator paper Pythagoras set up with both differences squared, the surd simplified (e.g. ), and for a Show that, every step to the given value written down.
Words to know
- Gradient
- The change in divided by the change in between two points on a line: .
- Intercept
- The value where a line crosses the vertical axis; for it is , at .
- Negative reciprocal
- The gradient of a perpendicular line: , made by turning upside down and changing its sign.
- Midpoint
- The point halfway between two points: .
- Perpendicular bisector
- The line through the midpoint of at right angles to . Every point on it is the same distance from as from .
- Equidistant
- The same distance from two or more points.
- Straight-line form
- A relationship rewritten as , where and are expressions in the variables, so that plotting against gives a straight line.
- lg
- Shorthand for .