On this page we are looking a functions of one variable, usually denoted by x, in the next section we will look at functions of many variables.

A polynomial has powers of the variable x multiplied by coefficients.

For instance, as the variable is x, the powers are: x, x^{2}, x^{3}, x^{4} ...

So an example of a polynomial is:

f(x) = a_{0}+ a_{1} x + a_{2} x^{2}+ a_{3} x^{3}+ a_{4} x^{4}...

A polynomial with powers up to x^{2} is a quadratic, quadratics occur frequently in equations of motion, solving quadratic equations is explained here.

Polynomials of infinite length can represent functions like trig functions (sin, cos, tan) therefore we can use an infinite series to calculate a value of these functions to any accuracy required as explained here.

Polynomials where the values of a_{n} and x^{n} are rational numbers (or complex numbers made up of rational numbers) are known as Z-equations and their solutions can be studied using Galois theory.

If the polynomial is equal to zero:

a_{0}+ a_{1} x + a_{2} x^{2}+ a_{3} x^{3}+ a_{4} x^{4}... = 0

Then we can 'solve' it, that is find values of x for which the equation is true, although if the equation has terms of degree 5 or higher then there may not be a formula for its solution (see Galois theory), that is, although it has a solution in the complex numbers it may not have a solution in complex numbers containing rationals and roots of rationals.

Any equation containing only one variable, some constants, the addition and multiplication operations can be rearranged to be in this polynomial form (as long as it does not contain the division operation or functions such as sine and exponential). Perhaps that is why polynomials are so important in ring theory? perhaps this is the ring equivalent of a free group?

An alternative form of the above equation is:

(x - r_{0})(x - r_{1})(x - r_{2}) ... = 0

The constants r_{0},r_{1}.. r_{2} have a negative sign so that they are solutions to the equation, that is if,

x - r_{0}= 0 then x = r_{0}.

So we have two forms which can be made equivalent, in the first form the multiplications are done first and the additions last:

a_{0}+ a_{1} x + a_{2} x^{2}+ a_{3} x^{3}+ a_{4} x^{4}... = 0

In the second form the additions are done first and the multiplications last:

(x - r_{0})(x - r_{1})(x - r_{2}) ... = 0

It is easy to get from the second form to the first just by multiplying out the terms. However, as we have already mentioned, it is harder to get from the first form to the second form. This is known as solving or 'splitting' the polynomial.

Solutions to cubic and quartic.

## Program

There are a number of open source programs that can solve polynomial equations. I have used Axiom, how to install Axiom here.

To get a numeric solution for a given equation we can use complexSolve as shown here:

complexSolve(3*x^2+4*x+5 = 0,1.e-10)

I have put user input in red:

(1) -> complexSolve(3*x^2+4*x+5 = 0,1.e-10) (1) |

Or we can find a formula for, say, a quadratic equation using radicalSolve as shown here:

```
(3) -> radicalSolve(a*x^2 + b*x + c = 0,x)
```
+-----------+ +-----------+ | 2 | 2 - \|- 4a c + b - b \|- 4a c + b - b (3) [x= --------------------,x= ------------------] 2a 2a Type: List Equation Expression Integer |

## Linear Functions

There are two ways to define linear functions, some definitions allow a constant offset and some don't.

f(x) = a * x + b

or

f(x) = a * x

The second definition is an example of a linear map or linear operator. We can extend this for several variables as explained on this page.