# Calculating with polynomials

For a full and interactive version of this page with examples and exercises, check out the Pass Your Math platform!

If $$f(x)$$ and $$g(x)$$ are two polynomials and $$c$$ is a real number, then the following expressions also are polynomials:

• $$c\cdot {f(x)}$$
• $$f(x)+g(x)$$
• $$f(x)-g(x)$$
• $$f(x)\cdot g(x)$$

Rules of calculation for polynomials

• Multiplying a polynomial by a constant is equivalent to multiplying each term of the polynomial by that constant
• Addition of two polynomials in $$x$$ is equivalent to adding the coefficients of terms with the same power of $$x$$.
• Subtraction of polynomial $$g(x)$$ by a polynomial $$f(x)$$ is the same as subtracting the coefficients of terms in $$g(x)$$ by the coefficients of the same power of $$x$$ in $$f(x)$$.
• Multiplication of two polynomials is obtained by multiplying each term of one polynomial by each term of the other polynomial and adding all the products.

The rules specify how we can add, subtract and multiply polynomials. The quotient $$\frac{f(x)}{g(x)}$$ of two polynomials is not always a polynomial, but does result in a rational function.

Degree of polynomials that result from arithmetic operations

Let $$f(x)$$ and $$g(x)$$ be polynomials of degree respectively $$m$$ and $$n$$, and let $$c$$ be a real number.

• The degree of $$c\cdot f(x)$$ is the degree of $$f(x)$$ if $$c\ne0$$.
• The degree of $$f(x)\cdot g(x)$$ is the sum of the degrees $$f(x)$$ and $$g(x)$$.
• if $$m\gt n$$, then the degree of $$f(x)+g(x)$$ is equal to the degree of $$f(x)$$.
• If $$m=n$$, then the degree of $$f(x)+g(x)$$ is less than or equal to the degree of $$f(x)$$.

Let’s practice!

What is the product of polynomial $$f(x)=x^3+x^2-4\cdot x-4$$ and the constant $$2$$?

In order to compute the product of $$f(x)$$ and $$2$$ we multiply the coefficient of each power of $$x$$ in $$f(x)$$ with $$2$$:

$$\begin{array}{rcl}2\cdot f(x)&=& 2\cdot \left(x^3+x^2-4\cdot x-4\right)\\ &=&{ -8+{ (2\cdot1)\cdot x^2 }+{ (2\cdot-4)\cdot x }+{ (2\cdot-4) }} \\ &=& 2\cdot x^3+2\cdot x^2-8\cdot x-8\end{array}$$

$$2\cdot x^3+2\cdot x^2-8\cdot x-8$$