Polynomials
(from "A Programmer's introduction to Mathematics" - Jeremy Kun, 2018)
Definition
A single variable polynomial with real coefficients is a function f that takes a real number as input, produces a real number as output, and has the form:
$$\displaystyle f(x) = an x^n + a{n-1} x^{n-1} + \cdots + a2 x^2 + a_1 x^1 + a_0 x^0 \ \qquad = a_n x^n + a{n-1} x^{n-1} + \cdots + a_2 x^2 + a_1 x + a_0
It is a summation of terms, enumerated with i=(0..n), where each ith term consisting of a constant ai multiplied with the variable x raised to the ith power, xi.
The definition mentions 3 things: 1. a polynomial with real coefficients, i.e. a function f 2. coefficients ai, i.e. an array of reals [a0,⋯,an] 3. a polynomial's degree, i.e. a natural number n
The concept of a polynomial is a bit more general: it is any function of a single numeric input that can be expressed using only addition and multiplication and constants.
Example If g is the function name, t is the input (variable) name, bi is an array of coefficients defined as [2,0,4,−1] and n=3 is the degree of the polynomial. By definition, the polynomial g has the form:
$$\displaystyle g(t) = 2 + 0t + 4t^2 + (−1)t^3 \ \quad = 2 + 4t^2 − t^3
$$
A polynomial, like a function, can be represented as a set of ordered pairs, sometimes called points - pairing each input with its output we can obtain a set of tuples which we can plot. A polynomial's graph, plotted as a curve in space, will reveal an interesting property: the number of curvey direction-changes depends on a polynomial's degree.
Last updated