∫ Polynomial arithmetic as convolution
Kernel:
- A perspective to represent polynomials using simplexes.
- A trick to perform polynomial multiplicative operations based on graph convolution.
Polynomials are facinating. They serve as fundamental components in the realm of mathematical education for usPolynomials. Brilliant.org. Retrieved 15:25, April 9, 2023, from https://brilliant.org/wiki/polynomials/. Their orthogonal basis properties also enable the independent factorization of their linear combinations, making them an ideal starting point for machine learning practictionersSchölkopf, B., Smola, A. J., & Bach, F. (2002). Learning with kernels: support vector machines, regularization, optimization, and beyond. MIT press..
Before delving into the method, let's initially examine the approach to representing polynomials that I find both practical and efficient to work with. This representation offers a more compact and convenient way to perform convolution. Note that I've omitted the degree component from the individual term, as during polynomial operations, we must define and share the axes among the operands anyway. We simply multiply the coefficients of each term in the first polynomial with the coefficients of each term in the second polynomial, and find the terms with the same degree and add them up. This is the same as performing convolution on the graph representation of the polynomials. This is not a new technique. Polynomial multiplication is one of the common examples to show the speed up benefit of discrete fourier transformhttps://brilliant.org/wiki/discrete-fourier-transform/#convolution-and-polynomial-multiplication. But our goal is the opposite. Rather than presenting a method that provides speed improvements but is difficult to execute manually, we aim to carry out polynomial operations using pen and paper. Typically, we convolve with the smaller operand to minimize the working memory used. By organizing the terms diagonally, you can save space, as it only necessitates a number of rows equivalent to the terms in the moving operand. You may notice that in both examples, I carried out the convolution using varying order sequences. In fact, it's not essential to follow a specific sequence, provided that each bin has been convolved. Unlike the long division method, which requires a left-to-right sequence, you only need to ensure that every bin is accounted for in the convolution process when the quotient is divisible by the denominator. By leveraging the human visual cortex for solving polynomial arithmetic, we can take advantage of the consistency in the structure. The benefits include: Though I only present the trick with atmost three variables using simplexes in Euclidean space, I believe that more if possible for individuals capable of reasoning in higher dimensions. In essence, I have transformed polynomial arithmetic into a straightforward graphical game. My hope is that this technique will assist those who find math challenging, making their learning experience more enjoyable and accessible. For those who still find math hard, I have a bad news and a good news for you. The bad news is it's not just math, the truth is hard. Math is unfortunately the simplification of truth that allows us to work with it more easily. Do not worry about your difficulties in mathematics. I can assure you mine are still greater. The point is, there is nothing in the world that's of value and easy to get. Only hard stuff worth pursuing. And only those who have the gut to press on will get it.∂ Yet another way to represent polynomials
∂ Operations using graph convolution
Performing polynomial muliplication is simply convolutionThis is infact cross-correlation. But in machine learning community, they are both interchangeable., for example:
Looking at these starting simplexes, can you guess the shape of the result before performing the division? ∂ Final words
Albert Einstein
∂ Exercise
One final trick