Systems of Equations

No Solution vs Infinitely Many Solutions

Simplify the equation until the variable cancels. If you are left with a false statement such as 0=50=5, there is no solution. If you are left with a true statement such as 0=00=0, there are infinitely many solutions.

ax+b=cx+d  ⇒  (a−c)x=d−bax+b=cx+d \;\Rightarrow\; (a-c)x=d-b

Try it with your numbers

Show every step

The same test works for one equation and for a system, where it shows up as parallel lines versus one line drawn twice. This page explains why the test works, how to avoid the traps that cost points, how to find a missing value kk, and how to confirm any answer quickly. If you like pictures, solving systems by graphing shows the same three outcomes as lines on a grid.

How do you tell no solution from infinitely many solutions?

Start with the general linear equation ax+b=cx+dax+b=cx+d. Move the variable terms to one side and the constants to the other:

ax+b=cx+d  ⇒  (a−c)x=d−bax+b=cx+d \;\Rightarrow\; (a-c)x=d-b

Everything depends on the coefficient a−ca-c. If a≠ca\ne c, you can divide by it and get exactly one answer, x=d−ba−cx=\frac{d-b}{a-c}. If a=ca=c, the variable vanishes and the constants alone decide the outcome.

  • a=ca=c and b≠db\ne d: you get 0=d−b0=d-b, which is false. No solution.
  • a=ca=c and b=db=d: you get 0=00=0, which is true. Infinitely many solutions.
  • a≠ca\ne c: one solution.

Here is the idea underneath. The left and right sides are two lines, y=ax+by=ax+b and y=cx+dy=cx+d, and you are asking where they meet. Equal slopes mean the lines never tilt toward each other. Different intercepts mean they never touch (parallel), and equal intercepts mean they are the same line (every point is shared). The coefficient decides whether the lines can cross. The constants decide what happens when they cannot.

Quick check

Solve 4x+9=x+94x+9=x+9. Does it have no solution, one solution or infinitely many?

Solving equations with no solution or infinitely many solutions

Work the equation exactly as you would any other, and read the ending. Take this one:

3(x+2)−x=2x+93(x+2)-x=2x+9

3x+6−x=2x+93x+6-x=2x+9

2x+6=2x+92x+6=2x+9

6=96=9

The xx terms cancelled and the leftover statement is false, so there is no solution. You never need to “solve for xx” here, because the false statement already answers the question.

Now an equation with a negative fraction:

−23(9x−6)=−6x+4-\tfrac{2}{3}(9x-6)=-6x+4

Distribute carefully: −23⋅9x=−6x-\frac23\cdot 9x=-6x and −23⋅(−6)=+4-\frac23\cdot(-6)=+4. The left side becomes −6x+4-6x+4, so the equation reads −6x+4=−6x+4-6x+4=-6x+4. Add 6x6x to both sides and you get 4=44=4, which is true. Every real number is a solution.

A faster route: after distributing, compare the xx coefficients on both sides before moving anything. If they match, the constants tell you the answer immediately. If they differ, solve normally. The most common way to lose points is a sign slip during distribution, which turns a true identity into a false statement (or the reverse). When the result surprises you, redo the distribution first.

Zero is not "no solution"

If you end with x=0x=0, then 0 is a solution, so the equation has one. "No solution" requires the variable to disappear and leave a false statement such as 0=50=5.

No solution or infinite solutions in a system of two equations

For a system, the question becomes whether two lines meet once, never, or everywhere. Rewriting both in slope-intercept form makes the answer visible, because you only compare slopes and intercepts.

Case Slopes Intercepts Algebra ends with Name
One solution different any x=x= a number independent
No solution equal different false, like 0=−10=-1 inconsistent
Infinitely many equal equal true, like 0=00=0 dependent

Try it on 2x+3y=62x+3y=6 and 4x+6y=114x+6y=11. With elimination, multiply the first equation by −2-2 to get −4x−6y=−12-4x-6y=-12, then add it to the second:

0=−10=-1

That is false, so the system has no solution. Solving for yy confirms it: the first line is y=−23x+2y=-\frac23x+2 and the second is y=−23x+116y=-\frac23x+\frac{11}{6}. Same slope, different intercept, parallel lines.

Change the 11 to 12 and the sum becomes 0=00=0, so the second equation is just the first doubled and every point on the line works. There is also a coefficient shortcut: for a1x+b1y=c1a_1x+b_1y=c_1 and a2x+b2y=c2a_2x+b_2y=c_2, no solution means a1a2=b1b2≠c1c2\frac{a_1}{a_2}=\frac{b_1}{b_2}\ne\frac{c_1}{c_2}, and infinitely many means all three ratios are equal. Here 24=36=12\frac24=\frac36=\frac12, but 611≠12\frac{6}{11}\ne\frac12. The substitution method lands on the same false or true statement, so use whichever method you prefer.

How do you write infinitely many solutions as an answer?

“Infinitely many” is not the whole answer in a system, because not every pair works, only the pairs on the line. For 2x+3y=62x+3y=6, solve for yy and write the solutions as ordered pairs:

(x,  −23x+2)\left(x,\; -\tfrac{2}{3}x+2\right)

Test it: x=0x=0 gives (0,2)(0,2), and 0+6=60+6=6. x=3x=3 gives (3,0)(3,0), and 6+0=66+0=6. x=−3x=-3 gives (−3,4)(-3,4), and −6+12=6-6+12=6. A pair off the line, such as (1,1)(1,1), fails because 2+3=5≠62+3=5\ne6.

You can also let y=ty=t be a free parameter. Then x=3−32tx=3-\frac32t, and the solutions are (3−32t,  t)(3-\frac32t,\;t). Check with t=2t=2: x=0x=0, giving (0,2)(0,2) again. Set notation says the same thing: {(x,y)∣2x+3y=6}\{(x,y)\mid 2x+3y=6\}.

For a single variable, write “all real numbers”, R\mathbb{R}, or (−∞,∞)(-\infty,\infty). For no solution, write “no solution”, “DNE”, or the empty set ∅\varnothing. Your textbook or teacher will name a preferred form, and all of them are correct.

Try this: Take x+2y=8x+2y=8 and write its solutions as (t, __)(t,\,\_\_). Plug three different values of tt into both equations of the system x+2y=8x+2y=8, 3x+6y=243x+6y=24, and confirm each pair works in both.

How to find k for no solution or infinitely many solutions

Two systems with k = 4, one with infinitely many solutions and one with no solution
With k = 4, a constant of 8 gives the same line, while a constant of 9 gives parallel lines.

Test questions love parameters. Consider 2x+ky=82x+ky=8 and 3x+6y=123x+6y=12. For parallel or identical lines, the coefficients must be proportional:

23=k6  ⇒  k=4\frac{2}{3}=\frac{k}{6} \;\Rightarrow\; k=4

That gives one candidate, but it is only half the answer. Now compare the constants: 812=23\frac{8}{12}=\frac23, which matches, so at k=4k=4 the equations describe the same line and there are infinitely many solutions. Every other value of kk gives exactly one solution.

Change the first equation to 2x+ky=92x+ky=9. The coefficient condition still gives k=4k=4, but now 912=34≠23\frac{9}{12}=\frac34\ne\frac23, so k=4k=4 produces no solution. Same kk, opposite outcome. The constants always have the final say.

The determinant of a 2×2 matrix gives the same candidate faster:

∣2k36∣=12−3k=0  ⇒  k=4\begin{vmatrix}2&k\\3&6\end{vmatrix}=12-3k=0 \;\Rightarrow\; k=4

A zero determinant says there is no unique solution, but it cannot separate “none” from “infinitely many”. That is why Cramer’s rule breaks down here: it divides by the determinant. Once the determinant is zero, go back to elimination and read the constants.

Quick check

How many solutions does the system y=−2x+5y=-2x+5, 4x+2y=74x+2y=7 have?

Three equations, inequalities and nonlinear cases

Graph of y = x + 3 with a hole at x = 3 showing a fraction identity fails
The simplified line y = x + 3 is missing the point at x = 3, where the original fraction is undefined.

With three variables, the same three outcomes appear, now as planes. Take x+y+z=6x+y+z=6, x−y=0x-y=0 and 2x+2y+2z=122x+2y+2z=12. The third equation is twice the first, so it adds nothing. Substituting y=xy=x into the first gives z=6−2xz=6-2x, so the solutions are (t, t, 6−2t)(t,\,t,\,6-2t). Check with t=1t=1: 1+1+4=61+1+4=6, 1−1=01-1=0, and 2+2+8=122+2+8=12.

Change the last constant to 10 and the third equation says 2(x+y+z)=102(x+y+z)=10 while the first forces 2(x+y+z)=122(x+y+z)=12. That is a contradiction, so there is no solution. A trap here: three planes can have no common point even when no two are parallel (they form a triangular prism). See solving a system of three equations for the full elimination routine. A zero 3×3 determinant again tells you only that a unique solution is impossible.

Inequalities behave similarly. In systems of linear inequalities, x+y>5x+y>5 together with x+y<2x+y<2 has no solution because the shaded regions never overlap. Most other inequality systems have infinitely many solutions, a whole region of them.

Nonlinear equations can also end in “none” or “all”, but with a catch. The equation x2+1=0x^2+1=0 has no real solution, and the quadratic formula shows it through a negative discriminant. And x2−9x−3=x+3\frac{x^2-9}{x-3}=x+3 looks like an identity but fails at x=3x=3, where the left side is undefined. Likewise, ln⁡(x2)=2ln⁡x\ln(x^2)=2\ln x holds only for x>0x>0, which is why the logarithm rules come with domain conditions. Whenever the equation has fractions, roots or logs, “all real numbers” must be checked against the domain.

Quick check

For which values of xx is x2−9x−3=x+3\frac{x^2-9}{x-3}=x+3 true?

Where no solution and infinite solutions show up in real life

Break-even problems are the clearest case. Suppose one phone plan costs 20+5g20+5g dollars for gg gigabytes and another costs 25+5g25+5g. Setting them equal gives 20=2520=25, which is false. The second plan is always exactly 5 dollars more, so the lines never cross and there is no break-even point. If the second plan were 5(g+4)=5g+205(g+4)=5g+20, the plans are identical and every usage level ties.

The same structure appears in measurement and engineering. When a system has infinitely many solutions, the equations are redundant, so the data does not pin down a single answer. A navigation or sensor problem with too few independent equations is underdetermined, and adding one independent measurement fixes it. When a system has no solution, the measurements contradict each other, which usually signals an error in the data or the model.

Dependent means redundant

In 2x+3y=62x+3y=6 and 4x+6y=124x+6y=12, the second equation is 22 times the first, so it carries no new information. You have one equation's worth of constraint for two unknowns.

How to check your answer in ten seconds

For a linear equation, a two-point test settles everything, because a line is fixed by two points. Define the gap as left side minus right side, and compute it at two values of xx:

  1. Plug in x=0x=0 and record the gap.
  2. Plug in x=1x=1 and record the gap.
  3. Compare: different gaps mean one solution, equal nonzero gaps mean no solution, and two zero gaps mean infinitely many.

Test it on 3(x+2)−x=2x+93(x+2)-x=2x+9. At x=0x=0 the left is 6 and the right is 9, so the gap is −3-3. At x=1x=1 the left is 9−1=89-1=8 and the right is 11, so the gap is again −3-3. Equal nonzero gaps confirm no solution, matching the earlier work.

This catches distribution errors quickly. If your algebra says “infinitely many” but x=0x=0 gives a nonzero gap, something went wrong. For systems, substitute a point from your proposed solution set into both original equations. To build speed with the method that exposes these cases most often, work through some elimination method practice problems.

Practice problems

0 of 5 solved

  1. How many solutions does 5x+7=5x−25x+7=5x-2 have?

  2. How many solutions does 3(x−4)=3x−123(x-4)=3x-12 have?

  3. How many solutions does 14(8x+12)−5=2x−2\frac{1}{4}(8x+12)-5=2x-2 have?

  4. How many solutions does the system x−2y=4x-2y=4, 3x−6y=153x-6y=15 have?

  5. Find kk and cc so that 2x+ky=72x+ky=7 and 6x+9y=c6x+9y=c have infinitely many solutions.

Common questions

What is the difference between no solution and infinitely many solutions?

No solution means simplifying gives a false statement such as 0=50=5, so no value of the variable ever works. Infinitely many solutions means simplifying gives a true statement such as 0=00=0, so every value works (for a system, every point on the shared line).

Is no solution the same as the answer zero?

No. The answer x=0x=0 means the number 0 satisfies the equation, so a solution exists. No solution means nothing satisfies it, and the work ends in a false statement like 3=73=7 with the variable gone.

How do you know if a system has no solution without graphing?

Compare the coefficients. If a1a2=b1b2\frac{a_1}{a_2}=\frac{b_1}{b_2} but this ratio is not equal to c1c2\frac{c_1}{c_2}, the lines are parallel and there is no solution. If all three ratios match, the equations describe the same line.

Can a linear system have exactly two solutions?

No. Two different lines meet at most once, and identical lines meet everywhere, so a linear system has zero, one or infinitely many solutions. Nonlinear systems, such as a line crossing a parabola, can have exactly two.

What do you write when the answer is 0 = 0?

Write infinitely many solutions, or all real numbers for a one-variable equation. For a system in xx and yy, describe the set, for example {(x,y)∣2x+3y=6}\{(x,y)\mid 2x+3y=6\}, or give the pairs as (x, −23x+2)(x,\,-\tfrac23x+2).

Why does the determinant equal zero in both cases?

A zero determinant means the coefficient rows are proportional, so the lines have the same slope. That rules out one solution but does not say which of the other two cases you have. The constants decide that.

Up next