A line you can draw without a table
In the first lecture of this topic, drawing the taxi line took a table of values. You chose three values of , worked out three values of , and plotted three points. In the last lecture, finding how steep that line is took a triangle and a division.
Now look at the answers again. The gradient was 0.5. The line crossed the -axis at . Both numbers were already written in the equation , before any table or triangle.
Is that luck? Try the other line from the last lecture, . Its gradient was 2, and it crosses the -axis at . The same thing happens again.
It is not luck. The equation of a straight line carries a picture of the line inside it, if you know where to look. This lecture shows where to look, and why it works. Then you can draw a line in seconds, and you can go the other way too: look at a line and write down its equation.
Why the number in front of is the gradient
Write the equation with letters instead of numbers: . Here and stand for two fixed numbers, such as 0.5 and 3. Only and change as you move along the line.
Pick any point on the line. Its height is . Now move 1 to the right, so becomes . The new height is
Compare it with the old height, . The new height is exactly more. This is true wherever you start, because was any value. So every 1 across, the line goes up.
That is the definition of gradient from the last lecture: the distance up for each 1 across. So the number in front of is the gradient. It has to be.
Check it with numbers on . At , . At , . One step across, two steps up, and 2 is the number in front of .
What about ? It is added to every height in the same way. Adding the same amount to every point lifts the whole line up, or lowers it, but it does not change any step. So has no effect on the steepness.
Why the number on its own tells you where the line crosses
The -axis is the line where . Every point on it has an -coordinate of 0, as the first lecture of this topic showed. So to find where a line crosses the -axis, put :
The part disappears, because anything times 0 is 0. Only is left. So the line crosses the -axis at the point . This point is called the -intercept. Many books also use the word for the number itself, the height where the line crosses. Both uses are common, and the meaning is always clear from the sentence.
Every straight line that is not vertical has an equation of the form
where is the gradient and the line crosses the -axis at . This is called the gradient–intercept form.
Some books call "the standard form" of a line. Other books use that name for a different form, , so this lecture avoids it. The letters also change from country to country. In the United States, for example, students write . The idea is the same everywhere.
Notice the words "not vertical" in the box. The first lecture of this topic said that covers almost every line, but not a vertical line such as . Now you can see why. A vertical line has no gradient, as the last lecture showed, so there is no number to put in place of . A horizontal line is fine: is , with gradient 0.
The lecture on the nth term made a promise too. The sequence gave the terms 5, 8, 11, 14, and its points lay on a straight line. That lecture said this topic would give its two numbers their names. Here they are. The 3 in front of is the common difference, and it is the gradient . The 2 on its own is the zeroth term, the height at position 0, and it is .
That is it. That is the whole idea. is the step for each 1 across, and is the height at the start.
Two dials that control every line
Think of and as two dials. Try them below and watch what each one does to the line.
Change m and c with the sliders or the − and + buttons. The grey dashed line shows where the line was before your last change. Watch which point stays still.
The figure shows three lines with the same and different . All three pass through : changing turns the line about that point. The list below shows what changing does to : the line moves up or down, and its steepness stays the same.
- crosses the -axis at . One across from there, it reaches .
- crosses the -axis at . One across from there, it reaches .
- crosses the -axis at . One across from there, it reaches .
All three have gradient 2. Each line is the one before it, moved up.
You should have seen two different movements. Changing slides the whole line up or down, and its steepness stays the same. Changing turns the line, but one point never moves: the point where it crosses the -axis.
When you change , why does the point stay still?
Show the answer
At , the height is . Whatever is, is 0, so the height is always . Changing changes the height at every other point, but not at . So every line , whatever its gradient, passes through .
There is one special case worth noticing. When , the line passes through the origin, and the equation is just . This is the graph of direct proportion from the lecture on ratio and proportion: double and you double . The taxi line is not like that. Its fixed charge of $3 means that a 10 km ride does not cost twice as much as a 5 km ride.
Drawing a line from its equation
Now the equation can do the work that the table of values used to do. To draw :
- Plot the point on the -axis.
- From there, step 1 across to the right and up. If is negative, step down instead. Plot the new point.
- Draw a ruler line through both points, and extend it past them.
- Check with a third point, worked out from the equation.
Two points close together give a short line, and a small error in either point tilts it a lot. So step further when you can. A gradient of 2 also means 3 across and 6 up. A gradient such as is easier this way too: 3 across and 2 up lands exactly on a grid corner.
Draw the line .
Read the two numbers. and . So the line crosses the -axis at , and it goes 2 down for each 1 across.
Plot and step. Plot . Step 1 right and 2 down to reach . Draw the line through both points.
Check. One more step of 1 right and 2 down reaches . The equation agrees: . So the line crosses the -axis at , and the drawing passes through it.
Draw the line .
Read the two numbers. and . The line crosses the -axis at .
Plot and step. One step across would go up, which is hard to plot. Three steps across go up. So from , go 3 right and 2 up, to . Draw the line through and .
Check. Go 3 left and 2 down from instead. That reaches . The equation agrees: .
Writing the equation of a line you can see
The same two numbers work backwards. To write the equation of a line drawn on a grid:
- Read where it crosses the -axis. That height is .
- Choose two points on exact grid corners, far apart, and find the gradient: rise ÷ run. That is .
- Write , and check it with a point on the line.
Find the equation of the line in the graph.
Read . The line crosses the -axis at . So .
Find . Use and . The rise is . The run is .
Write the equation. .
Check. At , . The point is on the line, as the graph shows.
When the equation is not in this form yet
The two numbers can only be read off when the equation looks exactly like : alone on the left, and everything else on the right. Many equations do not arrive like that. Then you rearrange first, using the same steps as when you solve an equation. Whatever you do to one side, you do to the other.
The first lecture of this topic drew the line using its two intercepts, and . Find its gradient and where it crosses the -axis from the equation.
Get alone. Subtract from both sides: . Then divide every term by 2:
So and . The line goes 1.5 down for each 1 across, and it crosses the -axis at .
Check. The two intercepts give the gradient too: rise , run , and . Both methods agree.
The same line can be written in many ways. Every equation below is either the line in disguise, or a different line. Sort them by getting alone in your head first.
Put each equation in a box. Compare it with y = 2x + 3. Each card explains itself when you place it.
Each equation is compared with after getting alone.
- becomes : the same line.
- becomes : the same line.
- becomes : the same line.
- becomes : the same line.
- is already in this form: same gradient, different line.
- becomes : same gradient, different line.
- is already in this form: different gradient.
- becomes : different gradient.
- becomes : different gradient.
Four different-looking equations turned out to be one line. Two lines had the same gradient but crossed in different places, so they never meet. The next lecture looks at pairs of lines like these.
A line has gradient 3 and passes through . Find its equation.
Plan. You know , so the equation is . You do not know yet. But the point must fit the equation.
Substitute the point. Put and : , so , and .
Write the equation. .
Check by walking. Start at and walk back to . That is 2 steps to the left. Each step left goes 3 down, so the height drops by 6, from 5 to . The line crosses at , as the equation says.
What and mean in a real situation
In a real situation, the two numbers have meanings and units. For the taxi, gives the fare in dollars for a ride of km. The 3 is the fare at : the fixed charge you pay before the taxi moves. The 0.5 is the gradient: $0.50 for each extra kilometre.
This pattern appears again and again. is the starting value, and is the rate of change.
Here is an invented example. A tank holds 200 litres of water. It drains at 15 litres per minute. After minutes, the volume in litres is
The letters are different, but the shape is the same. The starting value is 200 litres. The rate of change is litres per minute, negative because the volume is falling.
When is the tank empty? Put : , so minutes, which is 13 minutes and 20 seconds. After that the line would give negative volumes, which make no sense. As in the first lecture of this topic, a real situation uses only the part of the line that makes sense: here, from to .
Three classic mistakes
In , the first number is 3, so it is tempting to say . But is the number in front of , wherever it sits. Written in the usual order, the equation is . So and . Check the picture in your head: at , , and as grows, falls.
In , the number on its own is , not 7. The minus sign belongs to the number. So the line crosses the -axis at , below the origin. To check, put : .
In , the numbers 6 and 4 are not and . The left side is , not . Divide every term by 2 first: . So and . Check with a point: gives in the original, so ; and too.
Work each one on paper first. Open a hint only when you are stuck.
-
Write down the gradient and the point where each line crosses the -axis. (a) . (b) . (c) . (d) .
Hint 1
Write each one in the order first. The number in front of is .
Hint 2
In (b), means . In (c), there is no number on its own, so . In (d), there is no term at all.
Full answer
(a) , crosses at .
(b) , so , crosses at . It goes 1 down for each 1 across.
(c) , so , crosses at , the origin. This is direct proportion.
(d) , so , crosses at . It is a horizontal line.
Check (b): at , ; at , . One across, one down.
-
A line passes through and . Find its equation. Does the point lie on it?
Hint 1
One of the points is on the -axis. That gives you at once.
Hint 2
The rise is and the run is . For the last part, put into your equation.
Full answer
The point is on the -axis, so . The gradient is . So the equation is .
Check with the second point: . Correct.
At : . So yes, lies on the line.
-
Rearrange into the form . Which line from the earlier lectures of this topic is it?
Hint 1
Move the term to the other side first, so the term is alone on the left.
Hint 2
After subtracting , you have . Divide every term by , and watch every sign.
Full answer
Subtract from both sides: . Divide every term by : . So and .
It is the line from the first two lectures of this topic, written in another way.
Check with a point: on , gives . In the original: . Correct.
-
A plumber charges a fixed call-out fee plus an hourly rate. The prices are invented. A 2-hour job costs $110 and a 5-hour job costs $230. (a) Write the cost dollars for an -hour job in the form , and say what and mean. (b) How much does a 3.5-hour job cost? (c) A second plumber charges $50 per hour with no call-out fee. For which jobs is the first plumber cheaper?
Hint 1
The two jobs are two points on a line: and . Find the gradient first.
Hint 2
The gradient is . Then substitute one point, as in Worked Example 5, to find . For (c), the second plumber's line is .
Full answer
(a) Gradient . So . Substitute : , so . The cost is . Here is the hourly rate, $40 per hour, and is the call-out fee, $30. Check with the 5-hour job: . Correct.
(b) . The job costs $170.
(c) The costs are equal when , so and . At 3 hours both charge $150. After that, the second plumber's line is steeper, so it climbs above the first. The first plumber is cheaper for jobs longer than 3 hours. Check with 4 hours: first , second . The first is cheaper.
A straight line contains infinitely many points, yet two numbers describe all of them. That is why scientists are so pleased when their measurements fall on a straight line. They can read off and , and the whole relationship is captured.
You use one such line every time you change a temperature from Celsius to Fahrenheit: . The 32 is : water freezes at 0 °C, which is 32 °F. The 1.8 is : each degree Celsius is 1.8 degrees Fahrenheit. Check it with boiling water: , and water boils at 212 °F.
In the Physics lectures on tables and graphs, the same idea runs the other way. You measure, plot, find a straight line, and then its gradient and intercept tell you a law of nature.
- Every straight line that is not vertical can be written as , where is the gradient and the line crosses the -axis at .
- The number in front of is the gradient, because moving 1 across adds exactly to the height.
- The number on its own gives the -intercept, because putting makes the part disappear.
- To draw a line from its equation, plot , step across and up by the gradient, and check with a third point.
- The numbers can only be read off when is alone on one side, so rearrange first and keep each minus sign with its number.
- In a real situation, is the starting value and is the rate of change, both with units.