Skip to content

Vectors in coordinates

Vectors in coordinates

The unit vectors and coordinates

xyzijkuP

The unit vectors of the axes are i⃗\displaystyle \vec{i}, j⃗\displaystyle \vec{j}, k⃗\displaystyle \vec{k}: each is 1 long, and their directions are those of the x\displaystyle x, y\displaystyle y, z\displaystyle z axes.

The three are not in one plane, so every vector is a unique linear combination of them (the theorem of lesson 10):

u⃗=xi⃗+yj⃗+zk⃗=(x,y,z)\vec{u}=x\vec{i}+y\vec{j}+z\vec{k}=(x,y,z)

This is u⃗\displaystyle \vec{u} in coordinates – an ordered triple of numbers. The vector from O\displaystyle O to the point P(x,y,z)\displaystyle P(x,y,z) is (x,y,z)\displaystyle (x,y,z): in the drawing u⃗=OP→=(2,3,2)\displaystyle {\vec{u}}={\overrightarrow{OP}}={(2,3,2)}.

The vector between two points

xyzAB

AB→=OB→−OA→\displaystyle {\overrightarrow{AB}}={\overrightarrow{OB}-\overrightarrow{OA}}, so – the end minus the start:

AB→\displaystyle \overrightarrow{AB} =\displaystyle = (xB−xA, yB−yA, zB−zA)\displaystyle (x_B-x_A,\ y_B-y_A,\ z_B-z_A)

And operations on vectors work coordinate by coordinate:

  • Equality: two vectors are equal if and only if all their coordinates are equal.
  • Adding: (x1,y1,z1)+(x2,y2,z2)=(x1+x2, y1+y2, z1+z2)\displaystyle {(x_1,y_1,z_1)+(x_2,y_2,z_2)}={(x_1+x_2,\ y_1+y_2,\ z_1+z_2)}.
  • Multiplying by a number: t(x,y,z)=(tx,ty,tz)\displaystyle {t(x,y,z)}={(tx,ty,tz)}.
  • Collinearity: v⃗=tu⃗\displaystyle {\vec{v}}={t\vec{u}} – each coordinate of v⃗\displaystyle \vec{v} is the same number t\displaystyle t times that of u⃗\displaystyle \vec{u}.
  • The length – a box’s diagonal, as in the last lesson:
∣u⃗∣\displaystyle |\vec{u}| =\displaystyle = x2+y2+z2\displaystyle \sqrt{x^2+y^2+z^2}
Example: a triangle in space

ABC

The points A(3,−4,1)\displaystyle A(3,-4,1), B(4,1,8)\displaystyle B(4,1,8), C(2,0,7)\displaystyle C(2,0,7) are given.

  • AB→=(1,5,7)\displaystyle {\overrightarrow{AB}}={(1,5,7)}, AC→=(−1,4,6)\displaystyle {\overrightarrow{AC}}={(-1,4,6)}.
  • They are not collinear: −1=t⋅1\displaystyle {-1}={t\cdot1} gives t=−1\displaystyle {t}={-1}, but 4≠−1⋅5\displaystyle 4\neq-1\cdot5. So A\displaystyle A, B\displaystyle B, C\displaystyle C are not on one line – they make a triangle.
  • ∣AB→∣=1+25+49=75=53\displaystyle {|\overrightarrow{AB}|}={\sqrt{1+25+49}}={\sqrt{75}}={5\sqrt{3}}.
  • Where the medians meet, M\displaystyle M: AM→=13(AB→+AC→)=13(0,9,13)\displaystyle {\overrightarrow{AM}}={\frac{1}{3}\left(\overrightarrow{AB}+\overrightarrow{AC}\right)}={\frac{1}{3}(0,9,13)}, so M=(3, −4+3, 1+133)=(3,−1,163)\displaystyle {M}={\left(3,\ -4+3,\ 1+\frac{13}{3}\right)}={\left(3,-1,\frac{16}{3}\right)}.
  • The midpoint of a segment is the average of the coordinates: the midpoint of AB\displaystyle AB is (3+42,−4+12,1+82)=(3.5,−1.5,4.5)\displaystyle {\left(\frac{3+4}{2},\frac{-4+1}{2},\frac{1+8}{2}\right)}={(3.5,-1.5,4.5)}.
A linear combination by a system of equations

Is w⃗=(3,6,8)\displaystyle {\vec{w}}={(3,6,8)} a linear combination of u⃗=(1,5,7)\displaystyle {\vec{u}}={(1,5,7)} and v⃗=(−1,4,6)\displaystyle {\vec{v}}={(-1,4,6)}?

su⃗+tv⃗=w⃗\displaystyle {s\vec{u}+t\vec{v}}={\vec{w}} is an equality of three coordinates – three equations in two unknowns:

s−t=3,5s+4t=6,7s+6t=8s-t=3,\qquad 5s+4t=6,\qquad 7s+6t=8

From the first two: s=2\displaystyle {s}={2}, t=−1\displaystyle {t}={-1}. They satisfy the third as well: 14−6=8\displaystyle {14-6}={8}. So w⃗=2u⃗−v⃗\displaystyle {\vec{w}}={2\vec{u}-\vec{v}}, and w⃗\displaystyle \vec{w} is in the plane of u⃗\displaystyle \vec{u} and v⃗\displaystyle \vec{v}. Had the third equation failed, the system would have no solution, and w⃗\displaystyle \vec{w} would be no combination of them.

Exercise 1

xyzAB

The points A(1,2,−1)\displaystyle A(1,2,-1) and B(4,−2,11)\displaystyle B(4,-2,11) are given.

a

Write AB→\displaystyle \overrightarrow{AB} in coordinates.

b
∣AB→∣\displaystyle |\overrightarrow{AB}|

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

    / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

    Exercise 2

    The vectors u⃗=(2,−1,3)\displaystyle {\vec{u}}={(2,-1,3)} and v⃗=(1,4,−2)\displaystyle {\vec{v}}={(1,4,-2)} are given.

    a

    Find 2u⃗−3v⃗\displaystyle 2\vec{u}-3\vec{v}.

    b
    ∣u⃗+v⃗∣\displaystyle |\vec{u}+\vec{v}|, exactly

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – check and a new line · * – times · ^ – power, ↓ – end of the power

      / – fraction bar · Tab or the arrows – between numerator and denominator, then a note above or below · Enter – a new line · * – times · ^ – power, ↓ – end of the power

      Exercise 3

      αABCD

      ABCD\displaystyle ABCD is a parallelogram: A(1,0,2)\displaystyle A(1,0,2), B(4,1,3)\displaystyle B(4,1,3), C(5,3,−1)\displaystyle C(5,3,-1).
      Find the coordinates of D\displaystyle D. (Hint: AD→=BC→\displaystyle {\overrightarrow{AD}}={\overrightarrow{BC}}.)

      Exercise 4

      Are the points A(1,1,1)\displaystyle A(1,1,1), B(3,2,−1)\displaystyle B(3,2,-1), C(7,4,−5)\displaystyle C(7,4,-5) on one line? Explain with vectors.

      Exercise 5

      u⃗=(1,2,1)\displaystyle {\vec{u}}={(1,2,1)}, v⃗=(2,3,−1)\displaystyle {\vec{v}}={(2,3,-1)}, w⃗=(4,7,1)\displaystyle {\vec{w}}={(4,7,1)}.
      Find s\displaystyle s and t\displaystyle t so that w⃗=su⃗+tv⃗\displaystyle {\vec{w}}={s\vec{u}+t\vec{v}}: write the three equations and solve.

        Exercise 6

        u⃗=(1,0,1)\displaystyle {\vec{u}}={(1,0,1)}, v⃗=(0,1,1)\displaystyle {\vec{v}}={(0,1,1)}, w⃗=(1,1,1)\displaystyle {\vec{w}}={(1,1,1)}.
        Here is the system of w⃗=su⃗+tv⃗\displaystyle {\vec{w}}={s\vec{u}+t\vec{v}}. Solve it: is w⃗\displaystyle \vec{w} a linear combination of u⃗\displaystyle \vec{u} and v⃗\displaystyle \vec{v}?