Przejdź do treści

Dzielenie wielomianów - pisemnie i z resztą, krok po kroku

Klasa 2 liceum i technikum

Dzielenie wielomianu W przez wielomian P

W(x)=P(x)⋅Q(x)+R(x),deg⁡R<deg⁡PW(x) = P(x) \cdot Q(x) + R(x), \qquad \deg R < \deg P

deg⁡Q=deg⁡W−deg⁡P\deg Q = \deg W - \deg P

Podzielność: WW jest podzielny przez PP, gdy reszta jest zerowa, czyli W(x)=P(x)⋅Q(x)W(x) = P(x) \cdot Q(x).

Podzielić wielomian WW przez niezerowy wielomian PP to znaleźć takie wielomiany QQ (iloraz) i RR (resztę), że W(x)=P(x)⋅Q(x)+R(x)W(x) = P(x) \cdot Q(x) + R(x), a stopień reszty jest mniejszy od stopnia dzielnika. Wielomian WW jest podzielny przez PP, gdy ta reszta jest wielomianem zerowym.

Kiedy wielomian jest podzielny przez inny wielomian

Dokładnie tak samo jak przy liczbach całkowitych: 1212 jest podzielne przez 44, bo 12=4⋅312 = 4 \cdot 3. Dla wielomianów:

Wielomian WW jest podzielny przez niezerowy wielomian PP, jeżeli istnieje wielomian QQ taki, że W(x)=P(x)⋅Q(x)W(x) = P(x) \cdot Q(x) dla każdego xx.

Przykład. Ze wzoru na różnicę sześcianów mamy

x3−8=(x−2)(x2+2x+4),x^3 - 8 = (x - 2)(x^2 + 2x + 4),

więc wielomian x3−8x^3 - 8 jest podzielny przez x−2x - 2 (i przez x2+2x+4x^2 + 2x + 4). Iloczyn sprawdzamy zwykłym mnożeniem wielomianów.

Najczęściej jednak dzielnika nie widać od razu. Wtedy dzielimy - i patrzymy, czy reszta wyszła zerowa.

Twierdzenie o dzieleniu z resztą

Liczby całkowite dzielimy z resztą: 17=5⋅3+217 = 5 \cdot 3 + 2, a reszta 22 jest mniejsza od dzielnika 55. Dla wielomianów „mniejsza” znaczy niższego stopnia:

Twierdzenie. Dla każdego wielomianu WW i każdego niezerowego wielomianu PP istnieje dokładnie jedna para wielomianów QQ i RR taka, że W(x)=P(x)⋅Q(x)+R(x)W(x) = P(x) \cdot Q(x) + R(x) oraz deg⁡R<deg⁡P\deg R < \deg P (albo RR jest wielomianem zerowym).

Z tego wynikają dwie rzeczy, które warto mieć w głowie przed każdym dzieleniem:

Dzielenie pisemne krok po kroku

Wielomiany dzielimy „pod kreską”, podobnie jak liczby w szkole podstawowej. Algorytm:

  1. Uporządkuj dzielną i dzielnik według malejących potęg i uzupełnij brakujące potęgi zerami (np. 2x3−7x+4=2x3+0x2−7x+42x^3 - 7x + 4 = 2x^3 + 0x^2 - 7x + 4).
  2. Podziel najwyższy wyraz dzielnej przez najwyższy wyraz dzielnika. Wynik to kolejny wyraz ilorazu - zapisujemy go nad kreską.
  3. Pomnóż ten wyraz przez cały dzielnik i wpisz iloczyn pod dzielną z przeciwnymi znakami.
  4. Dodaj (to jest właśnie odejmowanie iloczynu) i sprowadź kolejny wyraz dzielnej.
  5. Powtarzaj kroki 2-4, aż stopień tego, co zostało, będzie mniejszy od stopnia dzielnika. To, co zostało, to reszta.

Przykład 1 - dzielenie przez dwumian bez reszty

Zadanie. Podziel W(x)=x3−4x2+x+6W(x) = x^3 - 4x^2 + x + 6 przez P(x)=x−2P(x) = x - 2.

−x3  − 4x2x2  − 2x− 2x  − 3− 3‾  :  (x−2)−x3x3  − 4x2− 4x2  − 2x+ x  − 3+ 6  :  (x−2)−x3−x3  − 4x2+ 2x2‾  − 2x  − 3  :  (x−2)−x3  − 4x2−2x2  − 2x+ x  − 3  :  (x−2)−x3  − 4x22x2  − 2x− 4x‾  − 3  :  (x−2)−x3  − 4x2  − 2x−3x  − 3+ 6  :  (x−2)−x3  − 4x2  − 2x3x  − 3− 6‾  :  (x−2)−x3  − 4x2  − 2x  − 30  :  (x−2)\begin{array}{l} \underline{\phantom{-x^3}\mathllap{}\;\phantom{-\,4x^2}\mathllap{x^2}\;\phantom{-\,2x}\mathllap{-\,2x}\;\phantom{-\,3}\mathllap{-\,3}}\phantom{\;:\;(x - 2)} \\ \phantom{-x^3}\mathllap{x^3}\;\phantom{-\,4x^2}\mathllap{-\,4x^2}\;\phantom{-\,2x}\mathllap{+\,x}\;\phantom{-\,3}\mathllap{+\,6}\;:\;(x - 2) \\ \underline{\phantom{-x^3}\mathllap{-x^3}\;\phantom{-\,4x^2}\mathllap{+\,2x^2}}\;\phantom{-\,2x}\;\phantom{-\,3}\phantom{\;:\;(x - 2)} \\ \phantom{-x^3}\;\phantom{-\,4x^2}\mathllap{-2x^2}\;\phantom{-\,2x}\mathllap{+\,x}\;\phantom{-\,3}\phantom{\;:\;(x - 2)} \\ \phantom{-x^3}\;\underline{\phantom{-\,4x^2}\mathllap{2x^2}\;\phantom{-\,2x}\mathllap{-\,4x}}\;\phantom{-\,3}\phantom{\;:\;(x - 2)} \\ \phantom{-x^3}\;\phantom{-\,4x^2}\;\phantom{-\,2x}\mathllap{-3x}\;\phantom{-\,3}\mathllap{+\,6}\phantom{\;:\;(x - 2)} \\ \phantom{-x^3}\;\phantom{-\,4x^2}\;\underline{\phantom{-\,2x}\mathllap{3x}\;\phantom{-\,3}\mathllap{-\,6}}\phantom{\;:\;(x - 2)} \\ \phantom{-x^3}\;\phantom{-\,4x^2}\;\phantom{-\,2x}\;\phantom{-\,3}\mathllap{0}\phantom{\;:\;(x - 2)} \end{array}

Krok 1. x3:x=x2x^3 : x = x^2. Mnożymy x2(x−2)=x3−2x2x^2(x - 2) = x^3 - 2x^2 i zapisujemy z przeciwnymi znakami: −x3+2x2-x^3 + 2x^2. Po dodaniu zostaje −2x2-2x^2, dopisujemy +x+x.

Krok 2. −2x2:x=−2x-2x^2 : x = -2x. Iloczyn −2x(x−2)=−2x2+4x-2x(x - 2) = -2x^2 + 4x zapisujemy jako 2x2−4x2x^2 - 4x. Zostaje −3x-3x, dopisujemy +6+6.

Krok 3. −3x:x=−3-3x : x = -3. Iloczyn −3(x−2)=−3x+6-3(x - 2) = -3x + 6 zapisujemy jako 3x−63x - 6. Zostaje 00.

Sprawdzenie. (x−2)(x2−2x−3)=x3−2x2−3x−2x2+4x+6=x3−4x2+x+6.(x - 2)(x^2 - 2x - 3) = x^3 - 2x^2 - 3x - 2x^2 + 4x + 6 = x^3 - 4x^2 + x + 6.

Odpowiedź. x3−4x2+x+6=(x−2)(x2−2x−3)x^3 - 4x^2 + x + 6 = (x - 2)(x^2 - 2x - 3) - reszta jest zerowa, więc WW jest podzielny przez x−2x - 2.

Przykład 2 - brakująca potęga i reszta różna od zera

Zadanie. Podziel W(x)=2x3−7x+4W(x) = 2x^3 - 7x + 4 przez x−2x - 2.

W dzielnej nie ma x2x^2, więc zapisujemy ją jako 2x3+0x2−7x+42x^3 + 0x^2 - 7x + 4. Bez tego zera wyrazy różnych stopni wpadłyby do jednej kolumny.

−2x3  + 0x22x2  + 4x+ 4x  + 1+ 1‾  :  (x−2)−2x32x3  + 0x2+ 0x2  + 4x− 7x  + 1+ 4  :  (x−2)−2x3−2x3  + 0x2+ 4x2‾  + 4x  + 1  :  (x−2)−2x3  + 0x24x2  + 4x− 7x  + 1  :  (x−2)−2x3  + 0x2−4x2  + 4x+ 8x‾  + 1  :  (x−2)−2x3  + 0x2  + 4xx  + 1+ 4  :  (x−2)−2x3  + 0x2  + 4x−x  + 1+ 2‾  :  (x−2)−2x3  + 0x2  + 4x  + 16  :  (x−2)\begin{array}{l} \underline{\phantom{-2x^3}\mathllap{}\;\phantom{+\,0x^2}\mathllap{2x^2}\;\phantom{+\,4x}\mathllap{+\,4x}\;\phantom{+\,1}\mathllap{+\,1}}\phantom{\;:\;(x - 2)} \\ \phantom{-2x^3}\mathllap{2x^3}\;\phantom{+\,0x^2}\mathllap{+\,0x^2}\;\phantom{+\,4x}\mathllap{-\,7x}\;\phantom{+\,1}\mathllap{+\,4}\;:\;(x - 2) \\ \underline{\phantom{-2x^3}\mathllap{-2x^3}\;\phantom{+\,0x^2}\mathllap{+\,4x^2}}\;\phantom{+\,4x}\;\phantom{+\,1}\phantom{\;:\;(x - 2)} \\ \phantom{-2x^3}\;\phantom{+\,0x^2}\mathllap{4x^2}\;\phantom{+\,4x}\mathllap{-\,7x}\;\phantom{+\,1}\phantom{\;:\;(x - 2)} \\ \phantom{-2x^3}\;\underline{\phantom{+\,0x^2}\mathllap{-4x^2}\;\phantom{+\,4x}\mathllap{+\,8x}}\;\phantom{+\,1}\phantom{\;:\;(x - 2)} \\ \phantom{-2x^3}\;\phantom{+\,0x^2}\;\phantom{+\,4x}\mathllap{x}\;\phantom{+\,1}\mathllap{+\,4}\phantom{\;:\;(x - 2)} \\ \phantom{-2x^3}\;\phantom{+\,0x^2}\;\underline{\phantom{+\,4x}\mathllap{-x}\;\phantom{+\,1}\mathllap{+\,2}}\phantom{\;:\;(x - 2)} \\ \phantom{-2x^3}\;\phantom{+\,0x^2}\;\phantom{+\,4x}\;\phantom{+\,1}\mathllap{6}\phantom{\;:\;(x - 2)} \end{array}

Kolejne wyrazy ilorazu: 2x3:x=2x22x^3 : x = 2x^2, potem 4x2:x=4x4x^2 : x = 4x, na końcu x:x=1x : x = 1. Zostaje liczba 66 - jej stopień (00) jest mniejszy od stopnia dzielnika (11), więc kończymy.

Odpowiedź. Iloraz Q(x)=2x2+4x+1Q(x) = 2x^2 + 4x + 1, reszta R=6R = 6:

2x3−7x+4=(x−2)(2x2+4x+1)+6.2x^3 - 7x + 4 = (x - 2)(2x^2 + 4x + 1) + 6.

Wielomian nie jest podzielny przez x−2x - 2.

Przykład 3 - dzielenie przez wielomian stopnia 2

Program liceum wymaga też dzielenia przez wielomian stopnia większego od 11. Algorytm jest ten sam - zmienia się tylko to, że iloczyn zajmuje trzy kolumny, a reszta może zawierać xx.

Zadanie. Podziel W(x)=2x4+3x3−x2+5x−4W(x) = 2x^4 + 3x^3 - x^2 + 5x - 4 przez P(x)=x2+x−2P(x) = x^2 + x - 2.

Nad kreską iloraz, pod nią dzielna (dzielnik x2+x−2x^2 + x - 2 zostawiamy z boku, żeby schemat zmieścił się na ekranie telefonu):

−2x4  + 3x3  + 4x22x2  + 5x+ x  + 2+ 2‾−2x42x4  + 3x3+ 3x3  + 4x2− x2  + 5x+ 5x  + 2− 4−2x4−2x4  + 3x3− 2x3  + 4x2+ 4x2‾  + 5x  + 2−2x4  + 3x3x3  + 4x2+ 3x2  + 5x+ 5x  + 2−2x4  + 3x3−x3  + 4x2− x2  + 5x+ 2x‾  + 2−2x4  + 3x3  + 4x22x2  + 5x+ 7x  + 2− 4−2x4  + 3x3  + 4x2−2x2  + 5x− 2x  + 2+ 4‾−2x4  + 3x3  + 4x2  + 5x5x  + 2\begin{array}{l} \underline{\phantom{-2x^4}\mathllap{}\;\phantom{+\,3x^3}\mathllap{}\;\phantom{+\,4x^2}\mathllap{2x^2}\;\phantom{+\,5x}\mathllap{+\,x}\;\phantom{+\,2}\mathllap{+\,2}} \\ \phantom{-2x^4}\mathllap{2x^4}\;\phantom{+\,3x^3}\mathllap{+\,3x^3}\;\phantom{+\,4x^2}\mathllap{-\,x^2}\;\phantom{+\,5x}\mathllap{+\,5x}\;\phantom{+\,2}\mathllap{-\,4} \\ \underline{\phantom{-2x^4}\mathllap{-2x^4}\;\phantom{+\,3x^3}\mathllap{-\,2x^3}\;\phantom{+\,4x^2}\mathllap{+\,4x^2}}\;\phantom{+\,5x}\;\phantom{+\,2} \\ \phantom{-2x^4}\;\phantom{+\,3x^3}\mathllap{x^3}\;\phantom{+\,4x^2}\mathllap{+\,3x^2}\;\phantom{+\,5x}\mathllap{+\,5x}\;\phantom{+\,2} \\ \phantom{-2x^4}\;\underline{\phantom{+\,3x^3}\mathllap{-x^3}\;\phantom{+\,4x^2}\mathllap{-\,x^2}\;\phantom{+\,5x}\mathllap{+\,2x}}\;\phantom{+\,2} \\ \phantom{-2x^4}\;\phantom{+\,3x^3}\;\phantom{+\,4x^2}\mathllap{2x^2}\;\phantom{+\,5x}\mathllap{+\,7x}\;\phantom{+\,2}\mathllap{-\,4} \\ \phantom{-2x^4}\;\phantom{+\,3x^3}\;\underline{\phantom{+\,4x^2}\mathllap{-2x^2}\;\phantom{+\,5x}\mathllap{-\,2x}\;\phantom{+\,2}\mathllap{+\,4}} \\ \phantom{-2x^4}\;\phantom{+\,3x^3}\;\phantom{+\,4x^2}\;\phantom{+\,5x}\mathllap{5x}\;\phantom{+\,2} \end{array}

Krok 1. 2x4:x2=2x22x^4 : x^2 = 2x^2, iloczyn 2x2(x2+x−2)=2x4+2x3−4x22x^2(x^2 + x - 2) = 2x^4 + 2x^3 - 4x^2. Po odjęciu: x3+3x2x^3 + 3x^2, dopisujemy +5x+5x.

Krok 2. x3:x2=xx^3 : x^2 = x, iloczyn x(x2+x−2)=x3+x2−2xx(x^2 + x - 2) = x^3 + x^2 - 2x. Po odjęciu: 2x2+7x2x^2 + 7x, dopisujemy −4-4.

Krok 3. 2x2:x2=22x^2 : x^2 = 2, iloczyn 2(x2+x−2)=2x2+2x−42(x^2 + x - 2) = 2x^2 + 2x - 4. Po odjęciu zostaje 5x5x.

Stopień 5x5x to 11, a dzielnik ma stopień 22 - koniec.

Odpowiedź. Q(x)=2x2+x+2Q(x) = 2x^2 + x + 2, R(x)=5xR(x) = 5x:

2x4+3x3−x2+5x−4=(x2+x−2)(2x2+x+2)+5x.2x^4 + 3x^3 - x^2 + 5x - 4 = (x^2 + x - 2)(2x^2 + x + 2) + 5x.

Wyznaczanie parametru z podzielności

Dzielenie działa także wtedy, gdy we współczynnikach jest parametr. Dzielimy normalnie, a na końcu żądamy, żeby reszta była zerowa.

Zadanie. Wyznacz aa i bb tak, żeby wielomian W(x)=x3+ax+bW(x) = x^3 + ax + b był podzielny przez P(x)=x2−x−2P(x) = x^2 - x - 2.

Krok 1. Dzielimy x3+0x2+ax+bx^3 + 0x^2 + ax + b przez x2−x−2x^2 - x - 2:

−x3  + 0x2  + (a+2)xx  + (b+2)+ 1‾−x3x3  + 0x2+ 0x2  + (a+2)x+ ax  + (b+2)+ b−x3−x3  + 0x2+ x2  + (a+2)x+ 2x‾  + (b+2)−x3  + 0x2x2  + (a+2)x+ (a+2)x  + (b+2)+ b−x3  + 0x2−x2  + (a+2)x+ x  + (b+2)+ 2‾−x3  + 0x2  + (a+2)x(a+3)x  + (b+2)+ (b+2)\begin{array}{l} \underline{\phantom{-x^3}\mathllap{}\;\phantom{+\,0x^2}\mathllap{}\;\phantom{+\,(a+2)x}\mathllap{x}\;\phantom{+\,(b+2)}\mathllap{+\,1}} \\ \phantom{-x^3}\mathllap{x^3}\;\phantom{+\,0x^2}\mathllap{+\,0x^2}\;\phantom{+\,(a+2)x}\mathllap{+\,ax}\;\phantom{+\,(b+2)}\mathllap{+\,b} \\ \underline{\phantom{-x^3}\mathllap{-x^3}\;\phantom{+\,0x^2}\mathllap{+\,x^2}\;\phantom{+\,(a+2)x}\mathllap{+\,2x}}\;\phantom{+\,(b+2)} \\ \phantom{-x^3}\;\phantom{+\,0x^2}\mathllap{x^2}\;\phantom{+\,(a+2)x}\mathllap{+\,(a+2)x}\;\phantom{+\,(b+2)}\mathllap{+\,b} \\ \phantom{-x^3}\;\underline{\phantom{+\,0x^2}\mathllap{-x^2}\;\phantom{+\,(a+2)x}\mathllap{+\,x}\;\phantom{+\,(b+2)}\mathllap{+\,2}} \\ \phantom{-x^3}\;\phantom{+\,0x^2}\;\phantom{+\,(a+2)x}\mathllap{(a+3)x}\;\phantom{+\,(b+2)}\mathllap{+\,(b+2)} \end{array}

Krok 2. Reszta musi być zerowa. R(x)=(a+3)x+(b+2)R(x) = (a + 3)x + (b + 2) jest wielomianem zerowym tylko wtedy, gdy oba współczynniki są zerami:

a+3=0ib+2=0⟹a=−3, b=−2.a + 3 = 0 \quad \text{i} \quad b + 2 = 0 \quad\Longrightarrow\quad a = -3,\ b = -2.

Sprawdzenie. (x2−x−2)(x+1)=x3+x2−x2−x−2x−2=x3−3x−2.(x^2 - x - 2)(x + 1) = x^3 + x^2 - x^2 - x - 2x - 2 = x^3 - 3x - 2.

Odpowiedź. a=−3a = -3, b=−2b = -2.

Gdy dzielnik jest dwumianem x−cx - c, ten sam warunek da się zapisać krócej: W(c)=0W(c) = 0. To treść twierdzenia Bézouta - dwie lekcje dalej.

Typowe błędy

Najczęstsze pytania

Jak dzielić wielomiany? Porządkujemy oba wielomiany według malejących potęg, uzupełniamy brakujące potęgi zerami i dzielimy pisemnie: najwyższy wyraz przez najwyższy wyraz dzielnika, mnożymy, odejmujemy, sprowadzamy kolejny wyraz - aż stopień reszty spadnie poniżej stopnia dzielnika. Przy dzieleniu przez dwumian x−ax - a szybszy jest schemat Hornera.

Co to znaczy, że wielomian jest podzielny przez dwumian? Że da się go zapisać jako iloczyn tego dwumianu i innego wielomianu, czyli reszta z dzielenia wynosi 00. Na przykład x3−4x2+x+6=(x−2)(x2−2x−3)x^3 - 4x^2 + x + 6 = (x - 2)(x^2 - 2x - 3), więc jest podzielny przez x−2x - 2.

Jaki stopień ma reszta z dzielenia wielomianu? Mniejszy niż stopień dzielnika. Przy dzieleniu przez wielomian stopnia 11 reszta jest liczbą, przy dzieleniu przez wielomian stopnia 22 ma postać px+qpx + q (może też być zerowa).

Jaki stopień ma iloraz dwóch wielomianów? Stopień dzielnej minus stopień dzielnika: deg⁡Q=deg⁡W−deg⁡P\deg Q = \deg W - \deg P. Wielomian stopnia 44 podzielony przez wielomian stopnia 22 daje iloraz stopnia 22.

Jak sprawdzić, czy dobrze podzieliłem wielomian? Pomnóż iloraz przez dzielnik i dodaj resztę. Jeśli wyjdzie dzielna, rachunek jest poprawny.

Czy można podzielić wielomian przez wielomian wyższego stopnia? Można, ale wynik jest trywialny: iloraz to 00, a reszta to cała dzielna. Na przykład x+1=(x2+1)⋅0+(x+1)x + 1 = (x^2 + 1) \cdot 0 + (x + 1).

Przećwicz

Podsumowanie

Zobacz też