7 minutes read

In this topic, we'll talk about polynomial functions. But why do we need them, and what can we do with them? Solving problems from different fields, like mathematics or programming, requires the ability to make models and to solve equations. In turn, to successfully learn how to do this, you first need to know how to work with polynomials and transform them. Of course, everybody knows how to add and multiply numbers, but what really lies under these arithmetic operations? Let's start with some theories that you may be familiar with and try to deepen your knowledge about polynomials.

What is a polynomial?

Recall that a polynomial function in one variable has a standard form: f(x)=c0+c1x1++cnxnf(x)=c_0+c_1x^1+\dots+c_nx^n, where cic_i are coefficients in real numbers, xx is a variable, and nn is a non-negative integer power of a variable.

Polynomial function

Polynomials have a lot of practical implementations, and one of them is 3D modeling. At the end of the last century, mathematician Gabriel Taubin described and studied the surface in the form of a heart:

(x2+9y24+z21)3x2z39y2z380=0(x^2+\frac{9y^2}{4}+z^2-1)^3-x^2z^3-\frac{9y^2z^3}{80}=0

Surface in the form of a heart

It looks so cute, and now it is ready for 3D printing!

Monomial

Every polynomial function consists of one or more parts. They are called monomials expressions that include a coefficient, a variable, and its power: cxncx^n. For example, 5x25x^2, where 55 is a coefficient and x2x^2 is a variable to the power of 2. Below there is a graph of a monomial:

Graph of a monomial

Sometimes it's not so easy to detect a monomial, but here are some helpful rules:

  • the expression always has a single term that doesn't go to zero (0x30x^3 is not a monomial);

  • the denominator doesn't have a variable (5x\frac{5}{x} is not a monomial);

  • the power of the variable is an integer (4x124x^\frac{1}{2} is not a monomial).

How to determine a polynomial function?

In mathematics, there are different types of functions, and we need to determine them. Luckily, there are also some rules to detect a polynomial function:

  • the power of any term should be a non-negative number (f(x)=x2+6xf(x)=x^{-2}+6x is not a polynomial);

  • in the denominator, there shouldn't be any variable (f(x)=2x3+6x9f(x)=2x^3+\frac{6}{x}-9 is not a polynomial);

  • the variable shouldn't be under a root (f(x)=5x+3f(x)=5\sqrt{x}+3 is not a polynomial).

Frequently used polynomials

One of the most used polynomial functions is the linear function. It looks like f(x)=ax+bf(x)=ax+b, where xx is a variable, and a,ba,b are constants. The polynomial has the degree of 1.

Let's draw a graph of the f(x)=2x+4f(x)=2x+4 function:

Graph of a polynomial of the first degree

You can see that the graph of the first degree polynomial is simply a straight line.

Another type of the polynomial function is called quadratic and has the degree of 2. The form is f(x)=ax2+bx+cf(x)=ax^2+bx+c, where xx is a variable, and a,b,ca,b,c are constants. You can see a graph of f(x)=2x2+4x+5f(x)=2x^2+4x+5 below:

 Quadratic parabola

All graphs of the second degree have a common name quadratic parabola, and in general look the same.

Does a cubic polynomial function look the same as quadratic? It has the degree of 3 and has the form of f(x)=ax3+bx2+cx+df(x)=ax^3+bx^2+cx+d. Here is a plot of f(x)=7x3+4x2+3x+1f(x)=7x^3+4x^2+3x+1:

Cubic parabola

Third degree graphs also share a common name and mapping cubic parabola.

Typically, 0 is always an exception to the rule. In our case, the function f(x)=0f(x)=0 will be a polynomial with one term, but won't be a monomial.

Polynomials of higher degrees

One more important but complicated theme is polynomials of higher degrees. They find their application in regression problems, which are used in machine learning and help to describe dependencies in data. Let's have a look at two graphs below. You can see some data as orange spots. We will try to find a model (blue line) that describes the data more accurately.

In the first graph, the model is f(x)=4x32f(x)=4x^3-2 :

Graph of a third degree polynomial

In the second graph, we use f(x)=x7+4x310x2f(x)=x^7+4x^3-10x-2 :

Graph of a seventh degree polynomial

You can see that the second model suits the data better than the first one. Thus, we can use the polynomial f(x)=x7+4x310x2f(x)=x^7+4x^3-10x-2 to describe our data.

Conclusion

This topic has hopefully made clear to you some things that you may have heard about before. Below is a summary of the main points of this topic:

  • Standard form of a polynomial function is f(x)=c0+c1x1++cnxnf(x)=c_0+c_1x^1+\dots+c_nx^n.

  • Every polynomial consists of one or more monomials that have a form of f(x)=cxnf(x)=cx^n.

  • Power of any term of a polynomial is an integer non-negative number.

  • First degree polynomial is a linear function, and its graph is simply a straight line.

  • The graph of the second degree polynomial is called quadratic parabola; the third degree graph is also a parabola, but it has another shape and is called a cubic parabola.

  • Polynomial functions are widely used in machine learning and help to describe dependencies in data.

17 learners liked this piece of theory. 1 didn't like it. What about you?
Report a typo