Skip to main content
Ctrl+K
Magma Magma
About Get Magma Documentation Try online People How to Cite Contact
Login
  • Preface
  • The Magma Language
  • Sets, Sequences, and Mappings
  • Basic Rings
  • Matrices and Linear Algebra
  • Lattices and Quadratic Forms
  • Global Fields
  • Local Fields
  • Modules
  • Finite Groups
  • Finitely Presented Groups
  • Algebras
  • Representation Theory
  • Lie Theory
  • Commutative Algebra
  • Algebraic Geometry
  • Arithmetic Geometry
  • Modular Arithmetic Geometry
  • Topology
  • Geometry
  • Combinatorics
  • Coding Theory
  • Optimization
  • References
  • Commutative Algebra
  • Differential Rings
  • Related Matrices

Related Matrices#

The companion matrix of a monic linear differential operator

\[D^n+a_{n-1}D^{n-1}+\cdots+a_0 \in F[D]\]

is defined as the \(n\times n\) matrix

\[\begin{split} \begin{pmatrix}0&1&0&0&\ldots&0\\ 0&0&1&0&\ldots&0\\ \vdots&\vdots&\vdots&\vdots&\ddots&\vdots\\ 0&0&0&0&\ldots&1\\ -a_0&-a_1&-a_2&-a_3&\ldots&-a_{n-1}\end{pmatrix}\end{split}\]
CompanionMatrix(L): RngDiffOpElt -> AlgMatElt#

Returns the companion matrix of the monic differential operator \(L\).

Example: Companion Matrix of an Operator (ex-62793f)#
> F<z> := RationalDifferentialField(Rationals());
> R<D> := DifferentialOperatorRing(F);
> L := D^3-z*D^2+2*D+5;
> CompanionMatrix(L);
[0 1 0]
[0 0 1]
[-5 -2 z]

Run in calculator (opens in a new tab)

previous

Euclidean Algorithms, GCDs, and LCMs

next

Singular Places and Indicial Polynomials

On this page
  • CompanionMatrix(L): RngDiffOpElt → AlgMatElt
  • Example: Companion Matrix of an Operator
Magma Magma

Magma is maintained and distributed by the Computational Algebra Group, School of Mathematics and Statistics, University of Sydney.

University of Sydney

Explore

  • About Magma
  • Documentation
  • Download
  • Calculator

Community

  • People
  • Contributions
  • Publications
  • Events
  • News

Help

  • FAQ
  • Contact
  • Subscriptions
  • How to Cite
© 1993–2026 Computational Algebra Group. All rights reserved. Built at the University of Sydney, Australia.