Tutorials › Linear Algebra › Equality In Real Cauchy-Schwarz

Inner Products and Norms · Tutorial 612 of 1000

Equality In Real Cauchy-Schwarz

Determine exactly when real Cauchy–Schwarz is an equality, and use scalar-multiple tests to check coordinate vectors.

Intermediate 9 min read

What You'll Learn

  • State the equality criterion for the real Cauchy–Schwarz inequality.
  • Prove the criterion using a residual vector and its squared norm.
  • Handle zero vectors without assuming division by a norm.
  • Distinguish equality with a positive inner product from equality with a negative one.
  • Test equality and proportionality using exact coordinate calculations.

What Equality Says

The real Cauchy–Schwarz inequality compares the size of an inner product with the product of two norms. Its equality case gives more information than the inequality alone: it identifies exactly when the two vectors carry the same direction information, up to a real scalar. The scalar may be positive or negative, so the absolute value in the inequality matters.

Let \(V\) be a real inner product space; it need not be finite-dimensional. Its real inner product is written \(\langle\mathbf{u},\mathbf{v}\rangle\), and its induced norm is \(\|\mathbf{u}\|=\sqrt{\langle\mathbf{u},\mathbf{u}\rangle}\). In particular, positive definiteness says that \(\|\mathbf{u}\|=0\) exactly when \(\mathbf{u}=\mathbf{0}\). The real Cauchy–Schwarz inequality states that \(|\langle\mathbf{u},\mathbf{v}\rangle|\leq\|\mathbf{u}\|\|\mathbf{v}\|\) for every \(\mathbf{u},\mathbf{v}\in V\).

Definition: A pair \(\mathbf{u},\mathbf{v}\) is linearly dependent if there are real scalars \(a,b\), not both zero, such that \(a\mathbf{u}+b\mathbf{v}=\mathbf{0}\). Equivalently, one of the vectors is a scalar multiple of the other. This includes pairs containing \(\mathbf{0}\), since \(\mathbf{0}=0\mathbf{u}\) for every \(\mathbf{u}\).

That zero-vector case is important. If either vector is \(\mathbf{0}\), then both sides of Cauchy–Schwarz are zero, so equality holds regardless of the other vector. Any correct equality criterion must include such pairs rather than divide by a norm that could be zero.

The Equality Criterion

Theorem (Equality in real Cauchy–Schwarz): For \(\mathbf{u},\mathbf{v}\) in a real inner product space, the following are equivalent: (1) \(|\langle\mathbf{u},\mathbf{v}\rangle|=\|\mathbf{u}\|\|\mathbf{v}\|\); (2) \(\mathbf{u},\mathbf{v}\) are linearly dependent; (3) one of \(\mathbf{u},\mathbf{v}\) is a real scalar multiple of the other.

Proof. First assume equality. If \(\mathbf{v}=\mathbf{0}\), then the pair is dependent: \(1\cdot\mathbf{v}+0\cdot\mathbf{u}=\mathbf{0}\), and \(\mathbf{v}=0\mathbf{u}\). Now suppose \(\mathbf{v}\ne\mathbf{0}\), so \(\|\mathbf{v}\|^2>0\). Define the real scalar \(\alpha=\langle\mathbf{u},\mathbf{v}\rangle/\|\mathbf{v}\|^2\). Symmetry and bilinearity of the real inner product give

$$ \begin{aligned} \|\mathbf{u}-\alpha\mathbf{v}\|^2 &=\|\mathbf{u}\|^2-2\alpha\langle\mathbf{u},\mathbf{v}\rangle+\alpha^2\|\mathbf{v}\|^2\\ &=\|\mathbf{u}\|^2-\frac{\langle\mathbf{u},\mathbf{v}\rangle^2}{\|\mathbf{v}\|^2}\\ &=0. \end{aligned} $$

The last equality follows from the assumed equality after squaring it: \(\langle\mathbf{u},\mathbf{v}\rangle^2=\|\mathbf{u}\|^2\|\mathbf{v}\|^2\). Positive definiteness now implies \(\mathbf{u}-\alpha\mathbf{v}=\mathbf{0}\), so \(\mathbf{u}=\alpha\mathbf{v}\), and the pair is dependent.

Conversely, suppose the pair is dependent. If \(\mathbf{v}=\mathbf{0}\), equality holds because both sides are zero. If \(\mathbf{v}\ne\mathbf{0}\), a dependence relation \(a\mathbf{u}+b\mathbf{v}=\mathbf{0}\) with \(a,b\) not both zero must have \(a\ne0\); otherwise \(b\mathbf{v}=\mathbf{0}\) would force \(b=0\), contradicting that the coefficients are not both zero. Thus \(\mathbf{u}=-(b/a)\mathbf{v}\). Write \(\mathbf{u}=c\mathbf{v}\). Then \(\langle\mathbf{u},\mathbf{v}\rangle=c\|\mathbf{v}\|^2\), while \(\|\mathbf{u}\|=|c|\|\mathbf{v}\|\). Therefore

$$ |\langle\mathbf{u},\mathbf{v}\rangle| =|c|\|\mathbf{v}\|^2 =\|\mathbf{u}\|\|\mathbf{v}\|. $$

So equality holds. Finally, a scalar-multiple pair is dependent, since if \(\mathbf{u}=c\mathbf{v}\), then \(\mathbf{u}-c\mathbf{v}=\mathbf{0}\); and if \(\mathbf{v}=c\mathbf{u}\), then \(-c\mathbf{u}+\mathbf{v}=\mathbf{0}\). This proves all the stated equivalences. \(\square\)

The theorem is an exact test in both directions. Proportionality guarantees equality, and equality guarantees proportionality. In coordinate spaces, proportionality can be checked by finding one scalar that multiplies every coordinate of one vector to produce the other; checking just one coordinate is not enough.

Coordinate Examples

Worked Example: Equality with a Positive Inner Product

Let \(\mathbf{u}=\begin{bmatrix}2\\1\end{bmatrix}\) and \(\mathbf{v}=\begin{bmatrix}4\\2\end{bmatrix}\) in \(\mathbb{R}^2\) with the standard inner product. Check equality and the scalar-multiple criterion.

First compute the inner product coordinate by coordinate:

$$ \langle\mathbf{u},\mathbf{v}\rangle =2\cdot4+1\cdot2 =8+2 =10. $$

The squared norms and norms are

$$ \|\mathbf{u}\|^2=2^2+1^2=5,\qquad \|\mathbf{u}\|=\sqrt{5}, $$ $$ \|\mathbf{v}\|^2=4^2+2^2=20,\qquad \|\mathbf{v}\|=\sqrt{20}=2\sqrt{5}. $$

Hence \(|\langle\mathbf{u},\mathbf{v}\rangle|=10\) and \(\|\mathbf{u}\|\|\mathbf{v}\|=\sqrt{5}\,(2\sqrt{5})=10\), so equality holds. The coordinate check agrees: \(\mathbf{v}=2\mathbf{u}\). Check: substituting that relation gives \(\langle\mathbf{u},2\mathbf{u}\rangle=2\|\mathbf{u}\|^2=10\) and \(\|\mathbf{u}\|\|2\mathbf{u}\|=\sqrt{5}\,(2\sqrt{5})=10\).

Worked Example: Equality with a Negative Inner Product

Let \(\mathbf{u}=\begin{bmatrix}1\\2\\0\end{bmatrix}\) and \(\mathbf{v}=\begin{bmatrix}-3\\-6\\0\end{bmatrix}\) in \(\mathbb{R}^3\). Determine whether equality holds, paying attention to the absolute value.

The inner product is

$$ \langle\mathbf{u},\mathbf{v}\rangle =1(-3)+2(-6)+0(0) =-3-12+0 =-15. $$

The norms are found from the sums of squared coordinates:

$$ \|\mathbf{u}\|^2=1^2+2^2+0^2=5,\qquad \|\mathbf{u}\|=\sqrt{5}, $$ $$ \|\mathbf{v}\|^2=(-3)^2+(-6)^2+0^2=9+36=45,\qquad \|\mathbf{v}\|=3\sqrt{5}. $$

Thus \(|\langle\mathbf{u},\mathbf{v}\rangle|=|-15|=15\), and \(\|\mathbf{u}\|\|\mathbf{v}\|=\sqrt{5}\,(3\sqrt{5})=15\). Equality holds even though the inner product is negative. Indeed, \(\mathbf{v}=-3\mathbf{u}\).

Check: using \(\mathbf{v}=-3\mathbf{u}\) gives \(\langle\mathbf{u},\mathbf{v}\rangle=-3\langle\mathbf{u},\mathbf{u}\rangle=-3(5)=-15\), and \(\|\mathbf{v}\|=|-3|\|\mathbf{u}\|=3\sqrt{5}\). These values reproduce the equality above.

Worked Example: Strict Inequality for Nonproportional Vectors

Let \(\mathbf{u}=\begin{bmatrix}1\\2\end{bmatrix}\) and \(\mathbf{v}=\begin{bmatrix}2\\1\end{bmatrix}\). Compute both sides of Cauchy–Schwarz and check whether either vector is a scalar multiple of the other.

The inner product and norms are

$$ \langle\mathbf{u},\mathbf{v}\rangle =1\cdot2+2\cdot1=4, $$ $$ \|\mathbf{u}\|^2=1^2+2^2=5,\qquad \|\mathbf{v}\|^2=2^2+1^2=5, $$ $$ |\langle\mathbf{u},\mathbf{v}\rangle|=4,\qquad \|\mathbf{u}\|\|\mathbf{v}\|=\sqrt{5}\sqrt{5}=5. $$

Since \(4<5\), the inequality is strict. The vectors are not scalar multiples: if \(\mathbf{v}=c\mathbf{u}\), the first coordinate forces \(c=2\), but then the second coordinate would have to be \(4\), not \(1\). If \(\mathbf{u}=c\mathbf{v}\), the first coordinate forces \(c=\tfrac12\), but the second would have to be \(\tfrac12\), not \(2\). This confirms the criterion.

Check: the computed values satisfy \(4\leq5\), and they are unequal. The failed coordinate tests establish that the pair is not dependent, as the equality theorem predicts.

Signed Equality and the Scalar’s Sign

The absolute value in Cauchy–Schwarz treats positive and negative inner products alike. If the absolute value is removed, the sign of the proportionality scalar determines which signed equality can occur. The following result includes zero vectors explicitly.

Theorem (Signed equality cases): Let \(\mathbf{u},\mathbf{v}\) belong to a real inner product space. Then \(\langle\mathbf{u},\mathbf{v}\rangle=\|\mathbf{u}\|\|\mathbf{v}\|\) if and only if either \(\mathbf{v}=\mathbf{0}\), or \(\mathbf{v}\ne\mathbf{0}\) and \(\mathbf{u}=c\mathbf{v}\) for some \(c\geq0\). Also, \(\langle\mathbf{u},\mathbf{v}\rangle=-\|\mathbf{u}\|\|\mathbf{v}\|\) if and only if either \(\mathbf{v}=\mathbf{0}\), or \(\mathbf{v}\ne\mathbf{0}\) and \(\mathbf{u}=c\mathbf{v}\) for some \(c\leq0\).

Proof. If \(\mathbf{v}=\mathbf{0}\), then \(\langle\mathbf{u},\mathbf{v}\rangle=0\) and \(\|\mathbf{u}\|\|\mathbf{v}\|=0\), so both signed equalities hold. Now let \(\mathbf{v}\ne\mathbf{0}\). If the positive signed equality holds, set \(c=\langle\mathbf{u},\mathbf{v}\rangle/\|\mathbf{v}\|^2\). The residual computation in the first theorem gives \(\|\mathbf{u}-c\mathbf{v}\|^2=0\), so \(\mathbf{u}=c\mathbf{v}\). Moreover, \(c=\|\mathbf{u}\|/\|\mathbf{v}\|\geq0\), using \(\|\mathbf{v}\|>0\). Conversely, if \(\mathbf{u}=c\mathbf{v}\) with \(c\geq0\), then \(\langle\mathbf{u},\mathbf{v}\rangle=c\|\mathbf{v}\|^2\), and \(\|\mathbf{u}\|\|\mathbf{v}\|=|c|\|\mathbf{v}\|^2=c\|\mathbf{v}\|^2\), proving the positive equality.

For the negative signed equality with \(\mathbf{v}\ne\mathbf{0}\), the same scalar \(c=\langle\mathbf{u},\mathbf{v}\rangle/\|\mathbf{v}\|^2\) gives \(\mathbf{u}=c\mathbf{v}\) by the residual computation, and now \(c=-\|\mathbf{u}\|/\|\mathbf{v}\|\leq0\). Conversely, if \(\mathbf{u}=c\mathbf{v}\) with \(c\leq0\), then \(|c|=-c\), so \(\|\mathbf{u}\|\|\mathbf{v}\|=-c\|\mathbf{v}\|^2=-\langle\mathbf{u},\mathbf{v}\rangle\). Thus the negative equality holds as well. \(\square\)

When \(\mathbf{u}=\mathbf{0}\) and \(\mathbf{v}\ne\mathbf{0}\), the theorem uses \(c=0\), so both signed equalities hold. When \(\mathbf{v}=\mathbf{0}\), both equalities hold without requiring \(\mathbf{u}\) to be zero. These boundary cases explain why the theorem separates \(\mathbf{v}=\mathbf{0}\) rather than making a claim about a scalar obtained by dividing by \(\|\mathbf{v}\|^2\).

Common Pitfall: Dropping the Absolute Value

A common mistake is to replace the equality condition \(|\langle\mathbf{u},\mathbf{v}\rangle|=\|\mathbf{u}\|\|\mathbf{v}\|\) with \(\langle\mathbf{u},\mathbf{v}\rangle=\|\mathbf{u}\|\|\mathbf{v}\|\). That wrongly excludes dependent pairs with a negative scalar. For \(\mathbf{u}=\begin{bmatrix}1\\0\end{bmatrix}\) and \(\mathbf{v}=\begin{bmatrix}-2\\0\end{bmatrix}\), the incorrect calculation stops at \(-2\ne2\) and concludes that equality fails. The correction is to compare the absolute value: \(|\langle\mathbf{u},\mathbf{v}\rangle|=|-2|=2\), while \(\|\mathbf{u}\|=1\) and \(\|\mathbf{v}\|=2\), so the product of norms is \(2\). Equality does hold, because \(\mathbf{v}=-2\mathbf{u}\).

A second error is to claim that equality holds only when the vectors are identical. The first worked example has \(\mathbf{v}=2\mathbf{u}\), and the second has \(\mathbf{v}=-3\mathbf{u}\); both satisfy equality. The correct condition is proportionality, including a negative scalar and the cases involving a zero vector.

Using the Criterion Reliably

For coordinate vectors, a useful check is to calculate both sides and then test the scalar relation. If the computed quantities agree, the theorem guarantees dependence; if the vectors are dependent, the theorem guarantees equality. Doing both checks is valuable in a worked problem because an arithmetic error in a norm or inner product can otherwise lead to a false conclusion.

1
Compute the inner product.
Multiply corresponding coordinates and add, using the given real inner product.
2
Compute both norms.
For the standard inner product on \(\mathbb{R}^n\), square each coordinate, add, and take the nonnegative square root.
3
Compare the equality quantities.
Use \(|\langle\mathbf{u},\mathbf{v}\rangle|\), not just \(\langle\mathbf{u},\mathbf{v}\rangle\), when testing equality in Cauchy–Schwarz.
4
Check proportionality and sign.
If equality holds, verify a single scalar works in every coordinate. Its sign determines the sign of the inner product when neither vector is zero.

This criterion is useful whenever an estimate involving an inner product becomes exact: equality identifies the dependent case. It also provides a quick diagnostic for computations. A proposed equality example that has no scalar-multiple relation must contain an arithmetic or reasoning error; a proposed strict example with dependent vectors must be checked again.

Check Your Understanding

For each coordinate pair, compute enough to decide whether equality holds, and justify the conclusion using proportionality.

  1. Do \(\begin{bmatrix}3\\-1\end{bmatrix}\) and \(\begin{bmatrix}-6\\2\end{bmatrix}\) give equality in real Cauchy–Schwarz? What is the scalar relation?
  2. For \(\mathbf{u}=\begin{bmatrix}0\\0\end{bmatrix}\) and \(\mathbf{v}=\begin{bmatrix}1\\-4\end{bmatrix}\), do both signed equality cases hold?
  3. Are \(\begin{bmatrix}1\\3\end{bmatrix}\) and \(\begin{bmatrix}3\\1\end{bmatrix}\) proportional? Compute both sides of Cauchy–Schwarz.
  4. State why the proof using \(\alpha=\langle\mathbf{u},\mathbf{v}\rangle/\|\mathbf{v}\|^2\) needs a separate case when \(\mathbf{v}=\mathbf{0}\).
  5. If \(\mathbf{v}\ne\mathbf{0}\) and \(\mathbf{u}=c\mathbf{v}\) with \(c<0\), which signed equality holds?

Test yourself: Linear Algebra final exam practice

Ready to check what you know? Work a full-length practice final, then open the complete worked solutions.

Want all 1,114 practice problems?

This tutorial covers one topic. Calc Pass covers the full Calculus AB & BC curriculum (the core of Calculus I and II): full review, every practice question, and step-by-step solutions to each one.

QR code to download the Calc Pass app

Get the Calc Pass App

Scan to download and practice on the go, with instant scoring.

Calc Pass Volume 1: 1,114 Practice Questions book cover

Vol. 1: 1,114 Questions

The complete practice question bank, organized by AB & BC topic.

View on Amazon
Calc Pass Volume 2: Solutions Manual book cover

Vol. 2: Solutions Manual

Fully worked solutions to every question in Volume 1.

View on Amazon