343 templates · page 1 of 4
Mathematics diagram templates
Graphs, automata, Venn, set theory, lattices, function plots.
Undirected Graph
Simple math graph G=(V,E).
Graphviz (DOT)Finite Automaton
DFA recognising binary strings divisible by 3.
Graphviz (DOT)Venn Diagram (SVG)
Three-set Venn diagram with regions labelled.
Raw SVGFunction Plot
y = sin(x) and y = cos(x) over [-2π, 2π].
Vega-LiteEquation Set
A block of display-mode equations (Bayes, Schrödinger, regression).
LaTeX (KaTeX)Matrix & Linear Algebra
Matrices, eigen-decomposition, SVD.
LaTeX (KaTeX)Statistics Formulae
Common estimators and test statistics.
LaTeX (KaTeX)Thermo / Stat Mech
Partition function, free energy, Boltzmann distribution.
LaTeX (KaTeX)PlantUML — EBNF Grammar
Formal grammar rendered as a railroad diagram.
PlantUMLPlantUML — Regex Railroad
Visualise a regular expression as a railroad diagram.
PlantUMLVenn Diagram (Mermaid)
Mermaid-native Venn diagram. (v11.12+)
MermaidPlantUML — AsciiMath
Mathematical formula via AsciiMath inside PlantUML.
PlantUMLPlantUML — LaTeX Math
JLaTeXMath-rendered formula inside PlantUML.
PlantUMLGraphviz — Force-directed (neato)
neato layout — spring model, good for undirected graphs.
Graphviz (DOT)Graphviz — Circular (circo)
circo layout — circular embedding, good for state machines or ring topologies.
Graphviz (DOT)Graphviz — Radial Tree (twopi)
twopi layout — radial / concentric layers around a root.
Graphviz (DOT)Physics Formulae
Quantum mechanics, relativity, electromagnetism.
LaTeX (KaTeX)Set Theory & Logic
Sets, quantifiers, common logical and topological statements.
LaTeX (KaTeX)Graphviz — Markov Chain
Discrete-time Markov chain with labelled transition probabilities.
Graphviz (DOT)Graphviz — Bayesian Network
Directed acyclic graph encoding conditional dependencies (Bayes net / belief net).
Graphviz (DOT)Calculus (Derivatives, Integrals, Limits)
Fundamental theorem, chain rule, integration by parts, common limits.
LaTeX (KaTeX)Linear Algebra (full)
Matrix operations, eigen-decomposition, SVD, projections.
LaTeX (KaTeX)Commutative Diagram
A standard commutative square showing morphism composition.
Graphviz (DOT)Hasse Diagram — Divisor Lattice
Divisors of 12 as a lattice ordered by divisibility.
Graphviz (DOT)Supply & Demand
Classic supply / demand curves with equilibrium point.
Vega-LiteLinguistic Parse Tree
CFG parse tree for an English sentence.
Graphviz (DOT)Game Theory — Decision Tree
Two-player extensive-form game with payoffs at terminal nodes.
Graphviz (DOT)Scaled Dot-Product Attention
Q, K, V flow through the attention computation.
MermaidBell State Preparation Circuit
Quantum circuit producing the maximally-entangled |Φ⁺⟩ state.
Graphviz (DOT)Bloch Sphere
Single-qubit state on the Bloch sphere with θ and φ.
Raw SVGShor's Algorithm — High-Level
Reduce factoring to period-finding, then use a quantum subroutine.
MermaidHohmann Transfer Orbit
Two-burn transfer between coplanar circular orbits.
Raw SVGKepler Orbital Elements
Six classical orbital elements illustrated on an ellipse.
Raw SVGDependency Parse
Universal-Dependency parse of an English sentence.
Graphviz (DOT)IPA Vowel Chart (subset)
F1/F2 formant scatter for a subset of cardinal vowels.
Vega-LiteAircraft V-Speeds
Key reference airspeeds on a takeoff / climb timeline.
MermaidAS-AD with Supply Shock
Aggregate supply / aggregate demand with a leftward supply shift.
Vega-LiteCircle of Fifths
Major keys + their relative minors arranged in fifths.
Raw SVGCommon Chord Progressions
Roman-numeral chord progressions and which keys they fit.
Graphviz (DOT)Small-World Network (Watts-Strogatz)
Ring lattice with a few rewired long-range edges — short paths, high clustering.
Cytoscape (Network)Scale-Free Network (Barabási-Albert)
Power-law-like graph with a few high-degree hubs and many low-degree nodes.
Cytoscape (Network)Category Theory — Pullback Square
Pullback diagram with universal property dashed arrow.
Graphviz (DOT)Abstract Syntax Tree
AST for the expression `if (x > 0) y = x + 1; else y = 0;`
Graphviz (DOT)Probability Distributions
PDF / PMF of common distributions side-by-side.
LaTeX (KaTeX)ML Loss Functions
MSE, cross-entropy, hinge, KL divergence, contrastive — formatted for slides.
LaTeX (KaTeX)M/M/c Queueing Network
Multi-server queue with arrivals, service, abandonment and overflow.
Graphviz (DOT)Linear Program — Feasible Region
Two-variable LP feasible region with the optimal vertex highlighted.
Vega-LiteMax-Flow Network
Source-sink network with edge capacities for max-flow / min-cut.
Graphviz (DOT)Root Locus Sketch
Closed-loop pole trajectory as gain K varies — illustrative dataset.
Vega-LiteTrefoil Knot
Trefoil knot — the simplest non-trivial knot.
Raw SVGKoch Snowflake (recursive)
First three iterations of the Koch snowflake construction.
Raw SVGMöbius Strip
Schematic Möbius strip with single-side, single-edge annotations.
Raw SVGPhonological Derivation
Rule-ordered derivation from underlying form to surface phonetic form.
MermaidX-Bar Phrase Structure
X-bar template applied to the noun phrase 'the very tall student of physics'.
Graphviz (DOT)IPA Consonant Chart (subset)
Place × manner grid for a subset of pulmonic consonants.
MermaidPrisoner's Dilemma Payoff Matrix
Classic 2x2 payoff matrix with dominant defection strategy.
MermaidExternalities — Negative Production
Private vs social cost showing deadweight loss from negative externality.
Vega-LiteComplexity Class Hierarchy
P ⊆ NP ⊆ PSPACE ⊆ EXPTIME, with NP-hard / NP-complete shown.
Graphviz (DOT)Chomsky Language Hierarchy
Recursively enumerable ⊃ context-sensitive ⊃ context-free ⊃ regular.
Graphviz (DOT)Type System Lattice (TypeScript-like)
Top (any/unknown) → primitives → bottom (never) lattice.
Graphviz (DOT)Binary tree
Small node-and-edge tree, positioned with named coordinates.
PikchrVenn — primes vs. composites
Set-theoretic illustration of natural-number classes.
Venn / EulerLogic — truth table (implication)
Truth table for A implies B.
Digital logic (gates / K-map / truth table)Function — Damped Oscillation with its Envelope
A decaying sinusoid drawn against its own envelope, sampled adaptively so the peaks are real peaks rather than whatever a uniform grid happened to land on. The clearest demonstration of why the sampler bisects where the curve bends: at a fixed 100 points this figure shows a different frequency from the one in the formula.
PlotFunction Family — Normal Densities at Three Widths
Three normal densities sharing a mean and differing in width, written as formulas rather than as sampled points. The engine carries erf and gamma for exactly this reason: a density written out of exp and log by hand is where the arithmetic error usually enters, and a figure of a wrong density is indistinguishable from a figure of a right one.
PlotFinite Automaton (DFA)
A DFA accepting binary strings that end in 01.
Graphviz (DOT)Traffic Light State Machine
A finite-state machine for a traffic signal.
Graphviz (DOT)Math — Quadratics & Polynomials
Quadratic formula, discriminant, Vieta's formulas and difference of squares.
LaTeX (KaTeX)Math — Binomial Theorem & Sequences
Binomial expansion, combinations, arithmetic and geometric series.
LaTeX (KaTeX)Math — Trigonometric Identities
Pythagorean identity, angle-sum and double-angle formulas.
LaTeX (KaTeX)Math — Differentiation Rules
Power, product, quotient and chain rules.
LaTeX (KaTeX)Math — Common Integrals
Standard antiderivatives every calculus course relies on.
LaTeX (KaTeX)Math — Fundamental Theorem & Techniques
FTC, integration by parts and by substitution.
LaTeX (KaTeX)Math — Limits & L'Hôpital
Standard limits, the definition of e and L'Hôpital's rule.
LaTeX (KaTeX)Math — Taylor & Maclaurin Series
General Taylor series plus exponential, sine and geometric series.
LaTeX (KaTeX)Math — Complex Numbers
Imaginary unit, Euler's formula and polar form.
LaTeX (KaTeX)Math — Vectors
Dot product, cross product, magnitude and unit vector.
LaTeX (KaTeX)Math — Matrices & Determinants
2×2 determinant, transpose of a product, inverse and identity.
LaTeX (KaTeX)Math — Eigenvalues & Diagonalization
Eigen-equation, characteristic polynomial, diagonalization and trace.
LaTeX (KaTeX)Math — Probability
Addition rule, conditional probability, Bayes' theorem and expectation.
LaTeX (KaTeX)Math — Probability Distributions
Binomial, Poisson and normal distributions plus variance identity.
LaTeX (KaTeX)Math — Logarithms & Exponentials
Product rule, change of base, inverse identity and exponential form.
LaTeX (KaTeX)Math — Geometry & Mensuration
Circle, sphere, cone and the Pythagorean theorem.
LaTeX (KaTeX)Math — Set Operations (A, B, C)
A teaching diagram of unions and intersections across three sets.
Venn / EulerMath — The Real Number System
Naturals inside integers inside rationals, illustrated as overlaps.
Venn / EulerMath — Conic Sections
Standard equations of circle, ellipse, parabola and hyperbola.
LaTeX (KaTeX)Math — Hyperbolic Functions
Definitions, the fundamental identity and a derivative.
LaTeX (KaTeX)Math — De Moivre & Roots of Unity
De Moivre's theorem and the n-th roots of a complex number.
LaTeX (KaTeX)Math — Least-Squares Regression
Slope, correlation coefficient and the coefficient of determination.
LaTeX (KaTeX)Math — Numerical Methods
Trapezoidal & Simpson integration, Newton–Raphson, central difference.
LaTeX (KaTeX)Math — Set Algebra & De Morgan
De Morgan's laws, distributivity and inclusion–exclusion.
LaTeX (KaTeX)Math — Partial Fractions
Decomposition templates for integration.
LaTeX (KaTeX)Math — Lines & Planes (3D)
Vector line, plane equation, point–plane distance and angle.
LaTeX (KaTeX)Math — Means & Inequalities
AM–GM, triangle and Cauchy–Schwarz inequalities.
LaTeX (KaTeX)Math — Number Theory
Congruence, gcd–lcm, Fermat's little theorem and Euler's totient.
LaTeX (KaTeX)Math — Number Sets
The nested hierarchy of number systems.
Graphviz (DOT)Math — Classifying Functions
A taxonomy of the elementary functions.
Graphviz (DOT)Math — Polya's Problem Solving
The four-step problem-solving loop.
Graphviz (DOT)Math — Classifying Quadrilaterals
How squares, rectangles and rhombi relate as special parallelograms.
Venn / EulerMath — Derivatives of Trig Functions
Standard trigonometric and inverse-trig derivatives.
LaTeX (KaTeX)