A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Virial Theorem

Research Depth 175 in the knowledge graph I know this Set as goal
25topics build on this
1,032prerequisites beneath it
See this on the map →
Partition Function: Definition and PropertiesSecond Virial CoefficientVirial Expansion
theorem energy-relations interactions

Core Idea

The virial theorem relates the average kinetic energy ⟨K⟩ to the average potential energy ⟨V⟩ for power-law interactions V ∝ rn: 2⟨K⟩ = n⟨V⟩. For gravity (n=−1), this gives 2⟨K⟩ + ⟨V⟩ = 0, connecting gravitational binding to temperature. For the ideal gas (no interactions), it implies the equipartition theorem.

Explainer

The virial theorem is a powerful and general result connecting the time-averaged kinetic and potential energies of a system in stable equilibrium. Its breadth is remarkable: it applies equally to a planetary system, a gas of interacting molecules, a self-gravitating star, and a galaxy cluster. From your work with the partition function, you've seen how statistical averages encode thermodynamic quantities; the virial theorem provides an energy relation at a higher level of abstraction, connecting averages without requiring the full partition function or microstate enumeration.

The classical derivation starts from Newton's second law applied to all particles and forms the time average of the quantity G = Σᵢ rᵢ · pᵢ (the "virial"). In a bounded, stable system, the time average of dG/dt is zero. Working through the algebra yields 2⟨K⟩ = −Σᵢ ⟨rᵢ · Fᵢ⟩, where the right side is the total virial of the forces. For a power-law pair potential V(r) ∝ rn, the force scales as rn−1, and the virial evaluates to n⟨V⟩, giving the compact result 2⟨K⟩ = n⟨V⟩.

The gravitational case (n = −1) has profound astrophysical consequences. The theorem gives 2⟨K⟩ = −⟨V⟩, so the total energy E = ⟨K⟩ + ⟨V⟩ = −⟨K⟩. As a self-gravitating gas cloud collapses under its own gravity, it loses total energy (half radiated away), while the kinetic energy — and hence temperature — *increases*: stars heat up as they collapse. This "gravitational thermodynamics" is deeply counterintuitive but follows directly from the virial theorem. It also means that gravitationally bound systems have negative heat capacity: adding energy causes them to cool, while removing energy causes them to heat up.

In statistical mechanics, the virial theorem is the foundation of the virial expansion for non-ideal gases: P = nk_BT(1 + B₂(T)n + B₃(T)n² + …), where each virial coefficient B_k encodes k-body interaction contributions. For the ideal gas, all B_k = 0 and the virial theorem reduces to the statement that 2⟨K⟩ = 3Nk_BT — exactly the equipartition result. The second virial coefficient B₂ for a van der Waals gas captures the competition between the attractive well and the repulsive hard core of molecular interactions, connecting microscopic pair potentials to measurable deviations from ideal gas behavior.

Practice Questions 5 questions

Prerequisite Chain

Understanding ZeroThe Number ZeroCounting to FiveCounting to 10Counting to 20Counting a Set of Objects Up to 20Cardinality: The Last Number CountedMatching Numerals to QuantitiesSubitizing Small QuantitiesAddition Within 10Number Bonds to 10Addition Within 20Doubles and Near DoublesDoubles Facts Within 10Near Doubles Facts Within 20Mental Math Strategies for AdditionMental Math: Adding and Subtracting TensAddition Within 100Repeated Addition as MultiplicationMultiplication as Equal GroupsMultiplication: ArraysBasic Multiplication Facts (0s, 1s, 2s, 5s, 10s)Multiplication Facts Within 100Division as Equal SharingDivision as Grouping (Measurement Division)Division: Grouping (Repeated Subtraction) ModelDivision: Fair Sharing ModelDivision as Equal SharingDivision as GroupingBasic Division FactsDivision Facts Within 100Multiplication and Division Fact FamiliesRelationship Between Multiplication and DivisionDivision Facts as Inverse of MultiplicationRemainders and Quotients in DivisionDivision Word ProblemsMulti-Step Word ProblemsSolving Multi-Step Word ProblemsMultiplication Word ProblemsDivision Word ProblemsIntroduction to Long DivisionFactors and MultiplesPrime and Composite NumbersEquivalent FractionsRelating Fractions and DecimalsDecimal Place ValueIntegers and the Number LineComparing and Ordering IntegersAbsolute ValueAdding IntegersSubtracting IntegersMultiplying IntegersDividing IntegersUnit RatesProportionsPercent ConceptConverting Between Fractions, Decimals, and PercentsOperations with Rational NumbersTwo-Step EquationsSolving Multi-Step EquationsEquations with Variables on Both SidesAngle Pairs: Complementary, Supplementary, and VerticalParallel Lines and TransversalsCorresponding AnglesAlternate Interior AnglesTriangle Angle Sum TheoremExterior Angle TheoremTriangle Inequality TheoremSimilar Triangles: AA SimilaritySimilar Triangles: SSS and SAS SimilarityProportions in Similar TrianglesRight Triangle Trigonometry IntroductionSine, Cosine, and Tangent RatiosTrigonometric Ratios ReviewRadian MeasureConverting Between Degrees and RadiansThe Unit CircleGraphing Sine and CosineGraphing Tangent and Reciprocal Trigonometric FunctionsDerivatives of Trigonometric FunctionsAntiderivativesIndefinite IntegralsBasic Integration RulesRiemann SumsDefinite Integral DefinitionDouble Integrals: Definition and SetupIterated Integrals and Fubini's TheoremDouble Integrals over Rectangular RegionsDouble Integrals over General RegionsApplications of Double Integrals: Area, Mass, and MomentsTriple Integrals in Cartesian CoordinatesTriple Integrals in Cylindrical and Spherical CoordinatesChange of Variables and the Jacobian DeterminantApplications of Triple Integrals: Volume and MassVector Fields and Their RepresentationsLine Integrals of Vector FieldsWork and CirculationLine Integrals of Scalar and Vector FunctionsFundamental Theorem for Line IntegralsConservative Vector FieldsConservative Vector Fields and Potential FunctionsCurl and Divergence of Vector FieldsCurl and DivergenceDivergence TheoremElectric Flux and Divergence TheoremGauss's Law: Integral Form and MeaningSolving Problems with Gauss's LawConductors in Electrostatic EquilibriumCapacitance and CapacitorsDielectricsDielectric Constant and Relative PermittivityElectric Field Inside Dielectric MaterialsDielectric Materials and PolarizationDielectric Susceptibility and PermittivityEnergy Density in Electric FieldsElectric Current and Current DensityElectrical Resistance and ResistivityOhm's Law and Circuit ElementsElectromotive Force (EMF) and BatteriesKirchhoff's Circuit Laws: Voltage and CurrentDC Circuit Network Analysis MethodsTransient Response in RC CircuitsRC CircuitsLC and RLC CircuitsAC Circuits: FundamentalsImpedance and ReactanceAC Power and ResonanceElectromagnetic WavesPostulates of Special RelativityTime DilationLength ContractionLorentz TransformationRelativistic Velocity AdditionRelativistic Momentum and EnergyMass-Energy Equivalence and E=mc²Photons as Particles with Energy and MomentumPlanck-Einstein Relation: Energy and FrequencyPhotoelectric EffectThe Photon: Light as QuantaCompton ScatteringWave-Particle Dualityde Broglie WavelengthThe Schrödinger EquationState Vectors and WavefunctionsQuantum SuperpositionQuantum EntanglementBell Theorem and Bell InequalitiesPostulates of Quantum MechanicsObservables and Quantum OperatorsCommutators and Commutation RelationsQuantum Angular MomentumQuantum Mechanical Treatment of HydrogenSolving the Schrödinger Equation for Hydrogen AtomQuantum NumbersElectron ConfigurationPeriodic TrendsCovalent BondingElectronegativity and Bond PolarityIonic BondingLewis StructuresVSEPR Theory and Molecular GeometryMolecular Geometry and Electron Pair GeometryMolecular Polarity and Dipole MomentsIntermolecular ForcesStates of Matter and Phase Changes: Melting, Boiling, and SublimationGas Laws and the Ideal Gas EquationGas Stoichiometry and Volume-Volume CalculationsThermochemistry and EnthalpyHeat Capacity and CalorimetryEntropy and Molecular DisorderSpontaneity and ΔGEntropy and Gibbs Free EnergyChemical EquilibriumStatistical Mechanics: Ensembles and the Boltzmann DistributionPartition Function: Definition and PropertiesVirial Theorem

Longest path: 176 steps · 1032 total prerequisite topics

Prerequisites (1)

Leads To (2)