Inclusion-exclusion principle Created 2026-09-24 Updated 2026-10-13
For finite sets , the cardinality of their union isAdd the individual cardinalities, subtract pairwise intersection counts, add triple intersection counts, and continue alternating. This is useful whenever one object can satisfy several conditions: a search result can match several filters, or a permutation can have several forbidden fixed points.
Among the integers from 1 to 30, let contain the multiples of 2 and the multiples of 3. Then , , and , because their common multiples are the multiples of 6. The naive sum counts those five twice; the correct union size is . The regions contain ten in alone, five in both, five in alone, and ten in neither.
Subtracting overlap counts each selected integer once; a third divisibility condition requires adding the triple overlap back
. Details. Add a third set containing the multiples of 5. Its size is 6; the three pairwise intersections have sizes ; and the triple intersection contains only 30. The inclusion-exclusion principle gives integers divisible by at least one of 2, 3, and 5.
The alternating corrections have a local explanation. An object belonging to exactly of the sets is counted times, by the binomial theorem applied to . An object in none contributes zero. Thus overlapping descriptions are repaired without requiring the sets themselves to be disjoint. For probability, the same calculation applies to event probabilities in place of cardinalities, giving the inclusion-exclusion principle for probabilities.
Overlap structure of digit spalindromes Created 2026-09-24 Updated 2026-09-24
Alternating-permutation convolution Created 2026-09-24 Updated 2026-11-05
Let count alternating permutations on labels, with . For ,Count both up-down and down-up permutations of labels. Choose the labels left of the maximum in ways. On either side, the comparison next to the maximum fixes which alternating direction is required, giving choices. Conversely these choices reconstruct exactly one of the two kinds of alternating permutations. Replacing each label by interchanges the two kinds, so their combined count is .
For , the identity reads . The restriction matters: on one label, the two alternating conventions describe the same permutation, and substitution of would incorrectly give .
Binomial coefficient Created 2026-09-24 Updated 2026-10-13
For nonnegative integers and , the binomial coefficientcounts the -element subsets of an -element set. To obtain the formula, first choose an ordered list of different members in ways. Each subset appears in exactly orders, so divide by that factorial. The cases and each have one selection, the empty set and the whole set. For integer outside , the combinatorial convention is .
For , , the calculation is . The left-hand panel lists all ten subsets of . Marking an included member with one and an excluded member with zero gives a bijection with length-five binary strings containing exactly two ones. More generally, this makes selection, binary encoding, and coefficients in a binomial theorem three descriptions of the same count.
For a uniformly chosen two-person team, a specified person belongs to four of the ten teams, so the probability of their inclusion is . Uniform selection of a -element subset similarly gives inclusion probability for each member when , as the double counting identity shows.
Factorial Created 2026-09-24 Updated 2026-10-13
For a nonnegative integer , the factorial is the product of the positive integers from to , with the empty product equal to :Thus , , , and . The factorial counts the permutations of distinct objects: arranging gives exactly . The choice tree in permutation shows the three choices for the first position, two for the second, and one for the last.
The value has a counting explanation: the empty set has exactly one ordering, the empty list. Equivalently, it has exactly one bijection to itself, the empty function. There are no choices to make, and one completed outcome. The factorial therefore obeys the recurrence relationThe useful distinction is how many positions are filled. For integers , choosing and ordering distinct objects by sampling without replacement gives the falling factorial, while choosing an unordered -element subset gives the binomial coefficient:For five people, assigning captain and deputy gives outcomes; choosing a two-person team gives . Every team has exactly assignments of the two roles, explaining the division. When , both counts are one. The factorial is useful here because one count of full orderings yields both formulas by cancellation and by forgetting order. [ref]
https://openstax.org/books/college-algebra-2e/pages/9-5-counting-principles. OpenStax, College Algebra 2e, section 9.5: counting ordered selections and combinations
Distinctness matters. If the two copies of in are indistinguishable, the visible arrangements are just , numbering . Temporarily labelling them gives six permutations, but exchanging the two labels leaves each visible word unchanged, so every word was counted times.
Proof outline. For , choose the first object in ways, then order the remaining objects in ways. The rule of product gives the recurrence relation; repeated application gives the displayed product, starting from the one empty ordering. This explains why the factorial grows quickly: every additional distinct object introduces another multiplicative factor.
Polynomial method in combinatorics Created 2026-09-24 Updated 2026-10-13
The polynomial method in combinatorics encodes a discrete configuration by polynomials and obtains combinatorial bounds from their degree, zeros, coefficients, or linear independence.
Extremal set theory Created 2026-09-24 Updated 2026-11-05
In extremal set theory, a set family is constrained by its intersections, inclusions or traces, and one asks for the largest possible cardinality of . The choice of constraint is essential: without one, the whole Boolean lattice gives members.
For example, let and require an intersecting family. A set and its complement of a set cannot both belong, so pairing all subsets with their complements gives . All subsets containing a fixed point attain equality. Adding a uniform-size requirement leads to the Erdős-Ko-Rado theorem.
An antichain instead forbids containment between distinct members. Sperner's theorem gives the sharp central-binomial bound, attained by a full middle level. Coordinate shifts of a set family simplify extremizers while preserving size; the polynomial method in combinatorics turns other intersection restrictions into linear independence. These two methods explain why a problem about subsets can become either an order argument or a vector space dimension bound.
Lattice path Created 2026-09-24 Updated 2026-10-18
A lattice path is a sequence of points in an integer lattice whose consecutive differences belong to a prescribed finite set of steps.
For instance, a north-east lattice path uses only unit steps east or north in the integer lattice . Restricting the allowed steps makes the counting question precise: the endpoint fixes how many of each step must occur, but their order remains free. Pascal's rule counts these lattice paths by their last step; the same binomial coefficient counts selections of step positions.
Set partition Created 2026-09-24 Updated 2026-10-13
A set partition of a finite set is a set of nonempty subsets, called blocks of a set partition, withThus every set element of belongs to exactly one block of a set partition. This is the finite counting version of a partition of a set. The blocks of a set partition are unlabelled: their subscripts help describe them, but give them no roles or order. Stanley uses this definition in his classification of counting problems.[ref]
Enumerative Combinatorics, Volume 1 (second-edition draft) by Richard Stanley. section 1.9: set partitions and their blocks
All possibilities for three elements. The set has exactly five set partitions:For two blocks of a set partition, one must have size two and the other size one; the three choices of the lone element give the middle row. One block of a set partition forces the whole set, and three blocks of a set partition force three singleton sets. This proves the enumeration complete, with counts by number of blocks of a set partition. Their sum is the Bell number .
Exact enumeration of the five set partitions of : outlines show blocks of a set partition, whose positions and colours carry no labels
. Details. What information is kept? Exchanging the two blocks of a set partition in leaves the same set partition; writing the tuple instead makes an ordered list, different from . Exchanging elements within a block of a set partition also changes nothing. In contrast, is a different set partition, because the actual memberships differ. Both have the same integer partition of sizes. An integer partition, or its Ferrers diagram, forgets which distinct objects were grouped together.
For four named people, and therefore describe different ways of making two unnamed teams, although both have sizes . If every team must have exactly two people, only three set partitions qualify; if any nonempty team sizes are permitted, the Stirling number of the second kind counts them. Naming the teams changes the counting problem again.
A set partition is useful whenever membership matters but category names do not. Define when and belong to the same block of a set partition. This is an equivalence relation, and its equivalence classes recover the set partition. Conversely, an equivalence relation supplies its set partition of equivalence classes. The beautiful simplification is that one grouping can be described by whole subsets or by a rule comparing two elements. Additional distinctions are organized by refinement of a set partition.
The empty set has one set partition, the empty collection , with zero blocks of a set partition. This differs from , which is forbidden because its proposed block of a set partition is empty.
Directed acyclic graph Created 2026-09-24 Updated 2026-11-05
A directed acyclic graph is a directed graph with no directed cycle: following its directed edges can never return to the starting vertex. A directed edge can represent the requirement that task finish before task starts. A directed path then records a chain of prerequisites. The essential prerequisite for topological sorting is that these requirements contain no circular dependency. For finite directed graphs, this is equivalent to the existence of a topological order. [ref]
https://live.ocw.mit.edu/courses/6-006-introduction-to-algorithms-spring-2020/d9265b3b33d238ff914b0223ac8e7628_MIT6_006S20_r10.pdf. MIT, Introduction to Algorithms, Recitation 10, p. 3: directed acyclic graphs and topological sorts
Consider an invented publishing workflow with five tasks: drafts the text, draws a figure, reviews the text, lays out the text and figure, and publishes the result. Its directed edges are , , , , and . Reviewing needs the draft; layout needs both the draft and figure; publication needs both review and layout. The drawing below encodes only these prerequisites, with no measured durations or resource constraints.
Five toy publishing tasks and all five valid topological orders
. Details. The directed acyclic graph leaves room for choice: and can occur in either order, and after both are complete, and can occur in either order. Task may even precede , since the review does not need the figure. A topological order turns these local prerequisites into a complete executable list while retaining this freedom. It supplies a feasible sequential plan; task durations, available workers, and earliest finishing times require additional information.
Additive combinatorics Created 2026-09-24 Updated 2026-10-13
Additive combinatorics studies how the cardinalities and sumset representation functions of sumsets reveal structure in finite sets contained in abelian groups. Write the group operation as addition: the ambient abelian group may be the integers , a finite cyclic group, or another abelian group. The same definitions apply, but the ambient group changes which bounds are possible.
The basic experiment is to add every ordered pair of members of a finite set. The sumset records the distinct answers; the sumset representation function records how often each answer occurs; the additive energy counts coincidences between those answers. An arithmetic progression produces many repeated sums, so its sumset grows slowly and its additive energy is relatively large. The doubling constant measures that growth relative to the original cardinality.
The examples below compare the arithmetic progression with the more spread-out integer set . Their four members give sixteen ordered pairs in each case, but different numbers of distinct sums. This small comparison illustrates the definitions; it does not establish a claim about arbitrarily large sets. For a systematic introduction, see Tao and Vu's author page for Additive Combinatorics, with free sample chapters on sum set estimates and additive geometry.
Normal coordinate Created 2026-09-24 Updated 2026-11-05
A normal coordinate measures motion along a particular normal mode of a linearized mechanical system. For small displacements about a stable equilibrium, write the kinetic energy and potential energy as quadratic forms with mass matrix and stiffness matrix . Mode vectors satisfy the generalized eigenvalue problemFor a conservative system with positive definite and symmetric , mass-orthonormal mode vectors transform the coupled equations of motion into independent equations .
Two equal coupled oscillators give a simple example: their sum coordinate describes motion together, and their difference coordinate describes opposite motion. Exciting only one of these patterns leaves the other coordinate zero in the linear approximation. This is useful for interpreting measured resonances and molecular vibrations; large displacements or nonlinear interactions can couple the modes again.
Uniform gravitational field Created 2026-09-24 Updated 2026-09-24
Center of mass Created 2026-09-24 Updated 2026-11-05
The center of mass is the mass-weighted mean position of a system. For particles of fixed masses at position vectors ,A continuous mass distribution replaces the sums by . Two equal masses have their center of mass halfway between them; if one is three times heavier, the center of mass lies one quarter of the separation from the heavier body.
Balancing a rigid bar on a narrow support gives a practical way to locate its center of mass in a uniform gravitational field. For a freely moving closed Newtonian system, the total external force governs the acceleration of its center of mass, allowing its overall translation to be studied separately from internal motion. A center of mass can lie outside the material, as it does at the centre of a uniform ring.
Lagrangian mechanics Created 2026-09-24 Updated 2026-11-05
Lagrangian mechanics determines motion from a function and the principle of stationary action. For fixed-endpoint path variations, the action gives the Euler-Lagrange equationsFor ordinary conservative mechanical systems in suitable coordinates, , but velocity-dependent interactions can require additional terms.
A simple pendulum illustrates why generalized coordinates help. Its angle automatically enforces the fixed-length constraint, so varying the angular path gives the tangential dynamics without first solving for the string tension. The action need only be stationary, not necessarily a minimum. Coordinates absent from give conserved canonical momenta, and a regular velocity dependence allows a transition to Hamiltonian mechanics. These features make the method useful for linked mechanisms and systems with geometric constraints.
Rigid body dynamics Created 2026-09-24 Updated 2026-10-18
Celestial mechanics Created 2026-09-24 Updated 2026-11-05
Celestial mechanics predicts the motion of planets, Moons, stars and spacecraft from gravity and other relevant forces. Its simplest useful approximation is the two-body problem, whose Kepler orbits explain the connection between orbital shape, energy and angular momentum.
Johannes Kepler's orbital description and Isaac Newton's inverse-square law meet in this model. Additional bodies introduce orbital perturbations; general relativity changes the prediction when relativistic corrections matter. Comparing a predicted trajectory with observations tests both the inferred masses and the adopted dynamical model.[ref]
Introduction to Celestial Mechanics by Richard Fitzpatrick. Author's overview and online sections on Keplerian orbits, perturbations and perihelion precession
Particle dynamics Created 2026-09-24 Updated 2026-11-05
Particle dynamics predicts the motion of bodies whose internal size and rotation can be neglected for the question being studied. A point particle has a position and mass; applied forces determine its acceleration through Newton's second law. For fixed mass in an inertial frame, the basic problem iswith an initial position and velocity.
A ball's projectile motion can be approximated this way when its size is small compared with its path and spin has negligible influence. Air drag introduces a velocity-dependent force; contact with a surface may introduce mechanical constraints. The same method extends to interacting particles, where momentum conservation and conservation of energy can simplify the coupled equations of motion.
Poincaré recurrence theorem Created 2026-09-24 Updated 2026-11-05
In a finite measure-preserving system, for each measurable set , almost every point of returns to infinitely often. The exceptional null set may depend on . To prove the claim, let consist of points that never return at a positive time. The sets , , are pairwise disjoint: a point in two of them would give a future return from one point of to another point of . They have equal measure by invariance, so finiteness forces .
A point of with only finitely many future visits has a last visit, lying in . Such points lie in the countable union , which is null. This completes the infinite-return assertion without requiring invertibility. The theorem supplies no universal return-time bound. On the infinite counting-measure system on , a singleton never returns, showing why finite total measure matters.
Hamiltonian mechanics Created 2026-09-24 Updated 2026-11-05
Hamiltonian mechanics describes motion using coordinates and their canonical momenta . A Hamiltonian generates evolution through Hamilton's equations:The pair is a point in phase space; these first-order equations specify its velocity there.
For a spring oscillator, gives and , recovering Newton's second law. The formulation treats position and momentum together and makes canonical transformations, Poisson brackets and conservation laws especially useful. An autonomous Hamiltonian is conserved along its motion. The underlying symplectic form also restricts how phase-space regions evolve, leading to Liouville's theorem.
There are unlisted articles, also show them or only show them.



