Systems in Two Variables

Learning goals

  • Read the solution set as one point, none, or a line
  • Prove no other count is possible for two lines
  • Detect the case from how elimination ends
  • Classify a system from its coefficient ratios and name it consistent, inconsistent, independent, or dependent
  • Describe an infinite solution set explicitly, as (x,2x−3)(x, 2x - 3)

A system asks where two lines meet

You already know that a single linear equation in two variables, such as 2x+3y=122x + 3y = 12, does not have one answer. Its solutions are all the pairs (x,y)(x, y) that make it true, and when you plot them they form a straight line. The equation and the line are two views of the same object: the line is the solution set of that one equation.

A system stacks two such equations and asks for the pairs that satisfy both at once:

2x+3y=12,x−y=1.2x + 3y = 12, \qquad x - y = 1.

A pair solves the system exactly when it lies on the first line and on the second. So the solution set of the system is precisely the set of points the two lines have in common, their intersection. The whole question “how many solutions can a system have” becomes a geometry question you can picture: in how many points can two lines in a plane meet?

Three shapes, and no others

Take any two lines drawn in the same plane. Run through the possibilities. They might cross at a single point. They might run parallel and never touch. Or the two equations might, once simplified, describe the very same line lying on top of itself. Those three pictures give one shared point, no shared point, and every point shared. What is remarkable is that this list is complete: no arrangement of two straight lines produces exactly two crossings, or exactly five. The reason is short and worth seeing in full.

A linear system in two variables has one, no, or infinitely many solutions, and nothing else#

A solution of the system is a point lying on both lines, so the solution set is exactly the collection of points the two lines share. Two lines are either the same line or two genuinely different lines, so handle those cases.

If the two equations describe the same line, then every point of that line lies on both. Since a line has infinitely many points, the system then has infinitely many solutions.

If the two lines are different, they can share at most one point. Here is why. Suppose, for contradiction, that two different lines passed through two different shared points. A straight line is completely determined by any two of its points: through two given points there is exactly one line. So both lines, passing through the same two points, would have to be the identical line, contradicting that they are different. Two distinct lines therefore meet in at most one point, which leaves only two options: they cross at exactly one point, or they never meet at all.

Collecting the cases, the solution set is the whole line (same line), a single point (distinct lines that cross), or empty (distinct lines that never meet). A count of “two or more, but finitely many” is impossible, because the two-points argument forbids two distinct lines from sharing even two points. That is the entire list.

Check your understanding

Two different lines are claimed to cross at two different points, PP and QQ. Why is that impossible?

Answer choices

The three outcomes are easy to tell apart once each line is in slope-intercept form y=mx+by = mx + b, because the slope mm controls the direction. Different slopes force a single crossing. Equal slopes with different intercepts give parallel lines that never meet. Equal slopes with the same intercept are the same line drawn twice.

The three cases for two lines: crossing, parallel, coincidentLeft panel: two lines forming an X, crossing at one point, labeled one solution. Middle panel: two parallel lines of equal slope, labeled no solution. Right panel: a single line drawn as an overlap of two, labeled infinitely many solutions.One solutionlines crossNo solutionparallelInfinitely manysame line
The only three ways two lines can sit in a plane: crossing once, parallel, or coincident. These are the one, none, and infinitely many solution cases.

Check your understanding

How many solutions does this system have: y=3x+2y = 3x + 2 and y=−2x+7y = -2x + 7?

Answer choices

The figure below is a single pair of lines, solid as Line A and dashed as Line B, carrying all three cases. Below the figure, Rise A, Run A, and Crosses A control the solid line, and Rise B, Run B, and Crosses B control the dashed one; a Crosses control moves its line up or down without changing its slope, which is the same thing as that line’s intercept.

The figure opens with the two lines crossing, at (43,53)\left(\tfrac43, \tfrac53\right): one solution. Note that a crossing does not have to land on a grid intersection, which is the practical reason the algebra is worth more than the picture. Now set Rise B to 11 and Run B to 22, matching Line A’s slope. The dot disappears and the sentence stops naming a point: parallel, no solution. Hold the slopes there and lower Crosses B to 11, where Line A meets the axis. The two lines merge into what looks like one, and the count jumps from none to infinitely many.

Watch that last step closely, because it is where the picture gives out. Once the slopes match, the only thing separating “no solution” from “infinitely many” is the value of Crosses B, and the infinitely-many case draws a figure indistinguishable from a single line. The proof above, not the picture, is what tells the two apart.

One pair of lines, all three cases

y = (1/2)x + 1. y = -x + 3. The slopes 1/2 and -1 are different, so they cross exactly once. They cross at (4/3, 5/3). A coordinate plane with two straight lines drawn across it, and a dot marking where they cross when they do. Use the controls below the figure to change the rise, the run or the crossing point of either line. -8 -6 -4 -2 2 4 6 8 -6 -4 -2 2 4 6
Rise A Run A Crosses A Rise B Run B Crosses B

y = (1/2)x + 1. y = -x + 3. The slopes 1/2 and -1 are different, so they cross exactly once. They cross at (4/3, 5/3).

Two lines on one coordinate plane, solid Line A and dashed Line B, with a dot where they share a point. Equal slopes remove the dot, and equal slopes with the same Crosses value leave the two lines lying on top of each other.

Reading the three cases off the algebra

You do not need a graph to know which case you are in. Substitution and elimination already report it, if you listen to what they output. Both methods work by removing one variable to get a single equation, and that final equation lands in exactly one of three states, matching the three pictures one for one. Think of elimination less as a way to grind out an answer and more as a detector for which case a system is in.

Start with the case you expect most often, a single crossing point.

Worked example 1 One solution: the algebra ends at a value

Solve the system

2x+3y=12,x−y=1.2x + 3y = 12, \qquad x - y = 1.

The slopes differ (−23-\tfrac{2}{3} against 11), so expect a single crossing. Eliminate yy by scaling the second equation by 33 so the yy terms become opposites:

3(x−y)=3(1)  ⟹  3x−3y=3.3(x - y) = 3(1) \;\Longrightarrow\; 3x - 3y = 3.

Add this to the first equation. The +3y+3y and −3y-3y cancel:

(2x+3y)+(3x−3y)=12+3  ⟹  5x=15  ⟹  x=3.(2x + 3y) + (3x - 3y) = 12 + 3 \;\Longrightarrow\; 5x = 15 \;\Longrightarrow\; x = 3.

Back-substitute into x−y=1x - y = 1 to get 3−y=13 - y = 1, so y=2y = 2. The elimination ended at a genuine value, x=3x = 3, which then pinned yy to a single number. That is the signature of the one-solution case:

(x,y)=(3,2).(x, y) = (3, 2).

A quick check confirms it: 2(3)+3(2)=122(3) + 3(2) = 12 and 3−2=13 - 2 = 1, both true.

Now watch what changes when the lines are parallel. The arithmetic does something that looks alarming the first time you see it, but it is exactly the report you want.

Worked example 2 No solution: the algebra ends at a falsehood

Solve the system

2x−y=3,4x−2y=1.2x - y = 3, \qquad 4x - 2y = 1.

Rewrite each in slope-intercept form to see the geometry: the first is y=2x−3y = 2x - 3 and the second is y=2x−12y = 2x - \tfrac{1}{2}. Same slope 22, different intercepts, so the lines are parallel and should share no point. Watch elimination confirm it. Scale the first equation by 22:

2(2x−y)=2(3)  ⟹  4x−2y=6.2(2x - y) = 2(3) \;\Longrightarrow\; 4x - 2y = 6.

Subtract the second equation, 4x−2y=14x - 2y = 1, from this. Both variables cancel at once:

(4x−2y)−(4x−2y)=6−1  ⟹  0=5.(4x - 2y) - (4x - 2y) = 6 - 1 \;\Longrightarrow\; 0 = 5.

The statement 0=50 = 5 is false, and no choice of xx or yy can make it true, because xx and yy have already vanished from it. So there is no pair satisfying both equations. The system has no solution, which is precisely the parallel-lines picture.

The last case is the strangest of the three, because the answer is not a point and not “nothing” but an entire line’s worth of solutions. When elimination wipes out both variables and leaves a statement that is simply true, the second equation was telling you nothing new.

Worked example 3 Infinitely many: describing the whole solution set

Solve the system

6x−3y=9,2x−y=3.6x - 3y = 9, \qquad 2x - y = 3.

Divide the first equation by 33 and it becomes 2x−y=32x - y = 3, identical to the second. The two equations are the same line wearing different clothes. Elimination makes this explicit: scale the second by 33 to get 6x−3y=96x - 3y = 9, then subtract the first:

(6x−3y)−(6x−3y)=9−9  ⟹  0=0.(6x - 3y) - (6x - 3y) = 9 - 9 \;\Longrightarrow\; 0 = 0.

The statement 0=00 = 0 is always true, so the second equation added no restriction the first had not already imposed. Every point on the shared line solves the system, so there are infinitely many solutions.

“Infinitely many” is not a complete answer, though; you should say which pairs. Solve the common line 2x−y=32x - y = 3 for yy to get y=2x−3y = 2x - 3. Then any xx you like is allowed, and yy is forced to match, so the solution set is every pair of the form

(x, 2x−3)as x ranges over all real numbers.(x,\ 2x - 3) \quad \text{as } x \text{ ranges over all real numbers.}

For instance x=0x = 0 gives (0,−3)(0, -3), and x=4x = 4 gives (4,5)(4, 5); both satisfy the original two equations. Writing the answer as (x, 2x−3)(x,\ 2x - 3) captures all of them at once.

These three endings are the whole story, and they are the algebraic mirror of the geometry.

Why elimination can only end in a value, a falsehood, or an identity#

Take a system in which each equation genuinely involves both variables. Eliminate one variable, say yy, by scaling the two equations so their yy-coefficients match and then subtracting. The yy terms cancel by design, and what remains is one equation whose only variable is xx. Exactly one of two things happens to the xx term.

Either some nonzero multiple of xx survives, giving an equation of the form px=qpx = q with p≠0p \ne 0. Then x=qpx = \tfrac{q}{p} is forced to a single value, back-substitution forces one matching yy, and the system has exactly one solution.

Or the xx term cancels along with the yy term, leaving a bare numerical statement 0=k0 = k. That cancellation happens exactly when the two equations’ xx and yy coefficients are already proportional, so kk is left to record whether the constant terms respect that same proportion. If k≠0k \ne 0 the statement 0=k0 = k is false and the system has no solution. If k=0k = 0 the statement 0=00 = 0 holds for every pair, and the second equation is a rescaling of the first. The two then describe one line, and every point on it is a solution, infinitely many.

So the only possible endings are px=qpx = q (one solution), 0=k≠00 = k \ne 0 (none), and 0=00 = 0 (infinitely many), matching crossing lines, parallel lines, and one repeated line. There is no fourth ending.

Check your understanding

Solving a system by elimination, a student correctly reduces it to the single statement 0=00 = 0. What should they conclude?

Answer choices

Consistent, inconsistent, dependent, independent

Because these three cases come up constantly, they carry standard names, and the names split the idea along two independent questions.

The first question is whether any solution exists at all. A system with at least one solution is consistent; a system with no solution is inconsistent. The parallel-lines system from Worked Example 2, which ended in 0=50 = 5, is inconsistent.

The second question, asked only when the system is consistent, is whether the two equations carry genuinely different information. If the equations describe different lines, they pin down a single crossing point, and the system is independent. If one equation is just a rescaling of the other, so they describe the same line, the system is dependent, and it has infinitely many solutions. Combining the two questions gives exactly the three cases:

When both equations are written in standard form ax+by=cax + by = c with nonzero coefficients and constant terms, you can classify a system at a glance by comparing the ratios of matching coefficients. Two lines have the same slope exactly when a1a2=b1b2\frac{a_1}{a_2} = \frac{b_1}{b_2}, and they are the same line when the constants keep that ratio too:

Coefficient ratiosLinesSolutionsClassification
a1a2≠b1b2\frac{a_1}{a_2} \ne \frac{b_1}{b_2}cross onceexactly oneconsistent, independent
a1a2=b1b2≠c1c2\frac{a_1}{a_2} = \frac{b_1}{b_2} \ne \frac{c_1}{c_2}parallelnoneinconsistent
a1a2=b1b2=c1c2\frac{a_1}{a_2} = \frac{b_1}{b_2} = \frac{c_1}{c_2}same lineinfinitely manyconsistent, dependent

The middle and bottom rows differ only in whether the constant term joins the pattern. That difference is the same thing as asking whether kk is nonzero or zero at the end of elimination.

Check your understanding

The system 6x−2y=106x - 2y = 10 and 3x−y=53x - y = 5 reduces, by elimination, to 0=00 = 0. What is the complete solution set, and how is the system classified?

Answer choices

Forcing a case: solving for a parameter

Once you can read the case off the coefficients, you can run the question backward. Instead of being handed a fixed system and asked how many solutions it has, you are handed a system with an unknown constant in it. You are then asked to choose that constant so that a particular case occurs. This is where the classification earns its keep.

Worked example 4 Choose k so the system has no solution, then infinitely many

For which values of kk does this system have no solution, and for which does it have infinitely many?

3x−y=4,6x−2y=k.3x - y = 4, \qquad 6x - 2y = k.

Look at the left-hand sides. The second, 6x−2y6x - 2y, is exactly twice the first, 3x−y3x - y. So no matter what kk is, the two lines have the same slope; they can only ever be parallel or identical, never crossing. Which one it is depends on the constant. Scale the first equation by 22:

2(3x−y)=2(4)  ⟹  6x−2y=8.2(3x - y) = 2(4) \;\Longrightarrow\; 6x - 2y = 8.

Compare with the second equation, 6x−2y=k6x - 2y = k. Subtracting gives

0=8−k.0 = 8 - k.

If k=8k = 8, this is 0=00 = 0, the two equations are the same line, and there are infinitely many solutions. If k≠8k \ne 8, this is 0=(nonzero)0 = (\text{nonzero}), the lines are parallel, and there is no solution.

k=8⇒infinitely many,k≠8⇒no solution.k = 8 \Rightarrow \text{infinitely many}, \qquad k \ne 8 \Rightarrow \text{no solution.}

Notice there is no value of kk that gives a single solution here. The left sides are locked into the same slope, so a lone crossing point is off the table from the start.

When the unknown sits in a coefficient instead of a constant, it controls the slope, and the reasoning shifts to matching slopes. The next checkpoint is that version.

Check your understanding

For which value of kk does the system 2x+5y=72x + 5y = 7 and 6x+ky=16x + ky = 1 fail to have exactly one solution?

Answer choices

Common mistakes

Practice

Multiple Choice Questions (MCQ)

Progressively harder sets of questions. Each opens on its own page.

Core practice

Practice problems at the level of the course, to be worked out on paper. Hints one at a time, then the answer or the full worked solution, with your progress kept in this browser.

Core practice Work it out on paper 10 problems Start →
More practice (optional)

Extra sets, as hard as the Challenge set. Each one opens on its own page.

More resources (optional)

Other explanations of this lesson, if you want a second take.

A bit of history (optional)

How many times can two shapes cross?

Start with the shapes you already know. Two distinct straight lines cross once, or never. A straight line can cut a circle twice, or graze it, or miss it entirely. It can never cut a circle three times. So the number of crossings has a ceiling, and the ceiling depends on the shapes.

Etienne Bezout, a French mathematician, published the general answer in 1779. Every curve carries a degree. Take any term, add the powers inside it, and the largest total is the degree, so xyxy counts as two. This lesson states a simplified version of his rule, for the ordinary crossings you would actually mark on a real graph: multiply the two degrees, and the product is the most such crossings that pair can ever have. (The full theorem is exact rather than a ceiling, but only once you also count using complex-number coordinates, add in “points at infinity” where parallel lines meet, and count each touching point by its multiplicity, how many times the curves coincide there, rather than as a single point. A plain graze counts twice; a tighter tangency between higher-degree curves can count higher still. None of that extra machinery is needed for the two straight lines below.) One condition rides along: the curves must have no piece in common, since a curve laid on top of another meets it everywhere. A line has degree one and a circle degree two, so a line meets a circle at most twice. Two lines have degree one apiece, and one multiplied by one is one.

That final case is the theorem you proved in this lesson. Two different lines share at most one point. So a system of two linear equations cannot possibly have exactly two solutions, or exactly five, whatever coefficients you choose.

Notice that Bezout promises only a ceiling once you stay with ordinary real points, not an exact count. Ordinary pairs fall short of it constantly, and this lesson shows the two ways that happens. Parallel lines miss the ceiling entirely: they share no ordinary point, though the full theorem would still count one shared point “at infinity” that no graph ever shows. Two copies of a single line share every point, which is exactly the case the “no piece in common” condition rules out to begin with, so the ceiling never applied there at all. Those are the awkward cases in any count of crossings, and here they are your no solution and your infinitely many.