How this calculation works
Solve exact rational derivation equations, identify the inner derivation span and exhibit representatives of the outer quotient.
D([x,y]) = [Dx,y] + [x,Dy]; Out(g)=Der(g)/ad(g).A worked example
For basis e0,e1 with [e0,e1]=e1, every derivation has matrix [[0,0],[c,d]] under column action. Der(g) has dimension two and equals the inner derivations, so the outer derivation dimension is zero.
Good to know
Rational structure constants in dimension at most five; exact antisymmetry and Jacobi validation, rational nullspaces and rank checks. Bracket rows specify i<j and reverse brackets are negated. Column-action derivation matrices. Outer representatives depend on a complement choice; no automorphism-group exponentiation or isomorphism classification.
Reference: Primary method or official documentation (opens in a new tab) ↗
Derivations preserve the bracket infinitesimally
A derivation is a linear map D satisfying the Leibniz rule for the Lie bracket: applying D after a bracket equals bracketing after D acts on either argument, then adding. The derivations form a vector space and a Lie algebra under matrix commutator. This page computes the vector space from exact structure constants.
Every inner derivation ad(x), defined by ad(x)(y)=[x,y], satisfies the rule by the Jacobi identity. Some Lie algebras have additional derivations that are not inner. The quotient of all derivations by the inner span measures these outer directions; it is not the same as simply deleting a few visibly redundant matrix entries.
Compare this with the Lie algebra cohomology calculator with trivial coefficients. Solve D([x,y])=[Dx,y]+[x,Dy] and quotient by inner derivations; trivial-coefficient cohomology does not compute adjoint H1.
Supply a consistent bracket table
Choose a basis e0,…,e(n−1) and provide nonzero rows [i,j,coefficients] with i<j. Each coefficient vector expresses [ei,ej] in that basis. Unlisted pairs are zero, reverse pairs are determined by antisymmetry, and [ei,ei]=0. Rational coefficients retain exact linear algebra.
The table must satisfy Jacobi for every basis triple before any derivation calculation is interpreted. A skew-symmetric bilinear operation need not be a Lie bracket. Rejecting an inconsistent table prevents the subsequent linear equations from being presented as derivations of a Lie algebra when the input did not define one.
Turn the rule into linear equations
Write the unknown matrix D using column action, so column j is D(ej). Substitute each basis pair into D([ei,ej])−[D(ei),ej]−[ei,D(ej)]=0. Equating each output coordinate yields a homogeneous rational linear system in the n² matrix entries.
An exact nullspace basis gives all derivations as rational linear combinations. Displayed basis matrices depend on elimination order and need not match another package entry for entry. The invariant quantities include the space dimension and whether each displayed matrix satisfies the bracket rule; compare spans rather than treating one particular basis as canonical.
Separate inner and outer spaces
Construct ad(ei) directly from the bracket table and row-reduce their flattened matrices to obtain the inner span. Its dimension is n−dim Z(g), where Z(g) is the center. Every inner basis matrix must lie in the computed derivation space, giving an important consistency check.
Extend the inner basis to a basis of all derivations. The added matrices represent a basis of the quotient Der(g)/ad(g). Another complement can differ by inner derivations and still represent the same outer classes. The word representative matters: the returned matrices are choices of quotient representatives, not uniquely defined canonical transformations.
Calculate the two-dimensional example
Take [e0,e1]=e1 and write D(e0)=ae0+ce1 and D(e1)=be0+de1. The derivation rule applied to the only nonzero bracket gives be0+de1=(a+d)e1. Comparing coordinates forces b=0 and a=0, while c and d remain free.
Consequently every derivation matrix is [[0,0],[c,d]], giving dimension two. The maps ad(e0) and ad(e1) span those same two directions, so the inner dimension is also two and the outer quotient has dimension zero. This example checks the column convention and shows that a nonzero derivation space need not imply any outer derivations.
Check familiar structural cases
For an abelian n-dimensional Lie algebra, every linear map is a derivation and every inner derivation is zero. Thus Der has dimension n² and the outer dimension is also n². This is a strong boundary test because all bracket equations vanish while the matrix-vector-space bookkeeping remains active.
For the three-dimensional Heisenberg algebra, derivations must preserve its one-dimensional center, with additional bracket constraints linking the central scaling to the quotient action. The center and inner dimension provide cross-checks. Testing only semisimple examples would miss errors in these nontrivial outer and central directions.
Read the quotient with appropriate limits
Inspect the exact bracket checks for each returned derivation and the inclusion of the inner span. A dimension difference alone is not a replacement for those tests. Linear combinations of the displayed basis matrices should continue to satisfy the rule, and adding an inner derivation changes an outer representative without changing its quotient class.
This calculation does not exponentiate derivations into an automorphism group or classify the Lie algebra up to isomorphism. Over fields of positive characteristic, additional phenomena can change the answer; the current arithmetic is rational characteristic zero. Preserve the basis and column-action convention when using these matrices in another algebra computation.
A few questions, answered
Does every derivation come from ad(x)?
No. Inner derivations form a subspace; additional quotient directions are outer derivations.
Are outer representative matrices canonical?
No. They depend on a chosen complement and can change by inner derivations.
Why validate Jacobi first?
Without Jacobi, the entered antisymmetric operation may not define a Lie algebra, and inner-map guarantees fail.
What happens for an abelian algebra?
Every n×n linear map is a derivation, and the inner span is zero.