Math Atlas

가감법과 해의 개수Elimination & How Many Solutions

Algebra 1Algebra 1 · 3. 연립방정식3. Systems of Equations

학습 목표
  • 두 등식을 변끼리 더해도 되는 이유를 알고, 가감법으로 연립방정식을 푼다.
  • 계수를 맞추기 위해 식을 적당히 곱하는 요령을 익힌다.
  • 해가 없는 경우와 무수히 많은 경우를 계산으로 판별하고, 평행선·일치하는 직선으로 해석한다.

등식은 더해도 된다

가감법의 밑바탕은 한 줄짜리 사실이다: 참인 두 등식은 변끼리 더해도 참이다.

a=ba = b이고 c=dc = d라 하자. 첫 등식의 양변에 cc를 더하면 a+c=b+ca + c = b + c (등식의 성질). 그런데 c=dc = d이므로 우변의 ccdd로 바꿔도 같다: a+c=b+da + c = b + d. 증명 끝. 빼기도 마찬가지다.

이것이 왜 무기가 되는가? 두 식을 더할 때 한 변수의 계수가 서로 반대이면, 그 변수가 통째로 사라지기 때문이다.

예제 1 · 더해서 소거

연립방정식 x+y=9x + y = 9, ⁠ xy=3x - y = 3을 풀어라.

풀이. 두 식을 변끼리 더하면 +y+yy-y가 소거된다:

(x+y)+(xy)=9+3    2x=12    x=6.(x + y) + (x - y) = 9 + 3 \implies 2x = 12 \implies x = 6.

첫째 식에서 y=96=3y = 9 - 6 = 3.

검산: 6+3=96 + 3 = 9 ✓, 63=36 - 3 = 3 ✓. 해는 (6,3)(6, 3)이다.

대입법으로도 물론 풀린다 — 하지만 이 모양에서는 가감법이 두 줄로 끝낸다.

계수가 어긋나 있으면 맞춰라

계수가 처음부터 반대인 경우는 드물다. 그럴 때는 식 전체에 적당한 수를 곱해 계수를 맞춘다 — 등식의 양변에 같은 수를 곱하는 것이므로 언제나 허용되는 수다.

예제 2 · 한 식만 손보기

연립방정식 2x+3y=122x + 3y = 12, ⁠ 3xy=73x - y = 7을 풀어라.

풀이. 둘째 식의 y-y에 3을 곱하면 첫째 식의 +3y+3y와 반대가 된다. 둘째 식 전체에 3을 곱하면

9x3y=21.9x - 3y = 21.

이것을 첫째 식과 더하면 11x=3311x = 33, 즉 x=3x = 3이다. 둘째 식에서 3×3y=73 \times 3 - y = 7이므로 y=2y = 2.

검산: 6+6=126 + 6 = 12 ✓, 92=79 - 2 = 7 ✓. 해는 (3,2)(3, 2)이다.

예제 3 · 두 식 모두 손보기

연립방정식 3x+4y=103x + 4y = 10, ⁠ 5x+6y=165x + 6y = 16을 풀어라.

풀이. yy의 계수 4와 6의 최소공배수는 12다. 첫째 식에 3을, 둘째 식에 2를 곱하면

9x+12y=30,10x+12y=32.9x + 12y = 30, \qquad 10x + 12y = 32.

계수가 같으므로 이번에는 빼서 소거한다. 둘째에서 첫째를 빼면 x=2x = 2이고, 첫째 원식에서 6+4y=106 + 4y = 10이므로 y=1y = 1이다.

검산: 6+4=106 + 4 = 10 ✓, 10+6=1610 + 6 = 16 ✓. 해는 (2,1)(2, 1)이다.

주의

뺄 때가 사고 지점이다. (10x+12y)(9x+12y)=3230(10x + 12y) - (9x + 12y) = 32 - 30처럼 좌변 전체와 우변 전체를 함께 빼야 한다 — 우변 빼기를 잊거나, yy항의 부호를 흘리는 실수가 잦다. 부호가 걱정되면 한 식에 1-1을 곱해 "더하기"로 바꿔라. 더하기는 배신하지 않는다.

대입법과 가감법 중 무엇을 쓸까? 계수 1인 변수가 보이면 대입법이 빠르고, 두 식이 모두 ax+by=cax + by = c 꼴로 정렬돼 있으면 가감법이 빠르다. 둘 다 익혀 두고 문제 모양을 보고 고르는 것 — 그것이 실력이다.

소거했더니 변수가 다 사라진다면

일차방정식에서 0=00 = 0이나 0=20 = 2가 남던 순간을 기억할 것이다(항등식과 불능). 연립방정식에도 똑같은 갈림길이 있다 — 그리고 이번에는 그래프가 이유를 보여 준다.

예제 4 · 0=00 = 0: 무수히 많은 해

연립방정식 x+y=3x + y = 3, ⁠ 2x+2y=62x + 2y = 6을 풀어라.

풀이. 첫째 식에 2를 곱하면 2x+2y=62x + 2y = 6 — 둘째 식과 똑같다. 빼면 0=00 = 0: 항상 참인 문장만 남고 변수는 결정되지 않는다.

두 방정식은 사실 같은 직선이다. 그 직선 위의 모든 점 — (0,3)(0, 3), (1,2)(1, 2), (5,2)(5, -2), … — 이 해이므로, 해가 무수히 많다.

x y O -5 -4 -3 -2 -1 1 2 3 4 5 6 7 -4 -3 -2 -1 1 2 3 4 5 6 7 8 x + y = 3 2x + 2y = 6
두 방정식 x + y = 3과 2x + 2y = 6은 같은 직선을 그린다. 직선 위의 모든 점이 해다.
주의

"해가 무수히 많다"는 "아무 순서쌍이나 다 된다"가 아니다. (1,1)(1, 1)x+y=3x + y = 3을 만족하지 않으므로 해가 아니다. 해는 어디까지나 그 직선 위의 점들이다 — 무한하지만, 아무거나는 아니다.

예제 5 · 0=20 = 2: 해가 없다

연립방정식 x+y=3x + y = 3, ⁠ x+y=5x + y = 5를 풀어라.

풀이. 둘째에서 첫째를 빼면 0=20 = 2 — 거짓. 어떤 (x,y)(x, y)도 두 식을 동시에 만족할 수 없다. 해가 없다.

당연한 말이기도 하다: 두 수의 합이 3이면서 동시에 5일 수는 없다. 그래프로는 기울기가 같고 절편이 다른 평행선 — 지난 차시에서 증명했듯 평행선은 만나지 않는다.

x y O -5 -4 -3 -2 -1 1 2 3 4 5 6 7 -4 -3 -2 -1 1 2 3 4 5 6 7 8 x + y = 3 x + y = 5
x + y = 3과 x + y = 5는 평행한 두 직선이다. 교점이 없으므로 해도 없다.

정리하면, 연립방정식 하나를 풀 때 일어날 수 있는 일은 정확히 세 가지다.

소거 결과 두 직선의 관계
x=x = \cdots 하나 기울기가 달라 한 점에서 만남
0=00 = 0 무수히 많음 (직선 위 전부) 같은 직선
0=(0 아닌 수)0 = (\text{0 아닌 수}) 없음 평행

문제 탭에는 판별 문제, 조건을 만족하는 계수 찾기, 그리고 소금물 농도와 강물 위의 배까지 열세 문제가 있다.

Goals
  • Know why two equations may be added side by side, and solve systems by elimination.
  • Scale equations to line up coefficients.
  • Detect systems with no solution or infinitely many by computation, and interpret them as parallel or coincident lines.

Equations can be added

Elimination rests on a one-line fact: two true equations, added side by side, give a true equation.

Suppose a=ba = b and c=dc = d. Adding cc to both sides of the first equation gives a+c=b+ca + c = b + c (property of equality). But c=dc = d, so the cc on the right can be replaced by dd: a+c=b+da + c = b + d. Done. Subtraction works the same way.

Why is this a weapon? Because when you add two equations in which one variable's coefficients are opposites, that variable vanishes entirely.

Example 1 · Add and eliminate

Solve the system x+y=9x + y = 9, ⁠ xy=3x - y = 3.

Solution. Add the equations side by side — the +y+y and y-y cancel:

(x+y)+(xy)=9+3    2x=12    x=6.(x + y) + (x - y) = 9 + 3 \implies 2x = 12 \implies x = 6.

The first equation then gives y=96=3y = 9 - 6 = 3.

Check: 6+3=96 + 3 = 9 ✓ and 63=36 - 3 = 3 ✓. The solution is (6,3)(6, 3).

Substitution works too, of course — but on this shape, elimination finishes in two lines.

If the coefficients don't match, make them match

Coefficients rarely arrive as opposites. When they don't, multiply an entire equation by a suitable number — multiplying both sides of an equation by the same number is always legal.

Example 2 · Scaling one equation

Solve the system 2x+3y=122x + 3y = 12, ⁠ 3xy=73x - y = 7.

Solution. Multiplying the second equation's y-y by 3 would make it the opposite of the first equation's +3y+3y. So multiply the whole second equation by 3:

9x3y=21.9x - 3y = 21.

Adding this to the first equation gives 11x=3311x = 33, so x=3x = 3. Then the second equation gives 3×3y=73 \times 3 - y = 7, so y=2y = 2.

Check: 6+6=126 + 6 = 12 ✓ and 92=79 - 2 = 7 ✓. The solution is (3,2)(3, 2).

Example 3 · Scaling both equations

Solve the system 3x+4y=103x + 4y = 10, ⁠ 5x+6y=165x + 6y = 16.

Solution. The yy-coefficients 4 and 6 have least common multiple 12. Multiply the first equation by 3 and the second by 2:

9x+12y=30,10x+12y=32.9x + 12y = 30, \qquad 10x + 12y = 32.

The coefficients now match, so this time subtract: second minus first gives x=2x = 2, and the original first equation gives 6+4y=106 + 4y = 10, so y=1y = 1.

Check: 6+4=106 + 4 = 10 ✓ and 10+6=1610 + 6 = 16 ✓. The solution is (2,1)(2, 1).

Watch out

Subtraction is where accidents happen. Subtract whole sides at once: (10x+12y)(9x+12y)=3230(10x + 12y) - (9x + 12y) = 32 - 30 — forgetting to subtract the right sides, or dropping a sign on the yy-terms, are the standard wrecks. If signs worry you, multiply one equation by 1-1 and turn the whole thing into addition. Addition never betrays you.

Substitution or elimination? If a variable with coefficient 1 is in sight, substitution is quick; if both equations arrive lined up as ax+by=cax + by = c, elimination is quick. Own both, glance at the problem's shape, and choose — that's the actual skill.

When elimination wipes out everything

Remember the moments in single equations when 0=00 = 0 or 0=20 = 2 was left over (identities and contradictions)? Systems have exactly the same fork — and this time the graphs show the reason.

Example 4 · 0=00 = 0: infinitely many solutions

Solve the system x+y=3x + y = 3, ⁠ 2x+2y=62x + 2y = 6.

Solution. Multiplying the first equation by 2 gives 2x+2y=62x + 2y = 6 — identical to the second. Subtracting leaves 0=00 = 0: an always-true sentence, with no variable pinned down.

The two equations describe the same line. Every point on it — (0,3)(0, 3), (1,2)(1, 2), (5,2)(5, -2), … — is a solution, so there are infinitely many.

x y O -5 -4 -3 -2 -1 1 2 3 4 5 6 7 -4 -3 -2 -1 1 2 3 4 5 6 7 8 x + y = 3 2x + 2y = 6
The equations x + y = 3 and 2x + 2y = 6 draw the same line. Every point of that line is a solution.
Watch out

"Infinitely many solutions" does not mean "anything goes." The pair (1,1)(1, 1) fails x+y=3x + y = 3, so it is not a solution. The solutions are the points of that line — infinite, but not arbitrary.

Example 5 · 0=20 = 2: no solution

Solve the system x+y=3x + y = 3, ⁠ x+y=5x + y = 5.

Solution. Subtracting the first from the second leaves 0=20 = 2 — false. No pair (x,y)(x, y) can satisfy both. No solution.

Which is common sense, too: two numbers can't have sum 3 and sum 5 simultaneously. Graphically these are parallel lines — same slope, different intercepts — and as we proved last unit, parallel lines never meet.

x y O -5 -4 -3 -2 -1 1 2 3 4 5 6 7 -4 -3 -2 -1 1 2 3 4 5 6 7 8 x + y = 3 x + y = 5
x + y = 3 and x + y = 5 are parallel lines. No intersection, so no solution.

So exactly three things can happen when you solve a system:

Elimination leaves Solutions The two lines
x=x = \cdots exactly one different slopes, one crossing
0=00 = 0 infinitely many (the whole line) the same line
0=(nonzero)0 = (\text{nonzero}) none parallel

The Problems tab holds thirteen problems: classification, finding coefficients that force each case, and salt water and river boats to finish.