Algebra on polynomials
Published October 23, 2025
Algebra is maybe my favorite area of math to study. Right now I’m trying to learn more linear algebra and category theory. Linear algebra is one of the most powerful and applicable areas of math today, as statistics, machine learning, and AI heavily depend on it. Category theory is notoriously difficult to describe, but it is fun because of how many layers of abstraction you have to deal with. It is truly mind bending. Solving problems in algebra amounts to playing with and manipulating the definitions and theorems until you get what you want. Algebra goes far beyond what you learn in high school, and you can do algebra with much more than just numbers. Here I want to write about two different ways to think about algebra with polynomials.
Polynomials
Firstly, a polynomial is a function that can be written as
Note that some of the ’s can be 0, cancelling out that power of . The maximum power of is called the degree of the polynomial. I will write to represent all polynomials, and to represent all polynomials with degree at most . Now we can see how we can do algebra with these polynomials.
Polynomials as a vector space
A vector space is a set (here, ), where you can add and scale all the elements (along with a few more constraints, scroll to the end). An element of a vector space is called a vector. So, given any polynomials, like and , we can compute
and scaling like
So you can see how we can perform addition on polynomials, just like how we can add two numbers. Note that here we are not worried about actually plugging in any value for and evaluating, our “numbers” are the polynomials themselves.
We can also form a vector space with . It is clear that you cannot get a polynomial with degree greater than from addition and scalar multiplication of polynomials with maximum degree . For example, is all the polynomials with at most degree 3. You cannot get a polynomial of degree 4 from addition of two polynomials of degree 3.
You can get any polynomial in from addition and scalar multiplication of the polynomials
This is called the basis of the vector space. Since there are 4 polynomials in the basis, the dimension of is 4. In general, the dimension of . is infinite-dimensional.
Polynomials as a ring
A ring is a set (again, here the set of polynomials), where you can add and multiply elements together. Additionally, here we are only considering polynomials with integer coefficients. Addition is defined as before, and multiplication is similar
You can see that here in the ring of polynomials, once we have a polynomial with degree at least 1, we can multiply it by itself to get a polynomial with an arbitrarily high degree. So cannot be a ring, since we can “get outside” of the ring by combining elements inside of it (this wasn’t possible in a vector space since multiplication between two vectors isn’t defined). Since multiplied by any polynomial equals , is a unity of the ring of polynomials with integer coefficients. Also, the ring of polynomials is an integral domain since if are polynomials and , then or .
Conclusion
Algebra is much more expansive than what is taught in high school. Here, you can see how you can define addition and multiplication to work with polynomials, and then you can do algebra with polynomials in much the same way you do algebra they way you are used to with numbers. There are many more algebraic structures than the two I listed here, such as groups, fields, and monoids, and you can do algebra on elements that are numbers, polynomials, functions, rotations, letters, and more. Studying algebra abstractly lets you see what all of these have in common, without getting lost in the details of a particular realization of the structure.
Formal definitions
Vector Space
A vector space is a set (here, let ) along with addition and scalar multiplication such that
- (addition is commutative)
- (addition is associative)
- there exists an element such that for all (there is an additive identity)
- for every , there exists such that (additive inverses exist)
- for all (there is a scalar identity)
- and for all (scalar multiplication distributes over addition)
is any field where the scalars come from, and you say is a vector space over .
Ring
A ring is a set with addition and multiplication such that
- (addition is commutative)
- (addition is associative)
- there exists an element such that for all (there is an additive identity)
- for all , there exists an element such that (additive inverses exist)
- (multiplication is associative)
- and (multiplication distributes over addition)
Note that multiplication in a ring does not necessarily have to be commutative, have inverses, or have an identity.