Centroid sum-of-squares identity 2026-10-20
For a nonempty finite collection of Euclidean vectors, its sample mean uniquely minimizes the sum of squared Euclidean distances to a proposed centroid . Expand each squared Euclidean norm around and use to cancel the cross term. The displayed identity leaves a nonnegative term , equal to zero exactly at .
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. 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.
Orthogonal vectors Created 2026-09-24 Updated 2026-10-14
Two vectors are orthogonal when their inner product is zero.
For real Euclidean vectors, the inner product is the dot product, so and are orthogonal: . For nonzero Euclidean vectors, this means their angle is . The zero vector is orthogonal to every vector, although it has no direction or defined angle.[ref]
https://ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/resources/lecture-14-orthogonal-vectors-and-subspaces/. Strang, MIT 18.06, Lecture 14: orthogonal vectors and subspaces
In an abstract inner product space, orthogonality always refers to its chosen inner product. For example, the weighted inner product makes and orthogonal, since . Their ordinary dot product is , so their arrows are not perpendicular in the usual Cartesian coordinate system. The algebraic definition also applies to functions, where arrows need not be available.
Scalar projection Created 2026-10-14 Updated 2026-10-20
The scalar projection of a real Euclidean vector onto a nonzero Euclidean vector is its signed component along the unit vector :For , the scalar projection onto is , while that onto is . Reversing the measuring direction reverses the sign; the scalar projection is not necessarily a nonnegative length. For nonzero , it also equals , using the angle with and its cosine. For the zero vector it is zero, even though that angle is undefined.
Unit vector Created 2026-09-24 Updated 2026-10-14
A unit vector is a vector of norm one in a normed vector space. For a nonzero vector , vector normalization produces one by dividing by . In a real Euclidean space, this keeps the direction and removes the magnitude. The zero vector cannot be normalized because its norm is zero.
For with Euclidean norm , the corresponding unit vector isThe Euclidean vector can therefore be reconstructed as : size and direction are distinct pieces of information. The standard basis vectors are familiar unit vectors, but a unit vector need not point along a coordinate axis.
Normalization keeps direction and places the endpoint on the unit circle
. The original Euclidean vector has magnitude . Its vector normalization lies on the unit circle. The enlarged right panel also shows its negative, which has the same Euclidean norm and the opposite direction. Details. Vector Created 2026-09-24 Updated 2026-10-14
A vector is an element of a vector space. Its defining operations are vector addition and scalar multiplication. An arrow in a Euclidean space is one example; a polynomial or a function can also be a vector when the chosen vector space uses the corresponding addition and scalar multiplication.
For instance, the polynomials and belong to the real vector space of polynomials of degree at most two. Their vector addition gives , and scalar multiplication gives . In the monomial basis these are the coordinate vectors , , and respectively. The vectors are the polynomials; these tuples are their representations in a chosen basis.
A general vector space does not itself prescribe lengths or angles. A norm supplies a size, while an inner product also supplies angle information and orthogonality. The familiar arrow geometry below belongs to Euclidean vectors, where this extra structure is available.
Vector projection 2026-10-14
The vector projection multiplies the scalar projection by the chosen unit vector, giving the orthogonal projection onto the linear span of a nonzero real Euclidean vector :For and , this gives and ; the dot product checks the orthogonal projection residual. Replacing by gives the same : reversing direction changes the scalar projection, but preserves the vector projection onto the line.
For a short proof of the nearest-point property, any vector on this line satisfies by the Pythagorean identity. The second term is uniquely minimized at . This connects a directional measurement to the orthogonal projection used in approximation.[ref]
https://ocw.mit.edu/courses/18-06-linear-algebra-spring-2010/resources/lecture-15-projections-onto-subspaces/. Strang, MIT 18.06, Lecture 15: projections onto subspaces



