Weeks
Mathematics 1Week 4 · Polynomial Functions, Division Algorithm and Zeros
Week 4 Notes

Mathematics for
Data Science 1

Polynomial functions: definition and classification, addition, subtraction, multiplication and division of polynomials, the division algorithm, the shape of their graphs, and zeros.

8 chapters~23 min read
PolynomialsAlgebra of polynomialsDivision algorithmZeros

Chapters

  1. 01Polynomial FunctionsPolynomial functions
  2. 02Classification of PolynomialsPolynomial functions
  3. 03Addition and SubtractionAlgebra of polynomials
  4. 04MultiplicationAlgebra of polynomials
  5. 05Division and the Division AlgorithmAlgebra of polynomials
  6. 06Characteristics of Polynomial GraphsGraphs and zeros
  7. 07Zeros of a Polynomial FunctionGraphs and zeros
  8. 08Week 4 Summary SheetAll topics
01
Polynomial functions

Polynomial Functions

The layman's view
  • A polynomial is a mathematical expression that consists of numerous mathematical terms added together.
The mathematician's view
  • A polynomial is an algebraic expression in which the only arithmetic is addition, subtraction, multiplication and “natural” exponents of the variables.

The word polynomial comes from polynomen: poly means many and nomen means name. In this chapter we deal only with polynomials in a single variable.

Definition: polynomial functionA polynomial function f(x)f(x) of degree nn is
f(x)=anxn+an−1xn−1+an−2xn−2+⋯+a0x0,an≠0, n∈Nf(x) = a_n x^n + a_{n-1} x^{n-1} + a_{n-2} x^{n-2} + \cdots + a_0 x^0, \qquad a_n \neq 0,\ n \in \mathbb{N}
aₙ xⁿcoefficient aₙ ≠ 0power n = degree+aₙ₋₁ xⁿ⁻¹coefficient aₙ₋₁power n − 1+aₙ₋₂ xⁿ⁻²coefficient aₙ₋₂power n − 2+. . .more termsin between+a₀ x⁰coefficient a₀power 0f(x): a polynomial function of degree n (domain: all real numbers)the powers of x go down one step at a time
Figure 1. The general form of a polynomial function: terms with decreasing powers of x, the first coefficient not zero
Reading the diagram

Each box is one term: a number (the coefficient) times a power of xx. The highest power, nn, is the degree, and its coefficient ana_n must not be zero, otherwise that term would vanish and the degree would be smaller. The last term has power 0, because x0=1x^0 = 1.

Domain: all real numbers
  • A polynomial function can be treated as a function from R\mathbb{R} to R\mathbb{R}, so its domain is R\mathbb{R}.
Range: depends on f(x)
  • The range is not the same for every polynomial; it depends on the particular function f(x)f(x).

1.1Reading the definition: what is and is not a polynomial

Only addition, subtraction, multiplication and natural-number exponents are allowed. This decides what is and is not a polynomial.

ExpressionPolynomial?Why
5x3+x2+x5x^3 + x^2 + xYesNatural exponents 3, 2, 1 combined by addition
2x+42x + 4YesExponents 1 and 0
77YesA constant: 7x07x^0
1/x1/xNoDivision by the variable means the exponent −1-1, which is not natural
x\sqrt{x}NoIt is x1/2x^{1/2}, and 1/21/2 is not a natural exponent

The slides have a heading “Example: Identification of a polynomial” but the example itself is blank in the PDF. The table above only applies the definition given on the slides.

1.2Going deeper

  1. Coefficients can be any real numbers (including fractions and negatives); only the exponents must be natural numbers (extra remark).
  2. A polynomial function gives one output per input. Put in x=2x = 2 in 5x3+x2+x5x^3 + x^2 + x: 40+4+2=4640 + 4 + 2 = 46.
  3. Why the first coefficient cannot be 0. If an=0a_n = 0 the term vanishes and the polynomial has a smaller degree, as with a=0a = 0 in the quadratic of Week 3.
Exam tips
  • Check each exponent: whole number, non-negative, and no variable in a denominator or under a root.
Common mistakes
  • Calling 1/x1/x or x\sqrt{x} a polynomial.
  • Forgetting that a constant such as 7 is a polynomial.
Next · Polynomial functionsClassification of Polynomials
02
Polynomial functions

Classification of Polynomials

Polynomials can be sorted in three ways: by the number of variables, by the degree, and by the number of terms.

2.1Based on the number of variables

Type of polynomialExample
Polynomial in one variable5x3+x2+x5x^3 + x^2 + x
Polynomial in two variables5x3y+x2+xy5x^3y + x^2 + xy
Polynomial in more than two variables5x3yz+x2zy+xy5x^3yz + x^2zy + xy

2.2Based on the degree

Degree of a variable in one term
  • The exponent on the variable in a term. In x5y4x^5y^4 the degree of xx is 5.
Degree of a term
  • Add the degrees of all the variables in the term. The degree of x5y4x^5y^4 is 5+4=95 + 4 = 9.
Degree of the polynomial
  • The highest degree of any term with a non-zero coefficient. For f(x)=x3+x10f(x) = x^3 + x^{10} the degree is 10.
The zero polynomial
  • The degree of the zero polynomial is undefined.

Example 1: degrees in x³ + x⁵y⁴

For the polynomial in two variables x3+x5y4x^3 + x^5y^4, find the degree of each term and of the polynomial.

  • Term x3x^3: the only variable is xx, with degree 3, so the term has degree 3.
  • Term x5y4x^5y^4: the degrees are 5 and 4, so the term has degree 5+4=95 + 4 = 9.
  • Polynomial: the highest term degree is 9, so the polynomial has degree 9.

The lecture gives the degrees of the term x5y4x^5y^4; the degree of the whole expression follows from the rule stated above. Polynomials are named by their degree:

DegreeNameExamples
0Constant polynomial5,6,e,π5, 6, e, \pi
1Linear polynomial2x+4, −3x2x + 4,\ -3x
2Quadratic polynomial2x2+4, −3x22x^2 + 4,\ -3x^2
3Cubic polynomial2x3+4, −3x32x^3 + 4,\ -3x^3
4Quartic polynomial2x4+4, −3x42x^4 + 4,\ -3x^4
Link to earlier weeksLinear polynomials are the straight lines of Week 2 and quadratic polynomials are the parabolas of Week 3. Week 4 studies polynomials of any degree.

2.3Based on the number of terms

NameExplanationExamples
MonomialPolynomial with one termx10, 6x9, e, 5+4x^{10},\ 6x^9,\ e,\ 5 + 4
BinomialPolynomial with two termsx10+10, 6x9−x2, x2+3x+xx^{10} + 10,\ 6x^9 - x^2,\ x^2 + 3x + x
TrinomialPolynomial with three termsx10+x2+10, 6x9−x2+2, x2+x+ex^{10} + x^2 + 10,\ 6x^9 - x^2 + 2,\ x^2 + x + e

Like terms are combined before counting: 5+45 + 4 is the single term 9 (a monomial) and x2+3x+xx^2 + 3x + x is x2+4xx^2 + 4x (a binomial). These are the lecture's own examples; the remark explains why they sit in those rows.

2.4Going deeper

  1. For one variable, the degree is just the largest exponent with a non-zero coefficient: 3x4−2x+73x^4 - 2x + 7 has degree 4.
  2. Constants other than 0 have degree 0 (7=7x07 = 7x^0); only the zero polynomial has no degree.
  3. Names combine. x3+xx^3 + x is a cubic binomial in one variable.
Exam tips
  • Combine like terms first, then count terms and find the degree.
Common mistakes
  • Taking the degree of x5y4x^5y^4 as 5 instead of 9.
  • Counting x2+3x+xx^2 + 3x + x as three terms.
Next · Algebra of polynomialsAddition and Subtraction
03
Algebra of polynomials

Addition and Subtraction

3.1Addition

When two polynomials are added, the like terms are combined: terms with the same variable and the same exponent.

Addition algorithmLet p(x)=∑k=0nakxkp(x) = \sum_{k=0}^{n} a_k x^k and q(x)=∑j=0mbjxjq(x) = \sum_{j=0}^{m} b_j x^j. Then
p(x)+q(x)=∑k=0m∨n(ak+bk) xkp(x) + q(x) = \sum_{k=0}^{m \vee n} (a_k + b_k)\, x^k

Here m∨nm \vee n denotes whichever of mm and nn is the maximum. If one polynomial is shorter, its missing coefficients are taken as 0.

Example 2: sum of two general cubics

Both have degree 3, so m∨n=3m \vee n = 3. Expand the sum over k=0,1,2,3k = 0, 1, 2, 3:

(a3+b3)x3+(a2+b2)x2+(a1+b1)x+(a0+b0)(a_3 + b_3)x^3 + (a_2 + b_2)x^2 + (a_1 + b_1)x + (a_0 + b_0)

Example 3: sum of two numerical cubics

Find the sum of p(x)=x3+3x2+5x−10p(x) = x^3 + 3x^2 + 5x - 10 and q(x)=3x3+5x2−6x−20q(x) = 3x^3 + 5x^2 - 6x - 20.

  1. List the coefficients by power a3,a2,a1,a0=1,3,5,−10a_3, a_2, a_1, a_0 = 1, 3, 5, -10 and b3,b2,b1,b0=3,5,−6,−20b_3, b_2, b_1, b_0 = 3, 5, -6, -20.
  2. Add the coefficients of each power.
x³x²xx⁰
p(x)135−10
q(x)35−6−20
p + q1 + 3 = 43 + 5 = 85 + (−6) = −1−10 + (−20) = −30
Answer

4x3+8x2−x−304x^3 + 8x^2 - x - 30

Check by substitutionPut x=1x = 1 into everything: p(1)=1+3+5−10=−1p(1) = 1 + 3 + 5 - 10 = -1, q(1)=3+5−6−20=−18q(1) = 3 + 5 - 6 - 20 = -18, and the sum at x=1x = 1 is 4+8−1−30=−19=−1+(−18)4 + 8 - 1 - 30 = -19 = -1 + (-18). A sum of polynomials always has the sum of their values. This check is added; the slides only show the addition algorithm.

3.2Subtraction

Subtraction algorithmWith pp and qq as above, p(x)−q(x)=∑k=0m∨n(ak−bk) xkp(x) - q(x) = \sum_{k=0}^{m \vee n} (a_k - b_k)\, x^k. It works exactly like addition: subtract the coefficients of like terms.

Example 4: subtract −3x² + 2x − 2 from x³ + 2x² + 8x

Subtract q(x)=−3x2+2x−2q(x) = -3x^2 + 2x - 2 from p(x)=x3+2x2+8xp(x) = x^3 + 2x^2 + 8x.

  1. Fill in the missing coefficients with zero so that both polynomials have the same powers: pp has no constant term, qq has no x3x^3 term.
x³x²xx⁰
p(x)1280
q(x)0−32−2
  1. Subtract power by power.
x³x²xx⁰
p − q1 − 0 = 12 − (−3) = 58 − 2 = 60 − (−2) = 2
Answer

p(x)−q(x)=x3+5x2+6x+2p(x) - q(x) = x^3 + 5x^2 + 6x + 2

Common slipSubtracting a negative coefficient adds it: 2−(−3)=52 - (-3) = 5, and 0−(−2)=+20 - (-2) = +2. Write the missing coefficients as 0 first so that nothing is left out.

3.3Going deeper

  1. The degree of a sum can drop. (x3+x)+(−x3+2)(x^3 + x) + (-x^3 + 2) has degree 1, because the x3x^3 terms cancel (extra remark).
  2. The degree of a sum is at most the larger degree, so polynomials stay polynomials under addition and subtraction.
  3. Vertical layout. Line up the powers in columns, as in the tables above, and work column by column.
Exam tips
  • Write the powers in descending order and fill every gap with 0.
  • Check the answer at x=1x = 1: the coefficients add to the values.
Common mistakes
  • Forgetting to change every sign of the second polynomial when subtracting.
  • Adding unlike terms such as x2x^2 and xx.
Next · Algebra of polynomialsMultiplication
04
Algebra of polynomials

Multiplication

Multiplication algorithmLet p(x)=∑k=0nakxkp(x) = \sum_{k=0}^{n} a_k x^k and q(x)=∑j=0mbjxjq(x) = \sum_{j=0}^{m} b_j x^j. Then
p(x) q(x)=∑k=0m+n(∑j=0kaj bk−j)xkp(x)\, q(x) = \sum_{k=0}^{m+n} \left( \sum_{j=0}^{k} a_j\, b_{k-j} \right) x^k

The coefficient of xkx^k is the sum of all products ajbk−ja_j b_{k-j} whose subscripts add up to kk. Coefficients beyond the degree (aj=0a_j = 0 for j>nj > n and bj=0b_j = 0 for j>mj > m) count as 0.

A discrepancy in the slideThe slides print the inner term as (aj−bk−j)(a_j - b_{k-j}) with a minus sign, but their own table of calculations uses the products ajbk−ja_j b_{k-j}. The formula above follows the table.
Why the subscripts add to k

A term ajxja_j x^j times a term bixib_i x^i gives ajbixj+ia_j b_i x^{j+i}. So the product has an xkx^k term exactly when j+i=kj + i = k, that is i=k−ji = k - j. This reason is added to explain the formula; the slides state only the formula.

Example 5: multiply x² + x + 1 by x² + 2x + 1

  1. List the coefficients (the degree is 2 for both, so kk runs from 0 to 2+2=42 + 2 = 4, and all coefficients beyond k=2k = 2 are 0):
k012
a_k111
b_k121
  1. For each k add all products with subscripts adding to kk:
kCoefficientCalculation
0a₀b₀1
1a₁b₀ + a₀b₁1 + 2 = 3
2a₀b₂ + a₁b₁ + a₂b₀1 + 2 + 1 = 4
3a₀b₃ + a₁b₂ + a₂b₁ + a₃b₀0 + 1 + 2 + 0 = 3
4a₀b₄ + a₁b₃ + a₂b₂ + a₃b₁ + a₄b₀0 + 0 + 1 + 0 + 0 = 1
  1. Write the answer. The coefficients 1, 3, 4, 3, 1 are those of x0,x1,x2,x3,x4x^0, x^1, x^2, x^3, x^4:
Answer

(x2+x+1)(x2+2x+1)=x4+3x3+4x2+3x+1(x^2 + x + 1)(x^2 + 2x + 1) = x^4 + 3x^3 + 4x^2 + 3x + 1

Check by substitutionAt x=1x = 1: p(1)=3p(1) = 3 and q(1)=4q(1) = 4, so the product is 12; the coefficients 1+3+4+3+11 + 3 + 4 + 3 + 1 also add to 12. The check at x=1x = 1 is added; the slides do not include it.

4.1Going deeper

  1. The degree of a product is m+nm + n. Here 2+2=42 + 2 = 4. The leading coefficient is anbma_n b_m (extra remark).
  2. It is just distributing. The formula is the rule “multiply every term of one polynomial by every term of the other, then combine like terms” written with subscripts.
  3. Check by counting. A product of a 3-term and a 3-term polynomial has 3×3=93 \times 3 = 9 products before combining.
Exam tips
  • Make a table of aka_k and bkb_k and work down k=0,1,2,…,m+nk = 0, 1, 2, \ldots, m + n.
  • Check with x=1x = 1: the product of the values equals the sum of the coefficients.
Common mistakes
  • Multiplying coefficients only on the same power (that is addition's rule).
  • Missing a cross term such as a1b0a_1 b_0.
Next · Algebra of polynomialsDivision and the Division Algorithm
05
Algebra of polynomials

Division and the Division Algorithm

Definition: polynomial divisionThe division of a polynomial by a monomial, binomial or another polynomial, using various methods, is known as polynomial division. One method is the division algorithm (long division) below.

5.1Terminology

Dividendp(x)x⁴ + 2x² + 3x + 2Divisorq(x)x² + x + 1Quotienth(x)x² − x + 2Remainderr(x)2xp(x) ÷ q(x) = quotient + remainder / q(x) and p(x) = q(x) h(x) + r(x)
Figure 2. The four parts of a division, shown for p(x) = x⁴ + 2x² + 3x + 2 divided by q(x) = x² + x + 1
Reading the diagram

Dividing p(x)p(x) (the dividend) by q(x)q(x) (the divisor) gives a quotient h(x)h(x) and a remainder r(x)r(x). Written as a fraction, p(x)q(x)=x2−x+2+2xq(x)\frac{p(x)}{q(x)} = x^2 - x + 2 + \frac{2x}{q(x)}. Multiplying by q(x)q(x) gives p(x)=q(x)h(x)+r(x)p(x) = q(x)h(x) + r(x).

5.2The division algorithm

  1. Arrange the terms in descending order of the degree and add the missing exponents with 0 as coefficient.
  2. Divide the first term of the dividend by the first term of the divisor to get a monomial.
  3. Multiply the monomial with the divisor and subtract the result from the dividend.
  4. Check whether the resulting polynomial has degree less than the divisor. If true, write it as the remainder; otherwise go back to Step 2.
Why Step 1 mattersMissing powers are written with coefficient 0 so that every column lines up. For example x4+2x2+3x+2x^4 + 2x^2 + 3x + 2 is arranged as x4+0x3+2x2+3x+2x^4 + 0x^3 + 2x^2 + 3x + 2.

5.3Worked example: x⁴ + 2x² + 3x + 2 divided by x² + x + 1

Example 6: long division, step by step

x²−x2x² + x + 1divisorx⁴+ 2x²+ 3x+ 2−x⁴− x³− x²−x³+ x²+ 3x+ 2+ x³+ x²+ x2x²+ 4x+ 2−2x²− 2x− 22xremainder
Figure 3. The same division laid out as a long division: the quotient on top, each product being subtracted under the line above it, and the remainder at the bottom
  1. Arrange. p(x)=x4+0x3+2x2+3x+2p(x) = x^4 + 0x^3 + 2x^2 + 3x + 2, q(x)=x2+x+1q(x) = x^2 + x + 1.
  2. Round 1. x4÷x2=x2x^4 \div x^2 = x^2. Multiply: x2(x2+x+1)=x4+x3+x2x^2(x^2 + x + 1) = x^4 + x^3 + x^2. Subtract: −x3+x2+3x+2-x^3 + x^2 + 3x + 2.
  3. Round 2. −x3÷x2=−x-x^3 \div x^2 = -x. Multiply: −x(x2+x+1)=−x3−x2−x-x(x^2 + x + 1) = -x^3 - x^2 - x. Subtract: 2x2+4x+22x^2 + 4x + 2.
  4. Round 3. 2x2÷x2=22x^2 \div x^2 = 2. Multiply: 2(x2+x+1)=2x2+2x+22(x^2 + x + 1) = 2x^2 + 2x + 2. Subtract: 2x2x.
  5. Stop. The remainder 2x2x has degree 1, which is less than the degree 2 of the divisor.
x4+2x2+3x+2=(x2+x+1)(x2−x+2)+2xx^4 + 2x^2 + 3x + 2 = (x^2 + x + 1)(x^2 - x + 2) + 2x
Answer

Quotient x2−x+2x^2 - x + 2, remainder 2x2x.

CheckMultiply back: (x2+x+1)(x2−x+2)=x4+0x3+x2+x+2(x^2 + x + 1)(x^2 - x + 2) = x^4 + 0x^3 + x^2 + x + 2, and adding the remainder 2x2x gives x4+2x2+3x+2x^4 + 2x^2 + 3x + 2, the dividend. The multiplying-back check is added; the slides show the long division and the quotient and remainder only.

5.4Lecture examples

Example 7: quotient of x⁵ − 4x⁴ + 3x³ + 3x² − 4 by (x − 2)²

If p(x)=x5−4x4+3x3+3x2−4p(x) = x^5 - 4x^4 + 3x^3 + 3x^2 - 4 and q(x)=(x−2)2q(x) = (x - 2)^2, then p(x)q(x)\frac{p(x)}{q(x)} is

  • (a) x3+x+1x^3 + x + 1
  • (b) x4−x2−1x^4 - x^2 - 1
  • (c) x3−x−1x^3 - x - 1
  • (d) x4−x2+1x^4 - x^2 + 1
  1. Expand the divisor: q(x)=(x−2)2=x2−4x+4q(x) = (x - 2)^2 = x^2 - 4x + 4. Arrange the dividend with the missing xx term: x5−4x4+3x3+3x2+0x−4x^5 - 4x^4 + 3x^3 + 3x^2 + 0x - 4.
  2. Round 1. x5÷x2=x3x^5 \div x^2 = x^3; x3(x2−4x+4)=x5−4x4+4x3x^3(x^2 - 4x + 4) = x^5 - 4x^4 + 4x^3. Subtract: −x3+3x2+0x−4-x^3 + 3x^2 + 0x - 4.
  3. Round 2. −x3÷x2=−x-x^3 \div x^2 = -x; −x(x2−4x+4)=−x3+4x2−4x-x(x^2 - 4x + 4) = -x^3 + 4x^2 - 4x. Subtract: −x2+4x−4-x^2 + 4x - 4.
  4. Round 3. −x2÷x2=−1-x^2 \div x^2 = -1; −1(x2−4x+4)=−x2+4x−4-1(x^2 - 4x + 4) = -x^2 + 4x - 4. Subtract: 00.
x³−x−1x² − 4x + 4divisorx⁵− 4x⁴+ 3x³+ 3x²− 4−x⁵+ 4x⁴− 4x³−x³+ 3x²− 4+ x³− 4x²+ 4x−x²+ 4x− 4+ x²− 4x+ 40remainder
Figure 4. Long division of the degree 5 polynomial: the remainder is 0
Answer

The remainder is 0, so the division is exact and the quotient is x3−x−1x^3 - x - 1: option (c).

Why not the othersThe degree of the quotient is the degree of pp minus the degree of qq, 5−2=35 - 2 = 3, so (b) and (d), which have degree 4, cannot be right. Between (a) and (c): round 1 leaves −x3+3x2−4-x^3 + 3x^2 - 4, so the next quotient term is −x3÷x2=−x-x^3 \div x^2 = -x, negative; option (a) has +x+x, so it is ruled out.

Example 8: what should be subtracted from 6x⁴ + 5x³ + 4x − 4 to make it divisible by 2x² + x − 1?

  • (a) 4x4x
  • (b) 4x−34x - 3
  • (c) 6x−36x - 3
  • (d) 2x−32x - 3
Idea

Divide P(x)P(x) by the divisor. If the remainder is subtracted from P(x)P(x), what is left has no remainder, so it is divisible.

  1. Arrange. 6x4+5x3+0x2+4x−46x^4 + 5x^3 + 0x^2 + 4x - 4 divided by 2x2+x−12x^2 + x - 1.
  2. Round 1. 6x4÷2x2=3x26x^4 \div 2x^2 = 3x^2; 3x2(2x2+x−1)=6x4+3x3−3x23x^2(2x^2 + x - 1) = 6x^4 + 3x^3 - 3x^2. Subtract: 2x3+3x2+4x−42x^3 + 3x^2 + 4x - 4.
  3. Round 2. 2x3÷2x2=x2x^3 \div 2x^2 = x; x(2x2+x−1)=2x3+x2−xx(2x^2 + x - 1) = 2x^3 + x^2 - x. Subtract: 2x2+5x−42x^2 + 5x - 4.
  4. Round 3. 2x2÷2x2=12x^2 \div 2x^2 = 1; 1(2x2+x−1)=2x2+x−11(2x^2 + x - 1) = 2x^2 + x - 1. Subtract: 4x−34x - 3.
3x²x12x² + x − 1divisor6x⁴+ 5x³+ 4x− 4−6x⁴− 3x³+ 3x²2x³+ 3x²+ 4x− 4−2x³− x²+ x2x²+ 5x− 4−2x²− x+ 14x− 3remainder
Figure 5. Long division of the degree 4 polynomial: quotient 3x² + x + 1 and remainder 4x − 3
Answer

The remainder is 4x−34x - 3 (degree 1, less than 2). Hence 4x−34x - 3 should be subtracted: option (b).

Check: (6x4+5x3+4x−4)−(4x−3)=6x4+5x3−1=(2x2+x−1)(3x2+x+1)(6x^4 + 5x^3 + 4x - 4) - (4x - 3) = 6x^4 + 5x^3 - 1 = (2x^2 + x - 1)(3x^2 + x + 1). The last line is added as a check of the answer; the slides stop at the remainder.

Example 9: degrees of the quotient and the remainder

Dividing p(x)p(x) by q(x)q(x) gives quotient h(x)h(x) and remainder r(x)r(x). (a) What is the maximum degree of r(x)r(x)? (b) If deg⁡p(x)<deg⁡q(x)\deg p(x) < \deg q(x), which statements are correct: h(x)=0h(x) = 0; deg⁡h(x)=deg⁡q(x)\deg h(x) = \deg q(x); deg⁡r(x)=deg⁡q(x)\deg r(x) = \deg q(x); deg⁡r(x)=deg⁡p(x)\deg r(x) = \deg p(x)?

  • (a) The division stops only when the remainder has degree strictly less than the divisor. So the maximum degree of r(x)r(x) is deg⁡q(x)−1\deg q(x) - 1.
  • (b) If pp has smaller degree than qq, no division round can even begin, so the quotient is the zero polynomial, h(x)=0h(x) = 0, and the remainder is p(x)p(x) itself, so deg⁡r(x)=deg⁡p(x)\deg r(x) = \deg p(x). The correct statements are h(x)=0h(x) = 0 and deg⁡r(x)=deg⁡p(x)\deg r(x) = \deg p(x).
A note on the slideThe slides write “deg⁡h(x)=0\deg h(x) = 0” for the zero quotient, although elsewhere they say the degree of the zero polynomial is undefined. The meaning is simply that the quotient is the zero polynomial.
Remainder
  • deg⁡r(x)<deg⁡q(x)\deg r(x) < \deg q(x), so at most deg⁡q(x)−1\deg q(x) - 1.
Small dividend
  • deg⁡p<deg⁡q\deg p < \deg q: quotient h(x)=0h(x) = 0 and remainder r(x)=p(x)r(x) = p(x).

Example 10: find a so that two polynomials leave the same remainder

The polynomials x3+ax2+5x+7x^3 + ax^2 + 5x + 7 and x3+2x2+3x+2ax^3 + 2x^2 + 3x + 2a leave the same remainder when divided by x−2x - 2. Find aa.

Idea

The remainder on division by x−2x - 2 is the value of the polynomial at x=2x = 2. So both polynomials must have the same value at x=2x = 2.

  1. First polynomial at x=2x = 2: 8+4a+10+7=4a+258 + 4a + 10 + 7 = 4a + 25.
  2. Second polynomial at x=2x = 2: 8+8+6+2a=2a+228 + 8 + 6 + 2a = 2a + 22.
  3. Equate them:
4a+25=2a+22  ⇒  2a=−3  ⇒  a=−324a + 25 = 2a + 22 \;\Rightarrow\; 2a = -3 \;\Rightarrow\; a = -\tfrac{3}{2}

Check. With a=−32a = -\frac{3}{2} both values equal 4a+25=194a + 25 = 19 and 2a+22=192a + 22 = 19. The slides use this substitution idea directly (without naming it) and simply state that both polynomials must have the same value at x=2x = 2.

5.5Going deeper

  1. Same as number long division. 17=5×3+217 = 5 \times 3 + 2 has the same shape as p=q h+rp = q\,h + r, with the remainder smaller than the divisor.
  2. Dividing by x−ax - a. The remainder is the constant p(a)p(a): that is the idea behind Example 10 (the remainder theorem, an extra name not used on the slides).
  3. Zero remainder means divisible. In Example 7 the remainder is 0, so qq is a factor of pp.
  4. Keep columns aligned. Write each product under the matching powers, as in the long-division figures.
Exam tips
  • After each subtraction, drop the leading term (it is zero) and bring down the rest.
  • Check with p=q h+rp = q\,h + r.
Common mistakes
  • Forgetting the 0 coefficient for a missing power.
  • Not changing every sign when subtracting the product.
  • Stopping too early, or too late: the remainder's degree must be below the divisor's.
Next · Graphs and zerosCharacteristics of Polynomial Graphs
06
Graphs and zeros

Characteristics of Polynomial Graphs

Smooth: no sharp corners
  • Polynomial functions of second degree or higher have graphs that do not have sharp corners; they are smooth curves.
Continuous: no breaks
  • Polynomial functions have graphs that have no breaks. Curves with no breaks are called continuous.

6.1Which graphs are polynomial functions?

Example 11: spot the polynomial graphs

Which of the graphs below represent polynomial functions?

-3-2-10123-4-2024(a)xy-3-2-10123-4-2024(b)xy-3-2-10123-4-2024sharp corner at x = 0(c)xy-3-2-10123-4-2024curve is broken(d)xy
Figure 6. The four graphs of the question, redrawn: (a) a smooth curve, (b) a straight line, (c) a V with a sharp corner at x = 0, (d) a curve with a break
  • (a) A smooth curve with no break: it represents a polynomial function.
  • (b) A straight line, which is smooth and continuous: it represents a polynomial function.
  • (c) It has a sharp corner at x=0x = 0, so it is not a polynomial function.
  • (d) It is not continuous (the curve is broken), so it is not a polynomial function.
Answer

The graphs in options (a) and (b) represent polynomial functions.

A note on the figureThe four graphs are redrawn from the lecture's picture, so the exact shapes are approximate; what matters is the smoothness and continuity of each.
OptionSmooth?Continuous?Polynomial?
(a)YesYesYes
(b)YesYesYes
(c)No: sharp corner at x = 0YesNo
(d)YesNo: broken curveNo

6.2Going deeper

  1. A pencil test. If you can trace the whole graph without lifting the pencil (continuous) and without a sharp turn (smooth), it could be a polynomial.
  2. These are necessary, not sufficient. Every polynomial graph is smooth and continuous, but a smooth continuous graph such as y=2xy = 2^x is not a polynomial (extra remark).
  3. The V is ∣x∣|x|. The absolute value has a sharp corner at 0, so it is not a polynomial function (extra remark).
Exam tips
  • Look for corners and breaks first.
Common mistakes
  • Calling a straight line not a polynomial (it is a degree 1 polynomial).
Next · Graphs and zerosZeros of a Polynomial Function
07
Graphs and zeros

Zeros of a Polynomial Function

Definition: zerosIf ff is a polynomial function, the values of xx for which f(x)=0f(x) = 0 are called the zeros of ff.
Factor method: set each factor to zero
  • If the equation of the polynomial function can be factored, set each factor equal to zero and solve for the zeros.
A zero gives a factor: x = a gives (x − a)
  • Any value x=ax = a that is a zero of a polynomial function yields a factor of the polynomial of the form (x−a)(x - a).
x-intercepts
  • At an x-intercept the output value is zero. So to find the x-intercepts of the graph, find the input values whose output is zero: the zeros of ff.

7.1Illustrations

Example 12: zeros and factors of two polynomials

Find the zeros of f(x)=x2+2x−24=(x−4)(x+6)f(x) = x^2 + 2x - 24 = (x - 4)(x + 6) and of g(x)=(x+2)(x−1)(x−3)g(x) = (x + 2)(x - 1)(x - 3), and show them on the graph.

  • f: set each factor to zero: x−4=0x - 4 = 0 gives x=4x = 4, and x+6=0x + 6 = 0 gives x=−6x = -6.
  • g: x+2=0x + 2 = 0, x−1=0x - 1 = 0, x−3=0x - 3 = 0 give x=−2,1x = -2, 1 and 33.
-8-6-4-20246-30-20-10010x = −6x = 4xy-4-3-2-1012345-12-8-404812x = −2x = 1x = 3xy
Figure 7. The zeros are the x-intercepts: where each graph meets the x-axis. Each zero a matches a factor (x − a). Left: f(x) = x² + 2x − 24. Right: g(x) = (x + 2)(x − 1)(x − 3)
PolynomialZerosFactors
x2+2x−24x^2 + 2x - 244, −6(x−4)(x+6)(x - 4)(x + 6)
x3−2x2−5x+6x^3 - 2x^2 - 5x + 6−2, 1, 3(x+2)(x−1)(x−3)(x + 2)(x - 1)(x - 3)
Checkg(x)=x3−2x2−5x+6g(x) = x^3 - 2x^2 - 5x + 6 since (x+2)(x−1)=x2+x−2(x + 2)(x - 1) = x^2 + x - 2 and (x2+x−2)(x−3)=x3−2x2−5x+6(x^2 + x - 2)(x - 3) = x^3 - 2x^2 - 5x + 6. And g(−2)=g(1)=g(3)=0g(-2) = g(1) = g(3) = 0. These two examples are illustrations of the facts above; the slides state the facts without an example. The first polynomial is the one of Week 3, whose roots were found by factoring.

7.2Finding zeros in general

Quadratic: degree 2
  • Use the quadratic formula (Week 3).
Cubic and quartic: degrees 3 and 4
  • Formulas exist, but they are not simple enough to remember.
Higher degrees: general case
  • Formulas do not exist for general higher-degree polynomials.

For general polynomials, finding the zeros can be a challenging problem. Factoring is the main tool available when the polynomial factors.

7.3Going deeper

  1. The number of zeros. A polynomial of degree nn has at most nn zeros: ff (degree 2) has 2, gg (degree 3) has 3 (extra remark).
  2. Zero to factor and back. From the zero x=−6x = -6 you write the factor (x+6)(x + 6): the sign flips.
  3. The graph and the zeros. A graph can also miss the x-axis completely, as x2+2x+5x^2 + 2x + 5 does: no real zeros (Week 3, discriminant −16-16).
Exam tips
  • Check each zero by substituting it into ff.
Common mistakes
  • Writing the factor (x−6)(x - 6) for the zero x=−6x = -6.
Next · All topicsWeek 4 Summary Sheet
08
All topics

Week 4 Summary Sheet

Everything in Week 4 on one sheet, for a last-minute revision.

Key definitions

Polynomial function
f(x)=anxn+⋯+a0x0,an≠0, n∈Nf(x) = a_n x^n + \cdots + a_0 x^0,\quad a_n \neq 0,\ n \in \mathbb{N}
Degree

Highest degree of any term with non-zero coefficient. Zero polynomial: undefined.

Sum and difference
∑k=0m∨n(ak±bk) xk\sum_{k=0}^{m \vee n} (a_k \pm b_k)\, x^k
Product
∑k=0m+n(∑j=0kajbk−j)xk\sum_{k=0}^{m+n} \left( \sum_{j=0}^{k} a_j b_{k-j} \right) x^k

Names at a glance

By degreeBy termsBy variables
0 constant, 1 linear, 2 quadraticmonomial: 1 termone variable
3 cubic, 4 quarticbinomial: 2 termstwo variables
trinomial: 3 termsmore than two variables

Division and zeros

IdeaStatement
Divisionp=q⋅h+rp = q \cdot h + r, deg⁡r<deg⁡q\deg r < \deg q
Small dividenddeg⁡p<deg⁡q\deg p < \deg q gives h=0h = 0 and r=pr = p
Zerof(a)=0f(a) = 0 means (x−a)(x - a) is a factor and aa is an x-intercept
Graphsmooth and continuous: no sharp corners, no breaks

Values computed in the notes

OperationResult
(x3+3x2+5x−10)+(3x3+5x2−6x−20)(x^3 + 3x^2 + 5x - 10) + (3x^3 + 5x^2 - 6x - 20)4x3+8x2−x−304x^3 + 8x^2 - x - 30
(x3+2x2+8x)−(−3x2+2x−2)(x^3 + 2x^2 + 8x) - (-3x^2 + 2x - 2)x3+5x2+6x+2x^3 + 5x^2 + 6x + 2
(x2+x+1)(x2+2x+1)(x^2 + x + 1)(x^2 + 2x + 1)x4+3x3+4x2+3x+1x^4 + 3x^3 + 4x^2 + 3x + 1
(x4+2x2+3x+2)÷(x2+x+1)(x^4 + 2x^2 + 3x + 2) \div (x^2 + x + 1)quotient x2−x+2x^2 - x + 2, remainder 2x2x
(x5−4x4+3x3+3x2−4)÷(x−2)2(x^5 - 4x^4 + 3x^3 + 3x^2 - 4) \div (x - 2)^2quotient x3−x−1x^3 - x - 1, remainder 0
(6x4+5x3+4x−4)÷(2x2+x−1)(6x^4 + 5x^3 + 4x - 4) \div (2x^2 + x - 1)quotient 3x2+x+13x^2 + x + 1, remainder 4x−34x - 3
Equal remainders on division by (x−2)(x - 2)a=−32a = -\frac{3}{2}
Revision overview
Definitionf(x) = aₙxⁿ + … + a₀x⁰
aₙ ≠ 0, n a natural number
Domain R, graph smooth and continuous
Classificationby variables, degree, number of terms
degree 0 to 4: constant to quartic
Add and subtractcombine like terms:
(aₖ ± bₖ) xᵏ
Polynomial functionsMathematics for Data Science 1
Multiplycoefficient of xᵏ is
a₀bₖ + a₁bₖ₋₁ + … + aₖb₀
Dividedivision algorithm, 4 steps
remainder degree < divisor degree
Zerosf(x) = 0, the x-intercepts
zero a gives factor (x − a)
no simple formula beyond quadratics
Revision: the whole of Week 4 on one map
Back to top