Polynomials
(from "A Programmer's introduction to Mathematics" - Jeremy Kun, 2018)
Definition
A single variable polynomial with real coefficients is a function 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 , where each term consisting of a constant multiplied with the variable raised to the power, .
The definition mentions 3 things: 1. a polynomial with real coefficients, i.e. a function 2. coefficients , i.e. an array of reals 3. a polynomial's degree, i.e. a natural number
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 is the function name, is the input (variable) name, is an array of coefficients defined as and is the degree of the polynomial. By definition, the polynomial 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
Was this helpful?