- Practice
- About 17 min
- 5 practice questions
Lagrange's identity: moving between dot product, cross product and magnitudes
Use |a × b|² + (a · b)² = |a|²|b|² to find a cross-product magnitude from lengths and a dot product (or the reverse), and apply it to angles and areas.
If something looks wrong, please tell us.
The dot product and the cross product describe the same two vectors in different ways: one uses cos θ and the other sin θ. Because cos²θ + sin²θ = 1, the two products are tied together by a single identity. It lets us find |a × b| without ever computing a cross product, and it appears in exam questions that give only lengths and a dot product.
The identity
From |a × b| = |a||b| sin θ and a · b = |a||b| cos θ we get |a × b|² = |a|²|b|² sin²θ = |a|²|b|²(1 − cos²θ) = |a|²|b|² − |a|²|b|² cos²θ. The last term is (a · b)². This gives Lagrange's identity: |a × b|² + (a · b)² = |a|²|b|². Rearranged, |a × b|² = |a|²|b|² − (a · b)², which is also the expansion in components: it is true for all vectors in three dimensions.
What the identity lets you do
- Given |a|, |b| and a · b, find |a × b|: use |a × b|² = |a|²|b|² − (a · b)².
- Given |a|, |b| and |a × b|, find |a · b|: use (a · b)² = |a|²|b|² − |a × b|². The sign of a · b is not determined, so the angle may be acute or obtuse.
- Given |a × b| and a · b, find the product |a||b| = √(|a × b|² + (a · b)²), and tan θ = |a × b| / (a · b).
- Area of a triangle with two sides a and b: ½ √(|a|²|b|² − (a · b)²), without needing coordinates.
|a × b|² + (a · b)² = |a|²|b|². The cross product carries sin θ and the dot product carries cos θ, so their squares add to |a|²|b|².
Worked example 1: from lengths to a cross product
Given |a| = 3, |b| = 5 and a · b = 9, find |a × b|. Then |a × b|² = 9 × 25 − 81 = 225 − 81 = 144, so |a × b| = 12. As a check, cos θ = 9/15 = 3/5, so sin θ = 4/5, and |a||b| sin θ = 15 × 4/5 = 12.
Worked example 2: a component check
Let a = i + 2j + 3k and b = 3i − j + 2k. Then a · b = 3 − 2 + 6 = 7, |a|² = 14 and |b|² = 14. So |a × b|² = 14 × 14 − 49 = 147 and |a × b| = 7√3. Directly, a × b = (2·2 − 3·(−1))i + (3·3 − 1·2)j + (1·(−1) − 2·3)k = 7i + 7j − 7k, and its magnitude is √(49 + 49 + 49) = 7√3. Both routes agree.
Worked example 3: from the products to the lengths
Two vectors satisfy |a × b| = 8 and a · b = 6. Find |a||b| and the angle. Then |a|²|b|² = 64 + 36 = 100, so |a||b| = 10. Since sin θ = 8/10 and cos θ = 6/10, tan θ = 4/3 and θ is acute, about 53°. If instead a · b = −6, then cos θ = −3/5 and the angle is obtuse; the magnitude of the cross product is the same in both cases.
Worked example 4: equal products
Non-zero vectors a and b satisfy |a × b| = |a · b|. Then |a||b| sin θ = |a||b| |cos θ|, so |tan θ| = 1. Hence θ = 45° or θ = 135°. If the question also says that the angle is acute, only 45° remains.
Worked example 5: area of a triangle from lengths
In triangle ABC, AB = 5, AC = 6 and AB · AC = 18. The area is ½ √(25 × 36 − 18²) = ½ √(900 − 324) = ½ √576 = ½ × 24 = 12 square units. Check: cos A = 18/30 = 3/5, sin A = 4/5, and ½ × 5 × 6 × 4/5 = 12.
Key takeaways. Square, add and compare: the squares of the dot product and of the magnitude of the cross product add up to |a|²|b|². Do not forget the square root at the end, and remember that |a · b| tells you cos θ only up to a sign.
Check your understanding
-
1. |a| = 4, |b| = 5 and a · b = 12. What is |a × b|?
- 12
- 16
- 20
- 8
Show answer
Answer: B. |a × b|² = 16 × 25 − 144 = 400 − 144 = 256, so |a × b| = 16. The value 20 is |a||b|.
-
2. |a × b| = 6 and a · b = 8. What is |a||b|?
- 14
- 2
- 100
- 10
Show answer
Answer: D. |a|²|b|² = 36 + 64 = 100, so |a||b| = 10. The value 100 forgets the square root and 14 simply adds 6 and 8.
-
3. Non-zero vectors a and b satisfy |a × b| = |a · b|, and the angle between them is acute. What is the angle?
- 45°
- 30°
- 60°
- 90°
Show answer
Answer: A. |a||b| sin θ = |a||b| cos θ gives tan θ = 1. An acute angle with tan θ = 1 is 45°. A right angle would make a · b = 0, and then a × b would have to be 0 as well.
-
4. In triangle ABC, AB = 5, AC = 6 and AB · AC = 18. What is the area?
- 15
- 24
- 12
- 9
Show answer
Answer: C. The area is ½ √(5² · 6² − 18²) = ½ √576 = 12. The value 24 forgets the factor ½.
-
5. a = i − j + 2k and b = 2i + j − k. What is |a × b|?
- √37
- 6
- 5
- √35
Show answer
Answer: D. a · b = 2 − 1 − 2 = −1, |a|² = 6 and |b|² = 6. So |a × b|² = 36 − 1 = 35. The value √37 results from adding the dot product's square instead of subtracting.
Sign in to keep track of the lessons you finish.