Dot product Created 2026-09-28 Updated 2026-10-14
A dot product measures how much two Euclidean vectors point along each other. This article uses real Euclidean vectors in , with the usual Cartesian basis: multiply matching coordinates and add,The result is a scalar, while is the Euclidean norm. This real convention has no complex conjugation; for vectors over the complex numbers, use the convention specified in inner product.
For two nonzero Euclidean vectors, the same dot product records their angle through the cosine:Here is an inverse trigonometric function. The Cauchy-Schwarz inequality guarantees that the normalized ratio lies in . The zero vector has dot product zero with every vector, but its angle is undefined: the ratio would divide by zero. To outline the geometric identity, expand and compare with the law of cosines.[ref]
Take and . Their Euclidean norms are and , andThe unit vector selects the horizontal direction. The scalar projection says how far reaches along that direction; its vector projection is . Thus splits into an aligned part and an orthogonal projection residual.
The vector projection of onto the horizontal line is ; the orthogonal projection residual is and the angle is
. Details. For , the dot product proves orthogonality; both Euclidean norms are . For , : the scalar projection onto is , because reaches against that chosen direction. Its angle with is .
Keeping fixed and choosing of Euclidean norm gives . At angles , the dot products are . Positive values mean partial alignment, zero means orthogonality, and negative values mean a component against the other direction.
With Euclidean norms and , the dot product follows ; equal-length arrows show positive, zero, and negative alignment with
. Details. Dot-product gradient identity Created 2026-10-07 Updated 2026-10-14
For continuously differentiable vector fields, the gradient of their dot product expands as displayed. The contraction of two Levi-Civita symbols gives ; adding the directional derivative cancels the second term. Interchanging the fields and using the product rule proves the identity. It does not require either field to be irrotational.
Double pendulum Lagrangian Created 2026-09-24 Updated 2026-10-18
Choose Cartesian coordinates with origin at the upper pivot, to the right and upward. The two position vectors areThese expressions satisfy the rod holonomic constraints and automatically. This is the practical advantage of using the two angles as coordinates: the rod tensions need not be unknowns in the motion calculation.[ref]
Classical Dynamics by David Tong. Classical Dynamics, chapter 2, §2.3, printed pp. 17–19: elimination of ideal constraint forces using coordinates adapted to holonomic constraints
Differentiate these position vectors to obtain the velocities. The dot product between their two rod contributions uses , givingAdding the two kinetic energies and measuring gravitational potential energy from the downward equilibrium givesThe coefficient has a geometric meaning: the upper rod raises both masses, and its motion contributes to both kinetic energies. The coupling in is present because the lower mass has a moving pivot. The zero chosen for changes by a constant and leaves the Euler-Lagrange equations unchanged.[ref]
Classical Dynamics by David Tong. Classical Dynamics, chapter 2, §2.5.2, printed p. 28, equations (2.68)–(2.72): general point-mass double pendulum; the derivation here specializes to equal masses and lengths and uses upward
The principle of stationary action applies to . Its fixed-endpoint first variation, after integration by parts, isIndependent allowed variations therefore give one Euler-Lagrange equation for each angle. Stationary action alone does not assert a minimum.[ref]
Dual basis Created 2026-09-24 Updated 2026-10-14
For a basis of a finite-dimensional vector space , its dual basis consists of linear functionals satisfyingThe Kronecker delta means that each rule gives one on its own basis vector and zero on the others. These rules extract coordinates:Applying to a linear combination removes every term except the th. Consequently the dual basis is a basis of the dual space, and every linear functional has expansion . [ref]
Linear Algebra Done Right by Sheldon Axler (4th edition). Axler, Linear Algebra Done Right, fourth edition, §3F, definitions and results 3.112–3.116
.Coordinate extraction works for a nonorthogonal basis too. With and , the dual basis isThe checks , , , and fix the two rules. For they give coordinates , so . The usual dot products with instead give and do not extract these coordinates: simple projection formulas depend on an orthonormal basis.
The same idea explains polynomial interpolation. On polynomials of polynomial degree at most , evaluation at distinct interpolation nodes gives the dual basis to the Lagrange cardinal polynomials, because . Samples are coordinates in this basis, so the reconstruction is a dual-basis expansion. Differentiation weights from nodal evaluations and factorial monomial basis for polynomial differentiation apply the same principle to different measurements.
For and , the two evaluation forms are and , with and . Their dot product is , since every appearing exponent is between one and and the sums of those powers of vanish. Comparing dimensions proves equality with the dual code. In particular, the dual of the unweighted evaluation code has multipliers ; it need not be an unweighted evaluation code on the same ordered points.
Electric dipole Created 2026-09-24 Updated 2026-10-14
A finite electric dipole consists of equal and opposite electric charges separated by a nonzero displacement. It has charge neutrality but a nonzero electric dipole moment . An ideal point electric dipole is the mathematical limit with fixed, so must increase as . Shrinking the separation while holding fixed instead makes the electric dipole moment vanish. The ideal electric dipole describes an exterior electric field; it does not reproduce the two near-charge singularities or the internal structure of a molecule. [ref]
https://farside.ph.utexas.edu/teaching/jk1/lectures/node20.html. Richard Fitzpatrick, Electric Dipoles: the fixed-moment point limit
.Place the pair's midpoint at the origin and write , where is vacuum permittivity. By superposition principle and Coulomb's law, its exact electric potential away from the two point charges isFor , retain the first nonzero term of a Taylor series. The electric potential and its negative gradient becomeHere and the products in parentheses are dot products. These are exact exterior formulas for the ideal electric dipole and distant approximations for a finite pair. The electric field on the outer axis points along with magnitude ; on the perpendicular bisector it points opposite with magnitude . This directional structure is what a scalar total electric charge misses. [ref]
https://www.feynmanlectures.caltech.edu/II_06.html#Ch6-S2. Feynman, Leighton and Sands, II.6.2: exact pair potential and dipole expansion
.In a prescribed uniform external electric field , a rigid pair has opposite forces . Its net force is zero, but summing their moments about the midpoint gives the torqueThe cross product makes the torque perpendicular to both the electric dipole moment and the external electric field. If is the angle from to in their plane, the signed turning torque is . It tends to reduce a small positive . [ref]
https://openstax.org/books/university-physics-volume-2/pages/5-7-electric-dipoles. Ling, Moebs and Sanny, University Physics 2, 5.7: forces and torque on a dipole
.The external interaction potential energy, with zero chosen at , isParallel alignment minimizes this potential energy; antiparallel alignment maximizes it even though the torque is zero in both positions. This omits the pair's constant internal binding potential energy and assumes a fixed permanent electric dipole moment. [ref].
A nonuniform external electric field can exert a net force on a neutral electric dipole. Before taking the small-pair approximation, the exact external force is , where is the midpoint. A first-order Taylor series gives, for a fixed electric dipole moment and an external electric field varying slowly across ,in electrostatics. The last equality uses the vanishing curl of the external electric field, with held fixed while differentiating. Thus uniform external electric fields turn a misaligned electric dipole, whereas gradients can also move its midpoint. For example, the local source-free electric field gives , so reversing the electric dipole moment reverses the net force. This stipulated local model has zero divergence and zero curl.
A motivating experiment is Filsinger and colleagues' study of electrostatic deflection of polar molecules. Benzonitrile () in helium expanded from a pulsed valve into vacuum; two 1-mm skimmers narrowed the beam before a 15-cm deflector. A grounded trough and a high-voltage rod produced a vertical electric field gradient. Scanning a focused laser vertically downstream and recording benzonitrile ions from photoionization measured the beam's relative density. With voltage off, the profile spanned about 2 mm; applying voltage shifted and broadened it upwards. At 10 kV, many molecules lay outside the original profile. [ref]
https://pure.mpg.de/pubman/item/item_736019_2/component/file_736018/433451%28filsinger%29.pdf. Filsinger et al., Quantum state selection, alignment, and orientation of large molecules using static electric and laser fields, sections II and III A, figure 3
.Interpretation uses a quantum state's Stark effect energy : gives . States whose energy falls with increasing electric field seek stronger fields. The voltage-off profile controls the mechanical aperture. Inferring state populations needs calculated trajectories, speed distributions and a rotational temperature model; profile displacement alone does not measure a permanent electric dipole moment uniquely. This is an electric Stark effect experiment, with photoionization occurring after deflection. [ref]
https://pure.mpg.de/pubman/item/item_736019_2/component/file_736018/433451%28filsinger%29.pdf. Filsinger et al., section III A: Stark slopes, trajectory modelling and state selection
.For the symmetric finite pair, the first omitted electric multipole expansion term after the electric dipole is third order, so typical relative errors scale as . This stronger error estimate need not hold for an arbitrary neutral molecule with a nonzero electric quadrupole moment. A concrete check for a pair on the axis compares the exact and ideal electric fields at on the positive axis and at on the perpendicular bisector:Both perpendicular-bisector components are negative. At , the ratios are approximately and : errors of and relative to the ideal electric field. The condition concerns observing the pair's own electric field; the separate condition for its external force approximation concerns variation of the applied electric field across the pair.
Electric flux 2026-10-14
Electric flux measures how much electric field crosses a chosen oriented surface, with a sign distinguishing the two crossing directions. A strong electric field running along a surface contributes nothing to its electric flux: only the normal component counts. This lets Gauss's law turn a potentially complicated electric field into one number recording the net enclosed electric charge.
For a surface with chosen unit normal , the electric flux is the surface integralHere is positive surface area, while is the vector area element. The dot product makes electric flux a signed scalar, rather than a vector like the electric field. Its SI unit is : electric field measured using the newton per coulomb, multiplied by surface area in square metres. Reversing the orientation of a surface replaces by and reverses the electric flux. Calling it electric flux does not imply that electric charge is moving through the surface. [ref]
https://www.feynmanlectures.caltech.edu/II_03.html#Ch3-S2. Feynman lectures II.3, §3–2: flux of a vector field
.For an open patch in a plane, with surface area and a constant electric field, the unit normal is constant and the surface integral simplifies toThe angle is between the electric field and the chosen unit normal, not between the electric field and the plane. The cosine describes the signed projected surface area seen by the electric field. Thus electric flux is positive for , zero at , and negative for . [ref]
https://openstax.org/books/university-physics-volume-2/pages/6-1-electric-flux. Ling, Sanny and Moebs, University Physics II, §6.1: electric flux
.For example, take and , so . Three choices of angle giveKeeping the patch fixed and reversing its unit normal gives and changes to . The electric field and physical patch have not changed. If the electric field is instead tangent to the patch, its dot product with the unit normal vanishes: electric flux is zero even though .
Three open patches in a plane in a constant electric field: the angle to the chosen unit normal gives electric fluxes of 2, 1 and minus 1 newton square metres per coulomb
. Details. For a closed surface enclosing a volume , choose the outward unit normal. Gauss's law givesHere is the vacuum permittivity, and is the signed total electric charge inside. The electric field in the surface integral includes all sources, including external electric charges. Assume no ideal point charge lies on the integration surface. Zero enclosed electric charge implies zero total electric flux; it does not imply zero electric field everywhere on the closed surface or inside it. Positive and negative contributions to the surface integral can cancel. [ref]
https://openstax.org/books/university-physics-volume-2/pages/6-2-explaining-gausss-law. Ling, Sanny and Moebs, University Physics II, §6.2: outward flux and enclosed charge
.To see the cancellation with sources inside, place point charges at and at , where , , and both lie inside the sphere of radius centered at the origin. This separated pair has the electric dipole geometry. Its enclosed electric charge is , so its total outward electric flux is zero. At the point on the sphere, Coulomb's law and the superposition principle give the individual electric fieldsThe components cancel and the positive components add:For the stipulated approximation and , this is about along positive . At , the outward unit normal is , so this nonzero electric field is tangent to the sphere. At other points of the sphere, its normal component can be positive or negative. The source-field formula applies away from the two point charges, where the electric field has zero divergence; it is singular at the sources. [ref]
https://www.feynmanlectures.caltech.edu/II_04.html#Ch4-S2. Feynman lectures II.4, §§4–1 and 4–2: electrostatic sources and superposition
.Cross-section of the three-dimensional electric field of two opposite point charges inside a unit-radius sphere: zero total electric flux coexists with a nonzero tangential electric field at the top
. Details. The diagram shows streamlines of the three-dimensional electric field in the section . The circle is a cross-section of the sphere, not the integration surface: Gauss's law uses the entire three-dimensional surface integral. A two-dimensional line integral of outward field around that circle would be a different quantity, with units rather than the electric flux units .
Elsässer energy invariant 2026-10-06
For smooth ideal magnetohydrodynamics of constant mass density, define . Taking the dot product of the Elsässer variable equation with givesTherefore each integral is constant when its outward boundary flux vanishes, for example when both velocity and magnetic field are tangent to the fixed boundary, or for periodic boundary conditions. The kinetic energy plus magnetic energy is , while the cross-helicity is .
Euclidean geometry Created 2026-09-24 Updated 2026-10-13
Euclidean geometry describes flat Euclidean space using lengths, angles, and rigid motions. A coordinate realization uses points , Euclidean distanceand angles determined by the dot product. The coordinate axes are a convenience: translations and rotations change coordinates while preserving these measurements. This makes Euclidean geometry useful for comparing figures and converting measurements along different directions into a single distance.
In the Euclidean plane, through a point outside a line there is exactly one parallel line. This is a standard equivalent formulation of the parallel postulate. Euclid's fifth postulate in the Elements instead describes when two lines meet using the interior angles made by a crossing line.[ref] The assumption has consequences we often take for granted: a triangle's interior angles sum to , and similar triangles can differ in size while keeping their angles. Comparing with spherical geometry reveals that these are properties of a particular geometry.
As a computed example, the diagonal from to in a rectangle has length . The Pythagorean theorem explains why perpendicular contributions add as squares. If the directions cease to meet at a right angle, the law of cosines supplies the missing angle-dependent term. The beauty is that a single distance formula unites geometric constructions, coordinate calculations, and orthogonality in linear algebra.
Make the assumptions visible: in a Cartesian coordinate system with orthogonal axes and the same length unit on each axis, take , and . The vectors and have dot product zero, establishing a right angle at before using the Pythagorean theorem. A sketch that merely looks like a right triangle supplies no such guarantee. Likewise, an image stretched horizontally and vertically by different amounts can distort both lengths and angles; a displayed shape and the assumptions defining it must be kept separate.
For a less origin-dependent measurement, take and . Their displacement vector is , so their Euclidean distance is again . Its Euclidean norm records the direct separation, whereas travelling first horizontally and then vertically covers length . This connects measuring a diagonal to locating two positions from a Cartesian coordinate system. A translation changes where the positions are recorded without changing their separation; a rotation changes the component values without changing the Euclidean norm.
Euclidean vector Created 2026-10-03 Updated 2026-10-14
A Euclidean vector is a vector in a finite-dimensional real inner product space. Choosing an orthonormal basis identifies it with its real vector components in . A geometric arrow represents a Euclidean vector by a length and a direction; translating the arrow without changing either represents the same Euclidean vector. The zero vector has length zero and no distinguished direction.[ref]
2.1 Scalars and Vectors. University Physics Volume 1 by William Moebs and others; §2.1, Figures 2.2–2.5: vector arrows, equal vectors and displacement
For points and in a Cartesian coordinate system, the displacement is . The arrow from to represents the same Euclidean vector, even though its endpoints differ. An endpoint is a position; their difference is a vector. In an orthonormal basis ,The Euclidean norm comes from the inner product: . The sum of squared vector components is valid in an orthonormal basis; an arbitrary basis requires the appropriate Gram matrix. This distinction lets the geometric vector stay the same while its coordinate vector changes.[ref]
2.2 Coordinate Systems and Components of a Vector. University Physics Volume 1 by William Moebs and others; §2.2, Cartesian coordinates: equations (2.10)–(2.13) and Figure 2.16, unit basis vectors and scalar components
Vector addition is componentwise. With and ,Geometrically, translate the second arrow so its tail starts at the first arrow's head. The vector sum joins the starting point to the final endpoint. Reversing the order gives the other route around the same parallelogram, so vector addition is commutative. This is the useful bookkeeping behind adding successive displacements, velocities, or forces: direction information survives the calculation. For a force, the Euclidean vector alone does not specify its point of application, which also affects the torque.[ref]
2.1 Scalars and Vectors. University Physics Volume 1 by William Moebs and others; §2.1, Algebra of Vectors in Two Dimensions: Figure 2.12 and the head-to-tail construction
Two orders of vector addition reach the same endpoint
. The original Euclidean vectors and form a parallelogram. Either head-to-tail route gives their vector sum ; dashed copies are translated arrows, not additional terms. Details.The magnitude of a vector sum is generally different from the sum of the magnitudes. Here , whereas . The triangle inequality explains why the direct displacement cannot exceed the length of this two-segment route. A return displacement makes the net vector sum zero, although the lengths of the three travelled segments sum to a positive number.
The dot product exposes direction quantitatively: for nonzero Euclidean vectors, . For the displayed pair, the dot product is , so and the angle is . For orthogonal vectors, that dot product is zero. Dividing by magnitudes separates direction from size, which is the purpose of vector normalization.
Eventown theorem 2026-10-14
If every member of a set family on and every distinct pairwise intersection has even size, its characteristic vectors span a self-orthogonal binary subspace. The standard dot product is nondegenerate, so implies . Thus the set family has at most members. All unions of disjoint pairs of points attain this bound.
Exterior product Created 2026-10-05 Updated 2026-10-14
The exterior product, also called the wedge product, combines oriented elements through the multiplicationFor two vectors, it is bilinear and alternating:These rules imply . They distinguish the exterior product from both the symmetric dot product and the unconstrained tensor product.[ref]
Linear Algebra Done Right by Sheldon Axler (4th edition). §9B, Definition 9.27 and Theorem 9.30, printed pp. 347–348: alternation and the sign of a swap
In an oriented orthonormal plane, write and . Expanding in its standard basis givesThe determinant is the signed area of the parallelogram formed by the two inputs. Its absolute value is the ordinary area. Reversing the input order reverses the sign; parallel inputs produce zero.
For the original example and ,Replacing by changes the shape but preserves the product: . Both parallelograms have the same oriented area element. If , the exterior product is zero, since .
The same rule adds directions in higher dimensions. With and the three-dimensional inputs under bivector,Its coefficient is the oriented volume of the three-dimensional parallelepiped. Repeating or linearly depending on earlier inputs collapses the volume, giving zero.
Farkas' lemma Created 2026-10-07 Updated 2026-10-14
For a real matrix and a vector , exactly one of the following systems has a solution:The linear inequalities here are componentwise. In the first system is nonnegative; in the second system is unrestricted in sign. The second system is a certificate that the first has no feasible point. This nonnegative-equations alternative is developed in Boyd and Vandenberghe, Convex Optimization slides, §5.34.
Build the target, or separate it. Write the columns of as . Then is a conic combination: its coefficients must be nonnegative, but need not sum to one. The obtainable targets form the finitely generated coneA solution explains how to build from those columns. A certificate instead defines a linear functional . The condition says that its dot product with every generating column is nonnegative, and hence with every point of . But places the target strictly on the other side of the hyperplane . Thus belongs to the dual cone of and rules out every allowed conic combination at once.
A certificate that can be checked by eye. Take the identity matrixHere is the nonnegative orthant. The equation forces , violating . The certificate givesThe linear functional simply reads the first coordinate: all allowed column combinations have a nonnegative first coordinate, while has first coordinate . For comparison, the target is obtained with .
Why this is useful and striking. A successful search can exhibit one feasible point; an unsuccessful search alone cannot explain why every candidate fails. Farkas' lemma guarantees an equally concrete witness of impossibility for this finite linear problem. Once is supplied, verification needs only matrix multiplication, sign tests and one dot product. The same idea gives a Farkas certificate for linear inequalities and underlies linear programming duality.
Brief geometric proof. The two systems cannot both hold, because they would implyFor existence of a certificate when , closedness of finitely generated cones makes a closed convex cone, so separation from a closed convex cone supplies and for every . Testing each column gives . Concretely, let be the Euclidean projection onto a convex set of onto and set . The projection inequality gives for . Testing and gives , whence . In the example, and . Alternatively, the Fenchel-Moreau theorem applied to the cone's indicator functional proves the same separation through its polar cone.









