#10 ふれてみよう高校数学 代数と式の操作

高次方程式と因数定理

因数定理

x=1x = 1 を代入すると式がちょうど0になる」——これは単なる偶然ではありません。実は「(x1)(x-1) で割り切れる」という強力な情報を含んでいます。

因数定理:多項式 f(x)f(x) について、

f(a)=0    (xa) は f(x) の因数f(a) = 0 \iff (x - a) \text{ は } f(x) \text{ の因数}

これは非常に強力なツールです。ある値 aa を代入して 00 になれば、(xa)(x-a) で割り切れるとわかります。

例:f(x)=x36x2+11x6f(x) = x^3 - 6x^2 + 11x - 6

小さな整数(±1,±2,±3,\pm 1, \pm 2, \pm 3, \ldots)を順に代入してみます:

f(1)=16+116=0f(1) = 1 - 6 + 11 - 6 = 0(x1)(x-1) は因数

f(2)=824+226=0f(2) = 8 - 24 + 22 - 6 = 0(x2)(x-2) は因数

f(3)=2754+336=0f(3) = 27 - 54 + 33 - 6 = 0(x3)(x-3) は因数

よって:f(x)=(x1)(x2)(x3)f(x) = (x-1)(x-2)(x-3)


剰余定理

剰余定理f(x)f(x)(xa)(x-a) で割ったときの余りは f(a)f(a) です。

「割り算の余りを知るために、全部計算しなくていい」——x=ax = a を代入するだけで余りがわかります。

f(x) = (x-a)・Q(x) + R
x=a を代入:
f(a) = 0・Q(a) + R = R

因数定理は剰余定理の特別な場合(R=0R = 0、つまり割り切れる場合)です。


組立除法(合成除法)

多項式を (xa)(x-a) で割るとき、係数だけを使って計算する組立除法(synthetic division)が便利です。「式全体を書かずに、係数の配列だけで計算する」省力技術です。

例:x36x2+11x6x^3 - 6x^2 + 11x - 6(x1)(x-1) で割る

係数: 1  -6  11  -6    (a = 1)

  1 | 1  -6  11  -6
    |    1   -5   6
    -----------------
      1  -5   6   0   ← 余り = 0 ✓

商:x25x+6=(x2)(x3)x^2 - 5x + 6 = (x-2)(x-3)

よって全体:(x1)(x2)(x3)(x-1)(x-2)(x-3)

組立除法の手順

  1. 係数を横に並べる
  2. aa を左に書く
  3. 最初の係数をそのまま下に
  4. 下の数 × aa を右上にずらして足す
  5. 繰り返す → 最後の数が余り

有理根の候補(有理根定理)

「どんな値を代入すればゼロになるか」——手当たり次第に試すより、候補を絞れます。

整数係数の多項式 anxn++a0a_n x^n + \cdots + a_0 の有理数の根は:

x=±a0 の因数an の因数x = \pm \dfrac{a_0 \text{ の因数}}{a_n \text{ の因数}}

の形に限られます。

例:2x33x22x+3=02x^3 - 3x^2 - 2x + 3 = 0

  • a0=3a_0 = 3 の因数:±1,±3\pm 1, \pm 3
  • an=2a_n = 2 の因数:±1,±2\pm 1, \pm 2
  • 候補:±1,±3,±12,±32\pm 1, \pm 3, \pm \frac{1}{2}, \pm \frac{3}{2}(全部で8個)

f(1)=232+3=0f(1) = 2-3-2+3 = 0x=1x=1 が根——8個の候補から1つずつ試せばすぐ見つかります。


高次方程式の一般的な解法

「3次・4次方程式は手ごわそう」——でも次のステップを踏めば必ず解けます。

  1. 有理根定理で候補を絞る
  2. 代入して f(a)=0f(a) = 0 を確認(因数定理)
  3. 組立除法で次数を下げる
  4. 残った式をさらに因数分解
  5. 2次式は解の公式で解く
次数解法の流れ
3次因数定理 → 2次式 → 解の公式
4次因数定理 → 3次式 → 再び因数定理 → 2次式
特殊形x45x2+4=0x^4 - 5x^2 + 4 = 0t=x2t=x^2 で2次に

多項式のゼロ点とグラフ

f(x)=(xr1)(xr2)(xr3)f(x) = (x-r_1)(x-r_2)(x-r_3) のグラフは、x=r1,r2,r3x = r_1, r_2, r_3xx 軸と交わります——「因数の数だけグラフがx軸を通過する」という視覚的なルールです。

f(x) = (x-r₁)(x-r₂)(x-r₃) のグラフ:マウスで r₁ を動かしてゼロ点を変える
function loop() {
ctx.clearRect(0, 0, W, H);

var cx = W/2, cy = H/2;
var scaleX = 55, scaleY = 10;

var r1 = -4 + (mx / W) * 8;  // -4 to 4
var r2 = 1.5, r3 = -1.5;

// Grid
ctx.strokeStyle = '#1a2036';
ctx.lineWidth = 1;
for (var gx = -5; gx <= 5; gx++) {
  ctx.beginPath(); ctx.moveTo(cx+gx*scaleX,0); ctx.lineTo(cx+gx*scaleX,H); ctx.stroke();
}

// Axes
ctx.strokeStyle = '#334155'; ctx.lineWidth = 1.5;
ctx.beginPath(); ctx.moveTo(0,cy); ctx.lineTo(W,cy); ctx.stroke();
ctx.beginPath(); ctx.moveTo(cx,0); ctx.lineTo(cx,H); ctx.stroke();

ctx.fillStyle = '#475569'; ctx.font = '11px monospace'; ctx.textAlign = 'center';
for (var n = -5; n <= 5; n++) {
  if (n===0) continue;
  ctx.fillText(n, cx+n*scaleX, cy+14);
}

// Curve
ctx.strokeStyle = '#3b82f6';
ctx.lineWidth = 2.5;
ctx.beginPath();
var started = false;
for (var px = 0; px <= W; px += 2) {
  var xv = (px - cx) / scaleX;
  var yv = (xv - r1) * (xv - r2) * (xv - r3);
  var py = cy - yv * scaleY;
  if (py < -50 || py > H + 50) { started = false; continue; }
  if (!started) { ctx.moveTo(px, py); started = true; }
  else ctx.lineTo(px, py);
}
ctx.stroke();

// Roots
var roots = [r1, r2, r3];
var rootColors = ['#fbbf24', '#22c55e', '#ef4444'];
var rootLabels = ['r₁ (可変)', 'r₂=1.5', 'r₃=-1.5'];
for (var i = 0; i < 3; i++) {
  var rx = cx + roots[i] * scaleX, ry = cy;
  ctx.fillStyle = rootColors[i];
  ctx.beginPath();
  ctx.arc(rx, ry, 7, 0, Math.PI*2);
  ctx.fill();
  ctx.fillStyle = rootColors[i]; ctx.font = '12px monospace'; ctx.textAlign = 'center';
  ctx.fillText(rootLabels[i], rx, ry + (i===0 ? -14 : 22));
  ctx.fillText(roots[i].toFixed(2), rx, ry + (i===0 ? -28 : 36));
}

// f(r1) check
var fAtMouse = (r1-r1)*(r1-r2)*(r1-r3);

// Info
ctx.fillStyle = '#0f172a';
ctx.fillRect(8, 8, 290, 70);
ctx.strokeStyle = '#334155'; ctx.lineWidth = 1; ctx.strokeRect(8, 8, 290, 70);
ctx.font = '12px monospace'; ctx.textAlign = 'left';
ctx.fillStyle = '#e2e8f0';
ctx.fillText('f(x) = (x - ' + r1.toFixed(2) + ')(x - 1.5)(x + 1.5)', 18, 28);
ctx.fillStyle = '#fbbf24';
ctx.fillText('f(r₁) = f(' + r1.toFixed(2) + ') = ' + fAtMouse.toFixed(3), 18, 48);
ctx.fillStyle = '#94a3b8';
ctx.fillText('マウスで r₁ を変える', 18, 68);

requestAnimationFrame(loop);
}
loop();

重根

(xa)2(x-a)^2 のように同じ因数が2回現れるとき、x=ax=a重根(二重根)と言います。グラフはその点で xx 軸に接する(交差しない)という特徴があります——「x軸にそっと触れて、また引き返す」形です。

(x2)2(x+1)=0(x-2)^2(x+1) = 0x=2x=2(重根)、x=1x=-1(単純根)

重根の可視化:f(x)=(x-a)²(x+1) のグラフ。重根でx軸に接する様子をマウスで確認
function loop() {
ctx.clearRect(0, 0, W, H);

var cx = W/2, cy = H/2;
var scaleX = 55, scaleY = 12;
var a = -3 + (mx / W) * 6;  // -3 to 3

// Grid
ctx.strokeStyle = '#1a2036'; ctx.lineWidth = 1;
for (var gx = -5; gx <= 5; gx++) {
  ctx.beginPath(); ctx.moveTo(cx+gx*scaleX,0); ctx.lineTo(cx+gx*scaleX,H); ctx.stroke();
}

// Axes
ctx.strokeStyle = '#334155'; ctx.lineWidth = 1.5;
ctx.beginPath(); ctx.moveTo(0,cy); ctx.lineTo(W,cy); ctx.stroke();
ctx.beginPath(); ctx.moveTo(cx,0); ctx.lineTo(cx,H); ctx.stroke();

ctx.fillStyle = '#475569'; ctx.font = '11px monospace'; ctx.textAlign = 'center';
for (var n = -5; n<=5; n++) {
  if (n===0) continue;
  ctx.fillText(n, cx+n*scaleX, cy+14);
}

// Curve: (x-a)²(x+1)
ctx.strokeStyle = '#8b5cf6';
ctx.lineWidth = 2.5;
ctx.beginPath();
var started = false;
for (var px = 0; px <= W; px += 2) {
  var xv = (px - cx) / scaleX;
  var yv = (xv-a)*(xv-a)*(xv+1);
  var py = cy - yv * scaleY;
  if (py < -50 || py > H+50) { started = false; continue; }
  if (!started) { ctx.moveTo(px, py); started = true; }
  else ctx.lineTo(px, py);
}
ctx.stroke();

// Double root at x=a
ctx.fillStyle = '#fbbf24';
ctx.beginPath();
ctx.arc(cx + a*scaleX, cy, 9, 0, Math.PI*2);
ctx.fill();
ctx.fillStyle = '#fde68a'; ctx.font = 'bold 13px monospace'; ctx.textAlign = 'center';
ctx.fillText('重根 x=' + a.toFixed(2), cx+a*scaleX, cy-18);

// Simple root at x=-1
ctx.fillStyle = '#22c55e';
ctx.beginPath();
ctx.arc(cx - scaleX, cy, 7, 0, Math.PI*2);
ctx.fill();
ctx.fillStyle = '#86efac'; ctx.font = '13px monospace';
ctx.fillText('x=-1', cx - scaleX, cy + 22);

ctx.fillStyle = '#c4b5fd'; ctx.font = '13px monospace'; ctx.textAlign = 'center';
ctx.fillText('f(x) = (x - ' + a.toFixed(2) + ')²(x + 1)', W/2, 20);
ctx.fillText('重根では x 軸に接する(交差しない)', W/2, H-14);

requestAnimationFrame(loop);
}
loop();

代数学の基本定理

代数学の基本定理nn 次多項式は(複素数の範囲で)ちょうど nn 個の根を持ちます(重根は重複度分カウント)。

nn 次式なら必ず nn 個の根がある」——これは「解がなくて困る」という事態が複素数まで広げると起きないことを保証する定理です。

anxn++a0=an(xr1)(xr2)(xrn)a_n x^n + \cdots + a_0 = a_n(x - r_1)(x - r_2)\cdots(x - r_n)

と完全に因数分解できます(複素数の範囲で)。


まとめ

  • 因数定理f(a)=0    (xa)f(a) = 0 \iff (x-a)f(x)f(x) の因数——「代入してゼロならその値が根」
  • 剰余定理f(x)÷(xa)f(x) \div (x-a) の余り =f(a)= f(a)——「代入するだけで余りがわかる」
  • 組立除法:係数だけで高速に除法を実行——「式全体を書かずに省力計算」
  • 有理根定理:整数係数多項式の有理根候補を絞り込む——「手当たり次第に試す前に候補を減らす」
  • 重根(xa)2(x-a)^2 の形 → グラフが xx 軸に接する——「通過ではなく、そっと触れて戻る」

次回は不等式の世界へ。方程式との違いと、不等号の向きに関する注意点を整理します。