Steply

Are (1, 1, 1, 1) and (1, -1, 1, -1) orthogonal

Step by step, with the reason for every step · Dot product and length · Linear Algebra

Step by step

The question

Question: are (1, 1, 1, 1) and (1, −1, 1, −1) orthogonal?

u = [1; 1; 1; 1], v = [1; −1; 1; −1]

Orthogonal means perpendicular: at a right angle.

Two vectors are orthogonal exactly when their dot product is 0.

orthogonal: at a right angle (perpendicular)
u • v = 0

1 Find the dot product

Matching entries multiplied, then added: 1 × 1 + 1 × (−1) + 1 × 1 + 1 × (−1).

u • v = 1 × 1 + 1 × (−1) + 1 × 1 + 1 × (−1)

We work out each times.

u • v = 1 − 1 + 1 − 1

Then we add: u • v = 0.

u • v = 0

2 Compare with 0

The dot product is 0.

So yes: the vectors are orthogonal.

= orthogonal

Careful!

Only a dot product of exactly 0 means orthogonal.

Any other number, even a small one, means not.

Careful: orthogonal: the dot product is exactly 0

3 Check

Let's check with Pythagoras.

At a right angle, the length of u squared plus the length of v squared equals the length of u plus v, squared.

right angle: ‖u‖2 + ‖v‖2 = ‖u + v‖2

The length squared is the entries squared, added.

For u: 4.

‖u‖² = 12 + 12 + 12 + 12 = 1 + 1 + 1 + 1 = 4

For v: 4.

‖v‖² = 12 + (−1)2 + 12 + (−1)2
= 1 + 1 + 1 + 1 = 4

u plus v: (2, 0, 2, 0).

u + v = [2; 0; 2; 0]

Its length squared: 8.

‖u + v‖² = 22 + 02 + 22 + 02 = 4 + 0 + 4 + 0
= 8

4 plus 4 is 8, the same as 8.

Pythagoras works: a right angle.

So the answer is right!

4 + 4 = 8 = 8

Let's look back.

First: find the dot product.

Then: compare with 0.

Last: check.

Answer
Careful: orthogonal: the dot product is exactly 0

Your turn

Try this one yourself, then check:

Orthogonal? [1; 1; 1; 2] and [3; −3; 6; −3]
Show the answer
orthogonal

More from Dot product and length

The whole lesson: Dot product and length →