All AP Courses AP PrecalculusAP Precalc

Unit 4 · Topic 4.8 · about 30 minutes · 7 parts · 12 scored checks, 2 of them multiple choice, plus 2 from earlier lessons

AP Precalculus 4.8: Vectors

Not assessed on the AP Exam. Unit 4 is part of the course, but nothing in it is on the exam.

Not assessed on the AP Exam

What you'll be able to do

  • Identify the features of a vector, such as its components, its magnitude and its direction.
  • Find sums of vectors, scalar multiples of vectors and dot products.
  • Find the unit vector in the direction of a given vector.
  • Find angles between vectors and the magnitudes of vectors when vectors are added.

Key vocabulary

TermWhat it meansThe trap
VectorA directed line segment, with a magnitude and a direction; in the plane it is written by its components as ⟨a,b⟩.Direction counts, so 3 and 4 kilometers per hour at right angles combine to 5, not 7.
TailThe point where a vector begins when it is placed in the plane.Since the tail is where the vector starts, its coordinates are the ones subtracted from the head's, not the other way around.
HeadThe point where a vector ends when it is placed in the plane.In a sum, the second vector's tail goes at the first vector's head, not at the same starting point, and the sum runs to the second head.
ComponentsThe two numbers that identify a vector in the plane: from (x1,y1) to (x2,y2) they are a=x2−x1 and b=y2−y1, and the vector is ⟨a,b⟩.Cosine comes first, so a vector of magnitude m at angle θ is ⟨mcos⁡θ, msin⁡θ⟩, with the sine in the second slot.
MagnitudeThe length of a vector's line segment; for ⟨a,b⟩ it is a2+b2.The magnitude of ⟨9,12⟩ is 92+122=15, not the sum of the components, 21.
Zero vectorThe vector ⟨0,0⟩, which you get when the tail and the head are the same point.A dot product of 0 means perpendicular only for two nonzero vectors, because ⟨0,0⟩ has a dot product of 0 with every vector.
Unit vectorA vector of magnitude 1, such as i→=⟨1,0⟩, j→=⟨0,1⟩, or 1‖v→‖v→ for a nonzero v→.Dividing by the magnitude keeps the signs, so the unit vector for ⟨−8,15⟩ is ⟨−817,1517⟩ and points the same way.
Dot productThe number ⟨a1,b1⟩⋅⟨a2,b2⟩=a1a2+b1b2, which equals the product of the two magnitudes and the cosine of the angle between the vectors.Matching components pair up, not x with y: ⟨4,3⟩⋅⟨−5,12⟩=−20+36=16.
Law of SinesIn any triangle with sides m, n and s across from the angles M, N and S, each angle's sine divided by the side across from it gives the same number: sin⁡Mm=sin⁡Nn=sin⁡Ss.Each angle's sine goes with the side across from it, not a side next to it.
Law of CosinesIn any triangle with sides m, n and s, where S is the angle across from s, s2=m2+n2−2mncos⁡S.In the head-to-tail triangle the angle is π minus the angle between the two vectors drawn tail to tail.
A grid with three arrows. The vector u = <4, 1> runs from its tail at the origin to its head at (4, 1). The vector v = <1, 3> starts with its tail at the head of u and ends at (5, 4). The sum u + v = <5, 4> runs straight from the tail of u at the origin to the head of v at (5, 4), closing the triangle.Tap to open the picture full size

Part 1 Think first Swim across the current

Guess before you learn. A wrong guess still makes the answer stick.

Predict first

A swimmer heads straight across a river, swimming at 3 kilometers per hour through the water. The current carries her downstream at 4 kilometers per hour. How fast is she moving relative to the riverbank?

In short. A vector is a directed line segment, written by its components as ⟨a,b⟩, with a magnitude, its length, and a direction.

  • From P1=(x1,y1) to P2=(x2,y2) the vector is ⟨x2−x1, y2−y1⟩, its magnitude is a2+b2, and a vector of magnitude m at angle θ is ⟨mcos⁡θ, msin⁡θ⟩.
  • Sums and scalar multiples work component by component; 1‖v→‖v→ is the unit vector in the direction of v→, and ⟨a,b⟩=ai→+bj→.
  • The dot product a1a2+b1b2 equals ‖u→‖‖v→‖cos⁡θ, so a dot product of 0 between nonzero vectors means they are perpendicular.

Part 2 Learn it Length, direction, and what you can do with them

2a. A vector from two points

A vector is a directed line segment. The point where it starts is its tail, the point where it ends is its head, and its length is its magnitude, written ‖v→‖.

Place a vector in the xy-plane from P1=(x1,y1) to P2=(x2,y2). Its components are a=x2−x1 and b=y2−y1, and you write the vector as ⟨a,b⟩. Head minus tail, in that order. From (1,5) to (4,1) is ⟨3,−4⟩: 3 right and 4 down. If P1=P2, you get the zero vector ⟨0,0⟩.

The vector ⟨a,b⟩ points the same way as the segment from the origin to the point (a,b). Its magnitude comes from the Pythagorean theorem, a2+b2, so ‖⟨3,−4⟩‖=9+16=5.

Two moves in a row add. The sum of ⟨a1,b1⟩ and ⟨a2,b2⟩ adds matching components: ⟨a1+a2, b1+b2⟩. To draw it, put the second vector's tail at the first one's head. The sum runs from the first tail to the second head, as in the diagram.

Quick check · Fill the statement

A vector has its tail at P1=(−3,2) and its head at P2=(5,−4). Tap a blank, then tap an answer.

The vector from P1 to P2 is ⟨ , ⟩, and its magnitude is .

2b. Components from a length and an angle

Often you know how long a vector is and which way it points, but not where its head lands. Say v→ makes the angle θ with the positive x-axis, measured counterclockwise. Its head is on the circle of radius ‖v→‖, so the trigonometry of 3.13 Trigonometry and Polar Coordinates gives the components:

v→=⟨‖v→‖cos⁡θ, ‖v→‖sin⁡θ⟩

A rope pulls with magnitude 20 at θ=5π6. The components are 20cos⁡5π6=−103 and 20sin⁡5π6=10, so the rope's vector is ⟨−103,10⟩. The signs take care of themselves.

Going back from components to the angle is where students slip. You know tan⁡θ=ba, but arctangent only returns angles between −π2 and π2. For ⟨−3,−3⟩, arctan⁡1=π4, yet the vector points down and to the left. Its angle is π+π4=5π4. Sketch the vector and check the quadrant before you trust the arctangent.

Quick check · Multiple choice

A vector has magnitude 10 and makes an angle of 4π3 radians with the positive x-axis, measured counterclockwise. What is the vector in component form?

2c. Scaling, unit vectors, and i and j

Multiply a vector by a constant and you multiply each component: k⟨a,b⟩=⟨ka,kb⟩. The new vector is parallel to the original. 3⟨2,−1⟩=⟨6,−3⟩ points the same way and is three times as long. −2⟨2,−1⟩=⟨−4,2⟩ is parallel too, but the negative constant turns it to face the opposite way. Parallel means along the same line, so a vector pointing the opposite way still counts as parallel.

A unit vector has magnitude 1. For the unit vector in the direction of a nonzero v→, multiply v→ by the reciprocal of its magnitude, 1‖v→‖v→. For v→=⟨6,−8⟩, ‖v→‖=10, so the unit vector is 110⟨6,−8⟩=⟨0.6,−0.8⟩. Its signs match those of v→, because it points the same way.

Two unit vectors have names of their own: i→=⟨1,0⟩ in the x direction and j→=⟨0,1⟩ in the y direction. Scaling and adding them builds any vector, ⟨a,b⟩=ai→+bj→. So ⟨6,−8⟩ is also 6i→−8j→.

Quick check · Sort it

Tap a card, then tap whether the vector is parallel to ⟨−9,12⟩. A vector along the same line counts as parallel whether it points the same way or the opposite way.

Parallel to ⟨−9,12⟩, either way along its line

Not parallel to it

2d. The dot product and the angle between

The dot product of two vectors multiplies matching components and adds the results: ⟨a1,b1⟩⋅⟨a2,b2⟩=a1a2+b1b2. The answer is a number, not a vector. For example, ⟨2,5⟩⋅⟨4,−1⟩=8−5=3.

That number also equals ‖u→‖‖v→‖cos⁡θ, where θ is the angle between u→ and v→ drawn tail to tail. So cos⁡θ=u→⋅v→‖u→‖‖v→‖. When the dot product of two nonzero vectors is 0, cos⁡θ=0 and the vectors are perpendicular: ⟨2,5⟩⋅⟨5,−2⟩=10−10=0.

Adding vectors head to tail makes a triangle, and two laws from trigonometry find its missing parts. In a triangle with sides m, n and s opposite the angles M, N and S, the Law of Cosines says s2=m2+n2−2mncos⁡S, and the Law of Sines says sin⁡Mm=sin⁡Ss.

Watch the angle. Where the second vector leaves the head of the first, the triangle's angle is not the angle between the vectors drawn tail to tail. The two add up to π.

Quick check · Calculate

What is the angle between u→=⟨4,3⟩ and v→=⟨−5,12⟩, in radians? Use a calculator for the inverse cosine, and give your answer to two decimal places.

Part 3 Watch it done Find a plane's speed in a crosswind

Watch each step, then do the last one yourself.

A small plane flies with an airspeed of 200 kilometers per hour, its speed through the air. The wind blows at 50 kilometers per hour. Drawn tail to tail, the plane's heading and the wind's direction make an angle of π3. Find the plane's ground speed, its actual speed over the ground, to the nearest kilometer per hour.

  1. Step 1 · Set up the sum

    Let a→ be the plane's motion through the air, with ‖a→‖=200, and w→ the wind, with ‖w→‖=50. The motion over the ground is a→+w→, and the ground speed is its magnitude. Draw a→, then put the tail of w→ at the head of a→. The triangle has sides 200, 50 and ‖a→+w→‖.

  2. Step 2 · Find the angle inside the triangle

    Tail to tail, a→ and w→ make π3. In the triangle, the angle at the head of a→ is π−π3=2π3, and it sits opposite the side ‖a→+w→‖.

  3. Why this step?

    Why is the triangle's angle 2π3 and not π3?

    At the head of a→, the line of a→ carries straight on, and w→ makes π3 with that continuation. The triangle's angle is measured from w→ back along a→, on the other side of a straight line, so the two angles add up to π.

  4. Step 3 · Use the Law of Cosines

    ‖a→+w→‖2=2002+502−2(200)(50)cos⁡2π3. Since cos⁡2π3=−12, the last term ends up added rather than subtracted. That makes sense: the wind pushes partly along the plane's heading.

  5. Your step · Calculate

    Finish it. A plane's motion through the air has magnitude 200 kilometers per hour and the wind's has magnitude 50. Added head to tail, they form a triangle whose angle between those two sides is 2π3. What is the magnitude of the sum, the plane's ground speed, to the nearest kilometer per hour? Use a calculator for the square root.

The Law of Sines gives the direction. With α the angle between a→ and a→+w→, sin⁡α50=sin⁡(2π/3)229.13, so α≈0.19 radian. The wind speeds the plane up and turns its path about 0.19 radian toward the wind.

Part 4 Try it Point the robot at the door

A delivery robot crosses a plaza mapped in meters. It is at (2,1) and has to drive in a straight line to a door at (8,9), covering 3 meters every second. Its software needs the move it makes each second: a vector that points at the door and has magnitude 3. Work it out on paper, then answer the two questions.

Try it · Put it in order

A robot at (2,1) drives straight toward a door at (8,9), in meters, covering 3 meters each second. You want its move each second as a vector. Tap these results in the order you compute them.

Try it · Calculate

A robot starts at (2,1) on a map in meters and drives in a straight line to a door at (8,9), covering 3 meters each second. How many seconds does the robot take to reach the door? Give your answer to two decimal places.

Part 5 Explain it Put it in writing

Nothing you type leaves this page. Check your answer against the model and each point on the list.

Unit 4 is not on the AP Exam, so this is written practice for the course.

Written practice

Let u→=5i→−12j→ and v→=⟨k,3⟩. (i) Determine ‖u→‖ and the unit vector in the direction of u→. (ii) Determine the value of k that makes u→ and v→ perpendicular, and justify your answer. (iii) Describe how −2u→ compares with u→ in direction and in magnitude.

Model answer

(i) u→=⟨5,−12⟩, so ‖u→‖=25+144=169=13. The unit vector in its direction is 113u→=513i→−1213j→. (ii) u→⋅v→=5k+(−12)(3)=5k−36, which is 0 when k=365=7.2. The dot product equals ‖u→‖‖v→‖cos⁡θ, and neither vector is the zero vector, so a dot product of 0 means cos⁡θ=0 and θ=π2: the vectors are perpendicular. (iii) −2u→=⟨−10,24⟩. It is parallel to u→ but points the opposite way, because the constant is negative, and its magnitude is 2⋅13=26, twice that of u→.

Score your own answer. This is a self-check, not a grade. Tick each point your answer makes.

Part 6 Check yourself A survey drone's flight log

The three case questions use the same flight log. Answer them from it.

A survey drone flies straight legs over a field. Its log records each leg as a vector on a map in meters, with x measured east and y measured north.

On a windy morning the log also records two velocities: a→, the drone's motion through the air, with magnitude 33 kilometers per hour, and w→, the wind, with magnitude 7 kilometers per hour. Drawn tail to tail, a→ and w→ make an angle of π3, and the drone's speed over the ground, ‖a→+w→‖, is 37 kilometers per hour.

Three legs of the flight, in meters
LegVector
p→⟨−43,−4⟩
q→⟨12,−5⟩
r→⟨−3,17⟩

Case question 1 · Multiple choice

A drone flies the leg p→=⟨−43,−4⟩, in meters, with x east and y north. What angle θ does p→ make with east, measured counterclockwise, with 0≤θ<2π?

Case question 2 · Calculate

A drone flies the leg q→=⟨12,−5⟩ and then the leg r→=⟨−3,17⟩, in meters. How far is it, in meters, from the point where the leg q→ began? That is, what is ‖q→+r→‖?

Case question 3 · Calculate

A drone's motion through the air, a→, has magnitude 33 kilometers per hour, and the wind, w→, has magnitude 7 kilometers per hour. Drawn tail to tail, a→ and w→ make an angle of π3, and the drone's speed over the ground, ‖a→+w→‖, is 37 kilometers per hour. Use the Law of Sines to find the angle between the wind, w→, and the drone's path over the ground, a→+w→, in radians. Use a calculator for the inverse sine, and give your answer to two decimal places.

The rest stand on their own and do not use the case.

Check yourself · Decide and justify

The vectors ⟨3,−2⟩ and ⟨−4,−5⟩ are drawn tail to tail. Is the angle between them acute, a right angle, or obtuse?

Which reason supports your answer?

Check yourself · Spot the error

A student finds the unit vector in the direction of v→=⟨−8,15⟩. Tap the first line that goes wrong.

Part 7 Keep it Bring back earlier ideas

Pulling an older idea back up is what makes it last.

From 4.7 Parametrization of Implicitly Defined Functions · Spot the error

A student parametrizes the hyperbola (y+2)29−(x−4)225=1. Tap the first line that goes wrong.

From 3.2 Sine, Cosine, and Tangent · Multiple choice

The terminal ray of an angle θ in standard position meets the circle of radius 25 centered at the origin at P=(−24,7). Which is true?

In three lines

  • A vector from (x1,y1) to (x2,y2) is ⟨x2−x1, y2−y1⟩, with magnitude a2+b2; at magnitude m and angle θ it is ⟨mcos⁡θ, msin⁡θ⟩.
  • Add and scale component by component; 1‖v→‖v→ is the unit vector in the direction of v→, and ⟨a,b⟩=ai→+bj→.
  • u→⋅v→=a1a2+b1b2=‖u→‖‖v→‖cos⁡θ; a dot product of 0 means perpendicular, and a head-to-tail sum is a triangle for the Laws of Cosines and Sines.

Questions students ask

What does a dot product tell me about the angle between two vectors?

Its sign gives the type of angle. The dot product equals ‖u→‖‖v→‖cos⁡θ, and the magnitudes are positive, so a positive dot product means an acute angle, a negative one means obtuse, and 0 means perpendicular for nonzero vectors.

Is a vector pointing the opposite way still parallel?

Yes. Parallel means along the same line. −2⟨2,−1⟩=⟨−4,2⟩ faces the other way and is still parallel to ⟨2,−1⟩.

How do I make a vector of a given length that points the right way?

Divide by its magnitude to get the unit vector, then multiply by the length you want. For a robot heading along ⟨6,8⟩ at 3 meters each second, that is ⟨0.6,0.8⟩ times 3, or ⟨1.8,2.4⟩.

What are i→ and j→?

The unit vectors ⟨1,0⟩ and ⟨0,1⟩. Any vector can be built from them, so ⟨6,−8⟩ is the same as 6i→−8j→.

My calculator gave 75.75 for an angle between vectors. What went wrong?

It was in degree mode. This course measures angles in radians, and arccos⁡1665 is about 1.32 radians.

Beyond the AP Exam

College Board sets this limit on what the AP Exam asks about this topic. Anything past it is not on the exam.

The course framework limits matrices, vectors, and linear transformations to ℝ², but ℝⁿ can be explored if desired.

Course alignment, for teachers

AP Precalculus topic 4.8, Unit 4: Functions Involving Parameters, Vectors, and Matrices.

  • Skill 2.A: Identify information from graphical, numerical, analytical, and verbal representations to answer a question or construct a model, with and without technology.
  • Skill 3.A: Describe the characteristics of a function with varying levels of precision, depending on the function representation and available mathematical tools.
  • Skill 3.B: Apply numerical results in a given mathematical or applied context.

This lesson maps all 11 essential knowledge statements of the topic to the part that teaches each one: 11 are checked by a scored question. The map is in the lesson file.