Mathwords logoMathwords

Lagrange's Identity — Definition, Formula & Example

Lagrange's identity is an equation that gives the squared length of a cross product using only the two vectors' lengths and their dot product. You can use it to find the cross product's magnitude without working out the cross product itself.

For real numbers a1,…,ana_1, \dots, a_n and b1,…,bnb_1, \dots, b_n, (∑i=1nai2)(∑i=1nbi2)−(∑i=1naibi)2=∑1≤i<j≤n(aibj−ajbi)2.\left(\sum_{i=1}^{n} a_i^2\right)\left(\sum_{i=1}^{n} b_i^2\right) - \left(\sum_{i=1}^{n} a_i b_i\right)^2 = \sum_{1 \le i < j \le n} (a_i b_j - a_j b_i)^2. When n=3n = 3, the right side equals ∥a×b∥2\|\mathbf{a} \times \mathbf{b}\|^2 for a=⟨a1,a2,a3⟩\mathbf{a} = \langle a_1, a_2, a_3 \rangle and b=⟨b1,b2,b3⟩\mathbf{b} = \langle b_1, b_2, b_3 \rangle.

Key Formula

∥a×b∥2=∥a∥2 ∥b∥2−(a⋅b)2\|\mathbf{a} \times \mathbf{b}\|^2 = \|\mathbf{a}\|^2\,\|\mathbf{b}\|^2 - (\mathbf{a} \cdot \mathbf{b})^2
Where:
  • a,b\mathbf{a}, \mathbf{b} = Vectors in three-dimensional space
  • a×b\mathbf{a} \times \mathbf{b} = The cross product of a\mathbf{a} and b\mathbf{b}
  • ∥a∥,∥b∥\|\mathbf{a}\|, \|\mathbf{b}\| = The magnitudes (lengths) of the vectors
  • a⋅b\mathbf{a} \cdot \mathbf{b} = The dot product of a\mathbf{a} and b\mathbf{b}

Worked Example

Problem: Let a=⟨1,2,2⟩\mathbf{a} = \langle 1, 2, 2 \rangle and b=⟨3,0,4⟩\mathbf{b} = \langle 3, 0, 4 \rangle. Use Lagrange's identity to find ∥a×b∥2\|\mathbf{a} \times \mathbf{b}\|^2 without computing the cross product. Then check your result by computing the cross product directly.
Step 1: Find the squared magnitudes and the dot product.
∥a∥2=1+4+4=9,∥b∥2=9+0+16=25,a⋅b=3+0+8=11\|\mathbf{a}\|^2 = 1 + 4 + 4 = 9, \quad \|\mathbf{b}\|^2 = 9 + 0 + 16 = 25, \quad \mathbf{a} \cdot \mathbf{b} = 3 + 0 + 8 = 11
Step 2: Substitute these into Lagrange's identity.
∥a×b∥2=(9)(25)−112=225−121=104\|\mathbf{a} \times \mathbf{b}\|^2 = (9)(25) - 11^2 = 225 - 121 = 104
Step 3: Check: compute the cross product and square its length.
a×b=⟨8,2,−6⟩,82+22+(−6)2=64+4+36=104\mathbf{a} \times \mathbf{b} = \langle 8, 2, -6 \rangle, \quad 8^2 + 2^2 + (-6)^2 = 64 + 4 + 36 = 104
Answer: ∥a×b∥2=104\|\mathbf{a} \times \mathbf{b}\|^2 = 104, so ∥a×b∥=226≈10.20\|\mathbf{a} \times \mathbf{b}\| = 2\sqrt{26} \approx 10.20. This is also the area of the parallelogram formed by a\mathbf{a} and b\mathbf{b}.

Why It Matters

In multivariable calculus, Lagrange's identity gives you the area of a parallelogram or triangle in space straight from dot products. Divide both sides by ∥a∥2∥b∥2\|\mathbf{a}\|^2\|\mathbf{b}\|^2 and it becomes sin⁡2θ=1−cos⁡2θ\sin^2\theta = 1 - \cos^2\theta, which explains why ∥a×b∥=∥a∥∥b∥sin⁡θ\|\mathbf{a} \times \mathbf{b}\| = \|\mathbf{a}\|\|\mathbf{b}\|\sin\theta. The left side can never be negative, so the identity also proves the Cauchy–Schwarz inequality (a⋅b)2≤∥a∥2∥b∥2(\mathbf{a} \cdot \mathbf{b})^2 \le \|\mathbf{a}\|^2\|\mathbf{b}\|^2, a key result in linear algebra.

Common Mistakes

Mistake: Writing ∥a×b∥=∥a∥∥b∥−a⋅b\|\mathbf{a} \times \mathbf{b}\| = \|\mathbf{a}\|\|\mathbf{b}\| - \mathbf{a} \cdot \mathbf{b} by dropping the squares.
Correction: The identity is about squared quantities. In the example above, the unsquared version gives 3⋅5−11=43 \cdot 5 - 11 = 4, but the true magnitude is 104≈10.20\sqrt{104} \approx 10.20. Square both magnitudes and the dot product, subtract, and take the square root at the end.

Related Terms