Detailed Explanation
The dot product of a vector with itself gives the square of its magnitude, that is \( \vec{a} \cdot \vec{a} = |\vec{a}|^2 \). The dot product is also distributive over addition, so we can expand \( (\vec{a}+\vec{b}) \cdot (\vec{a}+\vec{b}) \) just like a normal algebraic product. Two non-zero vectors \( \vec{a} \) and \( \vec{b} \) are perpendicular exactly when their dot product is zero, that is \( \vec{a} \cdot \vec{b} = 0 \). This is because \( \vec{a} \cdot \vec{b} = |\vec{a}||\vec{b}|\cos\theta \), and since \( \vec{a} \ne 0 \) and \( \vec{b} \ne 0 \), the product is zero only when \( \cos\theta = 0 \), i.e. \( \theta = 90^\circ \). Since we must prove 'if and only if', we need to show both directions of the statement.
Formula Used
\( \vec{a} \cdot \vec{a} = |\vec{a}|^2 \), the distributive law \( \vec{a} \cdot (\vec{b}+\vec{c}) = \vec{a}\cdot\vec{b} + \vec{a}\cdot\vec{c} \), and \( \vec{a} \cdot \vec{b} = |\vec{a}||\vec{b}|\cos\theta \).
Solution
- Step 1: Expand the left-hand side using the distributive property of the dot product. \[ (\vec{a}+\vec{b}) \cdot (\vec{a}+\vec{b}) = \vec{a}\cdot\vec{a} + \vec{a}\cdot\vec{b} + \vec{b}\cdot\vec{a} + \vec{b}\cdot\vec{b} \]
- Step 2: Use \( \vec{a}\cdot\vec{a} = |\vec{a}|^2 \) and \( \vec{b}\cdot\vec{b} = |\vec{b}|^2 \). Also, since the dot product is commutative, \( \vec{a}\cdot\vec{b} = \vec{b}\cdot\vec{a} \). This gives \[ (\vec{a}+\vec{b}) \cdot (\vec{a}+\vec{b}) = |\vec{a}|^2 + 2(\vec{a}\cdot\vec{b}) + |\vec{b}|^2 \]
- Step 3: First prove the forward direction. Assume \( (\vec{a}+\vec{b}) \cdot (\vec{a}+\vec{b}) = |\vec{a}|^2 + |\vec{b}|^2 \). Substitute the result from Step 2. \[ |\vec{a}|^2 + 2(\vec{a}\cdot\vec{b}) + |\vec{b}|^2 = |\vec{a}|^2 + |\vec{b}|^2 \]
- Step 4: Cancel \( |\vec{a}|^2 \) and \( |\vec{b}|^2 \) from both sides to get \[ 2(\vec{a}\cdot\vec{b}) = 0 \quad \Rightarrow \quad \vec{a}\cdot\vec{b} = 0 \] Since \( \vec{a} \ne 0 \) and \( \vec{b} \ne 0 \), the relation \( \vec{a}\cdot\vec{b} = 0 \) forces \( \cos\theta = 0 \), so \( \theta = 90^\circ \). Hence \( \vec{a} \) and \( \vec{b} \) are perpendicular.
- Step 5: Now prove the reverse direction. Assume \( \vec{a} \) and \( \vec{b} \) are perpendicular, so \( \vec{a}\cdot\vec{b} = 0 \). Substitute this into the expansion from Step 2. \[ (\vec{a}+\vec{b}) \cdot (\vec{a}+\vec{b}) = |\vec{a}|^2 + 2(0) + |\vec{b}|^2 = |\vec{a}|^2 + |\vec{b}|^2 \] This is exactly the required identity.
- Step 6: Since both directions hold, the equality \( (\vec{a}+\vec{b}) \cdot (\vec{a}+\vec{b}) = |\vec{a}|^2 + |\vec{b}|^2 \) is true if and only if \( \vec{a} \) and \( \vec{b} \) are perpendicular.
Final Answer
We have proved that \( (\vec{a}+\vec{b}) \cdot (\vec{a}+\vec{b}) = |\vec{a}|^2 + |\vec{b}|^2 \) holds if and only if \( \vec{a}\cdot\vec{b} = 0 \), i.e. if and only if \( \vec{a} \) and \( \vec{b} \) are perpendicular (given \( \vec{a} \ne 0 \) and \( \vec{b} \ne 0 \)).
Common Mistake
Many students prove only one direction (usually that perpendicularity gives the identity) and forget that an 'if and only if' statement requires proving both directions. Another frequent error is dropping the factor 2 while expanding \( (\vec{a}+\vec{b}) \cdot (\vec{a}+\vec{b}) \), forgetting that \( \vec{a}\cdot\vec{b} + \vec{b}\cdot\vec{a} = 2(\vec{a}\cdot\vec{b}) \).