Class 12 Maths, Worked in Full Past papersGet updates
Chapter 10 · Vector Algebra

Miscellaneous · Q15: (a⃗+b⃗)⋅(a⃗+b⃗)=∣a⃗∣2+∣b⃗∣2(\vec a+\vec b)\cdot(\vec a+\vec b)=|\vec a|^2+|\vec b|^2 if and only if a⃗⊥b⃗\vec a\perp\vec b

Miscellaneous ExerciseExpanding scalar products, perpendicular vectors · Section 10.6.1
The question

Prove that (a⃗+b⃗)⋅(a⃗+b⃗)=∣a⃗∣2+∣b⃗∣2(\vec a + \vec b)\cdot(\vec a + \vec b) = |\vec a|^2 + |\vec b|^2⁠, if and only if a⃗,b⃗\vec a, \vec b are perpendicular, given a⃗≠0⃗,b⃗≠0⃗\vec a \ne \vec 0, \vec b \ne \vec 0⁠.

Exam answer

Using distributivity, b⃗⋅a⃗=a⃗⋅b⃗\vec b\cdot\vec a = \vec a\cdot\vec b and x⃗⋅x⃗=∣x⃗∣2\vec x\cdot\vec x = |\vec x|^2⁠,

(a⃗+b⃗)⋅(a⃗+b⃗)=a⃗⋅a⃗+a⃗⋅b⃗+b⃗⋅a⃗+b⃗⋅b⃗=∣a⃗∣2+2 a⃗⋅b⃗+∣b⃗∣2…(i)\begin{aligned} &(\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 \\ &= |\vec a|^2 + 2\,\vec a\cdot\vec b + |\vec b|^2 \quad\ldots(\text{i}) \end{aligned}

If part. Let a⃗⊥b⃗\vec a \perp \vec b⁠. Then a⃗⋅b⃗=0\vec a\cdot\vec b = 0⁠, so by (i),

(a⃗+b⃗)⋅(a⃗+b⃗)=∣a⃗∣2+∣b⃗∣2(\vec a + \vec b)\cdot(\vec a + \vec b) = |\vec a|^2 + |\vec b|^2

Only if part. Let (a⃗+b⃗)⋅(a⃗+b⃗)=∣a⃗∣2+∣b⃗∣2(\vec a + \vec b)\cdot(\vec a + \vec b) = |\vec a|^2 + |\vec b|^2⁠. Then by (i),

2 a⃗⋅b⃗=0⇒a⃗⋅b⃗=02\,\vec a\cdot\vec b = 0 \Rightarrow \vec a\cdot\vec b = 0

As a⃗≠0⃗\vec a \ne \vec 0 and b⃗≠0⃗\vec b \ne \vec 0⁠, a⃗⋅b⃗=0\vec a\cdot\vec b = 0 gives a⃗⊥b⃗\vec a \perp \vec b⁠.

Hence (a⃗+b⃗)⋅(a⃗+b⃗)=∣a⃗∣2+∣b⃗∣2(\vec a + \vec b)\cdot(\vec a + \vec b) = |\vec a|^2 + |\vec b|^2 if and only if a⃗\vec a and b⃗\vec b are perpendicular.

Want the reason behind every step, the basics and the checks?

The one idea this problem is built on

Expanding gives ∣a⃗+b⃗∣2=∣a⃗∣2+∣b⃗∣2+2 a⃗⋅b⃗|\vec a + \vec b|^2 = |\vec a|^2 + |\vec b|^2 + 2\,\vec a\cdot\vec b⁠. The two sides of the given equation differ by exactly 2 a⃗⋅b⃗2\,\vec a\cdot\vec b, so the equation holds precisely when a⃗⋅b⃗=0\vec a\cdot\vec b = 0⁠, and for nonzero vectors that means perpendicular. It is Pythagoras' theorem in vector form, with its converse.

Given, to show, and the plan
Given
a⃗≠0⃗\vec a \ne \vec 0 and b⃗≠0⃗\vec b \ne \vec 0⁠.
To show
(a⃗+b⃗)⋅(a⃗+b⃗)=∣a⃗∣2+∣b⃗∣2(\vec a + \vec b)\cdot(\vec a + \vec b) = |\vec a|^2 + |\vec b|^2 if a⃗⊥b⃗\vec a \perp \vec b (the "if" part), and a⃗⊥b⃗\vec a \perp \vec b if the equation holds (the "only if" part).
Plan
(1) Expand the left side once. (2) Prove the "if" part. (3) Prove the "only if" part. (4) See why the vectors must be nonzero. (5) See the picture.

Basics you need

1Expanding scalar products

Distributivity (Property 1), x⃗⋅y⃗=y⃗⋅x⃗\vec x\cdot\vec y = \vec y\cdot\vec x (Observation 7) and x⃗⋅x⃗=∣x⃗∣2\vec x\cdot\vec x = |\vec x|^2 (Observation 3), Section 10.6.1. Basics: (x+y)2=x2+2xy+y2(x + y)^2 = x^2 + 2xy + y^2⁠, and dot products obey the same rule

2Perpendicular means scalar product 0

For nonzero a⃗\vec a⁠, b⃗\vec b⁠: a⃗⋅b⃗=0  ⟺  a⃗⊥b⃗\vec a\cdot\vec b = 0 \iff \vec a \perp \vec b (Section 10.6.1, Observation 2). Lesson: the dot product

3"If and only if"

"P if and only if Q" is two statements: Q implies P (the "if" part) and P implies Q (the "only if" part). Both must be proved (school logic).

Solution

  1. Expand the left side

    (a⃗+b⃗)⋅(a⃗+b⃗)=a⃗⋅a⃗+a⃗⋅b⃗+b⃗⋅a⃗+b⃗⋅b⃗=∣a⃗∣2+2 a⃗⋅b⃗+∣b⃗∣2.(i)\begin{aligned} &(\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 \\ &= |\vec a|^2 + 2\,\vec a\cdot\vec b + |\vec b|^2. \qquad (\text{i}) \end{aligned}
    Distributivity multiplies each term of the first bracket by each term of the second: four products. Two of them are squares of lengths, and the two mixed ones are equal because the scalar product is commutative, so they combine into 2 a⃗⋅b⃗2\,\vec a\cdot\vec b⁠. This is the vector form of (x+y)2=x2+2xy+y2(x + y)^2 = x^2 + 2xy + y^2⁠. Both parts of the proof use this one identity.
    Section 10.6.1, Property 1, Observations 3 and 7. Basics: dot products obey the same rule
  2. The "if" part: perpendicular gives the equation

    Suppose a⃗⊥b⃗\vec a \perp \vec b⁠. Then a⃗⋅b⃗=0\vec a\cdot\vec b = 0⁠, and (i) becomes

    (a⃗+b⃗)⋅(a⃗+b⃗)=∣a⃗∣2+0+∣b⃗∣2=∣a⃗∣2+∣b⃗∣2.\begin{aligned} (\vec a + \vec b)\cdot(\vec a + \vec b) &= |\vec a|^2 + 0 + |\vec b|^2 \\ &= |\vec a|^2 + |\vec b|^2. \end{aligned}
    For perpendicular vectors the angle is π2\frac{\pi}{2}⁠, so a⃗⋅b⃗=∣a⃗∣∣b⃗∣cos⁡π2=0\vec a\cdot\vec b = |\vec a||\vec b|\cos\frac{\pi}{2} = 0⁠, and the middle term of (i) disappears.
    Section 10.6.1, Observation 2. Lesson: the dot product
  3. The "only if" part: the equation gives perpendicular

    Suppose (a⃗+b⃗)⋅(a⃗+b⃗)=∣a⃗∣2+∣b⃗∣2(\vec a + \vec b)\cdot(\vec a + \vec b) = |\vec a|^2 + |\vec b|^2⁠. Comparing with (i),

    ∣a⃗∣2+2 a⃗⋅b⃗+∣b⃗∣2=∣a⃗∣2+∣b⃗∣22 a⃗⋅b⃗=0a⃗⋅b⃗=0.\begin{aligned} |\vec a|^2 + 2\,\vec a\cdot\vec b + |\vec b|^2 &= |\vec a|^2 + |\vec b|^2 \\ 2\,\vec a\cdot\vec b &= 0 \\ \vec a\cdot\vec b &= 0. \end{aligned}

    Since a⃗≠0⃗\vec a \ne \vec 0 and b⃗≠0⃗\vec b \ne \vec 0⁠, a⃗⋅b⃗=∣a⃗∣∣b⃗∣cos⁡θ=0\vec a\cdot\vec b = |\vec a||\vec b|\cos\theta = 0 forces cos⁡θ=0\cos\theta = 0⁠, so θ=π2\theta = \frac{\pi}{2}⁠: a⃗⊥b⃗\vec a \perp \vec b.

    Subtracting ∣a⃗∣2+∣b⃗∣2|\vec a|^2 + |\vec b|^2 from both sides leaves 2 a⃗⋅b⃗=02\,\vec a\cdot\vec b = 0⁠. The lengths ∣a⃗∣|\vec a| and ∣b⃗∣|\vec b| are positive because the vectors are nonzero, so we may divide by them, and the only angle in [0,π][0, \pi] with cosine 0 is π2\frac{\pi}{2}⁠.
    a⃗⋅b⃗=∣a⃗∣∣b⃗∣cos⁡θ\vec a\cdot\vec b = |\vec a||\vec b|\cos\theta⁠, 0≤θ≤π0 \le \theta \le \pi (Section 10.6.1, Definition 2). Basics: cos θ is a shadow
  4. Why the vectors must be nonzero

    If a⃗=0⃗\vec a = \vec 0⁠, then a⃗⋅b⃗=0\vec a\cdot\vec b = 0 by definition and the equation holds for every b⃗\vec b⁠, but the angle between 0⃗\vec 0 and b⃗\vec b is not defined, so "perpendicular" has no meaning. The condition a⃗≠0⃗,b⃗≠0⃗\vec a \ne \vec 0, \vec b \ne \vec 0 is exactly what lets "a⃗⋅b⃗=0\vec a\cdot\vec b = 0" be read as "perpendicular" in Step 3.

    The book defines a⃗⋅b⃗=0\vec a\cdot\vec b = 0 when either vector is zero, because no angle is available. The equivalence between "scalar product 0" and "perpendicular" is stated only for two nonzero vectors.
    Section 10.6.1, Definition 2 and Observation 2. Lesson: the dot product
  5. The picture: Pythagoras in vector form

    Put b⃗\vec b at the tip of a⃗\vec a⁠; then a⃗+b⃗\vec a + \vec b closes the triangle. The equation says the square on the third side equals the sum of the squares on the other two, which is Pythagoras' theorem and its converse:

    a, 3 b, 4 a + b, 5 a ⊥ b: 25 = 9 + 16 a, 3 60° b, 4 a + b, √37 60°: 37 = 9 + 16 + 12
    Drawn with one scale. Left: ∣a⃗∣=3|\vec a| = 3⁠, ∣b⃗∣=4|\vec b| = 4 at a right angle, ∣a⃗+b⃗∣=5|\vec a + \vec b| = 5⁠, and 25=9+1625 = 9 + 16⁠. Right: the same lengths at 60∘60^\circ⁠, a⃗⋅b⃗=3×4×12=6\vec a\cdot\vec b = 3 \times 4 \times \frac12 = 6⁠, and ∣a⃗+b⃗∣2=9+16+12=37|\vec a + \vec b|^2 = 9 + 16 + 12 = 37⁠, more than 9+169 + 16 by 2 a⃗⋅b⃗=122\,\vec a\cdot\vec b = 12⁠.
    In the triangle, the angle opposite to a⃗+b⃗\vec a + \vec b is π−θ\pi - \theta⁠. Identity (i) is the cosine rule written with vectors; the correction term 2 a⃗⋅b⃗2\,\vec a\cdot\vec b vanishes exactly for a right angle.
    Triangle law (Section 10.4). Lesson: adding arrows, head to tail
Result

(a⃗+b⃗)⋅(a⃗+b⃗)=∣a⃗∣2+∣b⃗∣2+2 a⃗⋅b⃗(\vec a + \vec b)\cdot(\vec a + \vec b) = |\vec a|^2 + |\vec b|^2 + 2\,\vec a\cdot\vec b⁠, so for nonzero a⃗\vec a and b⃗\vec b⁠, (a⃗+b⃗)⋅(a⃗+b⃗)=∣a⃗∣2+∣b⃗∣2(\vec a + \vec b)\cdot(\vec a + \vec b) = |\vec a|^2 + |\vec b|^2 if and only if a⃗⋅b⃗=0\vec a\cdot\vec b = 0⁠, that is, if and only if a⃗\vec a and b⃗\vec b are perpendicular. Hence proved.

(Textbook answer: the answer key has no entry for this "prove that" question.)

Check it with numbers

Perpendicular: a⃗=i^+2j^+2k^\vec a = \hat i + 2\hat j + 2\hat k⁠, b⃗=2i^+j^−2k^\vec b = 2\hat i + \hat j - 2\hat k⁠, a⃗⋅b⃗=2+2−4=0\vec a\cdot\vec b = 2 + 2 - 4 = 0⁠. Then a⃗+b⃗=3i^+3j^\vec a + \vec b = 3\hat i + 3\hat j and ∣a⃗+b⃗∣2=18=9+9=∣a⃗∣2+∣b⃗∣2|\vec a + \vec b|^2 = 18 = 9 + 9 = |\vec a|^2 + |\vec b|^2⁠.

Not perpendicular: a⃗=i^+2j^+2k^\vec a = \hat i + 2\hat j + 2\hat k⁠, b⃗=i^\vec b = \hat i⁠, a⃗⋅b⃗=1\vec a\cdot\vec b = 1⁠. Then a⃗+b⃗=2i^+2j^+2k^\vec a + \vec b = 2\hat i + 2\hat j + 2\hat k and ∣a⃗+b⃗∣2=12|\vec a + \vec b|^2 = 12⁠, while ∣a⃗∣2+∣b⃗∣2=10|\vec a|^2 + |\vec b|^2 = 10⁠; the difference is 2=2 a⃗⋅b⃗2 = 2\,\vec a\cdot\vec b⁠. The angle between these two is cos⁡−113≈70.5288∘\cos^{-1}\frac13 \approx 70.5288^\circ⁠, not 90∘90^\circ⁠.

The figure: 37≈6.082763\sqrt{37} \approx 6.082763⁠, against 5 for the right angle.

Common mistakes
  1. Proving one direction only. "If and only if" needs both the "if" part and the "only if" part.
  2. Writing (a⃗+b⃗)⋅(a⃗+b⃗)=∣a⃗∣2+∣b⃗∣2(\vec a + \vec b)\cdot(\vec a + \vec b) = |\vec a|^2 + |\vec b|^2 from the start. That skips the term 2 a⃗⋅b⃗2\,\vec a\cdot\vec b⁠, which is the whole point.
  3. Forgetting the nonzero condition. a⃗⋅b⃗=0\vec a\cdot\vec b = 0 means perpendicular only when both vectors are nonzero.
What to take away
  1. ∣a⃗+b⃗∣2=∣a⃗∣2+2 a⃗⋅b⃗+∣b⃗∣2|\vec a + \vec b|^2 = |\vec a|^2 + 2\,\vec a\cdot\vec b + |\vec b|^2⁠.
  2. Pythagoras for vectors: ∣a⃗+b⃗∣2=∣a⃗∣2+∣b⃗∣2  ⟺  a⃗⋅b⃗=0|\vec a + \vec b|^2 = |\vec a|^2 + |\vec b|^2 \iff \vec a\cdot\vec b = 0⁠.
  3. For an "if and only if", prove each direction separately and label them.

Every fact used, and where it comes from

FactUsed inSource
Distributivity; x⃗⋅y⃗=y⃗⋅x⃗\vec x\cdot\vec y = \vec y\cdot\vec x⁠; x⃗⋅x⃗=∣x⃗∣2\vec x\cdot\vec x = |\vec x|^2Step 1Section 10.6.1, Property 1, Observations 3 and 7 (Basics: dot products obey the same rule)
a⃗⋅b⃗=0  ⟺  a⃗⊥b⃗\vec a\cdot\vec b = 0 \iff \vec a \perp \vec b for nonzero vectorsSteps 2, 3, 4Section 10.6.1, Observation 2
a⃗⋅b⃗=∣a⃗∣∣b⃗∣cos⁡θ\vec a\cdot\vec b = |\vec a||\vec b|\cos\theta⁠, 0≤θ≤π0 \le \theta \le \pi⁠; a⃗⋅b⃗=0\vec a\cdot\vec b = 0 if a vector is zeroSteps 2, 3, 4, 5Section 10.6.1, Definition 2
Triangle law of additionStep 5Section 10.4 (Lesson: adding arrows, head to tail)
Scalar product in componentsCheckSection 10.6.1 (Lesson: the dot product)
The answerResult"Prove that" question; no key entry (Lesson: the miscellaneous exercises)
Found an error, or want more?

Tell us if something on this page is wrong or unclear, or if you would like a fuller explanation, another method or a new feature. Send feedback on this problem →