Skip to content
Family Table Math
Auto

Cartesian Vectors

Drawing vectors and using the sine and cosine laws works, but it gets messy with three or more vectors. Putting vectors on a coordinate grid turns every vector into a pair of numbers, its components, and then adding, subtracting, and scaling vectors is just arithmetic. This is also the form computers, GPS units, and game engines use. All angles are in degrees.

Put the tail of a vector at the origin OO. If its head lands at the point P(x,y)P(x, y), then OP→\overrightarrow{OP} is the position vector of PP, and we write it in Cartesian form (component form) as

OP→=[x,y]\overrightarrow{OP} = [x, y]

xx is the horizontal component and yy is the vertical component. Since equal vectors can be drawn anywhere, any vector that moves xx units right and yy units up is [x,y][x, y], wherever its tail is.

This site uses square brackets, as Ontario textbooks do. Some books write (x,y)(x, y) or ⟨x,y⟩\langle x, y\rangle for a vector instead. Square brackets help keep the vector [x,y][x, y] separate from the point (x,y)(x, y). IB courses write the same vector as a column, (xy)\begin{pmatrix} x \\ y \end{pmatrix}; it means exactly the same thing.

By the Pythagorean theorem, the magnitude of v⃗=[x,y]\vec{v} = [x, y] is

∣v⃗∣=x2+y2\lvert\vec{v}\rvert = \sqrt{x^2 + y^2}

From magnitude and direction to components

Section titled “From magnitude and direction to components”

If v⃗\vec{v} has magnitude rr and direction angle θ\theta (measured counterclockwise from the positive xx-axis), then

x=rcos⁡θ,y=rsin⁡θ,sov⃗=[rcos⁡θ, rsin⁡θ]x = r\cos\theta, \qquad y = r\sin\theta, \qquad \text{so} \quad \vec{v} = [r\cos\theta,\ r\sin\theta]

These come from the trig ratios for any angle, and the signs take care of themselves: in the figure, cos⁡θ\cos\theta is negative, so xx is negative. If the direction is given as a bearing, convert it first with θ=90∘−bearing\theta = 90^\circ - \text{bearing} (taking north as the positive yy-axis and east as the positive xx-axis).

The position vector of P(negative 4, 3) has magnitude r = 5 and direction angle theta measured counterclockwise from the positive x-axis. Its horizontal component is r cos theta = negative 4 and its vertical component is r sin theta = 3. θ x = r cos θ = −4 y = r sin θ = 3 r = 5 P(−4, 3) −5 −4 −3 −2 −1 1 2 −1 1 2 3 4
The components of OP→\overrightarrow{OP} are x=rcos⁡θ=−4x = r\cos\theta = -4 and y=rsin⁡θ=3y = r\sin\theta = 3.

From components to magnitude and direction

Section titled “From components to magnitude and direction”

Given v⃗=[x,y]\vec{v} = [x, y], find r=x2+y2r = \sqrt{x^2 + y^2}, then find θ\theta from tan⁡θ=yx\tan\theta = \dfrac{y}{x}. Watch the quadrant: a calculator’s tan⁡−1\tan^{-1} only gives angles between −90∘-90^\circ and 90∘90^\circ.

Where v⃗\vec{v} pointsDirection angle
Quadrant I (x>0x \gt 0, y>0y \gt 0)θ=tan⁡−1(yx)\theta = \tan^{-1}\left(\dfrac{y}{x}\right)
Quadrant II or III (x<0x \lt 0)θ=tan⁡−1(yx)+180∘\theta = \tan^{-1}\left(\dfrac{y}{x}\right) + 180^\circ
Quadrant IV (x>0x \gt 0, y<0y \lt 0)θ=tan⁡−1(yx)+360∘\theta = \tan^{-1}\left(\dfrac{y}{x}\right) + 360^\circ

A sketch is the best check. Many students prefer to find the acute reference angle tan⁡−1∣yx∣\tan^{-1}\left\lvert\dfrac{y}{x}\right\rvert and then place it in the right quadrant.

For u⃗=[u1,u2]\vec{u} = [u_1, u_2], v⃗=[v1,v2]\vec{v} = [v_1, v_2] and a scalar kk, work component by component:

u⃗+v⃗=[u1+v1, u2+v2],u⃗−v⃗=[u1−v1, u2−v2],ku⃗=[ku1, ku2]\vec{u} + \vec{v} = [u_1 + v_1,\ u_2 + v_2], \qquad \vec{u} - \vec{v} = [u_1 - v_1,\ u_2 - v_2], \qquad k\vec{u} = [ku_1,\ ku_2]

Two vectors are equal exactly when their components are equal. All the properties from vector addition and scalar multiplication still hold. Two non-zero vectors are collinear when their components are proportional: [u1,u2]=k[v1,v2][u_1, u_2] = k[v_1, v_2].

For points A(x1,y1)A(x_1, y_1) and B(x2,y2)B(x_2, y_2), AB→=OB→−OA→\overrightarrow{AB} = \overrightarrow{OB} - \overrightarrow{OA}, so

AB→=[x2−x1, y2−y1]\overrightarrow{AB} = [x_2 - x_1,\ y_2 - y_1]

It’s “head minus tail”. Its magnitude is the distance from AA to BB: ∣AB→∣=(x2−x1)2+(y2−y1)2\lvert\overrightarrow{AB}\rvert = \sqrt{(x_2 - x_1)^2 + (y_2 - y_1)^2}.

The standard unit vectors are i⃗=[1,0]\vec{i} = [1, 0] (one unit along the positive xx-axis) and j⃗=[0,1]\vec{j} = [0, 1] (one unit along the positive yy-axis). Every vector is a linear combination of them:

[x,y]=xi⃗+yj⃗[x, y] = x\vec{i} + y\vec{j}

For example, [5,−2]=5i⃗−2j⃗[5, -2] = 5\vec{i} - 2\vec{j}. The unit vector in the direction of v⃗\vec{v} is 1∣v⃗∣v⃗\dfrac{1}{\lvert\vec{v}\rvert}\vec{v}, as before.

Example 1: Magnitude and direction to components

Section titled “Example 1: Magnitude and direction to components”
  • (a) a⃗\vec{a} has magnitude 1212 and direction θ=150∘\theta = 150^\circ. Write a⃗\vec{a} in Cartesian form, exactly.
  • (b) A car’s velocity v⃗\vec{v} is 5050 km/h on a bearing of 230∘230^\circ. Write v⃗\vec{v} in Cartesian form, with east as the positive xx-axis and north as the positive yy-axis, to two decimal places.

Solution.

(a) Use the special angles: cos⁡150∘=−32\cos 150^\circ = -\dfrac{\sqrt{3}}{2} and sin⁡150∘=12\sin 150^\circ = \dfrac{1}{2}.

a⃗=[12cos⁡150∘, 12sin⁡150∘]=[−63, 6]\vec{a} = [12\cos 150^\circ,\ 12\sin 150^\circ] = [-6\sqrt{3},\ 6]

Check: (−63)2+62=108+36=144=12\sqrt{(-6\sqrt{3})^2 + 6^2} = \sqrt{108 + 36} = \sqrt{144} = 12. ✓

(b) Convert the bearing: θ=90∘−230∘=−140∘\theta = 90^\circ - 230^\circ = -140^\circ, or 220∘220^\circ.

v⃗=[50cos⁡220∘, 50sin⁡220∘]≈[−38.30, −32.14]\vec{v} = [50\cos 220^\circ,\ 50\sin 220^\circ] \approx [-38.30,\ -32.14]

Both components are negative, which makes sense: a bearing of 230∘230^\circ is S 50∘50^\circ W, so the car is moving south and west.

Example 2: Components to magnitude and direction

Section titled “Example 2: Components to magnitude and direction”

Find the magnitude and direction angle of each vector, to one decimal place.

  • (a) v⃗=[−5,12]\vec{v} = [-5, 12]
  • (b) w⃗=[3,−4]\vec{w} = [3, -4]

Solution.

(a) ∣v⃗∣=(−5)2+122=169=13\lvert\vec{v}\rvert = \sqrt{(-5)^2 + 12^2} = \sqrt{169} = 13.

A calculator gives tan⁡−1(12−5)≈−67.4∘\tan^{-1}\left(\dfrac{12}{-5}\right) \approx -67.4^\circ, which points into quadrant IV. But v⃗\vec{v} has x<0x \lt 0 and y>0y \gt 0, so it’s in quadrant II. Add 180∘180^\circ:

θ≈−67.4∘+180∘=112.6∘\theta \approx -67.4^\circ + 180^\circ = 112.6^\circ

(b) ∣w⃗∣=32+(−4)2=5\lvert\vec{w}\rvert = \sqrt{3^2 + (-4)^2} = 5. tan⁡−1(−43)≈−53.1∘\tan^{-1}\left(\dfrac{-4}{3}\right) \approx -53.1^\circ. w⃗\vec{w} is in quadrant IV, so add 360∘360^\circ: θ≈306.9∘\theta \approx 306.9^\circ.

Check (a): 13cos⁡112.6∘≈−5.013\cos 112.6^\circ \approx -5.0 and 13sin⁡112.6∘≈12.013\sin 112.6^\circ \approx 12.0. ✓

Given A(−2,1)A(-2, 1), B(3,4)B(3, 4) and C(5,−2)C(5, -2):

  • (a) Find AB→\overrightarrow{AB}, ∣AB→∣\lvert\overrightarrow{AB}\rvert and AC→\overrightarrow{AC}.
  • (b) Find 2AB→−AC→2\overrightarrow{AB} - \overrightarrow{AC}.
  • (c) Find the unit vector in the direction of AB→\overrightarrow{AB}.
Points A(negative 2, 1), B(3, 4) and C(5, negative 2). The vector AB runs 5 units right and 3 units up, so AB = [5, 3]. The vector AC goes from A to C. 5 3 A(−2, 1) B(3, 4) C(5, −2) −3 −2 −1 1 2 3 4 5 6 −3 −2 −1 1 2 3 4 5
AB→\overrightarrow{AB} moves 55 right and 33 up, so AB→=[5,3]\overrightarrow{AB} = [5, 3].

Solution.

(a) Head minus tail:

AB→=[3−(−2), 4−1]=[5,3],∣AB→∣=52+32=34≈5.83\overrightarrow{AB} = [3 - (-2),\ 4 - 1] = [5, 3], \qquad \lvert\overrightarrow{AB}\rvert = \sqrt{5^2 + 3^2} = \sqrt{34} \approx 5.83 AC→=[5−(−2), −2−1]=[7,−3]\overrightarrow{AC} = [5 - (-2),\ -2 - 1] = [7, -3]

(b)

2AB→−AC→=[10,6]−[7,−3]=[3,9]2\overrightarrow{AB} - \overrightarrow{AC} = [10, 6] - [7, -3] = [3, 9]

(c) Divide by the magnitude:

134[5,3]=[534, 334]≈[0.857, 0.514]\frac{1}{\sqrt{34}}[5, 3] = \left[\frac{5}{\sqrt{34}},\ \frac{3}{\sqrt{34}}\right] \approx [0.857,\ 0.514]

Check: 0.8572+0.5142≈1.0000.857^2 + 0.514^2 \approx 1.000. ✓

Two forces act on a point: F⃗1\vec{F}_1 is 5050 N at θ=20∘\theta = 20^\circ and F⃗2\vec{F}_2 is 8080 N at θ=130∘\theta = 130^\circ. Find the resultant in i⃗,j⃗\vec{i}, \vec{j} form, and its magnitude and direction, to two decimal places.

Solution. Break each force into components (rounded here to two decimal places; keep more in your calculator):

F⃗1=[50cos⁡20∘, 50sin⁡20∘]≈[46.98, 17.10]F⃗2=[80cos⁡130∘, 80sin⁡130∘]≈[−51.42, 61.28]\begin{aligned} \vec{F}_1 &= [50\cos 20^\circ,\ 50\sin 20^\circ] \approx [46.98,\ 17.10] \\ \vec{F}_2 &= [80\cos 130^\circ,\ 80\sin 130^\circ] \approx [-51.42,\ 61.28] \end{aligned}

Add the components:

R⃗=F⃗1+F⃗2≈[−4.44, 78.38]=−4.44i⃗+78.38j⃗\vec{R} = \vec{F}_1 + \vec{F}_2 \approx [-4.44,\ 78.38] = -4.44\vec{i} + 78.38\vec{j}

Magnitude: ∣R⃗∣≈(−4.44)2+78.382≈78.51\lvert\vec{R}\rvert \approx \sqrt{(-4.44)^2 + 78.38^2} \approx 78.51 N.

Direction: R⃗\vec{R} is in quadrant II, so θ≈tan⁡−1(78.38−4.44)+180∘≈−86.76∘+180∘=93.24∘\theta \approx \tan^{-1}\left(\dfrac{78.38}{-4.44}\right) + 180^\circ \approx -86.76^\circ + 180^\circ = 93.24^\circ.

Check with the cosine law. The angle between the forces is 130∘−20∘=110∘130^\circ - 20^\circ = 110^\circ, so the angle inside the tip-to-tail triangle is 70∘70^\circ:

∣R⃗∣2=502+802−2(50)(80)cos⁡70∘≈6163.84,∣R⃗∣≈78.51 N✓\lvert\vec{R}\rvert^2 = 50^2 + 80^2 - 2(50)(80)\cos 70^\circ \approx 6163.84, \qquad \lvert\vec{R}\rvert \approx 78.51 \text{ N} \checkmark

Components make problems like those in applications of vectors routine, especially with three or more vectors.

Forgetting the quadrant when finding the direction. tan⁡−1(12−5)\tan^{-1}\left(\dfrac{12}{-5}\right) gives −67.4∘-67.4^\circ, but [−5,12][-5, 12] points up and to the left, at 112.6∘112.6^\circ. Always check the signs of the components (or a quick sketch) before giving the angle.

Subtracting in the wrong order. AB→=B−A\overrightarrow{AB} = B - A (head minus tail), not A−BA - B. Getting it backwards gives BA→=−AB→\overrightarrow{BA} = -\overrightarrow{AB}.

Using a bearing as if it were θ\theta. x=rcos⁡θx = r\cos\theta needs the angle from the positive xx-axis, counterclockwise. A bearing of 230∘230^\circ means θ=220∘\theta = 220^\circ, not 230∘230^\circ.

Squaring negatives on a calculator. (−5)2=25(-5)^2 = 25, but typing −52-5^2 gives −25-25. Use brackets when finding magnitudes.

Adding magnitudes instead of components. ∣u⃗+v⃗∣\lvert\vec{u} + \vec{v}\rvert is not ∣u⃗∣+∣v⃗∣\lvert\vec{u}\rvert + \lvert\vec{v}\rvert. Add the components first, then find the magnitude.

Calculator in radians. The vector pages in this course use degrees. If 50cos⁡20∘50\cos 20^\circ comes out negative, your calculator is in radian mode.

1. (Warm-up) Find the magnitude of each vector.

  • (a) [6,−8][6, -8]
  • (b) [−2,−5][-2, -5]
Solution

(a) 62+(−8)2=100=10\sqrt{6^2 + (-8)^2} = \sqrt{100} = 10.

(b) (−2)2+(−5)2=29≈5.39\sqrt{(-2)^2 + (-5)^2} = \sqrt{29} \approx 5.39.

2. (Warm-up) Let u⃗=[3,−1]\vec{u} = [3, -1] and v⃗=[−2,4]\vec{v} = [-2, 4]. Find:

  • (a) u⃗+v⃗\vec{u} + \vec{v}
  • (b) 2u⃗−3v⃗2\vec{u} - 3\vec{v}
  • (c) ∣u⃗−v⃗∣\lvert\vec{u} - \vec{v}\rvert
Solution

(a) [3+(−2), −1+4]=[1,3][3 + (-2),\ -1 + 4] = [1, 3].

(b) [6,−2]−[−6,12]=[12,−14][6, -2] - [-6, 12] = [12, -14].

(c) u⃗−v⃗=[5,−5]\vec{u} - \vec{v} = [5, -5], so ∣u⃗−v⃗∣=25+25=52≈7.07\lvert\vec{u} - \vec{v}\rvert = \sqrt{25 + 25} = 5\sqrt{2} \approx 7.07.

3. (Core) Write each vector in Cartesian form. Give exact values in (a) and (b), and two decimal places in (c).

  • (a) magnitude 1010, θ=225∘\theta = 225^\circ
  • (b) magnitude 66, θ=300∘\theta = 300^\circ
  • (c) 2020 km/h on a bearing of 070∘070^\circ (east is the positive xx-axis, north is the positive yy-axis)
Solution

(a) [10cos⁡225∘, 10sin⁡225∘]=[10(−22), 10(−22)]=[−52, −52][10\cos 225^\circ,\ 10\sin 225^\circ] = \left[10\left(-\dfrac{\sqrt{2}}{2}\right),\ 10\left(-\dfrac{\sqrt{2}}{2}\right)\right] = [-5\sqrt{2},\ -5\sqrt{2}].

(b) [6cos⁡300∘, 6sin⁡300∘]=[6⋅12, 6(−32)]=[3, −33][6\cos 300^\circ,\ 6\sin 300^\circ] = \left[6 \cdot \dfrac{1}{2},\ 6\left(-\dfrac{\sqrt{3}}{2}\right)\right] = [3,\ -3\sqrt{3}].

(c) θ=90∘−70∘=20∘\theta = 90^\circ - 70^\circ = 20^\circ, so [20cos⁡20∘, 20sin⁡20∘]≈[18.79, 6.84][20\cos 20^\circ,\ 20\sin 20^\circ] \approx [18.79,\ 6.84].

4. (Core) Find the magnitude and direction angle θ\theta of each vector. Give exact magnitudes, and angles to one decimal place where needed.

  • (a) [−7,−7][-7, -7]
  • (b) [4,−9][4, -9]
  • (c) [−3,1][-\sqrt{3}, 1]
Solution

(a) 49+49=72\sqrt{49 + 49} = 7\sqrt{2}. Both components are negative (quadrant III) and equal in size, so the reference angle is 45∘45^\circ and θ=180∘+45∘=225∘\theta = 180^\circ + 45^\circ = 225^\circ.

(b) 16+81=97≈9.85\sqrt{16 + 81} = \sqrt{97} \approx 9.85. tan⁡−1(−94)≈−66.0∘\tan^{-1}\left(\dfrac{-9}{4}\right) \approx -66.0^\circ; quadrant IV, so θ≈294.0∘\theta \approx 294.0^\circ.

(c) 3+1=2\sqrt{3 + 1} = 2. The reference angle is tan⁡−1(13)=30∘\tan^{-1}\left(\dfrac{1}{\sqrt{3}}\right) = 30^\circ, in quadrant II, so θ=180∘−30∘=150∘\theta = 180^\circ - 30^\circ = 150^\circ.

5. (Core) For P(4,−1)P(4, -1) and Q(−2,7)Q(-2, 7), find PQ→\overrightarrow{PQ}, its magnitude, and the unit vector in its direction. Write PQ→\overrightarrow{PQ} in i⃗,j⃗\vec{i}, \vec{j} form.

Solution

PQ→=[−2−4, 7−(−1)]=[−6,8]=−6i⃗+8j⃗\overrightarrow{PQ} = [-2 - 4,\ 7 - (-1)] = [-6, 8] = -6\vec{i} + 8\vec{j}.

∣PQ→∣=36+64=10\lvert\overrightarrow{PQ}\rvert = \sqrt{36 + 64} = 10.

Unit vector: 110[−6,8]=[−0.6, 0.8]\dfrac{1}{10}[-6, 8] = [-0.6,\ 0.8].

6. (Core)

  • (a) Find kk so that [k,6][k, 6] is collinear with [2,−3][2, -3].
  • (b) Find the vector of magnitude 1515 in the same direction as [3,4][3, 4].
Solution

(a) We need [k,6]=m[2,−3][k, 6] = m[2, -3]. From the second components, 6=−3m6 = -3m, so m=−2m = -2. Then k=2m=−4k = 2m = -4.

(b) ∣[3,4]∣=5\lvert[3, 4]\rvert = 5, so the unit vector is [35,45]\left[\dfrac{3}{5}, \dfrac{4}{5}\right]. Multiply by 1515: [9,12][9, 12].

7. (Core) A plane has an air speed of 400400 km/h on a heading of 050∘050^\circ. A 6060 km/h wind blows from the north. Use components (east is the positive xx-axis, north is the positive yy-axis) to find the ground speed and the track, to one decimal place.

Solution

Air velocity: θ=90∘−50∘=40∘\theta = 90^\circ - 50^\circ = 40^\circ, so v⃗air=[400cos⁡40∘, 400sin⁡40∘]≈[306.42, 257.12]\vec{v}_{\text{air}} = [400\cos 40^\circ,\ 400\sin 40^\circ] \approx [306.42,\ 257.12].

A wind from the north blows south: w⃗=[0,−60]\vec{w} = [0, -60].

v⃗ground≈[306.42, 197.12]\vec{v}_{\text{ground}} \approx [306.42,\ 197.12]

Ground speed: 306.422+197.122≈364.3\sqrt{306.42^2 + 197.12^2} \approx 364.3 km/h.

Direction: quadrant I, θ=tan⁡−1(197.12306.42)≈32.753∘\theta = \tan^{-1}\left(\dfrac{197.12}{306.42}\right) \approx 32.753^\circ. As a bearing, the track is 90∘−32.753∘≈057.2∘90^\circ - 32.753^\circ \approx 057.2^\circ.

8. (Challenge) The points A(1,1)A(1, 1), B(5,2)B(5, 2), C(6,6)C(6, 6) and D(2,5)D(2, 5) are the vertices of quadrilateral ABCDABCD.

  • (a) Use vectors to show that ABCDABCD is a parallelogram.
  • (b) Show that it’s actually a rhombus.
Solution

(a) AB→=[4,1]\overrightarrow{AB} = [4, 1] and DC→=[6−2, 6−5]=[4,1]\overrightarrow{DC} = [6 - 2,\ 6 - 5] = [4, 1]. Since AB→=DC→\overrightarrow{AB} = \overrightarrow{DC}, the sides ABAB and DCDC are parallel and equal in length, so ABCDABCD is a parallelogram.

(b) AD→=[1,4]\overrightarrow{AD} = [1, 4]. Then ∣AB→∣=16+1=17\lvert\overrightarrow{AB}\rvert = \sqrt{16 + 1} = \sqrt{17} and ∣AD→∣=1+16=17\lvert\overrightarrow{AD}\rvert = \sqrt{1 + 16} = \sqrt{17}. A parallelogram with two adjacent sides equal is a rhombus.

9. (Challenge) Let u⃗=[1,2]\vec{u} = [1, 2] and v⃗=[3,−1]\vec{v} = [3, -1]. Write w⃗=[−1,12]\vec{w} = [-1, 12] as a linear combination au⃗+bv⃗a\vec{u} + b\vec{v}.

Solution

a[1,2]+b[3,−1]=[a+3b, 2a−b]a[1, 2] + b[3, -1] = [a + 3b,\ 2a - b]. Match the components with [−1,12][-1, 12]:

a+3b=−1and2a−b=12a + 3b = -1 \qquad\text{and}\qquad 2a - b = 12

From the first, a=−1−3ba = -1 - 3b. Substitute: 2(−1−3b)−b=122(-1 - 3b) - b = 12, so −2−7b=12-2 - 7b = 12 and b=−2b = -2. Then a=−1+6=5a = -1 + 6 = 5.

w⃗=5u⃗−2v⃗\vec{w} = 5\vec{u} - 2\vec{v}

Check: 5[1,2]−2[3,−1]=[5−6, 10+2]=[−1,12]5[1, 2] - 2[3, -1] = [5 - 6,\ 10 + 2] = [-1, 12]. ✓