A Reliable Order for Mixed Inner Product Problems
Many inner product problems ask for several quantities at once: an inner product, the lengths of the vectors, their distance, an angle, or whether they are orthogonal. The calculations are connected, but keeping their definitions distinct prevents common errors. A dependable order is to evaluate the inner product first, compute each induced norm from its own inner product with itself, and then use the appropriate formula for the quantity being asked for.
Let \(V\) be a real or complex vector space with an inner product \(\langle\mathbf{u},\mathbf{v}\rangle\), taken to be linear in the first slot and conjugate-linear in the second over \(\mathbb{C}\). In particular, \(\langle\mathbf{v},\mathbf{u}\rangle=\overline{\langle\mathbf{u},\mathbf{v}\rangle}\), and \(\langle\mathbf{u},\mathbf{u}\rangle\) is real and nonnegative, with equality to zero only for \(\mathbf{u}=\mathbf{0}\). In a real space, the inner product is symmetric. The induced norm is \(\|\mathbf{u}\|=\sqrt{\langle\mathbf{u},\mathbf{u}\rangle}\), and the distance between \(\mathbf{u}\) and \(\mathbf{v}\) is \(\|\mathbf{u}-\mathbf{v}\|\). Vectors are orthogonal when their inner product is zero.
For nonzero vectors in a real inner product space, the angle \(\theta\in[0,\pi]\) is specified by \(\cos\theta=\langle\mathbf{u},\mathbf{v}\rangle/(\|\mathbf{u}\|\|\mathbf{v}\|)\). In a complex inner product space, the angle convention is \(\cos\theta=\operatorname{Re}\langle\mathbf{u},\mathbf{v}\rangle/(\|\mathbf{u}\|\|\mathbf{v}\|)\). The real part is needed because the inner product can be complex. Neither angle formula applies if either vector is zero.
Useful Identities and Checks
Proof. Expand the inner product using linearity in the first slot and conjugate-linearity in the second: \(\langle\mathbf{u}-\mathbf{v},\mathbf{u}-\mathbf{v}\rangle=\langle\mathbf{u},\mathbf{u}\rangle-\langle\mathbf{u},\mathbf{v}\rangle-\langle\mathbf{v},\mathbf{u}\rangle+\langle\mathbf{v},\mathbf{v}\rangle\). The first and last terms are \(\|\mathbf{u}\|^2\) and \(\|\mathbf{v}\|^2\). If \(z=\langle\mathbf{u},\mathbf{v}\rangle\), conjugate symmetry gives \(\langle\mathbf{v},\mathbf{u}\rangle=\overline{z}\), so the two middle terms sum to \(-z-\overline{z}=-2\operatorname{Re}(z)\). The left side is \(\|\mathbf{u}-\mathbf{v}\|^2\), proving the formula. In a real space, \(z\) is real. \(\square\)
The Cauchy–Schwarz inequality, established for real and complex inner product spaces, states that \(|\langle\mathbf{u},\mathbf{v}\rangle|\le\|\mathbf{u}\|\|\mathbf{v}\|\). It is a bound on the magnitude of the inner product; it does not say that the inner product itself is positive. In a complex space, taking the real part also gives \(|\operatorname{Re}\langle\mathbf{u},\mathbf{v}\rangle|\le\|\mathbf{u}\|\|\mathbf{v}\|\).
Proof. In the real case, Cauchy–Schwarz gives \(|\langle\mathbf{u},\mathbf{v}\rangle|\le\|\mathbf{u}\|\|\mathbf{v}\|\). The denominator is positive because both vectors are nonzero. Dividing proves that the real cosine ratio lies between \(-1\) and \(1\). In the complex case, write \(z=\langle\mathbf{u},\mathbf{v}\rangle=a+ib\), where \(a,b\in\mathbb{R}\). Then \(|\operatorname{Re}z|=|a|\le\sqrt{a^2+b^2}=|z|\). Cauchy–Schwarz therefore gives \(|\operatorname{Re}z|\le\|\mathbf{u}\|\|\mathbf{v}\|\). Dividing by the positive denominator again puts the ratio in \([-1,1]\), as required. \(\square\)
Worked Calculations in Real Spaces
Worked Example: A Weighted Inner Product
On \(\mathbb{R}^2\), suppose the inner product is \(\langle\mathbf{x},\mathbf{y}\rangle=2x_1y_1+x_2y_2\). For \(\mathbf{x}=(1,2)^{\top}\) and \(\mathbf{y}=(1,-1)^{\top}\), find the inner product, both norms, their distance, and whether they are orthogonal.
Substitute the coordinates into the given inner product:
Thus the vectors are orthogonal. Compute each norm using this same inner product, not the usual unweighted dot product:
The difference is \(\mathbf{x}-\mathbf{y}=(0,3)^{\top}\), so its induced norm is \(\sqrt{2(0)^2+3^2}=3\). As a check, the distance identity gives \(\|\mathbf{x}-\mathbf{y}\|^2=6+3-2(0)=9\), also giving distance \(3\).
Worked Example: A Bound, Distance, and Angle in \(\mathbb{R}^3\)
Use the standard dot product for \(\mathbf{u}=(1,-2,2)^{\top}\) and \(\mathbf{v}=(2,1,-1)^{\top}\). Find their inner product and norms, give the Cauchy–Schwarz bound, and calculate their distance and angle.
The inner product and squared norms are
Cauchy–Schwarz bounds the magnitude of the inner product by \(3\sqrt{6}\). The calculated value satisfies the bound because \(|-2|=2\le3\sqrt{6}\); squaring both nonnegative sides gives \(4\le54\).
The difference is \(\mathbf{u}-\mathbf{v}=(-1,-3,3)^{\top}\), whose squared norm is \(1+9+9=19\), so the distance is \(\sqrt{19}\). The identity gives the same result: \(9+6-2(-2)=19\). Both vectors are nonzero, so their angle is defined by
The negative cosine places the angle between \(\pi/2\) and \(\pi\), consistent with the negative inner product. The vectors are not orthogonal because their inner product is \(-2\), not zero.
Complex Inner Products: Conjugation Matters
With the convention used here, the standard inner product on \(\mathbb{C}^n\) is \(\langle\mathbf{u},\mathbf{v}\rangle=\sum_{j=1}^{n}u_j\overline{v_j}\). The conjugate on the second vector is essential. For example, \(\langle\mathbf{u},\mathbf{u}\rangle=\sum_j|u_j|^2\) is real and nonnegative, as a squared norm must be.
Worked Example: Distance and Angle in \(\mathbb{C}^2\)
For \(\mathbf{u}=(1+i,2)^{\top}\) and \(\mathbf{v}=(i,1-i)^{\top}\), use the standard complex inner product to find the inner product, norms, Cauchy–Schwarz bound, distance, and angle.
Conjugate each coordinate of the second vector when evaluating the inner product:
For the norms, use the squared absolute values of the coordinates:
The inequality checks as \(|3+i|=\sqrt{3^2+1^2}=\sqrt{10}\le\sqrt{6}\sqrt{3}=\sqrt{18}\), since \(10\le18\). The difference is \((1,1+i)^{\top}\), so its squared norm is \(1+|1+i|^2=1+2=3\), and the distance is \(\sqrt{3}\). The distance identity independently gives \(6+3-2\operatorname{Re}(3+i)=9-6=3\).
For the angle, use the real part of the inner product, not its complex value:
The vectors are not orthogonal because \(3+i\ne0\). The angle calculation uses only the real part, while the Cauchy–Schwarz calculation uses the magnitude.
Worked Example: Testing Complex Orthogonality
Check whether \(\mathbf{a}=(1,i)^{\top}\) and \(\mathbf{b}=(i,1)^{\top}\) are orthogonal in \(\mathbb{C}^2\).
Conjugating the entries of \(\mathbf{b}\) gives
Therefore the vectors are orthogonal. Their norms also check directly: \(\|\mathbf{a}\|^2=|1|^2+|i|^2=2\) and \(\|\mathbf{b}\|^2=|i|^2+|1|^2=2\). Both are nonzero, and the zero inner product verifies the orthogonality claim.
Common Mistakes and a Practical Checklist
Omitting conjugation can reverse an orthogonality conclusion. For the last example, the incorrect calculation \(1(i)+i(1)=2i\) treats the complex inner product as if it were bilinear. The specified convention instead gives \(1\overline{i}+i\overline{1}=-i+i=0\). The correction is to conjugate the second vector before multiplying coordinate by coordinate.
Do not confuse the inner product with its magnitude or real part. Cauchy–Schwarz bounds \(|\langle\mathbf{u},\mathbf{v}\rangle|\), while the complex angle formula uses \(\operatorname{Re}\langle\mathbf{u},\mathbf{v}\rangle\). Orthogonality requires the entire inner product to be zero. In particular, an inner product with zero real part need not be zero: \(i\) has real part \(0\), but \(i\ne0\).
Use the stated inner product throughout. In the weighted real example, replacing \(2x_1y_1+x_2y_2\) with the usual dot product would give a different calculation. Likewise, an angle is undefined when one vector is zero, even though the inner product and distance formulas still make sense.
For a mixed problem, keep the following distinctions in view:
- Compute a norm from \(\langle\mathbf{u},\mathbf{u}\rangle\), then take the nonnegative square root.
- Use the absolute value of the inner product in a Cauchy–Schwarz bound.
- Use the real inner product for real angles and its real part for complex angles.
- Use \(\langle\mathbf{u},\mathbf{v}\rangle=0\) to test orthogonality.
- Check a distance calculation both from \(\|\mathbf{u}-\mathbf{v}\|\) and, when useful, from the norm expansion identity.
Check Your Understanding
Show the intermediate calculations, and state which inner product convention you are using in each problem.
- In \(\mathbb{R}^2\) with \(\langle\mathbf{x},\mathbf{y}\rangle=3x_1y_1+x_2y_2\), find the norms, inner product, and distance for \(\mathbf{x}=(1,1)^{\top}\) and \(\mathbf{y}=(1,-2)^{\top}\). Are they orthogonal?
- For \(\mathbf{u}=(2,1,0)^{\top}\) and \(\mathbf{v}=(1,-1,2)^{\top}\) in standard \(\mathbb{R}^3\), calculate the Cauchy–Schwarz bound and check it against the inner product.
- In standard \(\mathbb{C}^2\), calculate \(\langle(1+i,1)^{\top},(1,i)^{\top}\rangle\), using the stated convention for conjugation.
- For the vectors in question 3, find the induced norms and the cosine of their angle.
- Explain why an inner product with real part zero is not necessarily enough to conclude that two complex vectors are orthogonal.