Maths & numbers

Commutator of a diagonal and dense matrix calculator

Compute DA−AD when D is diagonal and determine whether the matrices commute.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Compute DA−AD when D is diagonal and determine whether the matrices commute.

THE FORMULA[D,A]ᵢⱼ = (dᵢ−dⱼ)Aᵢⱼ

A worked example

Diagonal values 2 and 5 multiply the upper entry 4 by −3, giving −12.

Good to know

The diagonal of this commutator is always zero.

Read the result

Compute DA−AD when D is diagonal and determine whether the matrices commute.

The primary result is labeled “Upper commutator entry”. Keep the input definitions in view when comparing this result with another method.

Try a related calculation

The diagonal of this commutator is always zero.

For a related exercise, try the quadratic equation solver.

A few questions, answered

How can I check the default inputs by hand?

Diagonal values 2 and 5 multiply the upper entry 4 by −3, giving −12.

Which rule does this calculator apply?

[D,A]ᵢⱼ = (dᵢ−dⱼ)Aᵢⱼ

Find your calculator

Start typing to explore the library.