MatrixPolynomial[{poly,x},m]
evaluates the matrix m at the polynomial poly in the variable x.
MatrixPolynomial[coeffs,m]
evaluates the matrix m at the polynomial whose coefficients are given by coeffs.


MatrixPolynomial
MatrixPolynomial[{poly,x},m]
evaluates the matrix m at the polynomial poly in the variable x.
MatrixPolynomial[coeffs,m]
evaluates the matrix m at the polynomial whose coefficients are given by coeffs.
Details
- MatrixPolynomial represents a polynomial with square matrices as variables and scalar coefficients.
- MatrixPolynomial[{c0+c1x+⋯+cnxn,x},m] gives
.
- MatrixPolynomial[{c0,c1,…,cn},m] also gives
.
- Matrix polynomials occur in the study of matrix algebra such as in the statement of the Cayley–Hamilton theorem, which asserts that MatrixPolynomial[{CharacteristicPolynomial[m,x],x},m] is the zero matrix.
Examples
open all close allScope (1)
Related Guides
History
Text
Wolfram Research (2025), MatrixPolynomial, Wolfram Language function, https://reference.wolfram.com/language/ref/MatrixPolynomial.html.
CMS
Wolfram Language. 2025. "MatrixPolynomial." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/MatrixPolynomial.html.
APA
Wolfram Language. (2025). MatrixPolynomial. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/MatrixPolynomial.html
BibTeX
@misc{reference.wolfram_2025_matrixpolynomial, author="Wolfram Research", title="{MatrixPolynomial}", year="2025", howpublished="\url{https://reference.wolfram.com/language/ref/MatrixPolynomial.html}", note=[Accessed: 27-August-2025 ]}
BibLaTeX
@online{reference.wolfram_2025_matrixpolynomial, organization={Wolfram Research}, title={MatrixPolynomial}, year={2025}, url={https://reference.wolfram.com/language/ref/MatrixPolynomial.html}, note=[Accessed: 27-August-2025 ]}