Solutions of linear equations

A linear equation in one variable, like 2x+3=112x + 3 = 11, has exactly one answer: x=4x = 4. So it feels natural to expect a linear equation in two variables, like x+2y=6x + 2y = 6, to also have one answer. It does not — and that surprise is the whole point of this topic. A "solution" here is not a single number but an ordered pair (x,y)(x, y) that makes the equation true. Because you are free to pick almost any value for xx and then solve for yy, the equation admits infinitely many such pairs. Learning to generate these pairs systematically, and to check whether a given pair qualifies, is the essential skill this section builds — and it is the direct bridge to the next topic, where these infinite pairs are plotted and turn out to trace a straight line.

The core insight

A linear equation in two variables, ax+by+c=0ax + by + c = 0, has infinitely many solutions because each ordered pair (x,y)(x, y) satisfying it corresponds to one free choice of xx (or yy) followed by solving for the other.

The core idea

What counts as a solution. For the equation ax+by+c=0ax + by + c = 0, a solution is an ordered pair (x,y)(x, y) of real numbers which, when substituted in for xx and yy respectively, makes the left-hand side equal to the right-hand side (here, zero).

Why "ordered" matters. The pair (x,y)(x, y) is written in a fixed order: the first number always goes to xx, the second always to yy. Swapping them, (y,x)(y, x), generally gives a different pair altogether and can fail the equation even when (x,y)(x, y) succeeds.

Why there are infinitely many. Pick any real number for xx — there is nothing stopping you from choosing 00, 55, −3-3, or a fraction like 12\tfrac{1}{2}. Once xx is fixed, the equation becomes a one-variable equation in yy alone, which has exactly one value of yy. So every choice of xx produces exactly one matching yy, and hence one solution (x,y)(x, y). Since there are infinitely many choices for xx, there are infinitely many solutions.

ax+by+c=0⟹y=−c−axb(b≠0)ax + by + c = 0 \quad\Longrightarrow\quad y = \frac{-c - ax}{b} \qquad (b \neq 0)

where: aa, bb, cc are the fixed real-number coefficients of the equation (aa and bb not both zero), xx is the value freely chosen, and yy is the value that follows by solving the equation once xx is fixed.

Checking a candidate pair. To test whether a given ordered pair (p,q)(p, q) solves ax+by+c=0ax + by + c = 0, substitute x=px = p and y=qy = q into the left-hand side and simplify. If the result is 00, the pair is a solution; if not, it isn't.

Check: ap+bq+c0\text{Check: } ap + bq + c \stackrel{?}{=} 0

where: pp is the candidate value for xx, qq is the candidate value for yy, and the check succeeds exactly when the arithmetic balances to zero.

Figure
A number line of x values feeding into an equation box that outputs matching y values forming ordered pairs
Each chosen x gives exactly one matching y choose x 0 2 4 6 x + 2y = 6 solve for y ordered pairs (0, 3) (2, 2) (4, 1) (6, 0) Every x value on the left gives exactly one y, so one solution. Infinitely many possible x values means infinitely many solutions.
Derivation AGenerating solutions of a linear equation in two variables

The goal is to show, for the specific equation x+2y=6x + 2y = 6, exactly how choosing a value of xx mechanically produces a matching value of yy, so that the resulting ordered pair can be written down and later verified by substitution — this is the procedure every "find solutions of..." question in the chapter is really asking you to run.

Step 1. Isolate yy so that any chosen xx can be plugged straight in. Starting from x+2y=6x + 2y = 6, subtract xx from both sides to get 2y=6−x2y = 6 - x, then divide by 22: y=6−x2y = \dfrac{6-x}{2}.

Step 2. Choose a convenient value of xx. Convenient usually means a value that keeps the arithmetic simple and, ideally, gives a whole-number yy — but any real number is allowed. Let x=0x = 0.

Step 3. Substitute and solve for yy. With x=0x = 0: y=6−02=3y = \dfrac{6-0}{2} = 3. This gives the ordered pair (0,3)(0, 3).

Step 4. Repeat with a different chosen xx to see that a genuinely different solution appears each time. Let x=4x = 4: y=6−42=1y = \dfrac{6-4}{2} = 1, giving (4,1)(4, 1) — a different pair, equally valid, confirming that the process can be repeated without limit.

Worked example

Problem. Find four different solutions of the equation x+2y=6x + 2y = 6, and then check whether the pair (1,1)(1, 1) is also a solution.

Step 1. Rewrite the equation with yy as the subject: y=6−x2y = \dfrac{6-x}{2}.

Step 2. Choose four convenient values of xx and compute the matching yy for each. For x=0x=0: y=6−02=3y=\dfrac{6-0}{2}=3, giving (0,3)(0,3). For x=2x=2: y=6−22=2y=\dfrac{6-2}{2}=2, giving (2,2)(2,2). For x=4x=4: y=6−42=1y=\dfrac{6-4}{2}=1, giving (4,1)(4,1). For x=6x=6: y=6−62=0y=\dfrac{6-6}{2}=0, giving (6,0)(6,0).

Step 3. Note that other choices work too — for instance x=−2x=-2 gives y=6−(−2)2=4y=\dfrac{6-(-2)}{2}=4, so (−2,4)(-2,4) is a fifth valid solution, confirming there is no limit to how many can be found.

Step 4. Now check (1,1)(1, 1) by substitution: x+2y=1+2(1)=1+2=3x + 2y = 1 + 2(1) = 1 + 2 = 3. Since 3≠63 \neq 6, the pair does not satisfy the equation.

Final answer: (0,3)(0,3), (2,2)(2,2), (4,1)(4,1) and (6,0)(6,0) are four solutions of x+2y=6x + 2y = 6, while (1,1)(1,1) is not a solution.

Competitive stretch

Problem. Check whether (3,4)(3, 4) and (1,1)(1, 1) are solutions of 2x−y=22x - y = 2, and state what this shows about how many pairs actually satisfy a given equation.

Step 1. Test (3,4)(3, 4): substitute x=3x = 3, y=4y = 4 into 2x−y2x - y, giving 2(3)−4=6−4=22(3) - 4 = 6 - 4 = 2. This equals the right-hand side, so (3,4)(3, 4) is a solution.

Step 2. Test (1,1)(1, 1): substitute x=1x = 1, y=1y = 1, giving 2(1)−1=2−1=12(1) - 1 = 2 - 1 = 1. This does not equal 22, so (1,1)(1, 1) is not a solution.

Final answer: (3,4)(3,4) satisfies 2x−y=22x-y=2 but (1,1)(1,1) does not — a reminder that although infinitely many ordered pairs solve any given linear equation, not every ordered pair you can write down is one of them; the equation still acts as a filter.

Common traps

  • Writing the two numbers of a solution in the wrong order — (x,y)(x, y) and (y,x)(y, x) are not interchangeable, and checking with the values swapped gives a wrong verdict.
  • Believing a two-variable linear equation has "the" solution, the way a one-variable equation does — there are always infinitely many, and no single correct pair.
  • Restricting the search for solutions to positive whole numbers only — zero, negative numbers and fractions are equally valid choices for xx or yy.
  • Sign or division slips while isolating a variable, such as writing y=6−xy = 6 - x instead of y=6−x2y = \dfrac{6-x}{2} when the coefficient of yy is not 11.

Ask the tutor: Want to generate and check solutions of a different linear equation, or see how these ordered pairs turn into a graphed line? Ask the AI tutor to walk through more examples with you.

Why does a one-variable equation have one solution but a two-variable equation have infinitely many?

In a one-variable equation, every term already has a fixed variable, so solving it pins down a single number directly, like 2x+3=112x + 3 = 11 giving x=4x = 4. In a two-variable equation there are two unknowns but only one equation, so one of them is genuinely free to choose. Fixing that free variable turns the equation into a one-variable equation in the other, which then has exactly one solution — but since the free variable can be anything, the process repeats endlessly, producing infinitely many ordered-pair solutions.

Does the order in (x, y) really matter, or is it just a convention?

It matters for the check, not just for neatness. The equation treats xx and yy differently whenever their coefficients differ, so substituting the first number for xx and the second for yy can give a true statement while swapping them gives a false one. For example, in 2x−y=22x - y = 2, the pair (3,4)(3, 4) works, but (4,3)(4, 3) gives 2(4)−3=5≠22(4) - 3 = 5 \neq 2, so it fails. Always keep the order fixed as (x,y)(x, y).

Can x or y be a negative number or a fraction in a valid solution?

Yes. The definition only requires (x,y)(x, y) to be real numbers that make the equation true — there is no restriction to positive integers unless a word problem imposes one (like a length or a quantity of objects, which must be positive). For x+2y=6x + 2y = 6, choosing x=−2x = -2 gives y=4y = 4, and (−2,4)(-2, 4) is a perfectly valid solution, just like (0,3)(0, 3) or (6,0)(6, 0).

Before this

Where this leads