How to graph an equation: lines, parabolas and more
Three ways to graph an equation — a table of values, slope and intercept, and key points of a parabola — with worked examples and how to match a graph to its equation.
To graph an equation, find points that make the equation true, plot them on a coordinate grid, and join them with a line or a smooth curve. Every point on the graph is a solution of the equation, and every solution is a point on the graph — that is why graphing equations is such a useful way to see what an equation does.
This lesson covers the basic methods for equations in and : tables of values, lines and parabolas. When an equation is written as a function, , the companion lesson on functions builds on these methods with domain, range and transformations.
Method 1: make a table of values
- Write the equation with on its own, if it isn’t already.
- Choose a few -values, such as .
- Work out for each one.
- Plot the points and join them — a ruler for a straight line, a smooth curve otherwise.
Worked example
Easy: graph
Draw the graph of .
Show the working
- Make a table of values.
- Plot , , and . They lie on a straight line.
- Check with two of the points: the slope is and the line crosses the y-axis at .
Answer: A straight line through that rises 2 for every 1 to the right.
Checked by Sumzo’s math engine
Method 2: slope and y-intercept
An equation of the form always gives a straight line — a linear relationship graph. Start at the y-intercept , then use the slope as “rise over run” to find more points. For an equation like , it is often quicker to find where the line crosses each axis.
Worked example
Medium: sketch the graph of each line using intercepts
Sketch the graph of .
Show the working
- Put : , so the line crosses the y-axis at .
- Put : , so it crosses the x-axis at .
- Draw the line through both points. Its slope is , so the line falls from left to right.
Answer: The line through and , which is .
Checked by Sumzo’s math engine
Graphing a parabola
An equation with , such as , makes a U-shaped curve called a parabola. Find three things before you draw: where it crosses the x-axis (set ), the y-intercept (set ), and the vertex, which is halfway between the x-intercepts.
Worked example
Hard: graph
Find the key points of and sketch it.
Show the working
- x-intercepts: solve .
- y-intercept: gives .
- Vertex: halfway between 1 and 3 is , and .
- The term is positive, so the parabola opens upwards. Draw a smooth U through the points.
Answer: A parabola through , and , with its lowest point at .
Checked by Sumzo’s math engine
Which graph matches the equation?
- Put : the y-intercept must match.
- For a line, check the sign of the slope: positive rises to the right, negative falls.
- For a parabola, the sign of the term tells you whether it opens up or down.
- Substitute one more point from the graph into the equation — it must make it true.
Common mistakes
- Plotting the wrong way round: across first, then up.
- Using only two points for a curve — a parabola needs at least five.
- Joining the points of a parabola with straight lines instead of a smooth curve.
- Uneven scales on the axes, which change how steep a line looks.
Frequently asked questions
How do you graph an equation step by step?
Get on its own, make a table of values, plot the points and join them. For a straight line two points are enough (use a third to check); for a curve use more.
How do I know if an equation is a straight line?
If it can be written as — no , no in a denominator, no square roots of — its graph is a straight line.
How do I graph an equation that isn’t solved for y?
Rearrange it first, or for a line like find the two intercepts by setting and then .