How to convert polynomial to matrix?

In summary, it is possible to convert a polynomial to a matrix by representing it as a coefficient matrix in a chosen basis. However, this may not result in a 4x4 matrix as desired. Another approach is to use the Cayley-Hamilton theorem in reverse, which can work for polynomials of degree 4 or smaller.
  • #1
m2006
1
0
How to convert polynomial to matrix?

Does anyone know how to convert a polynomial to a matrix. I have been told that it is possible to convert a fourth order polynomial to a 4x4 Matrix in Matlab but I have no clue how to go about it and how it is done. :confused: Any suggestions or even where to look would be GREATLY helpful!
 
Physics news on Phys.org
  • #2
Can you be more specific about what you are trying to do?

If you were to choose a basis for the space of fourth degree polynomials, like [tex] \{ 1,x,x^2,x^3,x^4 \} [/tex], then it is possible to represent a polynomial as an element of this vector space by a coefficient matrix.

For example, [tex] 3x^4-2x^2+5 \mapsto \left[5,0,-2,0,3 \right] [/tex]. This is not a 4x4 matrix like you are looking for, but it is a representation of the polynomial as a matrix.

If you are more specific about what you are trying to do, maybe I can offer more insight, although I am not sure if what you want can be done.
 
  • #3


check this out for making a companion matrix for a given polynomial:
http://en.wikipedia.org/wiki/Companion_matrix

The determinant of a companion matrix is a polynomial in λ, known as the characteristic polynomial. λs are the eigenvalues, they are also the solutions to the polynomial.

This works well for polynomials of degree 4 or smaller since they can be solved by a finite sequence of arithmetic operations and radicals.

hope this helps.
 
  • #4


use cayley-Hamilton theorem from backwards,it will help...
 
  • #5


There is a method called "companion matrix" that can be used to convert a polynomial to a matrix. This method involves creating a matrix with specific patterns of coefficients that correspond to the coefficients of the polynomial. The resulting matrix will have a characteristic polynomial that is equivalent to the original polynomial.

To convert a fourth-order polynomial to a 4x4 matrix in Matlab, you can use the command "compan(p)" where "p" is the vector of coefficients of the polynomial in descending order. This will create a companion matrix that you can then manipulate and use in your calculations.

You can also refer to online resources or textbooks for more information and examples on how to convert polynomials to matrices using the companion matrix method.
 

1. How do I convert a polynomial to a matrix?

To convert a polynomial to a matrix, you need to create a matrix with the coefficients of the polynomial as the elements, starting from the highest degree term and filling in the gaps with zeros. For example, if the polynomial is 2x^3 + 5x^2 + 3x + 1, the corresponding matrix would be [2 5 3 1].

2. Can a polynomial with complex numbers be converted to a matrix?

Yes, a polynomial with complex numbers can be converted to a matrix. The matrix will have complex numbers as elements, and the same process of arranging the coefficients in the matrix applies.

3. What is the purpose of converting a polynomial to a matrix?

Converting a polynomial to a matrix can be useful in various mathematical operations such as matrix multiplication, finding the inverse, and solving systems of equations. It can also be used in computer algorithms and programming.

4. Are there any special techniques for converting a high degree polynomial to a matrix?

No, the process of converting a polynomial to a matrix remains the same regardless of the degree of the polynomial. However, for higher degree polynomials, it is important to carefully arrange the coefficients in the matrix to avoid errors in calculations.

5. Can a matrix be converted back to a polynomial?

Yes, a matrix can be converted back to a polynomial by reversing the process of converting a polynomial to a matrix. This involves rearranging the elements of the matrix to form the polynomial in its original form.

Similar threads

  • Linear and Abstract Algebra
Replies
8
Views
1K
Replies
34
Views
2K
  • Linear and Abstract Algebra
Replies
6
Views
492
  • Linear and Abstract Algebra
Replies
10
Views
108
  • Linear and Abstract Algebra
Replies
2
Views
2K
  • Linear and Abstract Algebra
Replies
2
Views
957
  • Linear and Abstract Algebra
Replies
3
Views
1K
  • Linear and Abstract Algebra
Replies
2
Views
979
  • Linear and Abstract Algebra
Replies
2
Views
582
  • Linear and Abstract Algebra
Replies
6
Views
1K
Back
Top