Sub topic 12
Choosing the right form for the problem
A line has one graph and several equivalent equations. Slope-intercept form, point-slope form and standard form all describe the same set of points, so you can pick whichever is least work. This chapter gives you a way to pick, and it points out where each form fails. It assumes you can find a slope from two points, convert between the three forms, and solve a linear equation for one variable.
What each form shows directly
Each form displays some facts about the line at once and hides others. The hidden facts cost you a step of algebra to recover.
| Form | Equation | Shown directly | Needs a calculation |
|---|---|---|---|
| Slope-intercept | y = mx + b | Slope m, y-intercept b | x-intercept, any other point |
| Point-slope | y - y1 = m(x - x1) | Slope m, one point (x1, y1) | Both intercepts |
| Standard | Ax + By = C | Both intercepts, once you divide | Slope (-A/B), y-intercept (C/B) |
The standard form row needs one comment. The x-intercept is C/A and the y-intercept is C/B. You can see them quickly, but you still divide. You can also set y = 0 or x = 0 and solve, which is often easier to trust.
Choose by what you are given
The most reliable rule is to pick the form that matches your starting information. Then convert only if the question asks for a particular form.
A point and a slope: point-slope form
Suppose a line passes through (3, -2) and has slope 4. Point-slope form takes the numbers as given:
y + 2 = 4(x - 3)
Notice that y - (-2) becomes y + 2. This is the usual place for sign errors, so write the subtraction first and simplify it afterward. Rewriting this as y = 4x - 14 is extra work. Do it only if the question asks for slope-intercept form or if you need the y-intercept.
Two points: slope first, then point-slope
With two points you must compute the slope before any form applies. After that, use either point. Both give the same line, and the point-slope equations look different only until you simplify them.
For (1, 3) and (4, 9), the slope is (9 - 3)/(4 - 1) = 2. Using the first point gives y - 3 = 2(x - 1). Using the second gives y - 9 = 2(x - 4). Both simplify to y = 2x + 1. Pick the point with smaller or friendlier numbers to keep the arithmetic short.
A slope and a y-intercept: slope-intercept form
If a problem says "starts at 5 and rises 3 per step," the y-intercept is 5 and the slope is 3, so y = 3x + 5. Point-slope form would also work here, using the point (0, 5). It would just add steps.
Intercepts, totals and constraints: standard form
Standard form fits problems where two quantities add up to a fixed total. Say apples cost $2 each, pears cost $3 each, and you spend exactly $24. With x apples and y pears:
2x + 3y = 24
This is already standard form. The coefficients have meaning (prices), and the intercepts are meaningful too. Setting y = 0 gives (12, 0), which is 12 apples and no pears. Setting x = 0 gives (0, 8), which is 8 pears and no apples. Solving for y would give y = -(2/3)x + 8, which has a fractional slope that means nothing to a shopper.
Standard form is also the natural choice when you are given both intercepts. Take an x-intercept of 6 and a y-intercept of -4. Start from x/6 + y/(-4) = 1, then multiply by 12 to clear the fractions:
2x - 3y = 12
Check it. At (6, 0), 2(6) = 12, and at (0, -4), -3(-4) = 12. Both points satisfy the equation.
Choose by what you need to do next
Sometimes the given information does not decide the form. In that case, look at what you must do with the line.
- Graph it quickly. Use slope-intercept form if b is easy to plot and m is a simple fraction. Use standard form if the intercepts are whole numbers. Use point-slope form if the known point is not on an axis, by plotting that point and counting the slope from it.
- Compare slopes (parallel or perpendicular). Slope-intercept form shows m at once. From standard form, compute -A/B first. Two lines are parallel when their slopes match and perpendicular when the slopes multiply to -1.
- Test whether a point is on the line. Substitute into any form. Standard form is convenient here because integer coefficients keep the arithmetic exact.
- Find where two lines cross. Standard form lines line up the x terms, y terms and constants in columns, which suits elimination. Slope-intercept form suits substitution.
- Predict a value. Slope-intercept form gives y directly for a chosen x.
Where each form breaks down
Vertical lines have no slope
A vertical line such as x = 5 has an undefined slope. Slope-intercept and point-slope forms both need m, so neither can describe it. Only standard form can, with A = 1, B = 0 and C = 5. This is the strongest argument for knowing standard form: it is the one form that covers every line.
Horizontal lines are fine but easy to mishandle
A horizontal line has slope 0. Point-slope form through (2, 7) gives y - 7 = 0(x - 2), which simplifies to y = 7. In standard form this is 0x + 1y = 7, normally written as y = 7. Its x-intercept does not exist unless the line is y = 0.
Standard form hides the slope
Rewriting 2x - 3y = 12 as y = (2/3)x - 4 takes work, and a missed sign is common. The slope is -A/B, which is -2/(-3) = 2/3. Be careful with the minus sign: students often report A/B instead of -A/B.
Fractions and normalization
Standard form is conventionally written with integer coefficients, no common factor, and A non-negative. Each of these steps is a place to slip. For example, 6x - 9y = 36 is correct but not reduced. Dividing by 3 gives 2x - 3y = 12. Multiplying by -1 when A is negative changes every sign, including C.
A code check for the hidden facts
This function reads the slope and intercepts out of Ax + By = C, including the special cases. It uses exact fractions so that no rounding hides an error.
from fractions import Fraction
def describe(a, b, c):
"""Describe the line Ax + By = C: slope and intercepts, or the vertical case."""
if a == 0 and b == 0:
raise ValueError("A and B cannot both be 0")
if b == 0:
return f"vertical line x = {Fraction(c, a)}; no slope; no y-intercept"
slope = Fraction(-a, b)
y_int = Fraction(c, b)
if a == 0:
x_int = "every point (the line is the x-axis)" if c == 0 else "none"
else:
x_int = str(Fraction(c, a))
return f"slope {slope}, y-intercept {y_int}, x-intercept {x_int}"
print(describe(2, -3, 12)) # slope 2/3, y-intercept -4, x-intercept 6
print(describe(0, 1, 5)) # slope 0, y-intercept 5, x-intercept none
print(describe(1, 0, 5)) # vertical line x = 5; no slope; no y-interceptThe first call matches the intercept example above, which is a useful cross-check.
Summary of the choice
- Check whether the line is vertical. If so, write x = constant.
- Match the form to the given information: a point and a slope give point-slope form, a slope and y-intercept give slope-intercept form, and totals or intercepts give standard form.
- If the question names a form, convert at the end and check by substitution.
- If the question asks you to graph, compare, or predict, pick the form that shows the needed fact with the least algebra.
Exercise
A line passes through (-2, 5) and (4, -1). (a) Which form is the best starting point, and what is the equation in that form? (b) Write the line in standard form with integer coefficients and A non-negative.
Show answer
(a) You are given two points, so compute the slope first: (-1 - 5)/(4 - (-2)) = -6/6 = -1. Then use point-slope form with (4, -1): y + 1 = -1(x - 4). (b) Expand: y + 1 = -x + 4, so x + y = 3. Here A = 1, B = 1, C = 3, and A is non-negative. Check: (-2) + 5 = 3 and 4 + (-1) = 3.
Exercise
A school club sells small bags of popcorn for $3 and large bags for $5. It needs to raise exactly $60. Write an equation in the form Ax + By = C, with x as small bags and y as large bags, and give the two intercepts. Why is standard form a better choice here than slope-intercept form?
Show answer
The equation is 3x + 5y = 60. The x-intercept is (20, 0), meaning 20 small bags and no large bags. The y-intercept is (0, 12), meaning 12 large bags and no small bags. Standard form keeps the prices as whole-number coefficients and the total as the constant, so the equation reads like the situation. Slope-intercept form would give y = -(3/5)x + 12, whose fractional slope has no clear meaning for the club.
Exercise
Which form can describe the line x = -3, and why can't the other two?
Show answer
Only standard form can, as 1x + 0y = -3. Slope-intercept form and point-slope form both need a slope m, and a vertical line has an undefined slope because its run is 0.