CSEC Mathematics · relations, functions and graphs
Drawing Straight-Line Graphs
1. Horizontal and Vertical Lines: y = c and x = k
A straight-line graph whose equation contains only one variable is either completely horizontal or completely vertical:
- Horizontal lines have the equation y=c, where c is a constant number. Every single point on this line has a y-coordinate of c, regardless of what x is. For example, on the line y=3, points include (−2,3), (0,3), and (4,3). The x-axis itself is the line y=0.
- Vertical lines have the equation x=k, where k is a constant number. Every point on this line has an x-coordinate of k. For example, on the line x=−2, points include (−2,−3), (−2,0), and (−2,4). The y-axis itself is the line x=0.
In CSEC exams, you are often asked to draw and label lines such as y=2 or x=4 directly onto a provided coordinate grid.
Worked example
Draw and label the straight lines y=−1 and x=3 on a Cartesian grid for values between −4 and 4.
- For y=−1, identify points where the y-value is always −1, such as (−3,−1), (0,−1), and (3,−1).
- Place a ruler horizontally through these points parallel to the x-axis and draw a continuous line.
- Label the horizontal line clearly as y=−1.
- For x=3, identify points where the x-value is always 3, such as (3,−2), (3,0), and (3,3).
- Place a ruler vertically through these points parallel to the y-axis and draw a continuous line.
- Label the vertical line clearly as x=3.
Answer: Two straight lines drawn: a horizontal line passing through (0,−1) labelled y=−1, and a vertical line passing through (3,0) labelled x=3.
Quick check
Which equation represents the horizontal line that passes through the point (5,−4)?
2. Lines Passing Through the Origin: y = x and y = mx
When a linear equation has no constant added at the end (that is, c=0), the graph always passes through the origin, (0,0).
The most basic straight-line graph is y=x. For every point on this line, the y-coordinate is exactly equal to the x-coordinate:
| x | −2 | 0 | 2 |
|---|---|---|---|
| y | −2 | 0 | 2 |
For an equation like y=2x, each y-value is double the corresponding x-value:
| x | −1 | 0 | 2 |
|---|---|---|---|
| y | −2 | 0 | 4 |
Plot these coordinates as points (x,y), line up your ruler, and draw a straight line through them spanning the requested domain.
Worked example
Construct a table of values for y=3x for x-values from −1 to 2, and state the coordinates to be plotted.
- Substitute x=−1: y=3(−1)=−3, giving the point (−1,−3).
- Substitute x=0: y=3(0)=0, giving the point (0,0).
- Substitute x=1: y=3(1)=3, giving the point (1,3).
- Substitute x=2: y=3(2)=6, giving the point (2,6).
Answer: The points to plot are (−1,−3), (0,0), (1,3), and (2,6).
Quick check
If the point (3,k) lies on the line y=x, what is the value of k?
3. Plotting General Linear Functions: y = mx + c
A general linear function has the form y=mx+c, where m is the gradient and c is the y-intercept (the point (0,c) where the line crosses the vertical axis).
To draw any linear graph accurately:
1. Create a table of values: Choose at least three values of x (usually a negative value, zero, and a positive value). Although two points determine a line, a third point acts as a check to catch calculation errors.
2. **Calculate the corresponding y-values**: Substitute each x into the equation.
3. Plot the coordinates: Mark each (x,y) on the grid with a small dot or cross.
4. Draw and label: Join the points using a sharp pencil and a long straight ruler, extending the line across the grid, and write its equation beside it.
If an equation is written in implicit form, such as x+y=6, you can either rearrange it to y=−x+6 or find the two intercepts directly: when x=0, y=6; when y=0, x=6.
Worked example
Draw the graph of y=2x−1 for the domain −1≤x≤3.
- Choose three x-values: −1, 1, and 3.
- For x=−1: y=2(−1)−1=−2−1=−3⟹(−1,−3).
- For x=1: y=2(1)−1=2−1=1⟹(1,1).
- For x=3: y=2(3)−1=6−1=5⟹(3,5).
- Plot (−1,−3), (1,1), and (3,5) on the axes.
- Check that all three points align perfectly, then draw a straight line through them with a ruler.
Answer: A straight line drawn through (−1,−3), (1,1), and (3,5), labelled y=2x−1.
Quick check
For the linear function y=3x−5, calculate the value of y when x=4.
Common mistakes
- Swapping horizontal and vertical lines: thinking x=3 is horizontal because the x-axis is horizontal. Remember: x=3 cuts through the x-axis vertically, while y=c cuts through the y-axis horizontally.
- Using only two points to draw a line: if you make an arithmetic error with one of the points, you will draw an incorrect line without noticing. Always calculate three points so an error shows up immediately as a point out of line.
- Reversing coordinates when plotting: plotting (x,y) as (y,x). Always move along the horizontal x-axis first, then up or down along the vertical y-axis.
In the exam
- Always label each line with its equation (e.g. y=2x−1 or x+y=10). CXC examiners award an explicit mark for correct labelling.
- Use a long transparent ruler and a sharp pencil. A line that is wobbly, freehand, or thick will lose accuracy marks.
- Show your small table of values or coordinate working in your answer booklet to secure method marks even if you make a plotting error.
Key terms
- Linear function
- A relationship between two variables whose graph is a single straight line, having the general form y = mx + c.
- y-intercept
- The point where a graph crosses the y-axis; the value of y when x = 0.
- x-intercept
- The point where a graph crosses the x-axis; the value of x when y = 0.
- Table of values
- A table showing selected input values of x and their corresponding output values of y used to plot points.
Practice
Easier to harder. Use paper for your working.
Practice 1
Which of the following points lies on the line y=2x−3?
Practice 2
The point (k,5) lies on the line x+y=12. What is the value of k?
Practice 3
Find the coordinates of the x-intercept and the y-intercept for the straight line 2x+y=6.
Now try real past-paper questions
3 Paper 2 questions and 1 Paper 1 multiple-choice on this topic. Quelpr marks your working point by point, like an examiner.
- Mathematics Q4 4(b)(i) · 2 marksDraw the straight lines x + y = 10 and y = x on the grid below.
- Mathematics Q5 5(b)(ii) · 1 markOn the same axes used in (b)(i), draw and label the line y = 2.
- Mathematics Q6 6(b)(ii)a) · 4 marksAn answer sheet is provided for this question. On the answer sheet provided, draw and label the line y = x.
Finished the lesson?
0 of 6 checks right on this device.
Read more
- Collins - Concise Revision Course for CSEC Mathematics, p. 358
- Mathematics for CSEC, p. 126
- CXC Study Guide - Mathematics for CSEC, pp. 116, 117, 118
- CSEC Maths Study Guide - Maths Crash Course, p. 182