← Back to course

Math — Mechina

Polynomials: division with remainder and the remainder theorem

Summary

Any polynomial can be divided by another with a remainder: p(x)=q(x)⋅s(x)+r(x)p(x)=q(x)\cdot s(x)+r(x), and the remainder has a lower degree than the divisor. In the placement test you almost never do long division — you plug in the roots of the divisor.

Notation

p(x)p(x)
The polynomial being divided
q(x)q(x)
The divisor
s(x)s(x)
The quotient
r(x)r(x)
The remainder, deg⁡r<deg⁡q\deg r<\deg q
p(x)=q(x) s(x)+r(x),p(x)=(x−a) s(x)+p(a),p(1)=an+…+a1+a0p(x)=q(x)\,s(x)+r(x),\qquad p(x)=(x-a)\,s(x)+p(a),\qquad p(1)=a_n+\ldots+a_1+a_0
  • The remainder theorem: the remainder on division by (x−a)(x-a) is p(a)p(a). If p(a)=0p(a)=0, then (x−a)(x-a) divides pp.
  • A quadratic divisor: the remainder is r=cx+dr=cx+d. Plug in both roots of the divisor and get two equations.
  • Complex roots of the divisor: x2+1x^2+1 — plug in x=ix=i; x2−x+1x^2-x+1 — plug in ω\omega with ω2=ω−1\omega^2=\omega-1, ω3=−1\omega^3=-1.
  • Sum of coefficients =p(1)=p(1); constant term =p(0)=p(0); the sum of the coefficients of the even powers =p(1)+p(−1)2=\frac{p(1)+p(-1)}2.
  • Vieta for ax2+bx+cax^2+bx+c: x1+x2=−bax_1+x_2=-\frac ba, x1x2=cax_1x_2=\frac ca. For ax3+bx2+cx+dax^3+bx^2+cx+d: sum −ba-\frac ba, product −da-\frac da.
  • A polynomial with new roots: roots 2x1,2x22x_1,2x_2 — substitute x2\frac x2 for xx; roots 1x1,1x2\frac1{x_1},\frac1{x_2} — reverse the order of the coefficients.

Question types

1

The remainder on division by a linear factor

You are asked for the remainder on division by (x−a)(x-a), or for a parameter that makes (x−a)(x-a) a divisor.

Worked example

p(x)=x13+1p(x)=x^{13}+1. What is the remainder on division by x−1x-1? Does x+1x+1 divide pp?

Solution

IdeaThe remainder theorem: plug in the root of the divisor.
  1. p(1)=1+1=2p(1)=1+1=2 — the remainder is 22.

    Why: x−1=0⇒x=1x-1=0\Rightarrow x=1.

  2. p(−1)=(−1)13+1=0p(-1)=(-1)^{13}+1=0.

    Why: An odd power.

  3. x+1x+1 divides pp.
Checkx13+1=(x+1)(x12−x11+…+1)x^{13}+1=(x+1)(x^{12}-x^{11}+\ldots+1) ✓.
Common mistakePlugging in x=−1x=-1 for division by x−1x-1.

Variants of this type · 1

1.1A parameter

Worked example

For which kk is x3+kx2−4x^3+kx^2-4 divisible by x−2x-2?

Solution

Ideap(2)=0p(2)=0.
  1. 8+4k−4=08+4k-4=0, k=−1k=-1.
Check8−4−4=08-4-4=0 ✓.
Common mistakep(−2)=0p(-2)=0.
2

The remainder on division by a quadratic

The divisor has degree 22; you are asked for the remainder cx+dcx+d or one of its coefficients.

Worked example

What is the remainder when p(x)=x10+x5+1p(x)=x^{10}+x^5+1 is divided by x2−1x^2-1?

Solution

Ideap(x)=(x2−1)s(x)+cx+dp(x)=(x^2-1)s(x)+cx+d; plug in x=±1x=\pm1 to get rid of ss.
  1. x=1x=1: p(1)=3=c+dp(1)=3=c+d.

    Why: x2−1=0x^2-1=0.

  2. x=−1x=-1: p(−1)=1−1+1=1=−c+dp(-1)=1-1+1=1=-c+d.

    Why: (−1)5=−1(-1)^5=-1.

  3. Add: 2d=4⇒d=22d=4\Rightarrow d=2; c=1c=1.

    Why: A system.

  4. The remainder is x+2x+2.
CheckAt x=1x=1: 1+2=3=p(1)1+2=3=p(1) ✓.
Common mistakeThinking the remainder is a single number — on division by a quadratic it is linear.

Variants of this type · 2

2.1A divisor without real roots

Worked example

The remainder of x2026x^{2026} on division by x2+1x^2+1.

Solution

IdeaPlug in x=ix=i.
  1. i2026=i2=−1i^{2026}=i^2=-1 (since 2026=4⋅506+22026=4\cdot506+2).
  2. ci+d=−1⇒c=0ci+d=-1\Rightarrow c=0, d=−1d=-1.
Checkx2026=(x2)1013x^{2026}=(x^2)^{1013}, and x2≡−1x^2\equiv-1 ✓.
Common mistakeConcluding "no roots, no remainder".
2.2The remainder from two conditions

Worked example

pp leaves remainder 33 on division by x−1x-1 and remainder 55 on division by x−2x-2. What is the remainder on division by (x−1)(x−2)(x-1)(x-2)?

Solution

Ideap(1)=3p(1)=3, p(2)=5p(2)=5, and the remainder is cx+dcx+d.
  1. c+d=3c+d=3, 2c+d=52c+d=5.
  2. c=2c=2, d=1d=1: the remainder is 2x+12x+1.
Check2⋅1+1=32\cdot1+1=3, 2⋅2+1=52\cdot2+1=5 ✓.
Common mistake3⋅5=153\cdot5=15.
3

Sums of coefficients and Vieta

Questions about the sum of coefficients, the constant term, the sum/product of the roots, or a polynomial whose roots are related to another’s.

Worked example

x1,x2x_1,x_2 are the roots of x2−5x+3x^2-5x+3. Find a monic quadratic whose roots are x12x_1^2 and x22x_2^2.

Solution

IdeaVieta: compute the sum and the product of the new roots.
  1. x1+x2=5x_1+x_2=5, x1x2=3x_1x_2=3.

    Why: Vieta.

  2. x12+x22=(x1+x2)2−2x1x2=25−6=19x_1^2+x_2^2=(x_1+x_2)^2-2x_1x_2=25-6=19.

    Why: A short multiplication formula.

  3. x12x22=9x_1^2x_2^2=9.

    Why: (x1x2)2(x_1x_2)^2.

  4. x2−19x+9x^2-19x+9.
Checkx1≈4.30x_1\approx4.30: x12≈18.5x_1^2\approx18.5; 18.5+0.49≈1918.5+0.49\approx19 ✓.
Common mistakex12+x22=(x1+x2)2=25x_1^2+x_2^2=(x_1+x_2)^2=25.

Variants of this type · 1

3.1The sum of coefficients of a power

Worked example

The sum of coefficients of (3x−2)7(x+1)(3x-2)^{7}(x+1).

Solution

Ideap(1)p(1).
  1. (3−2)7⋅2=2(3-2)^7\cdot2=2.
Check✓.
Common mistakeExpanding the binomial.

Practice · 20

Test yourself with problems and full solutions.

Go to practice