Finding the Equation of a Straight-Line Graph (VCE SSCE General Mathematics): Revision Notes
Finding the Equation of a Straight-Line Graph
Introduction
When working with linear graphs, you'll often need to determine the equation of a line from its graph. This is a crucial skill that allows you to move from a visual representation to a mathematical formula. There are two main approaches you can use, depending on what information is visible on the graph.
This guide covers two complementary methods: the intercept-slope method (when the y-intercept is visible) and the two-point method (which works in all situations). Understanding both methods will equip you to handle any linear equation problem.
Using the intercept and slope to find the equation
Understanding the intercept-slope form
Every straight line can be written in the form:
where:
- is the y-intercept (where the line crosses the y-axis when )
- is the slope or gradient (how steep the line is)
Steps for the intercept-slope method
This method works well when your graph clearly shows where the line crosses the y-axis. Follow these steps:
Step 1: Identify where the line crosses the y-axis. This gives you the value of .
Step 2: Calculate the slope using two clearly marked points on the line. Remember that:
This gives you the value of .
Step 3: Insert both values into the equation to get your final answer.
Critical Limitation: This method only works when the graph scale includes (the y-axis is visible). If the y-axis is not shown on your graph, you must use the two-point method instead.
Worked example: intercept-slope method
Worked Example: Finding the Equation Using Intercept-Slope Method
Let's find the equation of this straight line:

Solution:
We start with the general form:
From the graph, we can see the line crosses the y-axis at , so:
To find the slope, we'll use two convenient points on the line: and .
The rise (vertical change) is:
The run (horizontal change) is:
Therefore:
So
Substituting both values into our equation:
This is the equation of the line.
Practice problem
Here's a similar problem for you to try:
Hints:
- First, identify where the line crosses the y-axis
- Choose two convenient points on the line to calculate the slope
- Remember to use the formula: slope = rise ÷ run
- Finally, substitute your values for and into
Using two points on a graph to find the equation
When to use the two-point method
Sometimes a graph doesn't show the y-intercept, or the scale doesn't include . In these situations, you need to use a different approach called the two-point method. This technique is more involved but works in all circumstances.
Advantages of the Two-Point Method:
The two-point method is the most versatile approach because it works regardless of what portion of the graph is shown. You only need to identify two clear points on the line, and you can find the complete equation.
Steps for the two-point method
The general equation is still , but we need to find both and using only two points.
Step 1: Use the coordinates of two points on the line to calculate the slope using:
Step 2: Substitute the value of into the equation . Now you have only one unknown value, .
Step 3: Take the coordinates of either of your two points and substitute them into the equation. Then solve for .
Step 4: Write the final equation by substituting both and into .
Worked example: two-point method
Worked Example: Finding the Equation Using Two-Point Method
Find the equation of the line passing through the points and .

Solution:
Starting with the general form:
Step 1: Calculate the slope
Therefore
Step 2: Substitute the slope into the equation
Step 3: Find the y-intercept
Using the point (either point works):
Step 4: Write the final equation
This is the equation of the line.
Verification tip
Always Check Your Answer
You can verify your equation by substituting the coordinates of the other point into your equation. For the point :
✓
The y-value matches, confirming our equation is correct.
Practice problem
Find the equation of the line passing through and .
Hints:
- Begin with
- Calculate the slope using the two points
- Substitute the slope value into the equation
- Use either point to solve for
Summary of key methods
Key Points to Remember:
You now have two powerful methods for finding the equation of a straight line:
Intercept-slope method:
- Use when the y-intercept is visible on the graph
- Read the y-intercept directly
- Calculate the slope from two points
- Quick and straightforward
Two-point method:
- Use when the y-intercept is not visible
- Works with any two points on the line
- Calculate the slope first
- Then solve for the y-intercept algebraically
- More time-consuming but works in all situations
Both methods give you the same equation in the form .
Remember!
Essential Takeaways:
- The general equation of a straight line is , where is the y-intercept and is the slope
- For the intercept-slope method, identify the y-intercept from the graph and calculate the slope using
- For the two-point method, calculate the slope first, then substitute one point's coordinates to find the y-intercept
- The two-point method works in all circumstances, even when the y-intercept isn't visible
- Always check your answer by substituting a point's coordinates back into your equation