Real inner products, their norms and the needed inequalities
An inner product on a real vector space is a map that is symmetric, linear in each argument, and positive definite: for . Linearity gives . Define . It is zero exactly at zero and satisfies . The standard example on is . Vectors are orthogonal when their inner product is zero, and a list is orthonormal when distinct members are orthogonal and each member has norm one.
If , insert into the nonnegative square . Expanding by bilinearity gives , hence . If the same inequality holds directly. Equality for means , equivalently ; the zero-vector cases also give equality. Finally expand and apply the bound to its cross term to obtain . Both sides to be square-rooted are nonnegative, so the triangle inequality follows. Thus this is a norm, and normalization of any nonzero vector divides by a positive real number. No complex bilinear convention is being used.
Up to this point, most of the course has studied linear structure: span, independence, basis, eigenvectors, and diagonalization. Inner products add geometry. They let you talk about length, perpendicularity, and angle inside the same vector spaces.
The central operation is algebraic but its output is geometric. Given two vectors of the same size, multiply matching coordinates and add. The resulting single real number records how strongly the vectors point together, against one another, or at right angles.
From a scalar measurement to length and angle
When you write
you are introducing the operation that later controls orthogonality, projection, orthonormal bases, and the inequalities that make Euclidean geometry work in . The real-entry and same-size conditions matter: if has entries and has a different number, the product is not defined.
Definition
Standard inner product
Let and be column vectors in , with the same dimension . Their inner product is the real number
It is also called the dot product. We deliberately identify a matrix with its single real entry, so the matrix product is read as a number.
Worked example
Compute inner products and compare an outer product
Let
The dimensions match, so
The order does not change this scalar:
By contrast, the outer product is a matrix:
Thus is a scalar identified with 11, whereas has shape . Confusing these two products changes both the object and its meaning.
For a three-dimensional check, if
then
The dimension check is part of the definition, not a formatting preference. If is a column in , then has one row and columns. It can multiply a column only when has entries, and the result has one row and one column. In the outer product , the factors have shapes and , so the contracted middle dimensions are and , leaving an matrix. The inner product therefore compresses two vectors to one scalar, while the outer product records every pairwise coordinate interaction in a matrix. This distinction will matter later when a scalar is used as a coefficient in a projection, whereas a matrix is used as a linear transformation.
Concept lensStructural
One scalar carries two kinds of information
Fix and vary . The map is linear, so it records a signed response to the direction of . Setting instead gives , a quadratic size measurement. A zero inner product does not force one vector to be zero: for example, because the vectors are perpendicular. The same formula therefore supports both algebraic tests and geometric measurements.
Basic inner-product properties
Theorem
Bilinearity, symmetry, and positive definiteness
For and , the standard inner product satisfies:
- symmetry:
- linearity in the first slot:
- linearity in the second slot:
- zero tests:
- positive definiteness:
with equality if and only if .
Proof
Proof of the inner-product properties
Symmetry follows by transposing the product:
For the first slot, matrix multiplication distributes and scalars pass through the transpose:
Linearity in the second slot follows by applying symmetry to the first-slot calculation:
The zero identities follow from the coordinate sum. Finally,
A sum of real squares is zero exactly when every , which is exactly . This is why the real-entry assumption is used.
The two linearity statements are genuinely separate. The first expands a linear combination in the left slot; the second expands a combination in the right slot. Symmetry lets us derive the second from the first for the standard real product, but it should still be stated because later calculations may use either slot. The coefficients and are arbitrary real numbers, so the result includes subtraction, zero coefficients, and unequal scalings.
Theorem
Testing against every vector
If satisfies
then . More generally, if
then .
To prove the first statement, the phrase “for every ” permits the specific choice . It gives , so positive definiteness gives . For the second statement, subtract the two equalities and use bilinearity:
The first statement applied to gives , hence . One carefully chosen test vector is enough for these proofs, but the hypothesis must hold for every vector before that choice is legitimate. In coordinates, testing against the standard basis vectors reads the individual coordinates.
This testing principle is stronger than checking one previously chosen vector. For example, knowing only says that one coordinate vanishes, not that all of vanishes. Requiring every test vector lets us choose for the positivity argument, or choose each to inspect a particular coordinate. It is a reusable way to turn an identity of scalar responses into equality of the vectors producing those responses.
Norm and unit vectors
Definition
Norm
For , the norm (or length) of is
Positive definiteness guarantees that the quantity under the square root is nonnegative.
Theorem
Basic properties of the norm
For every and scalar :
and if and only if ;
Indeed, the first statement follows from the nonnegative square root and the positivity result. For the second, square both sides using the inner product:
Both and are nonnegative, so taking the nonnegative square root gives the stated formula. The absolute value is essential: multiplying by a negative scalar reverses direction but cannot make a length negative. The cases and are included.
Notice the order of reasoning. We first establish an equality of squares, where the sign of disappears, and only then use that both candidate lengths are nonnegative. Taking an ordinary signed square root would lose this information. The result also separates two effects of scaling: changes the length, while the sign of determines whether the vector points along or opposite to its original direction.
Definition
Unit vector
A vector is a unit vector if
If , then
is the normalization of to a unit vector. The nonzero condition is required because division by must be defined.
Worked example
Compute a norm, normalize, and check the boundary cases
Let
Then
The unit check is visible coordinatewise:
If the vector is scaled by -2, then
Its length changes by a factor of 2, while its unit direction is the opposite one. At the boundary , the vector becomes zero and has norm zero, so it cannot be normalized.
Inner product and norm determine each other
The inner product determines the norm through . For real vectors, the converse is obtained by expanding squared norms.
Theorem
Conversion formulas
For :
- polarization:
- the parallelogram identity:
Proof
Expand first, then rearrange
Using bilinearity and symmetry,
Replacing by gives the minus formula. Rearranging the plus formula gives the polarization identity. Adding the plus and minus formulas cancels the cross terms and gives the parallelogram identity. Equivalently, the inner product can be recovered symmetrically by
The two polarization forms answer slightly different practical questions. The first compares the length of with the already known lengths of and ; the quarter formula compares the two diagonals of the parallelogram formed by u and v. Both are consequences of bilinearity, so they remain valid in every dimension m under the standard real inner product. The parallelogram identity says that the sum of the squared diagonal lengths is determined by the two side lengths, independently of the angle between them.
Angles between nonzero vectors
For nonzero in or , the angle is defined in the range . The law of cosines applied to the triangle formed by x, y, and y-x gives
The same expansion from the conversion formula is
The geometric and algebraic expressions have the same three terms. The only remaining terms to compare are the cross term from the law of cosines and the inner product. Thus
The law of cosines also covers the collinear cases: parallel vectors give a degenerate triangle with angle , and opposite vectors give angle . This proof uses the nonzero hypotheses so that the angle and the division in the next statement are meaningful. Comparing the two expansions proves the angle theorem:
Theorem
Inner product and the geometric angle
For nonzero in or ,
Consequently,
The denominator is positive because both vectors are nonzero. Parallel vectors with have angle when and angle when ; these cases are included by the same formula. If either vector is zero, its norm makes the quotient undefined, so “the angle with the zero vector” is not a defined phrase. Cauchy–Schwarz in 9.4 will guarantee that the arccos input lies in ; it is not being used here to prove the angle formula. In arbitrary , the algebraic definition of orthogonality is simply .
The sign of the inner product now has a geometric reading in dimensions two and three. For , the value is positive and the angle is acute; at , the value is also positive and the nonzero vectors are parallel. The value is zero exactly at , and it is negative for , where the angle is obtuse; at , the negative value records a straight angle. This sign description is limited to nonzero vectors with a defined angle. In higher-dimensional , the equation still defines orthogonality even when no visual three-dimensional angle is being drawn.
The sequence starts with the standard inner product and norm from this section, then uses the angle formula as a bridge into the orthogonality language of 9.2.
Worked example
Compute an angle and verify the length identities
Let
First,
Therefore
Now
so polarization recovers the dot product:
For the other diagonal of the parallelogram,
The full check is
Thus both diagonals verify the parallelogram identity, and the angle, dot-product, and norm calculations agree.
Reading coordinates and orthogonality
The coordinate definition makes several later arguments concrete. If and , then the inner product is a sum of coordinate contributions. A positive contribution from one coordinate can be cancelled by a negative contribution from another, so the sign of the total is a property of the pair, not of any one coordinate. This is why a zero inner product can describe perpendicular nonzero vectors rather than an absent vector.
For example, the vectors
satisfy
They are therefore orthogonal in . The same calculation in is the algebraic definition used in 9.2; a drawn right angle is only an interpretation available in the familiar low-dimensional settings.
The standard basis makes the testing theorem especially transparent. Since has a single in coordinate ,
Thus an equality of inner products against every is already an equality of every coordinate. This is the coordinate version of the more structural statement proved earlier: if two vectors have the same inner product with every test vector, they are equal. The next section uses these facts to define orthogonal sets, extract coefficients from orthogonal expansions, and normalize orthogonal vectors without solving a new general system each time.
The inner product is therefore not a coordinatewise equality test. Two vectors can have different coordinates and still have inner product zero, or have a positive inner product without being scalar multiples. What the scalar measures is the aggregate interaction of all coordinates. In a later projection formula, the number will be the coefficient of the component of along a nonzero vector ; the present section supplies every fact needed to interpret that coefficient safely.
Common mistakes and quick checks
Common mistake
A scalar product is not an outer product
The result of is a single real number, while is a matrix. Always check the shapes before interpreting a product geometrically.
Common mistake
Do not assign a right angle to a zero vector
The equation defines algebraic orthogonality in any , but the angle formula requires both vectors nonzero. A zero vector has no direction and therefore no defined angle.
Checkpoint
What is , and what shape is the corresponding outer product?
Multiply matching coordinates and add, then compare with .
Solution · Answer
The inner product is 11, a scalar. The outer product has shape 2 by 2; for these vectors its rows are and .
Checkpoint
If , what must be, and why is its angle with another vector undefined?
Use positive definiteness and the angle denominator.
Solution · Answer
because a sum of real squares is zero only when every coordinate is zero. Its angle is undefined because the formula divides by the zero norm.
Checkpoint
If , why is a unit vector?
Apply the scalar rule for norms and use the nonzero hypothesis.
Solution · Answer
Because the norm of is positive,
Checkpoint
Compute the norm of .
Use the norm definition.
Solution · Guided solution
Checkpoint
Normalize to a unit vector and state why the denominator is valid.
First compute its norm, then divide by that positive number.
Solution · Guided solution
The vector is nonzero and
Therefore its normalized form is
Checkpoint
Suppose nonzero vectors and satisfy . What is their angle in or ?
Use the angle formula, whose denominator is positive.
Solution · Guided solution
Both norms are positive, so
forces . In the range , this gives .
Related notes
Continue with 9.2 Orthogonal sets and orthonormal bases, where inner products are used to build useful bases and coordinate formulas.
Later inequalities in 9.4 Cauchy-Schwarz and triangle inequalities depend directly on the definitions introduced here.
This chapter also continues the geometric thread opened in 6.5 Basis and dimension.