Topics in this sectionCoordinate Geometry2 topics
- Plotting Points and Straight Lines
- Equation of a Line
Equation of a Straight Line
When we work with straight lines on a coordinate grid, we can describe each line using an equation. This equation tells us exactly where the line goes and what it looks like. In this note, you will learn how to write, read, and draw lines using their equations.
Every straight line on a coordinate plane can be written in the form:
y=mx+c
This is called the slope-intercept form. Each letter has a special meaning:
- y and x are the coordinates of any point on the line
- m is the gradient (also called the slope) — it tells us how steep the line is
- c is the y-intercept — it tells us where the line crosses the y-axis
For example, the equation y=2x+3 has:
- gradient (m) = 2
- y-intercept (c) = 3
The gradient (or slope) of a line shows how much y changes when x changes by 1. A positive gradient means the line goes upward as you move right. A negative gradient means the line goes downward.
You can calculate the gradient between two points (x1,y1) and (x2,y2) using:
m=x2−x1y2−y1
This formula gives the "rise over run" — how much the line rises (or falls) for each step to the right.
The y-intercept is the point where the line crosses the y-axis. At this point, x = 0. In the equation y = mx + c, the value of c is always the y-intercept.
For instance, in y = -3x + 5, the line crosses the y-axis at (0, 5).
Sometimes you are given an equation that is not in the form y = mx + c. You can rearrange it to find the gradient and y-intercept.
Worked Example
Given the equation: 2y=6x−8
-
Divide both sides by 2 to solve for y: y=3x−4
-
Now compare with y = mx + c:
- gradient (m) = 3
- y-intercept (c) = -4
To draw a line given by y = mx + c, follow these steps:
- Plot the y-intercept on the y-axis at (0, c).
- Use the gradient to find a second point. From the y-intercept, move:
- Upward (if m is positive) or downward (if m is negative) by m units
- Rightward by 1 unit
- Draw the line through these two points, extending across the grid.
Worked Example — Drawing y = 2x + 1
- The y-intercept is 1, so plot the point (0, 1) on the y-axis.
- The gradient is 2. From (0, 1), move up 2 units and right 1 unit to reach (1, 3). Plot this second point.
- Draw a straight line through (0, 1) and (1, 3), extending in both directions.
- In the equation y = 4x − 2, the gradient is 4 and the y-intercept is −2.
- A horizontal line (flat) has a gradient of 0 — its equation is y = c.
- A vertical line cannot be written in y = mx + c form because its gradient is undefined.
When engineers plan roads or pathways in towns like Juba or Wau, they use the gradient of a slope to decide how steep a road can safely be. For example, if a road must rise 3 meters for every 10 meters of horizontal distance, the gradient is 3/10. This information helps builders ensure vehicles can travel safely, especially during the rainy season when roads become slippery.
Question
What is the gradient (slope) of the line described by the equation y=4x−2?
Sign in to submit your answer and have it count toward your mastery.
Sign in to practiceTutor
Stuck? Ask me anything about this topic.
Sign in to ask the Sonza AI Tutor about this question.
Sign in to askDiscussions
No questions yet