Vectors 1.1.3

Vector Operations and Properties

Midpoint of a Line Segment

The midpoint of a line segment between points A and B is given by:

12(OA+OB)\frac{1}{2} (\vec{OA} + \vec{OB})

Example:

If OA=(1,0,4)\vec{OA} = (1, 0, 4) and OB=(5,6,12)\vec{OB} = (5, 6, 12), the midpoint is calculated as follows:

12(OA+OB)=12((1,0,4)+(5,6,12))=12(6,6,16)=(3,3,8)\frac{1}{2} (\vec{OA} + \vec{OB}) = \frac{1}{2} ((1, 0, 4) + (5, 6, 12)) = \frac{1}{2} (6, 6, 16) = (3, 3, 8)

Length of a Vector

2D Vector Length

For a vector a=(a<em>1,a</em>2)\,\vec{a} = (a<em>1, a</em>2) in 2D, the length (or magnitude) is given by:

a=a<em>12+a</em>22|\vec{a}| = \sqrt{a<em>1^2 + a</em>2^2}

This formula is derived from the Pythagorean theorem.

3D Vector Length

For a vector a=(a<em>1,a</em>2,a3)\,\vec{a} = (a<em>1, a</em>2, a_3) in 3D, the length is given by:

a=a<em>12+a</em>22+a32|\vec{a}| = \sqrt{a<em>1^2 + a</em>2^2 + a_3^2}

This is an extension of the Pythagorean theorem in three dimensions.

Derivation using Pythagoras' Theorem:

  1. First application: Find the distance d\,d in the x-y plane:

    d=a<em>12+a</em>22d = \sqrt{a<em>1^2 + a</em>2^2}

  2. Second application: Find the length of the vector a\,\vec{a} using d\,d and a3a_3:

    a=d2+a<em>32=(a</em>12+a<em>22)2+a</em>32=a<em>12+a</em>22+a32|\vec{a}| = \sqrt{d^2 + a<em>3^2} = \sqrt{(\sqrt{a</em>1^2 + a<em>2^2})^2 + a</em>3^2} = \sqrt{a<em>1^2 + a</em>2^2 + a_3^2}

Example:

Find the length of the vector v=(2,3,6)\,\vec{v} = (2, -3, 6):

v=22+(3)2+62=4+9+36=49=7|\vec{v}| = \sqrt{2^2 + (-3)^2 + 6^2} = \sqrt{4 + 9 + 36} = \sqrt{49} = 7

Worked Example:

Find the length of the vector v=(1,4,7)\,\vec{v} = (-1, 4, 7):

v=(1)2+42+72=1+16+49=66|\vec{v}| = \sqrt{(-1)^2 + 4^2 + 7^2} = \sqrt{1 + 16 + 49} = \sqrt{66}

Triangle Inequality

For any vectors a\,\vec{a} and b\,\vec{b}, the triangle inequality states:

a+ba+b|\vec{a} + \vec{b}| \le |\vec{a}| + |\vec{b}|

This principle implies that the shortest distance between two points is a straight line.

The equality holds (i.e., a+b=a+b\,|\vec{a} + \vec{b}| = |\vec{a}| + |\vec{b}|) only when a\,\vec{a} and b\,\vec{b} are parallel.

Worked Example:

Verify the triangle inequality for a=(1,2,2)\,\vec{a} = (1, 2, 2) and b=(6,3,2)\,\vec{b} = (6, 3, 2):

  • Left-hand side (LHS):

    a+b=(1+6,2+3,2+2)=(7,5,4)=72+52+42=49+25+16=909.5|\vec{a} + \vec{b}| = |(1+6, 2+3, 2+2)| = |(7, 5, 4)| = \sqrt{7^2 + 5^2 + 4^2} = \sqrt{49 + 25 + 16} = \sqrt{90} \approx 9.5

  • Right-hand side (RHS):

    a+b=(1,2,2)+(6,3,2)=12+22+22+62+32+22=9+49=3+7=10|\vec{a}| + |\vec{b}| = |(1, 2, 2)| + |(6, 3, 2)| = \sqrt{1^2 + 2^2 + 2^2} + \sqrt{6^2 + 3^2 + 2^2} = \sqrt{9} + \sqrt{49} = 3 + 7 = 10

Since 9.5 < 10, the triangle inequality is verified.

Unit Vector

A unit vector is a vector with a length (or magnitude) of 1.

It represents a