Plynomial to matrix conversion

  • Thread starter ravishankar_v
  • Start date
  • Tags
    Matrix
In summary, the author is trying to find a way to generate a matrix whose characteristic polynomial is the same as the given source polynomial. He is using the matrix to generate more polynomials with same special properties as the source polynomial from which the matrix was derived. The matrix should also have its characteristic polynomial same as the source polynomial. My requirement has polynomials with binary coefficients, and the converted matrices should also have binary entries only.
  • #1
ravishankar_v
4
0
Can anyone suggest a method to convert a univariate polynomial of degree n into a n x n matrix? For example, the polynomial 1 + x^2 + x^3 + x^4 + x^5 converts to [0 0 0 0 1; 1 0 0 0 0; 0 1 0 0 1; 0 0 1 0 1; 0 0 0 1 1], and the polynomial 1 + x^2 + x^5 to [0 1 1 1 1; 0 0 1 1 1; 1 1 1 0 0; 0 0 0 0 1; 1 1 1 1 1]. I cannot make out how this is done. Any leads appreciated.
 
Physics news on Phys.org
  • #2
I can give you any number of arbitrary, meaningless ways to convert a polynomial to a matrix, but I assume that's not what you want. What is the purpose of this conversion? Is there any pattern in the examples you've given, because I can't see any. You can convert a polynomial with real coefficients into a vector with real entries in the natural way, but that's obviously not what's going on here.
 
  • #3
I am using the matrix to generate more polynomials with same special properties as the source polynomial from which the matrix was derived. The matrix should also have its characteristic polynomial same as the source polynomial. My requirement has polynomials with binary coefficients, and the converted matrices should also have binary entries only.

While getting the characteristic polynomial of a matrix is easy(det(AI - x)), I want a method for getting a matrix whose characteristic polynomial is the same as the given source polynomial.
 
  • #4
ravishankar_v said:
I am using the matrix to generate more polynomials with same special properties as the source polynomial from which the matrix was derived. The matrix should also have its characteristic polynomial same as the source polynomial. My requirement has polynomials with binary coefficients, and the converted matrices should also have binary entries only.

While getting the characteristic polynomial of a matrix is easy(det(AI - x)), I want a method for getting a matrix whose characteristic polynomial is the same as the given source polynomial.
That is also easy (at least in theory). Find the roots of the characteristic polynomial. Form Jordon blocks using the roots. A Jordon block is a square matrix with all the diagnals equal, and ones on the row above the diagnal. Say the roots were 9,7,7,7 the Jordan block you cold form would be
[9]
[[7,1,0]
[0,7,1]
[0,0,7]]
[[7,1]
[0,7]]
[7]
remember to only use each root as many times as its multiplicity so in the above we use [9] then either the 3x3, 2x2 & 1x1 or 1x1 three times.
Finally characteristic polynomial is invariant son if desired we may conjugate with any invertable matrix.
A=S^-1*Diag(J1,J2,...,Jn)*S
where Ji is the ith Jordon block.
The binary coefficients might be tricky though.
 
  • #5
ravishankar_v said:
I am using the matrix to generate more polynomials with same special properties as the source polynomial from which the matrix was derived.
What special properties?
The matrix should also have its characteristic polynomial same as the source polynomial. My requirement has polynomials with binary coefficients, and the converted matrices should also have binary entries only.
This won't always be exactly possible. If you take any 2x2 matrix A, then it's characterisitc polynomial is:

x² - Tr(A)x + Det(A)

If the matrix has binary entries, then Tr(A) is either 0, 1, or 2, therefore the x term in the polynomial will either be 0, -x, or -2x. So you if have a polynomial like x² + x + 1, where the x term is +x, then you won't be able to get it unless you are okay to treat +x and -x as equivalent. Similarly, if you have a 3x3 matrix, your cubic term will be -x³, so the polynomial x³ is impossible unless you treat the two as equivalent. So if a given polynomial has 0 as the coefficient for one of it's terms, then the char. poly. should have a zero for that term, and if the given polynomial has a 1, then the char. poly. should have either -1 or 1 there. I'm guessing this is what you want to do because the matrix you gave for x5 + x4 + x3 + x2 + 1 has characteristic polynomial -x5 + x4 + x3 + x2 + 1.

Anyways, this might help a little. If you want to get an nth degree polynomial that does not have a 1 at the end, then it can be put into the form x(Pn-1(x)) where Pn-1(x) is an n-1th degree polynomial. If you know the matrix for Pn-1, then the matrix for x(Pn-1(x)) is just the matrix for Pn-1 with a row of zeroes added above and a column of zeroes added to the left.
 
Last edited:
  • #6
This is a tough problem. For now, I might recommend looking at 3x3 matrices by placing a 2x2 matrix with characteristic polynomial p(x) in the bottom right of the 3x3 matrix, and then experimenting with the remaining entries of the 3x3 matrix to see how they effect the the relationship between p(x) and the characteristic polynomial of the 3x3 matrix. For example, you already know that if all the remaining entries are 0, then the characteristic polynomial of the 3x3 matrix is just x*p(x) or (-x)*p(x), depending on if you compute the characteristic polynomial as det(xI - A) or det(A - xI).

If you notice some pattern, try to generalize it, or maybe try 4x4 matrices. Hopefully some useful pattern will emerge. If not, I'm not sure how else to go about doing this. You could try what lurflurf suggested, that is, factor the polynomial over the complex field, then write out the possible Jordan forms for the matrix. Then, for each of these Jordan forms, find a similar matrix with binary entries only. Actually, you might have to try this for not only the polynomial you're given, but the given polynomial with some "-" signs put in place of "+" signs. This actually sound impossible, so don't try it unless you're very very desperate.
 
  • #7
I've found a pattern that works for 2x2 and 3x3 matrices, and seems too "nice" to not be true in general (obviously, that's not a rigorous argument). If you have an nxn matrix A, then the term in the characteristic polynomial containing the kth power of x (for 0 < k < n) has coefficient:

[tex](-1)^k\sum _{i=1} ^n \det (A_{ki})[/tex]

where [itex]A_{ki}[/itex] is the (n-k)x(n-k) submatrix of A with its first entry being the 1,1 entry of A (with appropriate wrapping-around). For k = n, the coefficient is just (-1)n, and for k = 0, the coefficient is det(A). Define Sk to be the set of (n-k)x(n-k) matrices on the diagonal of A. You should see that for 0 < k < n, there are n elements of Sk. For k = 0, there is only one matrix on the diagonal of A, and that's A itself. For k = n, it's like we're looking at a 0 x 0 matrix, and we can say that there is only one of these. Agree that the determinant of a 0x0 matrix is 1. Then we can rewrite the stuff in LaTeX above as:

[tex](-1)^k\sum _{M \in S_k} \det (M)[/tex]

this now holds for 0 < k < n. We can then rewrite the polynomial as:

[tex]\sum_{k=0} ^n \left ((-x)^k \sum _{M \in S_k} \det (M)\right )[/tex]

I mentioned previously "wrapping-around". What this means is that, for example, the 2x2 submatrix of an nxn-matrix A, with first element being the n,n element of A (which would be written A(n-2)n will be the matrix:

(ann an1)
(a1n a11)

where aij is the entry in row i, column j of A.
 
  • #8
Thanks to AKG and luflurf. I have enough material to try out some alternatives. Sorry the details in my requirement were not complete. The coefficients of the polynomials and the entries in the matrix are all binary, and also -1 = +1. The special property I mentioned was 'primitivity' of the polynomial. I did not want to confuse the main issue, so I held back.

A univariate polynomial f(x) of degree n with binary coffts is primitive if x^(2^n - 1) = 1 (mod f(x)), and x^t ~= 1 (is not equal to 1) for any t< 2^n - 1. If I have one primitive polynomial f and convert it to the matrix A, then characteristic polynomials of A^k will all be primitive for some integers k. This is a way of generating more primitive polynomials, which find wide applications in random number generation and error correcting codes.

Thanks, again.
 
Last edited:

1. What is a polynomial to matrix conversion and why is it important in scientific research?

A polynomial to matrix conversion is the process of representing a polynomial expression as a matrix. This is important in scientific research because matrices offer a more efficient and organized way to analyze and manipulate large amounts of data. It also allows for easier application of mathematical operations on polynomials, making them easier to study and understand.

2. How is a polynomial expression converted into a matrix?

To convert a polynomial expression into a matrix, the coefficients of the polynomial are placed in a row vector and the exponents of the variables are placed in a column vector. The matrix is then formed by taking the coefficients as entries and arranging them in rows and columns according to their corresponding exponents.

3. Can a polynomial with multiple variables be converted into a matrix?

Yes, a polynomial with multiple variables can be converted into a matrix. Each variable would have its own column vector, and the coefficients would be arranged in rows based on the exponents of each variable. This would result in a larger matrix with multiple rows and columns.

4. What are the advantages of using matrix representation for polynomials?

Using matrix representation for polynomials offers several advantages. It allows for easier application of mathematical operations such as addition, subtraction, and multiplication. Matrices also allow for easier manipulation and analysis of large amounts of data, making it a valuable tool in scientific research. Additionally, matrix representations can help identify patterns and relationships within polynomial expressions.

5. Are there any limitations to using matrix representation for polynomials?

While matrix representation for polynomials offers many advantages, there are also some limitations. One limitation is that it may not be suitable for all types of polynomials, particularly those with complex or non-numeric coefficients. Additionally, the size of the resulting matrix can become very large for polynomials with high degree or multiple variables, making it difficult to work with in some cases.

Similar threads

  • Linear and Abstract Algebra
Replies
8
Views
758
  • Linear and Abstract Algebra
Replies
8
Views
853
  • Linear and Abstract Algebra
Replies
2
Views
978
  • Linear and Abstract Algebra
Replies
2
Views
395
  • Linear and Abstract Algebra
Replies
10
Views
969
  • Linear and Abstract Algebra
2
Replies
52
Views
2K
  • Linear and Abstract Algebra
Replies
2
Views
950
  • Linear and Abstract Algebra
2
Replies
39
Views
2K
  • Linear and Abstract Algebra
Replies
5
Views
937
Replies
6
Views
2K
Back
Top