Algebra › Section C · Graphs and functions › Topic C.1

Graphing linear equations

A graph turns an equation into a picture you can read at a glance. For linear equations that picture is always a straight line, and two well-chosen points are all you need to draw it.

From equations to pictures

Maps find places by two numbers: how far east, how far north. Algebra borrows the same idea with two perpendicular number lines, the x-axis (horizontal) and the y-axis (vertical, positive upward), crossing at the origin \((0, 0)\). Every point is an ordered pair \((x, y)\): from the origin, move \(x\) units right or left, then \(y\) units up or down. The axes cut the plane into four quadrants, numbered anticlockwise starting upper right, where both coordinates are positive. Once an equation can be drawn, questions about it — where it starts, where it heads, whether two lines cross — become visible instead of purely computational.

Solutions and graphs

A solution of an equation in two variables is an ordered pair that makes the equation true. For \(y = 2x - 1\), the pair \((2, 3)\) is a solution because \(2 \cdot 2 - 1 = 3\), but \((2, 4)\) is not. The graph of the equation is the set of all its solution points, drawn as a curve. Plotting a few solutions and joining them reveals the graph's shape. For a linear equation the solutions line up perfectly: plot three and they should sit on one straight line. If one lands off the line, it is a computation error, and finding it is exactly why the third point is worth plotting.

Linear equations in two variables

An equation of the form

Ax + By = C

where \(A\), \(B\) and \(C\) are constants and \(A\) and \(B\) are not both zero, is a linear equation in two variables, and its graph is a straight line. Because two points determine a line, two solutions are enough to graph one, and a third serves as a check. The form looks rigid, but \(y = 2x - 1\) fits it too: rewrite it as \(-2x + y = -1\) or, multiplying by \(-1\), \(2x - y = 1\).

Graphing by a table of values

The first graphing method is a table of values. Choose a few x-values, substitute each into the equation, compute the matching y, and plot the points. Choose friendly x-values: small integers keep the arithmetic light, and if the coefficient of \(x\) is a fraction, pick x-values that clear the denominator. Checking that the plotted points line up before drawing is the built-in error catch.

Worked example: graphing with a table

Graph \(y = \frac{1}{2}x + 3\). The coefficient of \(x\) is \(\frac{1}{2}\), so choose even x-values to avoid fractions: \(x = 0\), 2 and 4. Substituting gives \(y = 3\), \(y = 4\) and \(y = 5\), so the points are \((0, 3)\), \((2, 4)\) and \((4, 5)\). Each step up by 2 in \(x\) lifts \(y\) by 1, which is the pattern of a straight line rising gently to the right, and the three points line up, confirming the arithmetic before the line is drawn through them.

Intercepts

The intercepts are where a line crosses the axes, and they are the two most informative points on a graph. The x-intercept is the point where \(y = 0\); the y-intercept is the point where \(x = 0\). Finding each is one substitution: set the unused variable to zero and solve the small equation that remains. In applications the intercepts carry meaning — a y-intercept is a starting value when \(x\) measures time, and an x-intercept is often a break-even point or a zero of a quantity.

Worked example: graphing with intercepts

Graph \(2x + 3y = 12\). For the x-intercept set \(y = 0\): \(2x = 12\), so \(x = 6\) and the point is \((6, 0)\). For the y-intercept set \(x = 0\): \(3y = 12\), so \(y = 4\) and the point is \((0, 4)\). A third point checks the work: \(x = 3\) gives \(6 + 3y = 12\), so \(y = 2\), and \((3, 2)\) lies exactly halfway in step between the intercepts. The line runs from \((0, 4)\) through \((3, 2)\) to \((6, 0)\), falling steadily as \(x\) increases.

Vertical and horizontal lines

Equations with only one variable also graph as lines. The equation \(x = 2\) says the x-coordinate is always 2 while \(y\) is free: every point \((2, y)\) qualifies, which is a vertical line through \((2, 0)\). Likewise \(y = -3\) fixes y and leaves x free, giving a horizontal line through \((0, -3)\). Notice the symmetry: \(x = a\) is vertical, \(y = b\) is horizontal, and neither has both intercepts. A vertical line \(x = 2\) has no y-intercept at all, since it never crosses the y-axis.

Lines through the origin

When \(C = 0\) in \(Ax + By = C\), both intercepts collapse to the origin: \(y = 5x\) passes through \((0, 0)\) on both axes. The intercept method then produces just one point, so it needs help: substitute any non-zero x-value for a second point. For \(y = 5x\), taking \(x = 2\) gives \((2, 10)\), and the line through the origin and \((2, 10)\) is the graph. Proportional relationships like cost = 5 × quantity always look like this, and the whole line is determined by the origin plus one point.

Common mistakes to avoid

The classic plotting slip is swapping the order of the pair: \((3, -1)\) and \((-1, 3)\) are different points, and x comes first. Second, sign errors send points to the wrong quadrant: negative x means left, negative y means down. Third, do not stop at two points without checking alignment — the third point is the error catch, and drawing through a miscomputed point ruins the graph. Fourth, when an equation has a fractional coefficient, avoid awkward x-values; clearing the denominator keeps the table clean. Finally, \(x = 2\) is a line in this setting, not a point.

Key takeaways

Points are ordered pairs \((x, y)\) plotted from the origin, with signs directing left, right, up and down across four quadrants. A solution makes the equation true, and the graph is the set of all solutions; a linear equation \(Ax + By = C\) graphs as a straight line. Graph by a table of values with friendly x-values that clear denominators, or by intercepts: set \(y = 0\) for the x-intercept and \(x = 0\) for the y-intercept, then check with a third point. \(x = a\) is a vertical line and \(y = b\) a horizontal one; when both intercepts are the origin, add one more point to pin the line down.

Flashcards

Flashcard

Ordered pair

(x, y): horizontal first

Then vertical.

Test your understanding

Question 1 of 5

Which ordered pair is a solution of 2x + y = 9?

Question 2 of 5

What is the x-intercept of 5x - 2y = 20?

Question 3 of 5

Which equation is a vertical line?

Question 4 of 5

Which point lies on the line y = 4x, which passes through the origin?

Question 5 of 5

In which quadrant does the point (-4, 7) lie?

← Previous topicNext topic →