Educerie

Educerie · AP · Precalculus

Unit 4 Functions Involving Parameters, Vectors, and Matrices · 4.8 Vectors

This unit is not on the AP exam. The exam covers Units 1 to 3 only; Unit 4 is taught here for the course and for what comes after it.

Big ideas: A quantity with both a size and a direction; working with components; the dot product as a test for right angles and a way to find angles.

Where it is examined: Not on the AP Precalculus exam. The College Board lists Unit 4 as an additional topic available to schools. If your school teaches it, the work is arithmetic with components, finding magnitudes and angles, and explaining why two vectors are perpendicular.

The question this unit answers: How can we describe a quantity that has a size and a direction, and combine two of them?


AP Precalculus 4.8

Vectors

How can we describe a quantity that has a size and a direction, and combine two of them?

What you will learn

  • Understand a vector as a directed segment with components, magnitude and direction
  • Know how to add, scale and normalise vectors by components
  • Know how the dot product and the triangle laws give angles and resultants

You must be able to

  1. Find the components and magnitude of the vector from one point to another
  2. Find components from a length and an angle
  3. Add, subtract and scale vectors
  4. Find a unit vector and write a vector with i and j
  5. Use the dot product to find an angle or test for perpendicular vectors
  6. Find a resultant force with the Law of Cosines and check it with components

1Tail, head, magnitude

A vector is a directed line segment.

  • The point where it begins is the tail.
  • The point where it ends is the head.
  • The length of the segment is the magnitude.

A vector from P1=(x1,y1)P_1 = (x_1, y_1) to P2=(x2,y2)P_2 = (x_2, y_2) is identified by

a=x2−x1a = x_2 - x_1b=y2−y1b = y_2 - y_1

It is written ⟨a,b⟩\langle a, b\rangle. These are its components: aa across and bb up. The zero vector ⟨0,0⟩\langle 0, 0\rangle has no length. It occurs when P1=P2P_1 = P_2.

The vector's direction is the direction from the origin towards the point (a,b)(a, b). Its magnitude is

∥⟨a,b⟩∥=a2+b2\lVert \langle a, b\rangle \rVert = \sqrt{a^2 + b^2}

This is the Pythagorean theorem. The vector is the hypotenuse, and the components are the legs.

Worked example 1. Find the vector from P1=(1,2)P_1 = (1, 2) to P2=(5,5)P_2 = (5, 5), and its magnitude.

The components are 5−1=45 - 1 = 4 and 5−2=35 - 2 = 3, so the vector is ⟨4,3⟩\langle 4, 3\rangle. Its magnitude is 16+9=5\sqrt{16 + 9} = 5.

Two vectors are equal if they have the same components. Where they sit in the plane does not matter. Moving a vector without turning it gives the same vector.

2Components from a length and an angle

A vector in the plane with magnitude mm that makes an angle θ\theta with the positive x-axis has components

⟨mcos⁡θ, msin⁡θ⟩\langle m\cos\theta,\ m\sin\theta\rangle

This is trigonometry in a right triangle. The adjacent side is mcos⁡θm\cos\theta, and the opposite side is msin⁡θm\sin\theta.

Worked example 2. A vector has magnitude 1212 and direction 30∘30^\circ. Find its components.

⟨12cos⁡30∘, 12sin⁡30∘⟩=⟨12⋅32, 12⋅12⟩=⟨63, 6⟩\langle 12\cos 30^\circ,\ 12\sin 30^\circ\rangle = \langle 12\cdot\tfrac{\sqrt{3}}{2},\ 12\cdot\tfrac{1}{2}\rangle = \langle 6\sqrt{3},\ 6\rangle

Going the other way, the direction of ⟨−5,12⟩\langle -5, 12\rangle comes from the angle with the x-axis. The magnitude is 25+144=13\sqrt{25 + 144} = 13. The vector points up and left, so it is in the second quadrant.

θ=180∘−tan⁡−1(125)≈180∘−67.4∘=112.6∘\theta = 180^\circ - \tan^{-1}\left(\frac{12}{5}\right) \approx 180^\circ - 67.4^\circ = 112.6^\circ

Always sketch the vector first. A calculator gives tan⁡−1\tan^{-1} between −90∘-90^\circ and 90∘90^\circ, so the quadrant is your job.

3Multiplying by a number

Multiplying a vector by a constant cc multiplies each component by cc:

c⟨a,b⟩=⟨ca, cb⟩c\langle a, b\rangle = \langle ca,\ cb\rangle

The new vector is parallel to the original. Its magnitude is ∣c∣\lvert c\rvert times as large.

  • If c>1c > 1, it is longer.
  • If 0<c<10 < c < 1, it is shorter.
  • If c<0c < 0, it points the opposite way.

Example: 3⟨2,−1⟩=⟨6,−3⟩3\langle 2, -1\rangle = \langle 6, -3\rangle and −12⟨4,−6⟩=⟨−2,3⟩-\tfrac{1}{2}\langle 4, -6\rangle = \langle -2, 3\rangle.

4Adding vectors

The sum of two vectors adds the matching components:

⟨a1,b1⟩+⟨a2,b2⟩=⟨a1+a2, b1+b2⟩\langle a_1, b_1\rangle + \langle a_2, b_2\rangle = \langle a_1 + a_2,\ b_1 + b_2\rangle

Geometrically, put the tail of the second vector at the head of the first. The sum goes from the tail of the first to the head of the second.

Worked example 3. Let u⃗=⟨4,1⟩\vec{u} = \langle 4, 1\rangle and v⃗=⟨2,3⟩\vec{v} = \langle 2, 3\rangle. Find u⃗+v⃗\vec{u} + \vec{v}.

u⃗+v⃗=⟨4+2, 1+3⟩=⟨6,4⟩\vec{u} + \vec{v} = \langle 4 + 2,\ 1 + 3\rangle = \langle 6, 4\rangle

Figure 1 shows it. Read it in this order:

  • The teal arrow is u⃗\vec{u} from the origin. The amber arrow is v⃗\vec{v}, placed with its tail at the head of u⃗\vec{u}.
  • The long arrow from the origin to (6,4)(6, 4) is the sum.
  • The grey arrows show the same sum the other way round: v⃗\vec{v} first, then u⃗\vec{u}. The order does not matter.
Figure 1. The sum of u = <4, 1> and v = <2, 3>: place v at the head of u and the sum goes from the first tail to the last head 2 4 6 2 4 0 y x u v u + v
Figure 1 · The sum of u = ⟨4, 1⟩ and v = ⟨2, 3⟩: place v at the head of u and the sum goes from the first tail to the last head

To subtract, subtract the components: u⃗−v⃗=⟨2,−2⟩\vec{u} - \vec{v} = \langle 2, -2\rangle.

5Unit vectors, and i⃗\vec{i} and j⃗\vec{j}

A unit vector has magnitude 11. To get the unit vector in the same direction as a nonzero vector, multiply by the reciprocal of its magnitude.

1∥v⃗∥ v⃗\frac{1}{\lVert\vec{v}\rVert}\,\vec{v}

Worked example 4. Find the unit vector in the direction of ⟨3,4⟩\langle 3, 4\rangle.

The magnitude is 55, so the unit vector is 15⟨3,4⟩=⟨35,45⟩\dfrac{1}{5}\langle 3, 4\rangle = \left\langle \dfrac{3}{5}, \dfrac{4}{5}\right\rangle.

Check: 925+1625=1\sqrt{\dfrac{9}{25} + \dfrac{16}{25}} = 1.

Two unit vectors are used everywhere:

i⃗=⟨1,0⟩\vec{i} = \langle 1, 0\ranglej⃗=⟨0,1⟩\vec{j} = \langle 0, 1\rangle

Any vector can be written with them: ⟨a,b⟩=ai⃗+bj⃗\langle a, b\rangle = a\vec{i} + b\vec{j}.

Example: ⟨3,−2⟩=3i⃗−2j⃗\langle 3, -2\rangle = 3\vec{i} - 2\vec{j}.

6The dot product, and angles

The dot product of two vectors multiplies the matching components and adds:

⟨a1,b1⟩⋅⟨a2,b2⟩=a1a2+b1b2\langle a_1, b_1\rangle \cdot \langle a_2, b_2\rangle = a_1 a_2 + b_1 b_2

The result is a number, not a vector.

The dot product also has a geometric meaning. If θ\theta is the angle between the two vectors,

u⃗⋅v⃗=∥u⃗∥ ∥v⃗∥cos⁡θ\vec{u}\cdot\vec{v} = \lVert\vec{u}\rVert\,\lVert\vec{v}\rVert\cos\theta

So you can find the angle:

cos⁡θ=u⃗⋅v⃗∥u⃗∥ ∥v⃗∥\cos\theta = \frac{\vec{u}\cdot\vec{v}}{\lVert\vec{u}\rVert\,\lVert\vec{v}\rVert}

Worked example 5. Find the angle between u⃗=⟨3,−1⟩\vec{u} = \langle 3, -1\rangle and v⃗=⟨−2,4⟩\vec{v} = \langle -2, 4\rangle.

u⃗⋅v⃗=−6−4=−10\vec{u}\cdot\vec{v} = -6 - 4 = -10∥u⃗∥=10\lVert\vec{u}\rVert = \sqrt{10}∥v⃗∥=20\lVert\vec{v}\rVert = \sqrt{20}cos⁡θ=−101020=−10102=−22\cos\theta = \frac{-10}{\sqrt{10}\sqrt{20}} = \frac{-10}{10\sqrt{2}} = -\frac{\sqrt{2}}{2}θ=135∘\theta = 135^\circ

Perpendicular vectors. If two nonzero vectors have a dot product of zero, then cos⁡θ=0\cos\theta = 0 and θ=90∘\theta = 90^\circ. Conversely, perpendicular vectors have a zero dot product.

Example: ⟨2,3⟩⋅⟨6,−4⟩=12−12=0\langle 2, 3\rangle \cdot \langle 6, -4\rangle = 12 - 12 = 0, so they are perpendicular.

7Triangles from vector addition

When two vectors are added head to tail, they form two sides of a triangle, and the sum is the third side. The Law of Cosines and the Law of Sines then give lengths and angles.

For a triangle with sides a,b,ca, b, c opposite angles A,B,CA, B, C:

c2=a2+b2−2abcos⁡Cc^2 = a^2 + b^2 - 2ab\cos Csin⁡Aa=sin⁡Bb\frac{\sin A}{a} = \frac{\sin B}{b}

Worked example 6. Two forces pull on a point. One is 1010 newtons, and the other is 66 newtons. The angle between them, tail to tail, is 60∘60^\circ. Find the size of the resultant, and its angle with the 1010 N force.

Put the 66 N force at the head of the 1010 N force. The angle inside the triangle is 180∘−60∘=120∘180^\circ - 60^\circ = 120^\circ.

c2=102+62−2(10)(6)cos⁡120∘=136+60=196c^2 = 10^2 + 6^2 - 2(10)(6)\cos 120^\circ = 136 + 60 = 196c=14c = 14

For the angle α\alpha between the resultant and the 1010 N force, the Law of Sines gives

sin⁡α6=sin⁡120∘14\frac{\sin\alpha}{6} = \frac{\sin 120^\circ}{14}sin⁡α=6⋅3214=3314≈0.371\sin\alpha = \frac{6\cdot\frac{\sqrt{3}}{2}}{14} = \frac{3\sqrt{3}}{14} \approx 0.371α≈21.8∘\alpha \approx 21.8^\circ

Check with components. Put the 1010 N force along the x-axis: ⟨10,0⟩\langle 10, 0\rangle. The other is ⟨6cos⁡60∘, 6sin⁡60∘⟩=⟨3,33⟩\langle 6\cos 60^\circ,\ 6\sin 60^\circ\rangle = \langle 3, 3\sqrt{3}\rangle. The sum is ⟨13,33⟩\langle 13, 3\sqrt{3}\rangle, with magnitude 169+27=14\sqrt{169 + 27} = 14. Its angle is tan⁡−1(3313)≈21.8∘\tan^{-1}\left(\dfrac{3\sqrt{3}}{13}\right) \approx 21.8^\circ. Both methods agree.