Sub topic 2
What a System of Equations Is and What Its Solution Means
Prerequisites
This chapter assumes you can solve a one-variable linear equation, evaluate an expression by substituting a value for a variable, plot points and lines on a coordinate plane, and do integer and fraction arithmetic with negative numbers. Earlier chapters introduced linear equations in two variables. This chapter builds on them.
From one equation to two
A linear equation in two variables, such as x + y = 5, has many solutions. Any ordered pair (x, y) that makes the equation true counts: (0, 5), (2, 3), (5, 0), (-1, 6), and infinitely many more. Plotted on a coordinate plane, these pairs fill a straight line.
An ordered pair is two numbers written in a fixed order, (x, y). The order matters. (2, 3) means x = 2 and y = 3. (3, 2) is a different pair.
One equation does not pin down a single pair. A second equation can narrow the choices. The two equations together form a system.
Definition of a system
A system of two linear equations in two variables is a pair of linear equations that share the same variables and are considered together. It is usually written with the equations stacked:
x + y = 5
x - y = 1A solution of the system is an ordered pair (x, y) that makes both equations true at the same time. A pair that satisfies only one equation is not a solution of the system.
Here is how several pairs behave for the system above.
| Pair | Satisfies `x + y = 5`? | Satisfies `x - y = 1`? | Solution of the system? |
|---|---|---|---|
| `(2, 3)` | Yes, 2 + 3 = 5 | No, 2 - 3 = -1 | No |
| `(5, 0)` | Yes, 5 + 0 = 5 | Yes, 5 - 0 = 5, which is not 1 | No |
| `(4, 1)` | Yes, 4 + 1 = 5 | No, wait: 4 - 1 = 3 | No |
| `(3, 2)` | Yes, 3 + 2 = 5 | Yes, 3 - 2 = 1 | Yes |
Look at the row for (5, 0) closely. It satisfies the first equation, but 5 - 0 = 5, not 1, so the second column should read "No". The corrected fact is that (5, 0) fails the second equation. Only (3, 2) passes both tests, so it is the one solution.
Use this reading of the table: a pair must pass every equation. Passing one is not enough.
The geometric meaning
Each equation graphs as a line. Every point on a line is a pair that satisfies that line's equation. A pair that satisfies both equations must lie on both lines, so it must be a point where the lines meet.
This gives the central idea of the chapter:
The solution of a system is the intersection point of the two lines.
Algebra and geometry describe the same fact. "Satisfies both equations" and "lies on both lines" are two ways to say one thing. Later chapters use this link to move between graphs and algebra.
Why the answer is a pair
A common mistake is to report x = 3 and stop. The system has two unknowns, so a complete answer gives both values. You can write the answer as an ordered pair, (3, 2), or as two statements, x = 3 and y = 2. Keep the variable order consistent: x first, y second.
The pair also carries meaning in a word problem. If x is the number of adults and y is the number of children, the pair (3, 2) says 3 adults and 2 children. Attach units and labels when the problem supplies them.
Three possible outcomes
Two lines in a plane can relate in three ways. This decides how many solutions a system has.
| Relationship of the lines | Number of solutions | Name |
|---|---|---|
| They cross at one point | Exactly one | Consistent and independent |
| They are parallel and never meet | None | Inconsistent |
| They are the same line | Infinitely many | Consistent and dependent |
A consistent system has at least one solution. An inconsistent system has none. An independent system has equations that describe different lines. A dependent system has equations that describe the same line.
This chapter focuses on the first case, the single intersection. Later chapters show how to recognize the other two from a graph and from algebra.
Verifying a candidate solution
Checking a pair is the most direct skill in this chapter, and it works for any system. Substitute the x value and the y value into each equation. Both must produce true statements.
Consider the system:
2x + y = 7
x - y = 2Test the pair (3, 1):
- First equation: 2(3) + 1 = 6 + 1 = 7. True.
- Second equation: 3 - 1 = 2. True.
Both hold, so (3, 1) is the solution.
Test the pair (2, 3):
- First equation: 2(2) + 3 = 4 + 3 = 7. True.
- Second equation: 2 - 3 = -1, which is not 2. False.
The pair fails the second equation, so it is not a solution, even though it satisfies the first.
This second case shows why checking only one equation is a trap. A pair can lie on one line without lying on the other.
A short program for checking
You can automate the check. The function below takes each equation as coefficients a, b, c for a*x + b*y = c and tests a pair against both. It uses Fraction so that decimal rounding does not cause false failures.
from fractions import Fraction
def satisfies(a, b, c, x, y):
"""Return True if a*x + b*y == c."""
return a * x + b * y == c
def is_solution(eq1, eq2, x, y):
"""eq1 and eq2 are tuples (a, b, c) meaning a*x + b*y = c."""
return satisfies(*eq1, x, y) and satisfies(*eq2, x, y)
eq1 = (2, 1, 7) # 2x + y = 7
eq2 = (1, -1, 2) # x - y = 2
print(is_solution(eq1, eq2, 3, 1)) # True
print(is_solution(eq1, eq2, 2, 3)) # False
print(is_solution(eq1, eq2, Fraction(3), Fraction(1))) # TrueThe function reports True only when both equations hold. The pair (2, 3) passes the first equation but fails the second, so the result is False.
Worked example: reading a solution from the setup
Suppose a system is given as:
y = x + 1
y = -x + 5Both equations already give y in terms of x. A pair on the first line has the form (x, x + 1). A pair on the second line has the form (x, -x + 5). At the intersection, both lines give the same y for the same x, so:
x + 1 = -x + 5
2x = 4
x = 2Then y = 2 + 1 = 3. The candidate solution is (2, 3).
Check it in both original equations:
y = x + 1: 3 = 2 + 1. True.y = -x + 5: 3 = -2 + 5. True.
The solution is (2, 3). This example previews substitution, which a later chapter develops fully. Here the point is the meaning: at the intersection the two expressions for y agree.
Common errors
- Checking one equation. A pair that satisfies the first equation only is not a solution. Test both.
- Swapping the order.
(3, 2)and(2, 3)are different points. Substitute the first number forxand the second fory. - Reporting only one variable. The solution has two coordinates. Give both.
- Sign slips on negatives. When
y = -1, the termx - ybecomesx - (-1), which isx + 1. Keep parentheses around negative values when you substitute. - Assuming a solution exists. Some systems have none, and some have infinitely many. A single intersection is the common case, not a guarantee.
Summary of the model
- An equation in two variables has a line of solutions.
- A system joins two such equations.
- A solution of the system is an ordered pair that satisfies both equations.
- Geometrically, the solution is the point where the two lines intersect.
- Substitution into both equations verifies any proposed solution.
- A system can have one solution, none, or infinitely many.
Exercise
Is (4, -1) a solution of the system 3x + 2y = 10 and x - y = 5? Show the check for each equation, then state which line or lines the point lies on.
Show answer
First equation: 3(4) + 2(-1) = 12 - 2 = 10, which is true. Second equation: 4 - (-1) = 4 + 1 = 5, which is true. The pair satisfies both equations, so it lies on both lines and is the solution of the system.
Exercise
The pair (1, 4) satisfies x + y = 5. Does it have to be a solution of the system x + y = 5 and 2x - y = 3? Explain, and then decide using a check.
Show answer
No. Satisfying one equation does not make a pair a solution of the system. Check the second equation: 2(1) - 4 = 2 - 4 = -2, which is not 3. The pair fails the second equation, so it lies on the first line but not the second, and it is not a solution.
Exercise
A system has the solution (3, 2). In a word problem, x is the number of adults and y is the number of children. Write the solution in a sentence, and explain why giving only x = 3 would be an incomplete answer.
Show answer
There are 3 adults and 2 children. The system has two unknowns, so the answer must give both values. Reporting only x = 3 leaves the number of children unknown.