Sub topic 3
Checking a Solution in Both Equations
This chapter assumes you can evaluate an expression by substituting numbers for variables, work with negative numbers and fractions, and read a point from a coordinate plane. You should also know what a system of two linear equations is. It is a pair of equations in x and y, and its solution is an ordered pair that satisfies both.
The check described here is the cheapest step in the whole topic. It takes under a minute and catches almost every arithmetic slip. It is also the only step that does not depend on which solving method you used.
What "solution" means for a system
An ordered pair (x, y) is a solution of a system only if it makes every equation in the system true. Satisfying one equation is not enough.
Each equation by itself has infinitely many solutions. They are the points on its line. A system asks for the pairs that appear on both lines, so a solution is a point that lies on both lines at once.
This gives a precise rule for checking:
- Take the proposed pair and put its
xvalue andyvalue into the first equation. Simplify both sides. If the two sides are equal, the pair passes that equation. - Do the same with the second equation.
- Accept the pair only if it passes both.
A pair that fails either equation is not a solution, even if it passes the other one.
A worked check that passes
Take the system from the elimination example:
2x + y = 7
x - y = 2Suppose you found (3, 1), meaning x = 3 and y = 1.
- Equation 1:
2(3) + 1 = 6 + 1 = 7. The right side is 7, so it passes. - Equation 2:
3 - 1 = 2. The right side is 2, so it passes.
Both equations hold, so (3, 1) is a solution.
Write each substitution with the numbers in parentheses, as in 2(3) + 1. Parentheses matter most when a value is negative, as a later example shows.
A pair that satisfies only one equation
Now test (4, -1) in the same system.
- Equation 1:
2(4) + (-1) = 8 - 1 = 7. This passes. - Equation 2:
4 - (-1) = 4 + 1 = 5. The right side is 2, so this fails.
The point (4, -1) lies on the line 2x + y = 7 but not on the line x - y = 2. It is a real point on one line and still not a solution of the system. If you had checked only equation 1, you would have accepted a wrong answer.
This happens often in practice. After solving for x, many people compute y from one equation and check only that same equation. The check then passes automatically, because you built y to make that equation true. The equation you did not use is the one that can expose an error.
Order matters in an ordered pair
The pair (3, 1) and the pair (1, 3) are different points. Testing (1, 3) in the system above:
- Equation 1:
2(1) + 3 = 5. The right side is 7, so this fails. - Equation 2:
1 - 3 = -2. The right side is 2, so this fails.
If your check fails for both equations, look for swapped coordinates before you redo the algebra. The first number always replaces x and the second always replaces y.
Check in the original equations
Always substitute into the equations exactly as the problem gave them. Do not use a rearranged form you created while solving.
The reason is that most mistakes happen during rearranging. If you check against a rearranged equation that already contains the mistake, the check can pass even though the answer is wrong.
Here is a system where this matters:
x + 2y = 8
3x - y = 3Suppose you solve by substitution and isolate y from the second equation, but you make a sign error and write y = 3x + 3. The correct form is y = 3x - 3.
Substituting the faulty form into the first equation:
x + 2(3x + 3) = 8
x + 6x + 6 = 8
7x = 2 -> x = 2/7
y = 3(2/7) + 3 = 27/7This candidate is (2/7, 27/7). If you check it in y = 3x + 3, you get 3(2/7) + 3 = 27/7, which is true. The faulty equation agrees with itself. Now check the original second equation:
3(2/7) - 27/7 = 6/7 - 27/7 = -21/7 = -3The right side is 3, not -3, so the pair fails. The check has found the error. Redoing the work with y = 3x - 3:
x + 2(3x - 3) = 8
7x - 6 = 8
x = 2, y = 3(2) - 3 = 3Check (2, 3) in the original equations: 2 + 2(3) = 8 is true, and 3(2) - 3 = 3 is true. The solution is (2, 3).
Negative numbers and fractions
Most check failures come from sign and fraction arithmetic, not from the method itself, so it helps to be careful here.
Negative values
Consider the system 2x + 3y = 1 and 4x - y = 9. Solving by substitution gives y = 4x - 9, then:
2x + 3(4x - 9) = 1
14x - 27 = 1
x = 2, y = 4(2) - 9 = -1Check (2, -1) with parentheses around each substituted value:
- Equation 1:
2(2) + 3(-1) = 4 - 3 = 1. This passes. - Equation 2:
4(2) - (-1) = 8 + 1 = 9. This passes.
The step 4(2) - (-1) is where many learners slip. Subtracting a negative adds, so the result is 9. Without parentheses you might write 8 - 1 = 7 and wrongly reject a correct answer.
Fractional values
Solutions are not always whole numbers. For the system x + 2y = 2 and 3x - 2y = 1, adding the equations gives 4x = 3, so x = 3/4. Substituting back gives y = 5/8.
Check (3/4, 5/8):
- Equation 1:
3/4 + 2(5/8) = 3/4 + 5/4 = 8/4 = 2. This passes. - Equation 2:
3(3/4) - 2(5/8) = 9/4 - 5/4 = 4/4 = 1. This passes.
Use a common denominator and keep the arithmetic in fractions. If you convert to decimals such as 0.75 and 0.625, the check still works here. With a value like 1/3, though, a rounded decimal makes the two sides differ slightly, and you cannot tell a rounding gap from a real error.
What a check can and cannot tell you
A check answers one question: does this specific pair satisfy both equations? It has limits.
| Situation | What the check tells you |
|---|---|
| Pair passes both equations | The pair is a solution. |
| Pair fails one or both equations | The pair is not a solution, so find the error. |
| System has one solution | A passing pair is the solution, and it is the only one. |
| System has infinitely many solutions | A passing pair is a solution, but only one of many. |
| System has no solution | Every pair fails at least one equation. |
For the system x + y = 3 and 2x + 2y = 6, the second equation is twice the first. The pair (1, 2) passes both equations: 1 + 2 = 3 and 2(1) + 2(2) = 6. So does (0, 3), and so does (5, -2). A passing check does not prove the answer is unique. Whether a system has one solution, none, or infinitely many comes from the structure of the equations, which a later chapter covers. For a system with one solution, a pair that passes both equations is that solution.
For a parallel system such as y = 2x + 1 and y = 2x - 3, no pair can pass both. If you "solve" it and end up with a pair, the check will fail, and that failure is a useful sign that you made an error or that the system has no solution.
Checking a value read from a graph
When you solve by graphing, you read the intersection point from a drawing. Drawings are imprecise, and a point that looks like (2, 3) may really be (2.1, 2.9) or something else.
Take y = x + 1 and y = -x + 5. The lines appear to cross at (2, 3). Check in both:
y = x + 1:3 = 2 + 1. This passes.y = -x + 5:3 = -2 + 5. This passes.
The reading is confirmed. If you had read (2, 2.5), the first equation would give 2.5 against 3, and you would know to read the graph again. For graphing, the check is not optional. It is what turns an estimate into an answer.
Checking with code
The same procedure is easy to automate, which is useful for verifying hand-worked answers. The function below stores each equation as (a, b, c) for a*x + b*y = c and tests every equation. It uses Fraction so that fractional solutions are compared exactly, with no rounding error.
from fractions import Fraction
def check_solution(system, point):
"""Return one True/False result per equation for the given (x, y)."""
x, y = Fraction(point[0]), Fraction(point[1])
return [a * x + b * y == c for a, b, c in system]
s1 = [(2, 1, 7), (1, -1, 2)] # 2x + y = 7, x - y = 2
s2 = [(1, 2, 2), (3, -2, 1)] # x + 2y = 2, 3x - 2y = 1
s3 = [(1, 1, 3), (2, 2, 6)] # same line written twice
cases = [
("A", s1, (3, 1)),
("B", s1, (4, -1)),
("C", s1, (1, 3)),
("D", s2, (Fraction(3, 4), Fraction(5, 8))),
("E", s3, (1, 2)),
]
for label, system, point in cases:
results = check_solution(system, point)
verdict = "solution" if all(results) else "not a solution"
print(f"{label}: ({Fraction(point[0])}, {Fraction(point[1])}) -> {results} -> {verdict}")Running it prints:
A: (3, 1) -> [True, True] -> solution
B: (4, -1) -> [True, False] -> not a solution
C: (1, 3) -> [False, False] -> not a solution
D: (3/4, 5/8) -> [True, True] -> solution
E: (1, 2) -> [True, True] -> solutionCase B shows a pair that passes only the first equation, and case C shows swapped coordinates failing both. Case E passes, but as the previous section explained, that pair is only one of infinitely many solutions.
A routine to follow every time
- Write down the original system and keep it visible while you solve.
- Solve by your chosen method.
- Write the answer as an ordered pair, with
xfirst. - Substitute into equation 1 using parentheses, and simplify each side separately.
- Substitute into equation 2 the same way.
- If both sides match in both equations, state the answer. If either fails, check for a sign error, swapped coordinates, or a mistake while rearranging.
Common errors
- Checking only one equation. The pair may lie on one line only.
- Checking a rewritten equation. A rearranging mistake passes its own check. Use the original.
- Swapping
xandy. Put the first coordinate intox. - Dropping parentheses around negatives. Write
4(2) - (-1), not4(2) - -1or8 - 1. - Comparing only one side. Simplify the left side to a number and compare it with the right side.
- Rounding. Keep exact fractions when the solution is not a whole number.
Exercise
Is (2, -1) a solution of the system 3x + 2y = 4 and x - 3y = 6? Show the check for each equation and give your conclusion.
Show answer
Equation 1: 3(2) + 2(-1) = 6 - 2 = 4, which equals 4, so it passes. Equation 2: 2 - 3(-1) = 2 + 3 = 5, which does not equal 6, so it fails. The pair satisfies only the first equation, so (2, -1) is not a solution of the system.
Exercise
A student solves the system x + y = 10 and x - y = 4 and reports (3, 7). Check the answer. If it is wrong, say what mistake is likely and give the correct solution.
Show answer
Equation 1: 3 + 7 = 10, which passes. Equation 2: 3 - 7 = -4, which does not equal 4, so it fails. The pair is not a solution. The coordinates were probably swapped. Testing (7, 3): 7 + 3 = 10 and 7 - 3 = 4, so both pass. The correct solution is (7, 3).
Exercise
The pair (1, 2) passes both equations of the system x + y = 3 and 2x + 2y = 6. Does this prove (1, 2) is the only solution? Explain.
Show answer
No. The second equation is 2 times the first, so both equations describe the same line. Every point on that line satisfies both, for example (0, 3) and (5, -2). A passing check shows that a pair is a solution. It does not show that the solution is unique.