Three Conditions to Check
An operation may resemble a familiar dot product without satisfying the rules that make an inner product useful. To test one, separate the requirements: symmetry compares the two orders of its inputs, linearity controls how it responds to sums and scalar multiples, and positive definiteness checks its value when the two inputs are equal. These are independent checks: passing one or two does not guarantee that the operation is an inner product.
Let \(V\) be a vector space over \(\mathbb{R}\). A proposed real-valued operation is a function \(B:V\times V\to\mathbb{R}\). Linearity in the first slot means that, for all \(\mathbf{u},\mathbf{v},\mathbf{w}\in V\) and \(c\in\mathbb{R}\), it satisfies both additivity and homogeneity:
For a real inner product, symmetry and linearity in the first slot also give linearity in the second slot. This is useful when checking a formula: it is enough to verify linearity in one slot, provided symmetry has been checked too.
Proposition. If \(B:V\times V\to\mathbb{R}\) is symmetric and linear in its first slot, then it is linear in its second slot.
Proof. Let \(\mathbf{u},\mathbf{v},\mathbf{w}\in V\) and \(c\in\mathbb{R}\). For additivity in the second slot, symmetry, first-slot additivity, and symmetry again give \(B(\mathbf{u},\mathbf{v}+\mathbf{w})=B(\mathbf{v}+\mathbf{w},\mathbf{u})=B(\mathbf{v},\mathbf{u})+B(\mathbf{w},\mathbf{u})=B(\mathbf{u},\mathbf{v})+B(\mathbf{u},\mathbf{w})\). For homogeneity, symmetry and first-slot homogeneity give \(B(\mathbf{u},c\mathbf{v})=B(c\mathbf{v},\mathbf{u})=cB(\mathbf{v},\mathbf{u})=cB(\mathbf{u},\mathbf{v})\). These are the two required properties. \(\square\)
A Matrix Test in \(\mathbb{R}^n\)
On \(\mathbb{R}^n\), write vectors as columns. A matrix \(\mathbf{A}\in\mathbb{R}^{n\times n}\) defines an operation \(B(\mathbf{u},\mathbf{v})=\mathbf{u}^{\top}\mathbf{A}\mathbf{v}\). The matrix test below turns the symmetry and linearity checks into an algebraic condition. Positive definiteness still requires checking the associated quadratic expression for every nonzero vector.
Proof. Suppose first that \(B\) is an inner product. For the standard coordinate vectors \(\mathbf{e}_i,\mathbf{e}_j\), we have \(B(\mathbf{e}_i,\mathbf{e}_j)=a_{ij}\) and \(B(\mathbf{e}_j,\mathbf{e}_i)=a_{ji}\). Symmetry gives \(a_{ij}=a_{ji}\) for every \(i,j\), so \(\mathbf{A}^{\top}=\mathbf{A}\). Positive definiteness applied to any nonzero \(\mathbf{x}\) gives \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}=B(\mathbf{x},\mathbf{x})>0\).
Conversely, suppose \(\mathbf{A}^{\top}=\mathbf{A}\) and \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}>0\) whenever \(\mathbf{x}\ne\mathbf{0}\). Matrix multiplication is linear, so for any \(\mathbf{u},\mathbf{v},\mathbf{w}\in\mathbb{R}^n\) and \(c\in\mathbb{R}\), \(B(\mathbf{u}+\mathbf{v},\mathbf{w})=B(\mathbf{u},\mathbf{w})+B(\mathbf{v},\mathbf{w})\) and \(B(c\mathbf{u},\mathbf{v})=cB(\mathbf{u},\mathbf{v})\). Also, \(B(\mathbf{u},\mathbf{v})=\mathbf{u}^{\top}\mathbf{A}\mathbf{v}=(\mathbf{u}^{\top}\mathbf{A}\mathbf{v})^{\top}=\mathbf{v}^{\top}\mathbf{A}^{\top}\mathbf{u}=\mathbf{v}^{\top}\mathbf{A}\mathbf{u}=B(\mathbf{v},\mathbf{u})\). Finally, the assumed quadratic inequality gives positive definiteness for every nonzero vector, and \(B(\mathbf{0},\mathbf{0})=0\). Thus all the inner product conditions hold. \(\square\)
Worked Checks in \(\mathbb{R}^2\)
Worked Example: A Valid Inner Product
Consider \(B(\mathbf{u},\mathbf{v})=2u_1v_1+u_1v_2+u_2v_1+3u_2v_2\) for \(\mathbf{u}=(u_1,u_2)^{\top}\) and \(\mathbf{v}=(v_1,v_2)^{\top}\) in \(\mathbb{R}^2\). Decide whether \(B\) is a real inner product.
Its matrix is \(\mathbf{A}=\begin{bmatrix}2&1\\1&3\end{bmatrix}\), which is symmetric. Each term is linear in \(\mathbf{u}\), so \(B\) is linear in its first slot. For \(\mathbf{x}=(x_1,x_2)^{\top}\), the diagonal value is
If \(\mathbf{x}\ne\mathbf{0}\), then at least one of \(x_1^2\) and \(x_2^2\) is positive. Since the other terms on the right are nonnegative, \(B(\mathbf{x},\mathbf{x})>0\). Also \(B(\mathbf{0},\mathbf{0})=0\). The matrix test therefore shows that \(B\) is an inner product.
Check: Take \(\mathbf{u}=(1,2)^{\top}\) and \(\mathbf{v}=(2,-1)^{\top}\). Direct substitution gives \(B(\mathbf{u},\mathbf{v})=4-1+4-6=1\). Matrix multiplication gives \(\mathbf{A}\mathbf{v}=(3,-1)^{\top}\), so \(\mathbf{u}^{\top}\mathbf{A}\mathbf{v}=1\cdot3+2\cdot(-1)=1\) as well. For the diagonal, \(B(\mathbf{u},\mathbf{u})=2+2+2+12=18\), matching \((1+2)^2+1^2+2(2^2)=18\).
Worked Example: Symmetric and Bilinear, but Not Positive
Define \(B(\mathbf{u},\mathbf{v})=u_1v_1-u_2v_2\) on \(\mathbb{R}^2\). Determine which inner product conditions it satisfies.
The formula is linear in its first slot because each term is linear in \(\mathbf{u}\); it is symmetric because \(u_1v_1=v_1u_1\) and \(u_2v_2=v_2u_2\). But for the nonzero vector \(\mathbf{e}_2=(0,1)^{\top}\), \(B(\mathbf{e}_2,\mathbf{e}_2)=0\cdot0-1\cdot1=-1\), which is not positive. Therefore \(B\) is not an inner product.
Check: The diagonal expression is \(B(\mathbf{x},\mathbf{x})=x_1^2-x_2^2\). Substituting \(\mathbf{x}=\mathbf{e}_2\) gives \(0-1=-1\), confirming the failure. Symmetry and linearity do not compensate for a failed positivity condition.
Worked Example: Symmetric and Positive on the Diagonal, but Not Linear
On \(\mathbb{R}^2\), define \(C(\mathbf{u},\mathbf{v})=(u_1v_1+u_2v_2)^2\). This operation is symmetric. For nonzero \(\mathbf{u}\), \(C(\mathbf{u},\mathbf{u})=(u_1^2+u_2^2)^2>0\), since \(u_1^2+u_2^2>0\). Nevertheless, it is not an inner product.
To test homogeneity in the first slot, take \(\mathbf{u}=\mathbf{v}=\mathbf{e}_1=(1,0)^{\top}\) and \(c=2\). Then \(C(2\mathbf{e}_1,\mathbf{e}_1)=(2\cdot1+0\cdot0)^2=4\), whereas \(2C(\mathbf{e}_1,\mathbf{e}_1)=2(1\cdot1+0\cdot0)^2=2\). These values differ, so \(C\) is not linear in its first slot.
Check: The same calculation shows the scaling discrepancy directly: \(C(2\mathbf{e}_1,\mathbf{e}_1)\ne 2C(\mathbf{e}_1,\mathbf{e}_1)\). Passing the symmetry and positive-definiteness checks alone is not enough.
Worked Example: Positive Diagonal Values Do Not Ensure Symmetry
Consider \(D(\mathbf{u},\mathbf{v})=2u_1v_1+u_1v_2+2u_2v_2\). Its matrix is \(\mathbf{A}=\begin{bmatrix}2&1\\0&2\end{bmatrix}\), which is not symmetric. Its diagonal expression is \(D(\mathbf{x},\mathbf{x})=2x_1^2+x_1x_2+2x_2^2\). Completing the square gives
This expression is positive for every nonzero \(\mathbf{x}\): if \(x_2\ne0\), the last term is positive; if \(x_2=0\) and \(\mathbf{x}\ne\mathbf{0}\), the first term is \(2x_1^2>0\). However, symmetry fails: \(D(\mathbf{e}_1,\mathbf{e}_2)=1\), while \(D(\mathbf{e}_2,\mathbf{e}_1)=0\). Thus \(D\) is not an inner product.
Check: The two evaluations use \(\mathbf{e}_1=(1,0)^{\top}\) and \(\mathbf{e}_2=(0,1)^{\top}\). Substitution gives \(D(\mathbf{e}_1,\mathbf{e}_2)=0+1+0=1\) and \(D(\mathbf{e}_2,\mathbf{e}_1)=0+0+0=0\), verifying the asymmetry.
A Reliable Testing Order
For a formula on \(\mathbb{R}^n\), testing the conditions in a fixed order makes the reasoning efficient. A single failure is enough to conclude that the operation is not an inner product; there is no need to establish that it passes every other test. Conversely, to establish that it is an inner product, all three conditions must be verified for arbitrary vectors, not just for a sample pair.
Compare \(B(\mathbf{u},\mathbf{v})\) with \(B(\mathbf{v},\mathbf{u})\) for arbitrary inputs. To disprove symmetry, one pair with unequal values is enough.
Verify additivity and homogeneity in one slot. If the formula is a matrix product \(\mathbf{u}^{\top}\mathbf{A}\mathbf{v}\), its dependence on \(\mathbf{u}\) is linear by matrix multiplication.
Set the inputs equal and prove \(B(\mathbf{x},\mathbf{x})>0\) for every nonzero \(\mathbf{x}\), while checking \(B(\mathbf{0},\mathbf{0})=0\). A test on only one or two nonzero vectors cannot prove the universal condition.
A common mistake is to treat a positive diagonal expression as sufficient. For example, \(C(\mathbf{u},\mathbf{v})=(u_1v_1+u_2v_2)^2\) is symmetric and has \(C(\mathbf{x},\mathbf{x})>0\) for every nonzero \(\mathbf{x}\). The tempting but incorrect conclusion is that \(C\) is an inner product. The correction is to test linearity too: \(C(2\mathbf{e}_1,\mathbf{e}_1)=4\), while \(2C(\mathbf{e}_1,\mathbf{e}_1)=2\). Since these are unequal, homogeneity fails.
For matrix-defined operations, another tempting shortcut is to inspect only the diagonal entries of \(\mathbf{A}\). The matrix test requires symmetry of the whole matrix and positivity of \(\mathbf{x}^{\top}\mathbf{A}\mathbf{x}\) for every nonzero \(\mathbf{x}\); checking a few entries or vectors does not establish those requirements. The examples above separate the issues: one operation fails positivity despite symmetry, another fails linearity despite symmetry and positivity on the diagonal, and another has positive diagonal values but fails symmetry.
Why the Axioms Matter
The inner product conditions make the operation consistent across all vectors and scalars, rather than merely producing plausible values for a few inputs. Symmetry rules out dependence on the order of the pair. Linearity ensures that combinations of vectors behave predictably under the operation. Positive definiteness prevents a nonzero vector from having a zero or negative self-pairing. When these conditions hold, the operation is a real inner product; when one fails, identifying the failed condition gives a precise reason the proposed formula does not qualify.
Check Your Understanding
For each operation, decide whether it is a real inner product and justify the decision by checking the relevant axioms.
- On \(\mathbb{R}^2\), let \(B(\mathbf{u},\mathbf{v})=u_1v_1+4u_2v_2\). Verify each required condition.
- For \(B(\mathbf{u},\mathbf{v})=u_1v_1+u_1v_2+2u_2v_2\), test symmetry using \(\mathbf{e}_1,\mathbf{e}_2\).
- On \(\mathbb{R}^2\), define \(C(\mathbf{u},\mathbf{v})=(u_1v_1+u_2v_2)^2\). Which axiom fails, and what inputs demonstrate the failure?
- For \(B(\mathbf{u},\mathbf{v})=u_1v_1-u_2v_2\), give a nonzero vector that disproves positive definiteness.
- State the matrix test for \(B(\mathbf{u},\mathbf{v})=\mathbf{u}^{\top}\mathbf{A}\mathbf{v}\) and explain why it requires both a symmetry check and a positivity check.