JB Math Club 26-27 ยท Lecture notes
Ways to Define Polynomials
Coefficients, roots, values
Choose the description that makes a polynomial problem simpler: its coefficients, its roots, or its values. We revisit arithmetic restrictions on roots and then construct polynomials from prescribed values.
Route through the lecture. Three descriptions; rational roots; integer value differences; interpolation and uniqueness; Newton corrections; Lagrange basis polynomials; identities without expansion.
1. Three ways to describe a polynomial
In Lecture 1 we studied coefficients, division with remainder, the Factor Theorem, the bound on the number of roots, and Vietaโs formulas. In Lecture 4 we used rational roots to reduce equations to lower degree. This lecture connects those ideas with a third description: values at chosen inputs.
Consider the same polynomial in three forms:
| Description | Information |
|---|---|
| Coefficients | \(P(x)=2x^2-6x+4\) |
| Roots and leading coefficient | \(P(x)=2(x-1)(x-2)\) |
| Values and a degree bound | \(P(0)=4\), \(P(1)=0\), \(P(3)=4\), and \(\deg P\le2\) |
The coefficient list determines the polynomial directly. Its roots determine its linear factors, but the leading coefficient must also be specified: multiplying by a nonzero constant does not change the roots. When a degree-\(n\) polynomial is written as
\[P(x)=a_n\prod_{i=1}^{n}(x-r_i),\]
the roots are listed with multiplicity. Such a full linear factorization requires that all roots lie in the number system being used. A real polynomial need not split into real linear factors; for example, \(x^2+1\) has no real roots. Over the complex numbers, every nonconstant polynomial has a full linear factorization. We will not need that general result in the interpolation proofs.
The values description needs an upper bound on the degree. We will prove that \(n+1\) values at distinct inputs determine exactly one polynomial of degree at most \(n\). Throughout, โdegree at most \(n\)โ also permits the zero polynomial; we do not assign it an ordinary degree.
Tools from Lecture 1
Recall. For a real polynomial \(P\) and a real number \(b\),
\[P(x)=(x-b)Q(x)+P(b).\]
Consequently, \(P(b)=0\) if and only if \(x-b\) divides \(P\). A nonzero polynomial of degree at most \(n\) has at most \(n\) distinct roots.
The notation \(\mathbb Z[x]\) means polynomials with integer coefficients. If \(P\in\mathbb Z[x]\) and \(b\in\mathbb Z\), the quotient \(Q\) above also has integer coefficients. Division by the monic polynomial \(x-b\) never requires dividing by a leading coefficient other than \(1\).
2. Rational roots of integer-coefficient polynomials
Rational root theorem. Let
\[P(x)=a_nx^n+a_{n-1}x^{n-1}+\cdots+a_1x+a_0\in\mathbb Z[x],\qquad a_n\ne0,\quad n\ge1.\]
Suppose \(p/q\) is a root, where \(p\in\mathbb Z\), \(q\in\mathbb Z_{>0}\), and \(\gcd(|p|,q)=1\). Then
\[p\mid a_0,\qquad q\mid a_n.\]
Proof. Substituting \(p/q\) and multiplying by \(q^n\) gives
\[a_np^n+a_{n-1}p^{n-1}q+\cdots+a_1pq^{n-1}+a_0q^n=0.\]
Every term except the first is divisible by \(q\). Therefore \(q\mid a_np^n\). Since \(\gcd(|p|^n,q)=1\), the coprime divisibility rule gives \(q\mid a_n\).
If \(p\ne0\), every term except the last is divisible by \(p\), so \(p\mid a_0q^n\). As \(\gcd(|p|,q^n)=1\), we obtain \(p\mid a_0\). If \(p=0\), then \(q=1\) and \(a_0=P(0)=0\). This is the zero-root case, handled directly without cancellation by zero. Under the usual definition \(d\mid m\) means \(m=dk\) for some integer \(k\), so \(0\mid0\) also fits the statement. \(\square\)
Why lowest terms matter. The same rational number can have many presentations: \(1/2=2/4\). The divisibility conclusion applies to the reduced numerator and denominator.
Consequence. Every rational root of a monic integer-coefficient polynomial is an integer, since the positive denominator divides \(1\). This does not say that all its roots are integers: \(x^2-2\) has irrational roots.
When \(a_0\ne0\), the theorem gives a finite list of candidates. The conditions are necessary, not sufficient; candidates must be tested. When \(a_0=0\), factor out \(x\) first, and repeat if necessary, before making a finite candidate list for the remaining factor.
Example 1. A cubic with one real root
Find all real roots of \(P(x)=2x^3-3x^2+x-6\).
Solution. A reduced rational root \(p/q\) must satisfy \(p\mid6\) and \(q\mid2\). Removing duplicates, the candidates are
\[\pm\frac12,\quad\pm1,\quad\pm\frac32,\quad\pm2,\quad\pm3,\quad\pm6.\]
Since \(P(2)=16-12+2-6=0\), the Factor Theorem gives a factor \(x-2\). Division produces
\[P(x)=(x-2)(2x^2+x+3).\]
For completeness, the synthetic-division table is
\[\begin{array}{r|rrrr} 2&2&-3&1&-6\\ & &4&2&6\\\hline &2&1&3&0 \end{array}\]
Bring down the first coefficient, then repeatedly multiply by \(2\) and add to the next coefficient. The bottom row gives the quotient coefficients followed by the remainder. The quotient has discriminant
\[\Delta=1-4\cdot2\cdot3=-23<0.\]
It therefore has no real roots, so
\[\boxed{x=2\text{ is the only real root.}}\]
3. Integer coefficients and differences of values
Divisibility of value differences. If \(P\in\mathbb Z[x]\) and \(a,b\in\mathbb Z\) with \(a\ne b\), then
\[(a-b)\mid\bigl(P(a)-P(b)\bigr).\]
Proof 1: use the Remainder Theorem
Divide by the monic polynomial \(x-b\):
\[P(x)=(x-b)Q(x)+P(b),\qquad Q\in\mathbb Z[x].\]
Setting \(x=a\) gives
\[P(a)-P(b)=(a-b)Q(a).\]
The number \(Q(a)\) is an integer, so this is the required divisibility. The assertion that \(Q\) has integer coefficients is an essential part of the argument.
Proof 2: factor differences of powers
For each integer \(k\ge1\),
\[a^k-b^k=(a-b)\sum_{j=0}^{k-1}a^{k-1-j}b^j.\]
Expand \(P(a)-P(b)\) as an integer linear combination of these differences. Every summand is divisible by \(a-b\), and hence so is their sum. The constant terms cancel.
Proof 3: connect with modular arithmetic
The congruence rules from Lecture 2 imply, for every integer \(m\ge1\),
\[a\equiv b\pmod m\quad\Longrightarrow\quad P(a)\equiv P(b)\pmod m.\]
Indeed, congruence is preserved by powers, multiplication by integer coefficients, and addition. Taking \(m=|a-b|\) proves the theorem. No use of Fermatโs or Eulerโs theorem is needed.
The coefficient hypothesis matters. The polynomial \(x/2\) takes integer values at \(0\) and \(2\), but \(2\) does not divide \(P(2)-P(0)=1\). Having integer values at some inputs is not the same as belonging to \(\mathbb Z[x]\).
Example 2. Integer roots from a single value
Which integers can be roots of a polynomial \(P\in\mathbb Z[x]\) satisfying \(P(1)=1\)?
Solution. Let \(r\in\mathbb Z\) be a root. Since \(P(1)=1\), we know \(r\ne1\). The theorem gives
\[(r-1)\mid\bigl(P(r)-P(1)\bigr)=-1.\]
Thus \(r-1\) is \(-1\) or \(1\), and therefore
\[\boxed{r\in\{0,2\}.}\]
To show that both candidates really can occur, take
\[P(x)=2x-x^2=x(2-x).\]
It has integer coefficients, \(P(1)=1\), and roots \(0\) and \(2\). Neither root is forced for every admissible polynomial: the constant polynomial \(P(x)=1\) satisfies the given condition and has no roots.
Example 3. An odd difference (additional example)
Let \(a,b\) be integers such that \(|a-b|\) is an odd number greater than \(1\). Suppose that \(P\in\mathbb Z[x]\) satisfies
\[P(a)=b+2,\qquad P(b)=a-50.\]
Find \(|a-b|\).
Idea. The difference of the inputs divides the difference of the outputs.
Put \(d=a-b\ne0\). Then
\[d\mid P(a)-P(b)=(b+2)-(a-50)=52-d.\]
Adding \(d\) shows that \(d\mid52\). The positive divisors of \(52\) are \(1,2,4,13,26,52\). Only \(13\) is odd and greater than \(1\), so
\[\boxed{|a-b|=13.}\]
This value is attainable: take \(a=13\), \(b=0\), and \(P(x)=3x-37\). Then \(P(13)=2=b+2\) and \(P(0)=-37=a-50\). The answer is a magnitude; the signed difference can be \(13\) or \(-13\) (interchanging the roles requires a different witness).
4. Interpolation: the problem and uniqueness
An interpolation node is one of the chosen input values \(x_i\). The interpolation problem asks for a polynomial whose values at those nodes match given outputs \(y_i\).
Polynomial interpolation theorem. Let \(x_0,\ldots,x_n\) be pairwise distinct real numbers, and let \(y_0,\ldots,y_n\) be arbitrary real numbers. There exists exactly one polynomial of degree at most \(n\) satisfying
\[P(x_i)=y_i\qquad (i=0,\ldots,n).\]
There are \(n+1\) nodes, because the indices run from \(0\) to \(n\). โAt mostโ is essential: the interpolating polynomial can have lower degree. For example, two equal output values are interpolated by a constant, not a polynomial of degree exactly one.
Distinct inputs are also essential. Assigning two different outputs to the same input is impossible; repeating the same input-output pair adds no new condition. All divisions in the constructions below are valid because the nodes are distinct.
Uniqueness: subtract two proposed answers
Suppose \(P\) and \(Q\) both satisfy the conditions. Their difference \(R=P-Q\) vanishes at every node:
\[R(x_0)=R(x_1)=\cdots=R(x_n)=0.\]
If \(R\) were nonzero, its degree would be at most \(n\), yet it would have \(n+1\) distinct roots. This contradicts the root bound from Lecture 1. Therefore \(R\equiv0\) and \(P\equiv Q\).
This proves at most one solution exists. We still need a construction to prove existence. Newtonโs method and Lagrangeโs formula will each provide one.
Why the degree bound cannot be omitted
Suppose \(P_0\) matches a given set of data. Then, for any real \(t\),
\[P_t(x)=P_0(x)+t\prod_{i=0}^{n}(x-x_i)\]
matches the same data: the added term vanishes at every node. Distinct choices of \(t\) give distinct polynomials. Thus a finite table by itself does not determine an unrestricted polynomial.
More generally, every polynomial with the same data has the form
\[P(x)=P_0(x)+\left(\prod_{i=0}^{n}(x-x_i)\right)Q(x)\]
for some polynomial \(Q\). To see this, apply the Factor Theorem successively to \(P-P_0\) at the distinct nodes.
5. Construction 1: solve for the coefficients
Example 4. Construct a quadratic from three points
Find the polynomial of degree at most \(2\) through \((1,2),(2,3),(3,5)\).
Write \(P(x)=ax^2+bx+c\). The three values give
\[\begin{cases} a+b+c=2,\\ 4a+2b+c=3,\\ 9a+3b+c=5. \end{cases}\]
Subtract consecutive equations:
\[3a+b=1,\qquad5a+b=2.\]
Their difference gives \(2a=1\), so \(a=1/2\). Substitution then gives \(b=-1/2\) and \(c=2\). Hence
\[\boxed{P(x)=\frac12x^2-\frac12x+2.}\]
Check: \(P(1)=2\), \(P(2)=3\), and \(P(3)=5\). The uniqueness theorem guarantees that there is no other answer of degree at most \(2\).
Notice that the inputs and outputs are integers but the coefficients are not all integers. Indeed, the necessary integer-coefficient condition fails at inputs \(1\) and \(3\): \(3-1=2\) does not divide \(5-2=3\).
Example 5. A quadratic from three values: two methods
Find \(f(x)=ax^2+bx+c\) such that
\[f(-2)=-4,\qquad f(2)=4,\qquad f(1)=5.\]
Then find \(a^2+b^2+c^2\).
Method 1: use the symmetry of the inputs. The first two values give
\[4a-2b+c=-4,\qquad4a+2b+c=4.\]
Subtracting yields \(4b=8\), so \(b=2\). Adding yields \(8a+2c=0\), so \(c=-4a\). The third value now gives
\[a+2-4a=5\quad\Longrightarrow\quad a=-1,\quad c=4.\]
Consequently,
\[\boxed{f(x)=-x^2+2x+4,\qquad a^2+b^2+c^2=1+4+16=21.}\]
Check: \(f(-2)=-4-4+4=-4\), \(f(2)=-4+4+4=4\), and \(f(1)=-1+2+4=5\).
Method 2: correct a line while preserving two values. The line \(2x\) already fits the values at \(-2\) and \(2\). Hence \(f(x)-2x\) has these two roots and degree at most \(2\). By the factor theorem it is a constant multiple of \((x+2)(x-2)\):
\[f(x)=2x+\lambda(x+2)(x-2).\]
Substitute \(x=1\):
\[5=2-3\lambda\quad\Longrightarrow\quad\lambda=-1.\]
Thus \(f(x)=2x-(x^2-4)=-x^2+2x+4\), giving the same answer \(21\).
The correction term vanishes at the values already fitted. This is the central idea of the next construction.
6. Construction 2: Newton interpolation
Newtonโs idea is to fit the data one node at a time, preserving every value already fitted. The key question at each stage is: what can we add that vanishes at all the earlier nodes?
The same three-point example
Start with the first value:
\[P_0(x)=2,\qquad P_0(1)=2.\]
To fit the second value without changing the first, add a multiple of \(x-1\):
\[P_1(x)=2+c_1(x-1).\]
At \(x=2\) we need \(2+c_1=3\), so \(c_1=1\) and \(P_1(x)=x+1\). This line fits the first two points, but \(P_1(3)=4\) instead of \(5\).
To repair the third value while preserving both earlier values, use a correction with roots \(1\) and \(2\):
\[P_2(x)=x+1+c_2(x-1)(x-2).\]
At \(x=3\) the equation is \(4+2c_2=5\), giving \(c_2=1/2\). Therefore
\[\boxed{P_2(x)=2+(x-1)+\frac12(x-1)(x-2).}\]
This is the Newton form of the same polynomial. Expanding gives \(\frac12x^2-\frac12x+2\), but uniqueness already proves that it equals the polynomial found from the coefficient system.
The general correction step
Suppose \(P_{k-1}\) has degree at most \(k-1\) and matches the first \(k\) nodes \(x_0,\ldots,x_{k-1}\). Set
\[P_k(x)=P_{k-1}(x)+c_k\prod_{j=0}^{k-1}(x-x_j).\]
At every earlier node the correction is zero. At \(x_k\), choose
\[\boxed{c_k=\frac{y_k-P_{k-1}(x_k)}{\displaystyle\prod_{j=0}^{k-1}(x_k-x_j)}.}\]
The denominator is nonzero. The numerator is the missing output value, and the denominator is the value of the unscaled correction at the new node. Thus \(P_k(x_k)=y_k\), while all earlier values remain correct. Its degree is at most \(k\).
Starting with \(P_0(x)=y_0\) proves existence by induction. The resulting form is
\[P(x)=c_0+c_1(x-x_0)+c_2(x-x_0)(x-x_1)+\cdots+c_n\prod_{j=0}^{n-1}(x-x_j),\]
where \(c_0=y_0\). Each coefficient can be found after the previous ones. If \(n=0\), the construction simply returns the constant \(y_0\).
7. Construction 3: Lagrange interpolation
Newton adds successive corrections. Lagrange assigns each prescribed value its own polynomial building block.
A polynomial that selects one node
For each index \(i\), seek a polynomial \(L_i\) such that
\[L_i(x_i)=1,\qquad L_i(x_j)=0\quad(j\ne i).\]
To create the required zeroes, use
\[N_i(x)=\prod_{\substack{0\le j\le n\\j\ne i}}(x-x_j).\]
At \(x_i\), this product is nonzero. Divide by its value there to obtain
\[\boxed{L_i(x)=\prod_{\substack{0\le j\le n\\j\ne i}}\frac{x-x_j}{x_i-x_j}.}\]
At its own node every factor equals \(1\). At any other node one numerator factor is \(0\). These are the Lagrange basis polynomials. For \(n=0\), the empty product is defined to be \(1\).
Three explicit basis polynomials
For \(x_0=1\), \(x_1=2\), \(x_2=3\),
\[L_0(x)=\frac{(x-2)(x-3)}2,\qquad L_1(x)=-(x-1)(x-3),\qquad L_2(x)=\frac{(x-1)(x-2)}2.\]
For example, \((x-1)(x-3)\) is \(-1\) at the middle node \(2\), so dividing by \(-1\) produces \(L_1\). The value table is
| Polynomial | At \(1\) | At \(2\) | At \(3\) |
|---|---|---|---|
| \(L_0\) | \(1\) | \(0\) | \(0\) |
| \(L_1\) | \(0\) | \(1\) | \(0\) |
| \(L_2\) | \(0\) | \(0\) | \(1\) |
The formula and its proof
Lagrange interpolation formula. The unique interpolating polynomial of degree at most \(n\) is
\[P(x)=\sum_{i=0}^{n}y_iL_i(x)=\sum_{i=0}^{n}y_i\prod_{\substack{0\le j\le n\\j\ne i}}\frac{x-x_j}{x_i-x_j}.\]
Proof. Each \(L_i\) has degree \(n\), so the sum has degree at most \(n\) unless it is the zero polynomial, which is also allowed. At a node \(x_k\), all terms except the \(k\)th vanish:
\[P(x_k)=y_0\cdot0+\cdots+y_k\cdot1+\cdots+y_n\cdot0=y_k.\]
Thus the formula gives existence. Uniqueness was proved using the root bound. \(\square\)
The weights \(y_i\) are the prescribed values, not the coefficients of \(1,x,x^2,\ldots\). If only \(y_i\) is changed by \(d\), the interpolating polynomial changes by \(dL_i\). All the other prescribed values stay fixed, although values away from the nodes generally change.
Example 6. Recognize the answer before expanding
Find the polynomial of degree at most \(2\) through \((1,1),(2,4),(3,9)\).
The Lagrange formula gives
\[\begin{aligned} P(x)&=L_0(x)+4L_1(x)+9L_2(x)\\ &=\frac{(x-2)(x-3)}2-4(x-1)(x-3)+\frac92(x-1)(x-2). \end{aligned}\]
There is no need to expand: \(Q(x)=x^2\) has degree at most \(2\) and the same three values. By uniqueness,
\[\boxed{P(x)=x^2.}\]
For an algebraic check, the coefficients of \(x^2,x,1\) in the displayed sum are respectively
\[\frac12-4+\frac92=1,\qquad-\frac52+16-\frac{27}2=0,\qquad3-12+9=0.\]
Example 7. Recognize two Lagrange sums
Let \(a,b,c\) be pairwise distinct real numbers, and define
\[\begin{aligned} f(x)={}&c\frac{(x-a)(x-b)}{(c-a)(c-b)} +b\frac{(x-a)(x-c)}{(b-a)(b-c)}\\ &+a\frac{(x-b)(x-c)}{(a-b)(a-c)},\\[4pt] g(x)={}&c^2\frac{(x-a)(x-b)}{(c-a)(c-b)} +b^2\frac{(x-a)(x-c)}{(b-a)(b-c)}\\ &+a^2\frac{(x-b)(x-c)}{(a-b)(a-c)}. \end{aligned}\]
Find \(f(200)/g(100)\).
Solution. These are Lagrange formulas at the nodes \(a,b,c\). Each sum is a polynomial of degree at most \(2\). At a node, just its own basis term survives, giving
\[f(a)=a,\quad f(b)=b,\quad f(c)=c,\]
and
\[g(a)=a^2,\quad g(b)=b^2,\quad g(c)=c^2.\]
The polynomials \(x\) and \(x^2\) have exactly these respective values and also have degree at most \(2\). Uniqueness therefore gives \(f(x)=x\) and \(g(x)=x^2\) for every real \(x\). In particular, \(g(100)=10000\ne0\), so
\[\boxed{\frac{f(200)}{g(100)}=\frac{200}{10000}=\frac1{50}.}\]
Equivalently, \(f-x\) and \(g-x^2\) each have degree at most \(2\) and three distinct roots, so both vanish identically. This explains why simply recognizing the values is enough; expansion is unnecessary.
8. Values can prove polynomial identities
Example 8. Simplification without expansion
Let \(a,b,c\) be pairwise distinct real numbers. Simplify
\[\begin{aligned} S(x)={}&\frac{(x-a)(x-b)}{(c-a)(c-b)}+\frac{(x-b)(x-c)}{(a-b)(a-c)}\\ &+\frac{(x-a)(x-c)}{(b-a)(b-c)}. \end{aligned}\]
Solution. All denominators are nonzero constants, so \(S\) is a polynomial in \(x\) of degree at most \(2\). At \(x=a\), the first and third terms vanish, while the second equals \(1\). Similarly,
\[S(a)=S(b)=S(c)=1.\]
The polynomial \(S-1\) has degree at most \(2\) if it is nonzero, but has three distinct roots. Therefore it must be the zero polynomial:
\[\boxed{S(x)=1\quad\text{for every real }x.}\]
Equivalently, the expression is the Lagrange interpolation formula for the data \((a,1),(b,1),(c,1)\). The interpolating polynomial is the constant \(1\); it has degree \(0\), not degree exactly \(2\).
The same reasoning gives the useful general identity
\[\sum_{i=0}^{n}L_i(x)=1.\]
Example 9. A four-node evaluation (additional example)
Let \(a,b,c,d\) be pairwise distinct real numbers. Evaluate
\[\begin{aligned} T={}&\frac{abc(d+2)(d+3)}{(d-a)(d-b)(d-c)} +\frac{abd(c+2)(c+3)}{(c-a)(c-b)(c-d)}\\ &+\frac{acd(b+2)(b+3)}{(b-a)(b-c)(b-d)} +\frac{bcd(a+2)(a+3)}{(a-b)(a-c)(a-d)}. \end{aligned}\]
Idea. The factors \((t+2)(t+3)\) are values of \(h(x)=(x+2)(x+3)\), while the remaining factors come from a Lagrange basis evaluated at \(0\).
For example, the four-node basis polynomial belonging to \(d\) is
\[L_d(x)=\frac{(x-a)(x-b)(x-c)}{(d-a)(d-b)(d-c)}.\]
At zero,
\[L_d(0)=\frac{(-a)(-b)(-c)}{(d-a)(d-b)(d-c)} =-\frac{abc}{(d-a)(d-b)(d-c)}.\]
Thus the first term of \(T\) is \(-h(d)L_d(0)\). The other terms have the same interpretation. Since \(h\) has degree \(2\le3\), its four-node Lagrange representation is
\[h(x)=\sum_{t\in\{a,b,c,d\}}h(t)L_t(x).\]
Evaluate this identity at \(x=0\):
\[\boxed{T=-\sum_{t\in\{a,b,c,d\}}h(t)L_t(0)=-h(0)=-6.}\]
The negative sign comes from three negative factors in each basis numerator. A node may be zero: the proof never divides by \(a\), \(b\), \(c\), or \(d\) individually. Pairwise distinctness is exactly what makes the displayed denominators nonzero. In particular, the expression is automatically rational; no separate rationality assumption is needed.
Useful extension. Replacing \((t+2)(t+3)\) by \(h(t)\) for any polynomial \(h\) of degree at most \(3\) gives \(-h(0)\) by the same argument. For \(h(x)=(x+u)(x+v)\), the value is \(-uv\).
Example 10. A final degree-bound check
Suppose \(\deg P\le3\) and
\[P(1)=1,\quad P(2)=8,\quad P(3)=27,\quad P(4)=64.\]
Find \(P(5)\). What changes if the degree bound is removed?
Solution. The polynomial \(x^3\) matches all four values. By uniqueness for degree at most \(3\), \(P(x)=x^3\), and hence
\[\boxed{P(5)=125.}\]
Without the degree bound, the polynomials
\[P_t(x)=x^3+t(x-1)(x-2)(x-3)(x-4),\qquad t\in\mathbb R,\]
have the same four given values but satisfy \(P_t(5)=125+24t\). Thus any real value at \(5\) is possible.
The recurring strategy is to choose a useful description. Coefficients reveal arithmetic restrictions; roots supply factors and corrections that vanish at chosen nodes; values, together with a degree bound, determine polynomials and prove identities.