Straight Line Graphs: y = mx + c
Understand straight line graphs โ what gradient and y-intercept mean, how to plot them, how to find equations, and real-life applications like distance-time graphs.
Every straight line on a graph can be written as y = mx + c. Once you understand what m and c mean, you can read, draw and create any straight line graph.
What Do m and c Mean?
- m = gradient (how steep the line is โ rise รท run)
- c = y-intercept (where the line crosses the y-axis)
Think of it like walking up a hill. m is how steep the hill is.c is where you started (your altitude at the beginning).
Finding the Gradient
Pick any two points on the line, find the difference in their y-values and divide by the difference in their x-values.
Worked Example 1 โ Finding Gradient and Equation
A line passes through (1, 3) and (4, 9). Find its equation.
- Gradient m = (9 โ 3) รท (4 โ 1) = 6 รท 3 = 2
- Use y = mx + c with point (1, 3): 3 = 2(1) + c โ c = 1
- Equation: y = 2x + 1
Plotting from an Equation
Worked Example 2 โ Plotting y = 3x โ 2
- The y-intercept is โ2, so plot the point (0, โ2)
- The gradient is 3, so from that point go right 1, up 3 to get (1, 1)
- Plot another: go right 1 again, up 3 โ (2, 4)
- Draw a straight line through all three points
Parallel & Perpendicular Lines
- Parallel lines have the same gradient. y = 2x + 1 and y = 2x + 5 are parallel.
- Perpendicular lines have gradients that are negative reciprocals. If one has gradient 2, the perpendicular has gradient โ1/2.
Worked Example 3
Find the equation of the line perpendicular to y = 3x + 1 that passes through (6, 2).
- Original gradient = 3
- Perpendicular gradient = โ1/3
- y = โ1/3 x + c, substitute (6, 2): 2 = โ1/3(6) + c โ 2 = โ2 + c โ c = 4
- Answer: y = โ1/3 x + 4
Real-Life Graphs
Distance-time graphs: gradient = speed. A steeper line means moving faster. A flat line means stopped.
Conversion graphs: convert between units like ยฐC and ยฐF, or miles and kilometres.
Try It Yourself
- Find the gradient of a line through (2, 5) and (6, 13). (Answer: 2)
- What is the y-intercept of y = โ4x + 7? (Answer: 7)
- A line is parallel to y = 5x โ 3 and passes through (0, 2). What's its equation? (Answer: y = 5x + 2)