Gradient and Intercepts of ax + by = c
Write in the form to find its gradient and -intercept; find an unknown number in the equation; match equations to lines; find the triangle a line cuts off with the axes; and read a real setting.
Before you start
- In lesson 2.2 you drew the graph of , a straight line, from its intercepts: put for the -intercept and for the -intercept.
- In Secondary 1 a straight line was written , with gradient ( In this chapter and are already the numbers in , so that form is written : the gradient is and the line crosses the -axis at . This is a different number from the in .
The Gradient and the y-Intercept
From ax + by = c to y = mx + c
To find the gradient and the -intercept of a line (with ), make the subject and write the result in the form .
Then the gradient is , the number multiplying , and the -intercept is the number on its own.
The -intercept is not the number on the right of : in it is , not .
Example 1: Rewriting in the form y = mx + c
Find the gradient and the -intercept of (a) , (b) .
Solution
(a) Subtract : . Divide every term by : . So , and the -intercept is .
Check on the graph drawn in lesson 2.2, Example 2: from to the line goes across and down, so its gradient is .
(b) Subtract : . Divide every term by : . So , and the -intercept is .
Check with two points: gives , ; gives , . From to : up for across, gradient .
(a) Gradient , -intercept . (b) Gradient , -intercept .
An unknown number in the equation can be found from one more fact about the line: a point on it (substitute its coordinates) or its gradient (write the equation in the form and compare).
Example 2: An unknown coefficient
(a) The line passes through the point . Find , the gradient of the line, and its -intercept. (b) The line has gradient . Find .
Solution
(a) The point is on the line, so its coordinates make the equation true: , so , and .
The line is . Make the subject: , so . The gradient is .
-intercept: put . , so .
Check :
(b) Make the subject: , so . The gradient is , so .
Multiply both sides by : , so .
Check: the line is , so and , whose gradient is .
(a) ; the gradient is and the -intercept is . (b) .
Matching Equations to Graphs
To tell which line belongs to which equation, find each equation's intercepts and the sign of its gradient (up from left to right: positive; down: negative), and compare them with the drawing.
Example 3: Which line is which?
The lines , and are the graphs of , and . Match each equation to its line.
Solution
: intercepts and ; , gradient negative.
: intercepts and ; , gradient positive.
: intercepts and ; , gradient negative.
Only goes up from left to right, so is ; it crosses the -axis at .
crosses the -axis at and the -axis at : .
crosses the -axis at and the -axis at : .
is , is and is .
The Triangle Cut Off by a Line
A line that crosses both axes away from the origin cuts off a right-angled triangle with the axes. Its two shorter sides lie along the axes, and their lengths are the sizes of the two intercepts.
Example 4: Area of the triangle
The line meets the -axis at and the -axis at . Find the coordinates of and , and the area of triangle , where is the origin.
Solution
: put . , so : .
: put . , so : .
The triangle has a right angle at . Its base is units and its height is units.
Area square units.
, , and the area of triangle is square units.
A Graph from a Real Setting
In a real setting the intercepts and the gradient have meanings. An intercept is the amount of one thing when there is none of the other. The gradient says how much one amount changes as the other goes up.
Example 5: Apples and pears
Mei Ling spends exactly $ on apples at $ each and pears at $ each. (a) Write an equation connecting and . (b) Draw its graph. (c) Use the graph to list the numbers of apples and pears she can buy, with at least one of each. (d) Write the equation in the form . What do its gradient and its -intercept tell you?
Solution
(a) The apples cost $ and the pears $: .
(b) Intercepts: gives ; gives . Neither nor can be negative, so draw the line only from to .
Only whole numbers of fruit make sense, so the useful points are the points of the line with whole-number coordinates. The line is drawn dashed to show that the points between them do not count.
(c) The line passes exactly through grid points at . With at least one of each fruit, and are left out.
Check :
(d) , so . The -intercept is the number of pears she can buy with no apples: 8 pears cost $.
The gradient says that for every more apples she buys fewer pears: 3 apples cost $, the same as 2 pears. On the graph, each whole-number point is across and down from the one before.
(a) . (c) 3 apples and 6 pears, 6 apples and 4 pears, or 9 apples and 2 pears. (d) : with no apples she buys 8 pears, and every 3 more apples means 2 fewer pears.
Common Mistakes
- Reading the -intercept off . In the -intercept is , not . Make the subject first.
- Losing a sign when rearranging. From : , and dividing every term by gives .
- Taking the sign of the gradient from the signs in . In both numbers are positive, but the gradient is : the line goes down from left to right.
- A negative length. An intercept may be negative, but a side of a triangle never is: for , units.
Practice Questions
Work each question on paper before you open its solution. The questions get harder as you go.
Question 1
Find the gradient and the -intercept of (a) , (b) , (c) .
ShowHide solution
(a) , so : gradient , -intercept .
(b) . Divide every term by : : gradient , -intercept .
(c) , so : gradient , -intercept .
(a) and (b) and (c) and
Question 2
Find the gradient of the line (a) by writing the equation in the form , (b) by drawing the line through its intercepts and counting the step from one intercept to the other.
ShowHide solution
(a) . Divide every term by : . The gradient is .
(b) gives , : the point . gives , : the point .
From to the line goes across and up, so its gradient is . The two ways agree.
The gradient is .
Question 3
The line passes through . Find and the gradient of the line.
ShowHide solution
, so , and .
The line is : , The gradient is .
Check:
; the gradient is .
Question 4
The line passes through . Find and the -intercept of the line.
ShowHide solution
The line is .
-intercept: gives , so .
; the -intercept is .
Question 5
The line has gradient . Find and the -intercept of the line.
ShowHide solution
, so . The gradient is , so and .
The line is . -intercept: gives , so .
Check: gives , whose gradient is .
; the -intercept is .
Question 6
The lines , and are the graphs of , and . Match each equation to its line.
ShowHide solution
is : gradient , positive. Only rises, so is (it crosses the -axis at and the -axis at ).
: intercepts and . crosses both axes at .
: intercepts and . crosses both axes at .
is , is and is .
Question 7
The line meets the -axis at and the -axis at . Find the area of triangle .
ShowHide solution
: gives , : . : gives , : .
The lengths are units and units: a length is never negative, although is below the -axis.
Area square units.
The area of triangle is square units.
Question 8
The line , where , cuts off a triangle of area square units with the axes. Find .
ShowHide solution
gives , so the -intercept is . gives , so the -intercept is .
Since , both intercepts are positive, and they are the lengths of the two shorter sides of the triangle. Area
, so . Since , .
Check: meets the axes at and , and .
Question 9
A class spends exactly $ on plates of chicken rice at $ each and bowls of noodles at $ each. (a) Write an equation in and and draw its graph. (b) If they buy 6 plates of chicken rice, how many bowls of noodles do they buy? (c) List every possible order with at least one of each.
ShowHide solution
(a) . Intercepts: gives ; gives . Draw from to , dashed, since only whole numbers count.
(b) Up from to the line, then across: . Check:
(c) is a whole number when is a multiple of . With and at least : .
(a) (b) 8 bowls of noodles (c) 3 plates and 12 bowls, 6 plates and 8 bowls, or 9 plates and 4 bowls.
Question 10
A hall is set up for exactly guests, with long tables that seat each and round tables that seat each. (a) Show that . (b) Write the equation in the form . (c) What does the -intercept tell you? (d) What does the gradient tell you? (e) If long tables are used, how many round tables are needed?
ShowHide solution
(a) The long tables seat guests and the round tables , so . Divide every term by : .
(b) . Divide every term by : .
(c) The -intercept is : with no long tables, round tables are needed ().
(d) The gradient is : for every more long tables, fewer round tables are needed. Five long tables seat guests, the same as four round tables.
(e) : Check:
(b) (c) With no long tables, 24 round tables are needed. (d) Every 5 more long tables means 4 fewer round tables. (e) 12 round tables
Key Points
- To find the gradient and the -intercept of (with ), make the subject and write it as : the gradient is and the -intercept is the number on its own.
- The -intercept is not the number on the right of : in it is , not .
- An unknown number in the equation: if a point is on the line, substitute its coordinates; if the gradient is given, write and compare.
- To match equations to lines, compare the intercepts and the sign of the gradient (up from left to right: positive; down: negative).
- A line crossing both axes away from the origin cuts off a right-angled triangle; its area is (size of -intercept) (size of -intercept).
- In a real setting, an intercept is the amount of one thing when there is none of the other, and the gradient says how much one amount changes as the other goes up.