ArticleslgStudy

mathematics

Trace diagram

Trace diagram is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Trace diagram rather than just read about it. In short: In mathematics, trace diagrams are a graphical means of performing computations in linear and multilinear algebra. They can be represented as (slightly modified) graphs in which some edges are labeled by matrices.

Trace diagram — main illustration
Trace diagram — illustration

Key takeaways

  • Trace diagram belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Trace diagram to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Trace diagram from memory before moving on to harder problems.

Reference excerpt

In mathematics, trace diagrams are a graphical means of performing computations in linear and multilinear algebra. They can be represented as (slightly modified) graphs in which some edges are labeled by matrices. The simplest trace diagrams represent the trace and determinant of a matrix. Several results in linear algebra, such as Cramer's Rule and the Cayley–Hamilton theorem, have simple diagrammatic proofs. They are closely related to Penrose's graphical notation.

Formal definition Let V be a vector space of dimension n over a field F (with n≥2), and let Hom(V,V) denote the linear transformations on V. An n-trace diagram is a graph D = ( V 1 ⊔ V 2 ⊔ V n , E ) {\displaystyle {\mathcal {D}}=(V_{1}\sqcup V_{2}\sqcup V_{n},E)} , where the sets Vi (i = 1, 2, n) are composed of vertices of degree i, together with the following additional structures:

a ciliation at each vertex in the graph, which is an explicit ordering of the adjacent edges at that vertex; a labeling V2 → Hom(V,V) associating each degree-2 vertex to a linear transformation. Note that V2 and Vn should be considered as distinct sets in the case n = 2. A framed trace diagram is a trace diagram together with a partition of the degree-1 vertices V1 into two disjoint ordered collections called the inputs and the outputs. The "graph" underlying a trace diagram may have the following special features, which are not always included in the standard definition of a graph:

Loops are permitted (a loop is an edge that connects a vertex to itself). Edges that have no vertices are permitted, and are represented by small circles. Multiple edges between the same two vertices are permitted.

Drawing conventions When trace diagrams are drawn, the ciliation on an n-vertex is commonly represented by a small mark between two of the incident edges (in the figure above, a small red dot); the specific ordering of edges follows by proceeding counter-clockwise from this mark. The ciliation and labeling at a degree-2 vertex are combined into a single directed node that allows one to differentiate the first edge (the incoming edge) from the second edge (the outgoing edge). Framed diagrams are drawn with inputs at the bottom of the diagram and outputs at the top of the diagram. In both cases, the ordering corresponds to reading from left to right.

Correspondence with multilinear functions Every framed trace diagram corresponds to a multilinear function between tensor powers of the vector space V. The degree-1 vertices correspond to the inputs and outputs of the function, while the degree-n vertices correspond to the generalized Levi-Civita symbol (which is an anti-symmetric tensor related to the determinant). If a diagram has no output strands, its function maps tensor products to a scalar. If there are no degree-1 vertices, the diagram is said to be closed and its corresponding function may be identified with a scalar. By definition, a trace diagram's function is computed using signed graph coloring. For each edge coloring of the graph's edges by n labels, so that no two edges adjacent to the same vertex have the same label, one assigns a weight based on the labels at the vertices and the labels adjacent to the matrix labels. These weights become the coefficients of the diagram's function. In practice, a trace diagram's function is typically computed by decomposing the diagram into smaller pieces whose functions are known. The overall function can then be computed by re-composing the individual functions.

Examples

3-Vector diagrams Several vector identities have easy proofs using trace diagrams. This section covers 3-trace diagrams. In the translation of diagrams to functions, it can be shown that the positions of ciliations at the degree-3 vertices has no influence on the resulting function, so they may be omitted. It can be shown that the cross product and dot product of 3-dimensional vectors are represented by

In this picture, the inputs to the function are shown as vectors in yellow boxes at the bottom of the diagram. The cross product diagram has an output vector, represented by the free strand at the top of the diagram. The dot product diagram does not have an output vector; hence, its output is a scalar. As a first example, consider the scalar triple product identity

( u × v ) ⋅ w = u ⋅ ( v × w ) = ( w × u ) ⋅ v = det ( u v w ) . {\displaystyle (\mathbf {u} \times \mathbf {v} )\cdot \mathbf {w} =\mathbf {u} \cdot (\mathbf {v} \times \mathbf {w} )=(\mathbf {w} \times \mathbf {u} )\cdot \mathbf {v} =\det(\mathbf {u} \mathbf {v} \mathbf {w} ).}

To prove this diagrammatically, note that all of the following figures are different depictions of the same 3-trace diagram (as specified by the above definition):

Combining the above diagrams for the cross product and the dot product, one can read off the three leftmost diagrams as precisely the three leftmost scalar triple products in the above identity. It can also be shown that the rightmost diagram represents det[u v w]. The scalar triple product identity follows because each is a different representation of the same diagram's function. As a second example, one can show that

(where the equality indicates that the identity holds for the underlying multilinear functions). One can show that this kind of identity does not change by "bending" the diagram or attaching more diagrams, provided the changes are consistent across all diagrams in the identity. Thus, one can bend the top of the diagram down to the bottom, and attach vectors to each of the free edges, to obtain

which reads

… excerpt ends here. Continue reading the full article.

Illustrations

Trace diagram: A trace diagram representing the adjugate of a matrix.
A trace diagram representing the adjugate of a matrix.
Trace diagram illustration
Trace diagram illustration
Trace diagram illustration
Trace diagram illustration

Worked examples

Example 1 — a first encounter with Trace diagram

Start with the simplest possible case. Write down what Trace diagram claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Trace diagram before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Trace diagram ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Trace diagram

In research
Trace diagram appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Trace diagram in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Trace diagram is common in secondary-school and first-year university syllabi. It links to neighbouring topics Application-specific graphs, Diagram algebras, Diagrams, so understanding it makes those chapters shorter.
In everyday life
Look for Trace diagram outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Trace diagram” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Trace diagram in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Trace diagram means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Trace diagram out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Trace diagram in simple terms?

In mathematics, trace diagrams are a graphical means of performing computations in linear and multilinear algebra. They can be represented as (slightly modified) graphs in which some edges are labeled by matrices.

Why does Trace diagram matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Trace diagram?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Trace diagram.

Tags

  • Application-specific graphs
  • Diagram algebras
  • Diagrams
  • Linear algebra
  • Matrix theory
  • Multilinear algebra
  • Tensors

Keep exploring