11 Apr 2026

Maxima Matrix Essentials

A concise workflow for constructing matrices and performing core linear-algebra tasks in Maxima.

maxima linear-algebra

Maxima supports standard matrix construction and linear-algebra operations needed for symbolic and exact computations, including linear transformations, coupled systems, and matrix methods in quantum mechanics. The commands below form a minimal toolkit for routine matrix algebra, determinants and inverses, linear systems, and spectral analysis.

Constructing Matrices and Basic Algebra

Matrices can be created directly from row lists; standard special matrices are available for identity and zero matrices. Core algebra uses the usual operations, with matrix multiplication performed by the dot operator.

A : matrix([1, 2], [3, 4]);
B : matrix([0, 1], [1, 0]);
I : ident(2);
Z : zeromatrix(2, 3);

A + B;
A - B;
A . B;
transpose(A);

Determinants, Inverses, and Linear Systems

Determinants and inverses are central for testing singularity, coordinate transformations, and solving linear systems. Systems of linear equations can be solved directly, while coefficient and augmented matrices support structural analysis and algorithmic workflows.

A : matrix([1, 2], [3, 4]);
determinant(A);
invert(A);

eq1 : 2*x + y = 5;
eq2 : x - y = 1;

linsolve([eq1, eq2], [x, y]);
coefmatrix([eq1, eq2], [x, y]);
augcoefmatrix([eq1, eq2], [x, y]);

Eigenanalysis and Row Reduction

Eigenvalues and eigenvectors enable diagonalization, stability analysis, and normal-mode decompositions, especially in quantum mechanics and dynamical systems. Row-reduction-related routines support rank computation and identification of linear dependence.

A : matrix([2, 1], [1, 2]);
eigenvalues(A);
eigenvectors(A);

C : matrix([1, 2, 3], [2, 4, 6], [1, 1, 1]);
triangularize(C);
rank(C);
kill(all)$
A : matrix([1, 2], [3, 4])$
B : matrix([2, 0], [1, 5])$

A + B;
A . B;
transpose(A);
determinant(A);
invert(A);
eigenvalues(A);

Share This Page