What you'll learn
In this lesson you will learn to draw the graph of a linear equation — and to go the other way, from a graph to its equation.
You will be able to:
- graph y = mx + b using the y-intercept and slope;
- graph Ax + By = C using the two intercepts;
- graph from a table of values;
- decide whether a point is on a line;
- write the equation of a line from its graph or from two points;
- explain what the slope and intercept mean in a real situation.
Why it matters on the GED. You may be asked to click a point on a line, choose which graph matches an equation, choose which equation matches a graph, or explain what the starting value means in a cost graph. The GED formula sheet gives you y = mx + b and point-slope form — this lesson shows you how to use them.
Real life. Phone plans, taxi fares, gym memberships and hourly jobs with a sign-up fee all have a starting amount plus a rate — a straight-line graph.
Words to know
- linear equation — an equation whose graph is a straight line (e.g. y = 2x - 1, 3x + 4y = 24).
- slope-intercept form — y = mx + b, with slope m and y-intercept b (y = 4x - 5: m = 4, b = -5).
- standard form — Ax + By = C (3x + 4y = 24).
- point-slope form — y - y_1 = m(x - x_1), for a line with slope m through (x_1, y_1).
- y-intercept — where the line crosses the y-axis; x = 0 there (e.g. (0, -5)).
- x-intercept — where the line crosses the x-axis; y = 0 there (e.g. (3, 0)).
- solution of an equation — a point (x, y) that makes the equation true; every solution lies on the graph.
- table of values — a list of x-values and the y-values the equation gives for them.
- initial value — the y-intercept in a real-world problem (a fee or starting amount).
Method 1: slope and y-intercept
When the equation is in the form y = mx + b:
- Plot the y-intercept (0,\ b) on the y-axis.
- Use the slope m = \frac{\text{rise}}{\text{run}} to move to a second point. Rise up if positive, down if negative; run to the right.
- Repeat once more to get a third point (a built-in check).
- Draw a straight line through the points, across the whole grid.
Example. Graph y = \frac{2}{3}x - 1.
- Start at (0, -1).
- Slope \frac{2}{3}: up 2, right 3 → (3, 1).
- Going the other way (down 2, left 3) → (-3, -3).
Whole-number slopes. Write them over 1: m = -3 = \frac{-3}{1} → down 3, right 1.
Negative fraction slopes. m = -\frac{2}{5} → down 2, right 5 (or up 2, left 5 — same line).
Missing b. y = 4x means b = 0: start at the origin. Missing x. y = 3 is a horizontal line through (0, 3). Missing y. x = -2 is a vertical line through (-2, 0).
If the equation is not solved for y, solve it first: 4x + 2y = 10 \to y = -2x + 5.
Method 2: the two intercepts
When the equation is in standard form Ax + By = C, the intercepts are usually fastest.
- x-intercept: set y = 0 and solve for x.
- y-intercept: set x = 0 and solve for y.
- Plot both and draw the line through them.
Example. Graph 2x + 3y = 6.
- y = 0: 2x = 6, so x = 3 → (3, 0).
- x = 0: 3y = 6, so y = 2 → (0, 2).
- Draw the line through (3, 0) and (0, 2). (Its slope is \frac{0 - 2}{3 - 0} = -\frac{2}{3}.)
This is called the cover-up method: cover the y-term and solve what's left for x; cover the x-term and solve for y.
Watch the signs. For 5x - 2y = 10: x = 0 gives -2y = 10, so y = -5 (not +5).
Method 3: a table of values. Choose 3 easy x-values (like -2, 0, 2), compute y for each, plot, and connect. For fractional slopes, pick x-values that are multiples of the denominator so y comes out whole.
| x | -3 | 0 | 3 |
|---|---|---|---|
| y = \tfrac{2}{3}x - 1 | -3 | -1 | 1 |
If your three points don't line up, you made an arithmetic mistake.
From a graph (or two points) to an equation
From a graph.
- Read b where the line crosses the y-axis.
- Find the slope from two clear grid points.
- Write y = mx + b.
Example: a line crosses at (0, 2) and passes through (4, -1) → b = 2, m = \frac{-1 - 2}{4 - 0} = -\frac{3}{4} → y = -\frac{3}{4}x + 2.
From two points (no y-intercept given).
- Find m with the slope formula.
- Substitute m and one point into y = mx + b, solve for b.
Example: (-2, 7) and (4, -5) → m = \frac{-12}{6} = -2. Then 7 = -2(-2) + b \Rightarrow b = 3 → y = -2x + 3.
Is a point on the line? Substitute its x and y. If the equation is true, the point is on the graph; if not, it isn't. (2, 4) on y = 3x - 2? 3(2) - 2 = 4 ✓
Real-world meaning.
- b = starting value (sign-up fee, initial balance, flat charge).
- m = rate of change (per month, per mile, per hour).
A gym that charges $50 to join plus $25 a month: C = 25m + 50.
Formulas (on the GED formula sheet)
y = mx + b- m = slope, b = y-intercept, (x, y) = any point on the line.
- point-slope form: m = slope, (x_1, y_1) = a known point on the line.
All three are on the GED formula sheet. Memorize these extra rules (not on the sheet): x-intercept → set y = 0; y-intercept → set x = 0; y = k is horizontal; x = k is vertical.
Example 1 — Graph using slope and intercept
Problem. Graph y = -3x + 2. Name two points the line passes through besides the y-intercept.
- y-intercept: (0, 2).
- Slope -3 = \frac{-3}{1}: down 3, right 1 → (1, -1).
- Again: down 3, right 1 → (2, -4).
Answer: e.g. (1, -1) and (2, -4).
Check: -3(2) + 2 = -4 ✓
Example 2 — Graph using intercepts
Problem. Find the intercepts of 4x - 3y = 12 and describe the graph.
- y = 0: 4x = 12 \Rightarrow x = 3 → (3, 0).
- x = 0: -3y = 12 \Rightarrow y = -4 → (0, -4).
- Slope = \frac{0 - (-4)}{3 - 0} = \frac{4}{3}, so the line rises.
Answer: intercepts (3, 0) and (0, -4); a rising line.
Check: shortcut -\frac{A}{B} = -\frac{4}{-3} = \frac{4}{3} ✓
Example 3 — Real world: taxi fare
Problem. A taxi charges a flat $3.50 plus $2.25 per mile. Write the equation, find the cost of an 8-mile ride, and name the y-intercept's meaning.
- Starting value b = 3.50; rate m = 2.25 per mile → C = 2.25d + 3.50.
- d = 8: C = 2.25(8) + 3.50 = 18 + 3.50 = 21.50.
- The y-intercept (0,\ 3.50) is the cost before driving any miles — the flat fee.
Answer: C = 2.25d + 3.50; an 8-mile ride costs $21.50.
Check: 21.50 - 3.50 = 18 = 2.25 \times 8 ✓
Example 4 — Equation from a graph (real world)
Problem. A gym's cost graph passes through (0, 50) and (4, 150) (months, dollars). Write the equation and find the cost for a year.
- b = 50 (sign-up fee).
- m = \frac{150 - 50}{4 - 0} = 25 dollars per month.
- C = 25m + 50. For 12 months: 25(12) + 50 = 350.
Answer: C = 25m + 50; one year costs $350.
Check: At 4 months: 25(4) + 50 = 150 ✓
Example 5 — GED-hard: from two points, work backwards
Problem. A line passes through (3, 1) and (-6, 7). Find its equation and its x-intercept.
- m = \frac{7 - 1}{-6 - 3} = \frac{6}{-9} = -\frac{2}{3}.
- Use (3, 1): 1 = -\frac{2}{3}(3) + b \Rightarrow 1 = -2 + b \Rightarrow b = 3. So y = -\frac{2}{3}x + 3.
- x-intercept: 0 = -\frac{2}{3}x + 3 \Rightarrow \frac{2}{3}x = 3 \Rightarrow x = 3 \times \frac{3}{2} = 4.5.
Answer: y = -\tfrac{2}{3}x + 3; x-intercept (4.5,\ 0).
Check: -\frac{2}{3}(-6) + 3 = 4 + 3 = 7 ✓ and -\frac{2}{3}(4.5) + 3 = -3 + 3 = 0 ✓
Calculator tip (TI-30XS MultiView)
- Use the calculator to fill a table of values quickly: e.g. for y = 2.25x + 3.5 type
2.25×8+3.5enter→ 21.5. - For fractional slopes, enter them with n/d:
n/d2▼3▶×9−1enter→ 5. Use toggle to switch fraction ↔ decimal. - Use the (−) key for negative coordinates: -2(-2) is
(−)2×(−)2. - When NOT to use it: plotting points, counting rise and run, or finding intercepts of equations like 3x + 4y = 24 — those are one-step mental divisions. The calculator can't draw the graph for you on the GED.
Common mistakes
- Starting at the wrong place. Plotting b on the x-axis: (3, 0) instead of (0, 3). ✗ The y-intercept is always (0, b). ✓
- Rise and run swapped. For m = -\frac{2}{5}, moving down 5 and right 2. ✗ Numerator = up/down, denominator = across. ✓
- Losing a negative. In 5x - 2y = 10, setting x = 0 gives -2y = 10, so y = -5, not 5. ✓
- Swapping m and b. Writing y = 2x - \frac{3}{4} for a line with slope -\frac{3}{4} and intercept 2. ✗ The coefficient of x is the slope. ✓
- Treating every line as proportional. Using \frac{150}{4} as the slope when the line starts at $50. ✗ Slope uses two points: \frac{150 - 50}{4 - 0}. ✓
- Plotting only two points. One small error makes a wrong line. ✗ Plot a third point as a check. ✓
GED test strategy
- Match a graph to an equation by elimination. Check the y-intercept first (it rules out choices fast), then the sign of the slope, then the size.
- Plug points in. When answer choices are equations, test 2 points from the graph in each — intercepts give the easiest arithmetic.
- Use the formula sheet for y = mx + b and point-slope form when writing an equation.
- Read real-world graphs carefully: check the axis labels and scale; identify the starting value (intercept) and rate (slope) with units.
- Hot-spot graphing: work out the exact coordinates on your erasable note board before clicking.
- Time: these questions should take 1–2 minutes. If an equation is not in y = mx + b form, rewrite it first — it saves time overall.
Check yourself
Where does the graph of y = 4x - 5 cross the y-axis?
Hint
On the y-axis, x = 0. What is y when x = 0?
Step-by-step solution
- Every point on the y-axis has x = 0.
- Substitute x = 0: y = 4(0) - 5 = 0 - 5 = -5
- So the line crosses the y-axis at (0,\ -5). This matches b = -5 in y = mx + b.
The y-intercept is (0,\ -5).
Check: In y = mx + b, b is the y-intercept; here b = -5 (the sign comes with it) ✓
Tip: In y = mx + b form, you can read the y-intercept straight from the equation: it is (0, b).
Check yourself
Click the point where the graph of y = -x + 3 crosses the x-axis.
Click on the figure to mark your answer (or focus it and use the arrow keys).
Hint
On the x-axis, y = 0. Set y = 0 and solve for x.
Step-by-step solution
- Points on the x-axis have y = 0.
- Set y = 0: 0 = -x + 3
- Add x to both sides: x = 3.
- The x-intercept is (3,\ 0): 3 units right of the origin, on the horizontal axis.
Click (3,\ 0).
Check: y = -(3) + 3 = 0 ✓
Tip: x-intercept → set y = 0. y-intercept → set x = 0. The intercept is named after the axis it sits on. The trap point (0, 3) is the y-intercept of this line (set x = 0: y = 3) — notice how the two intercepts trade places, which is why clicking carefully matters.
Summary
- y = mx + b: plot (0, b), then use rise/run from the slope to plot more points.
- Ax + By = C: find the intercepts — y = 0 gives the x-intercept, x = 0 gives the y-intercept.
- A point is on a line exactly when its coordinates make the equation true.
- From a graph: read b, compute m from two grid points, write y = mx + b. From two points: find m, then solve for b.
- In real life, b is the starting value and m is the rate per unit.
- Horizontal lines are y = k; vertical lines are x = k.