Math Atlas

x² + bx + c의 인수분해Factoring x² + bx + c

Algebra 1Algebra 1 · 5. 인수분해5. Factoring

학습 목표
  • (x+p)(x+q)(x+p)(x+q)의 전개에서 합·곱 구조를 읽어내고, 그것을 거꾸로 사용한다.
  • x2+bx+cx^2 + bx + c를 "곱이 cc, 합이 bb인 두 수 찾기"로 인수분해한다.
  • bb, cc의 부호만 보고 두 수의 부호를 먼저 결정하는 요령을 익힌다.

전개 한 줄을 거꾸로 읽는다

이 차시 전체는 다항식 단원의 전개 한 줄에서 나온다:

(x+p)(x+q)=x2+(p+q)x+pq.(x+p)(x+q) = x^2 + (p+q)x + pq.

오른쪽을 보라. xx의 계수는 두 수의 p+qp+q, 상수항은 두 수의 pqpq다. 그러니 거꾸로, x2+bx+cx^2 + bx + c(x+p)(x+q)(x+p)(x+q)로 접고 싶다면 찾아야 할 것은 정확히 이것이다:

곱이 c,합이 b인 두 수 p,q.\text{곱이 } c, \quad \text{합이 } b \text{인 두 수 } p, q.

예제 1 — 기본형

x2+7x+12x^2 + 7x + 12를 인수분해하라.

풀이. 곱이 1212, 합이 77인 두 수를 찾는다. 곱부터 나열하는 것이 요령이다 — 곱의 후보는 유한하지만 합의 후보는 무한하다. 12=1×12=2×6=3×412 = 1 \times 12 = 2 \times 6 = 3 \times 4에서 합을 각각 확인하면 1313, 88, 77 — 마지막 쌍이 맞는다:

x2+7x+12=(x+3)(x+4).x^2 + 7x + 12 = (x+3)(x+4).

검산(전개): x2+4x+3x+12=x2+7x+12x^2 + 4x + 3x + 12 = x^2 + 7x + 12 ✓.

그림으로 보면, 인수분해는 넓이 조각들로 직사각형을 복원하는 일이다:

x 3 x 2 x2 3x 2x 6
네 조각 x², 3x, 2x, 6을 직사각형으로 맞추면 두 변 x+3과 x+2가 드러난다

x2+5x+6x^2 + 5x + 65x5x3x+2x3x + 2x로 쪼개 네 조각을 만들면 가로 x+3x+3, 세로 x+2x+2인 직사각형이 완성된다 — 전개 때 쓰던 넓이 모델을 거꾸로 돌린 것이다.

부호는 먼저 정해진다

bbcc의 부호만 보고도 pp, qq의 부호를 미리 알 수 있다. 곱 pq=cpq = c부터 본다:

  • c>0c > 0이면 pp, qq같은 부호 — 그리고 그 부호는 합 bb의 부호를 따른다.
  • c<0c < 0이면 pp, qq다른 부호 — 절댓값이 큰 쪽이 합 bb의 부호를 가진다.

같은 상수항 1515로 세 경우를 나란히 보자.

예제 2 — 부호 세 형제

다음을 각각 인수분해하라: x28x+15x^2 - 8x + 15, x2+2x15\quad x^2 + 2x - 15, x22x15\quad x^2 - 2x - 15

풀이. 첫째: 곱 +15+15, 합 8-8 — 둘 다 음수다. (3)×(5)=15(-3) \times (-5) = 15, (3)+(5)=8(-3) + (-5) = -8 ✓:

x28x+15=(x3)(x5).x^2 - 8x + 15 = (x-3)(x-5).

둘째: 곱 15-15 — 부호가 다르고, 합이 +2+2이므로 큰 쪽이 양수. 5×(3)=155 \times (-3) = -15, 5+(3)=25 + (-3) = 2 ✓:

x2+2x15=(x+5)(x3).x^2 + 2x - 15 = (x+5)(x-3).

셋째: 곱 15-15, 합 2-2 — 큰 쪽이 음수. (5)×3=15(-5) \times 3 = -15, (5)+3=2(-5) + 3 = -2 ✓:

x22x15=(x5)(x+3).x^2 - 2x - 15 = (x-5)(x+3).

검산은 각자 전개로 — 예를 들어 셋째: x2+3x5x15=x22x15x^2 + 3x - 5x - 15 = x^2 - 2x - 15 ✓.

주의

부호를 눈대중으로 넘기지 말 것. x22x15x^2 - 2x - 15(x5)(x3)(x-5)(x-3)으로 쓰는 실수가 정말 잦다 — 전개하면 상수항이 +15+15가 되어 바로 들킨다. 접은 뒤 10초 전개 검산이 이 단원의 안전벨트다.

지난 차시의 공식들도 같은 원리다

합차와 완전제곱은 이 방법의 특수한 경우일 뿐이다. x29x^2 - 9b=0b = 0, c=9c = -9인 삼항식 — 곱이 9-9, 합이 00인 두 수는 333-3이고, 그래서 (x+3)(x3)(x+3)(x-3)이다. x2+6x+9x^2 + 6x + 9는 곱 99, 합 663333, 그래서 (x+3)2(x+3)^2. 공식으로 빨리 알아보되, 잊어버려도 곱·합 찾기로 언제든 복구할 수 있다.

접히지 않는 삼항식도 있다

곱이 cc, 합이 bb정수 쌍이 없으면 그 삼항식은 정수 계수 범위에서 인수분해되지 않는다. x2+x+1x^2 + x + 1이 그렇다: 곱이 11인 정수 쌍은 (1,1)(1, 1)(1,1)(-1, -1)뿐인데 합이 222-211이 나올 수 없다. 소수가 더 쪼개지지 않는 수이듯, 더 접히지 않는 다항식도 있다. "안 된다"를 확인하고 멈추는 것도 정답이다.

공통인수가 항상 먼저 — 이번에도

2x2+14x+24=2(x2+7x+12)=2(x+3)(x+4).2x^2 + 14x + 24 = 2(x^2 + 7x + 12) = 2(x+3)(x+4).

공통인수 22를 먼저 묶지 않으면 곱 2424, 합 1414인 쌍을 찾아 헤매게 된다 — (2,12)(2, 12)가 있긴 하지만, 그렇게 얻은 (x+2)(x+12)(x+2)(x+12)를 전개하면 x2x^2의 계수가 11이라 원식의 2x22x^2과 맞지 않는다. 규칙은 지난 차시 그대로: 묶을 수 있으면 먼저 묶는다.

x2x^2 앞에 2233 같은 계수가 공통인수 없이 버티고 있는 경우(2x2+7x+32x^2+7x+3 같은)는 다음 차시에서 다룬다. 우선은 문제 탭에서 곱·합 찾기를 손에 붙이자 — 넓이 응용, "가능한 bb 모두 찾기", 치환 맛보기, 그리고 (n2)(n3)(n-2)(n-3)이 소수가 되는 조건을 묻는 경시 문제까지 열세 문제다.

Goals
  • Read the sum-and-product structure out of the expansion of (x+p)(x+q)(x+p)(x+q), then use it in reverse.
  • Factor x2+bx+cx^2 + bx + c by finding two numbers with product cc and sum bb.
  • Decide the signs of the two numbers first, straight from the signs of bb and cc.

One line of expansion, read backwards

This whole lesson comes out of a single line from the polynomials unit:

(x+p)(x+q)=x2+(p+q)x+pq.(x+p)(x+q) = x^2 + (p+q)x + pq.

Look at the right side. The coefficient of xx is the sum p+qp+q; the constant is the product pqpq. So, in reverse: to fold x2+bx+cx^2 + bx + c into (x+p)(x+q)(x+p)(x+q), what you need is exactly

two numbers p,q with product c and sum b.\text{two numbers } p, q \text{ with product } c \text{ and sum } b.

Example 1 — The basic case

Factor x2+7x+12x^2 + 7x + 12.

Solution. We need two numbers with product 1212 and sum 77. Start from the product — its candidates are finite, while sums go on forever. From 12=1×12=2×6=3×412 = 1 \times 12 = 2 \times 6 = 3 \times 4, the sums are 1313, 88, 77 — the last pair wins:

x2+7x+12=(x+3)(x+4).x^2 + 7x + 12 = (x+3)(x+4).

Check by expanding: x2+4x+3x+12=x2+7x+12x^2 + 4x + 3x + 12 = x^2 + 7x + 12 ✓.

In a picture, factoring is reassembling a rectangle from its area pieces:

x 3 x 2 x2 3x 2x 6
Fitting the four pieces x², 3x, 2x, and 6 into a rectangle reveals the sides x+3 and x+2

Split the 5x5x of x2+5x+6x^2 + 5x + 6 into 3x+2x3x + 2x, and the four pieces assemble into a rectangle with sides x+3x+3 and x+2x+2 — the area model from the expansion lessons, run backwards.

The signs come first

You can determine the signs of pp and qq before hunting for the numbers, straight from bb and cc. Start with the product pq=cpq = c:

  • If c>0c > 0, then pp and qq have the same sign — and it matches the sign of the sum bb.
  • If c<0c < 0, they have opposite signs — and the one with the larger absolute value carries the sign of bb.

Here are all three cases side by side, sharing the constant 1515.

Example 2 — Three siblings

Factor each: x28x+15x^2 - 8x + 15, x2+2x15\quad x^2 + 2x - 15, x22x15\quad x^2 - 2x - 15

Solution. First: product +15+15, sum 8-8 — both negative. (3)×(5)=15(-3) \times (-5) = 15 and (3)+(5)=8(-3) + (-5) = -8 ✓:

x28x+15=(x3)(x5).x^2 - 8x + 15 = (x-3)(x-5).

Second: product 15-15, so opposite signs; the sum +2+2 makes the larger one positive. 5×(3)=155 \times (-3) = -15, 5+(3)=25 + (-3) = 2 ✓:

x2+2x15=(x+5)(x3).x^2 + 2x - 15 = (x+5)(x-3).

Third: product 15-15, sum 2-2 — the larger one is negative. (5)×3=15(-5) \times 3 = -15, (5)+3=2(-5) + 3 = -2 ✓:

x22x15=(x5)(x+3).x^2 - 2x - 15 = (x-5)(x+3).

Each deserves its own expansion check — for the third: x2+3x5x15=x22x15x^2 + 3x - 5x - 15 = x^2 - 2x - 15 ✓.

Watch out

Don't eyeball the signs. Writing x22x15x^2 - 2x - 15 as (x5)(x3)(x-5)(x-3) is a very common slip — expand it and the constant comes out +15+15, caught immediately. The ten-second expansion check after every fold is this unit's seatbelt.

Last lesson's formulas are the same idea

Difference of squares and perfect squares are special cases of this method. x29x^2 - 9 is the trinomial with b=0b = 0, c=9c = -9: two numbers with product 9-9 and sum 00 are 33 and 3-3, hence (x+3)(x3)(x+3)(x-3). And x2+6x+9x^2 + 6x + 9: product 99, sum 66 — the pair 33 and 33, hence (x+3)2(x+3)^2. Recognize them fast by formula, but know that sum-and-product can always rebuild them if the formula slips your mind.

Some trinomials refuse to fold

If no integer pair has product cc and sum bb, the trinomial doesn't factor over the integers. Take x2+x+1x^2 + x + 1: the integer pairs with product 11 are (1,1)(1, 1) and (1,1)(-1, -1), with sums 22 and 2-2 — never 11. Just as primes are the numbers that won't split, some polynomials won't fold. Verifying that "it doesn't factor" — and stopping — is itself a correct answer.

Common factor first — again

2x2+14x+24=2(x2+7x+12)=2(x+3)(x+4).2x^2 + 14x + 24 = 2(x^2 + 7x + 12) = 2(x+3)(x+4).

Skip the common 22 and you end up hunting for product 2424, sum 1414 — the pair (2,12)(2, 12) exists, but expanding the resulting (x+2)(x+12)(x+2)(x+12) gives a leading coefficient of 11, which cannot match the original 2x22x^2. The standing rule from last lesson holds: if something can be pulled out, pull it out first.

When a coefficient sits on x2x^2 with no common factor to blame — as in 2x2+7x+32x^2+7x+3 — that's the next lesson's business. For now, the problems tab will put sum-and-product into your hands: an area application, a "find every possible bb" hunt, a taste of substitution, and a contest problem about when (n2)(n3)(n-2)(n-3) can be prime — thirteen problems in all.