Polynomial Functions

These notes cover polynomial functions.

Polynomial Equations

We assume familiarity with the follow propositions and theorems.

a,m,nR:{\forall a,m,n \in \reals:}
(am)(an)=am+n{(a^m)(a^n) = a^{m+n}}aman=amn{\dfrac{a^m}{a^n} = a^{m-n}}
(am)n=amn{(a^m)^n = a^{m \by n}}a0=1{a^0 = 1}
an=1n{a^{-n}=\dfrac{1}{n}}(ab)n=(an)(bn){(ab)^n = (a^n)(b^n)}
(ab)=anbn{\ar{\dfrac{a}{b}}=\dfrac{a^n}{b^n}}

Linear Functions

definition. A linear function is a function of the form f(x)=mx+b,{f(x)=mx+b,} where m,x,bR{m,x,b \in \reals} and m{m} and b{b} are constants. We call b{b} the initial value of f,{f,} and m{m} the slope of f.{f.}

Below are a few examples of linear functions.

-10-8-6-4-20246810𝒙-10-8-6-4-20246810𝒚
-10-8-6-4-20246810𝒙-10-8-6-4-20246810𝒚
-10-8-6-4-20246810𝒙-10-8-6-4-20246810𝒚
-10-8-6-4-20246810𝒙-10-8-6-4-20246810𝒚

Deriving Linear Functions

Linear functions are the simplest to derive (setting aside constant functions). The following formula computes the slope m{m} for two given arguments x1,x2dom(f).{x_1, x_2 \in \dom{f}.}

m=f(x2)f(x1)x2x1. m = \dfrac{f(x_2) - f(x_1)}{x_2 - x_1}.

Quadratic Functions

Quadratic functions are functions whose procedures are quadratic expressions.

quadratic function. A quadratic function is a function of the form f(x)=ax2+bx+c,{f(x)=ax^2+bx+c,} where a,b,cR{a,b,c \in \reals} are constant coefficients with a0.{a \neq 0.} We call the term ax2{ax^2} the quadratic term, the term bx{bx} the linear term, and the term c{c} the constant term.

The graphs below all correspond to quadratic functions.

-10-8-6-4-20246810𝒙-10-8-6-4-20246810𝒚
-10-8-6-4-20246810𝒙-10-8-6-4-20246810𝒚
-10-8-6-4-20246810𝒙-10-8-6-4-20246810𝒚
-10-8-6-4-20246810𝒙-10-8-6-4-20246810𝒚
-10-8-6-4-20246810𝒙-10-8-6-4-20246810𝒚
-10-8-6-4-20246810𝒙-10-8-6-4-20246810𝒚

Cubic Functions

Cubic functions are functions whose procedures are cubic expressions.

cubic function. A cubic function is a function of the form f(x)=ax3+bx2+cx+d,{f(x)=ax^3 + bx^2 + cx + d,} where a,b,c,d{a,b,c,d} are constant coefficients with a0.{a \neq 0.} We call the term ax3{ax^3} the cubic term, the term bx2{bx^2} the quadratic term, the term cx{cx} the linear term, and the term d{d} the constant term.

example. Some examples of cubic functions:

-10-8-6-4-20246810𝒙-10-8-6-4-20246810𝒚
-10-8-6-4-20246810𝒙-10-8-6-4-20246810𝒚
-10-8-6-4-20246810𝒙-10-8-6-4-20246810𝒚
-10-8-6-4-20246810𝒙-10-8-6-4-20246810𝒚
-10-8-6-4-20246810𝒙-10-8-6-4-20246810𝒚
-10-8-6-4-20246810𝒙-10-8-6-4-20246810𝒚

Power Functions

The square and cubic functions are types of power functions.

power function. A power function is a function of the form f(x)=cxn,{f(x)=cx^n,} where c{c} is a real constant, and n{n} is a natural number called the power of the base argument x.{x.}

Deriving Power Functions

Let's now consider the derivative of f(x)=xn,{f(x) = x^n,} where nZ+.{n \in \uint^{+}.} In other words, we want to compute:

ddxxn \dfrac{\d}{\d x} x^n

Consider the simplest case, where n=1.{n = 1.} If n=1,{n = 1,} then f(x)=xn=x1=x.{f(x) = x^n = x^1 = x.} The graph of f(x)=x{f(x) = x} is a straight vertical line, which has a slope of 1.{1.} Thus, we have:

theorem. Given the function f(x)=x,{f(x) = x,} it follows that

ddx x=1. \dfrac{\d}{\d x}~x = 1.

But about the more general case, xn?{x^n?} For this case, we return to our expression, ΔfΔx:{\frac{\Delta f}{\Delta x}:}

(x+Δx)nxnΔx \dfrac{(x + \Delta x)^n - x^n}{\Delta x}

Notice that we wrote x{x} instead of x0.{x_0.} We did so because x0{x_0} isn't meaninful in this particular computation. x{x} can be any fixed value of x,{x,} and we aren't so concerned about its value. However, we state explicitly that x{x} is a fixed value, and Δx{\Delta x} is a moving value. To manipulate our expression, we must understand what the nth{n^{\text{\scriptsize{th}}}} power of a sum is. To do so, we use a theorem from discrete mathematics, called the binomial theorem. The expression (x+Δx)n{(x + \Delta x)^n} can be rewritten as:

(x+Δx)1(x+Δx)2(x+Δx)n (x+\Delta x)_1 \cdot (x+\Delta x)_2 \cdot \ldots \cdot (x+\Delta x)_n

If we expand this multiplication, the first term in the product is xn.{x^n.} Next, we have a second term of the form xn1Δx.{x^{n-1}\Delta x.} How many times does this term occur? n{n} times, since we are multiplying (x+Δx){(x + \Delta x)} by itself n{n} times. Thus, we have:

xn+nxn1Δx x^n + nx^{n - 1}\Delta x

With just these terms, we have enough to continue computing the derivative, per the binomial theorem. According to the binomial theorem:

(x+Δx)n=k=0n(nk)xnk(Δx)k (x + \Delta x)^n = \sum\limits_{k = 0}^{n} \dbinom{n}{k}x^{n - k}(\Delta x)^k

From this proposition, when k2,{k \geq 2,} we will always obtain terms containing Δx{\Delta x} in powers of 2, 3, 4, 5, and so on. Because of this implication, we can write the sum as:

(x+Δx)n=xn+nxn1Δx+O((Δx)2) (x + \Delta x)^n = x^n + nx^{n - 1}\Delta x + O((\Delta x)^2)

The term O(Δx)2{O(\Delta x)^2} encapsulates what we call "junk terms," at least in the context of continuous mathematics, and more specifically, in the context of Δx0{\Delta x \mapsto 0}. Just so we aren't hiding the ball, the term O(Δx)2{O(\Delta x)^2} represents:

(Δx)2k=2n(nk)xnk=(Δx)2((n2)xn2+(n3)xn3Δx+(Δx)n2) (\Delta x)^2 \sum\limits_{k = 2}^{n} \binom{n}{k}x^{n - k} = (\Delta x)^2 \left( \binom{n}{2}x^{n-2} + \binom{n}{3}x^{n-3} \Delta x + \ldots - (\Delta x)^{n-2} \right)

Importantly, as Δx0,{\Delta x \to 0,} we have the equation:

limΔx0o(Δx)Δx=0 \lim\limits_{\Delta x \to 0} \dfrac{o(\Delta x)}{\Delta x} = 0

Let's get back to our manipulation. With our application of the binomial theorem, we can rewrite our difference quotient as:

ΔfΔx=1Δx((x+Δx)nxn)=1Δx(xn+nxn1Δx+O((Δx)2)xn)=nxn1+O((Δx)2)Δx\begin{aligned} \dfrac{\Delta f}{\Delta x} &= \dfrac{1}{\Delta x}((x + \Delta x)^n - x^n) \\ &= \dfrac{1}{\Delta x}(x^n + nx^{n-1}\Delta x + O((\Delta x)^2) - x^n) \\ &= nx^{n-1} + \dfrac{O((\Delta x)^2)}{\Delta x} \end{aligned}

Now all we do is apply the limit (recall what we concluded from the binomial theorem earlier):

limΔx0ΔfΔx=limΔx0(nxn1+O((Δx)2)Δx)=nxn1+0=nxn1\begin{aligned} \lim\limits_{\Delta x \to 0} \dfrac{\Delta f}{\Delta x} &= \lim\limits_{\Delta x \to 0} \left(nx^{n-1} + \dfrac{O((\Delta x)^2)}{\Delta x}\right) \\ &= nx^{n-1} + 0 \\ &= nx^{n-1} \end{aligned}

Accordingly, we have the following theorem:

power rule. Given the function f(x)=xn{f(x)=x^n} where nZ+,{n \in \pint,} it follows that

ddxxn=nxn1. \dfrac{\d}{\d x} x^n = nx^{n - 1}.

We can now compute the derivatives of various power functions:

ddxx2=2xddxx3=3x2ddxx4=4x3ddxx5=5x4 \begin{aligned} \frac{\d}{\d x} x^2 &= 2x \\[1em] \frac{\d}{\d x} x^3 &= 3x^2 \\[1em] \frac{\d}{\d x} x^4 &= 4x^3 \\[1em] \frac{\d}{\d x} x^5 &= 5x^4 \end{aligned}

Polynomial Functions

Both quadratic and cubic functions are the simplest subtypes of polynomial functions — functions whose procedures are polynomials.

polynomial function. A polynomial function is a function of the form

f(x)=anxn+an1xn1++a2x2+a1x+a0, f(x)=a_nx^n + a_{n-1}x^{n-1}+\ldots+a_2x^{2} + a_1x + a_0,

where each ai{a_i} is a constant coeffient, and each aixii{a_ix_i^{i}} is a term, for all n,iN.{n,i \in \nat.}