01 / 21

Understanding
Vectors

Master the mathematics of magnitude and direction: from component form to operations and real-world applications.

AP Precalculus

What Is a Vector?

A vector is a mathematical object that has both magnitude (length) and direction. Unlike a scalar, which is just a number, a vector tells you how much and which way.

Scalar 5 (just a number) Vector 5 units, east Notation:
Vectors are written as bold v, with arrow \(\vec{v}\), or in angle brackets \(\langle a, b \rangle\)

Component Form of a Vector

Every 2D vector can be broken into horizontal and vertical parts called components. If a vector goes from the origin to point \((a, b)\), we write it in component form:

x y 1 2 3 1 2
\(a = 3\)
\(b = 2\)
\(\vec{v} = \langle 3, 2 \rangle\)

Magnitude and Direction

Magnitude \(\|\vec{v}\|\)
The length of the vector, found using the Pythagorean theorem: $$\|\vec{v}\| = \sqrt{a^2 + b^2}$$
Direction \(\theta\)
The angle the vector makes with the positive \(x\)-axis: $$\theta = \tan^{-1}\!\left(\frac{b}{a}\right)$$

The Unit Vector

A unit vector has a magnitude of exactly 1. It shows direction only. To find the unit vector in the direction of \(\vec{v}\):

\(\hat{\imath}\)
Standard unit vector in the \(x\)-direction: \(\langle 1, 0 \rangle\)
\(\hat{\jmath}\)
Standard unit vector in the \(y\)-direction: \(\langle 0, 1 \rangle\)

Vector Addition

To add two vectors, add their corresponding components. Geometrically, place the tail of the second vector at the head of the first:

\(\vec{u} = \langle 3, 1 \rangle\)
\(\vec{v} = \langle 1, 3 \rangle\)
\(\vec{u}+\vec{v} = \langle 4, 4 \rangle\)

One boat, two velocity frames

One boat crosses a river with a visible current context. Wake and perspective are not velocity measurements; both course diagrams remain authoritative.Add the boat’s velocity relative to the water to the current’s velocity relative to the ground. Components give a ground speed of about 16.52 km/h, directed 8.70° north of east.

One boat, two velocity frames

Add the boat’s velocity relative to the water to the current’s velocity relative to the ground. Components give a ground speed of about 16.52 km/h, directed 8.70° north of east.Add the boat’s velocity relative to the water to the current’s velocity relative to the ground. Components give a ground speed of about 16.52 km/h, directed 8.70° north of east.

Scalar Multiplication

Scalar multiplication scales a vector's magnitude without changing its direction (unless the scalar is negative, which reverses direction).

\(\vec{v} = \langle 2, 1 \rangle\)
\(2\vec{v} = \langle 4, 2 \rangle\)
Original Scaled by 2

Vector Subtraction

Subtracting vectors combines addition with scalar multiplication by \(-1\):

Geometric View
The difference \(\vec{u} - \vec{v}\) is the vector from the head of \(\vec{v}\) to the head of \(\vec{u}\), when both start at the same point.
Example
\(\langle 5, 3 \rangle - \langle 2, 7 \rangle\) \(= \langle 5-2,\; 3-7 \rangle\) \(= \langle 3, -4 \rangle\)

The Dot Product

The dot product of two vectors produces a scalar. It measures how much one vector goes in the direction of another.

1
Component formula: Multiply corresponding components and add.
2
Geometric formula: Product of magnitudes times cosine of the angle between them.
3
Key property: If \(\vec{u} \cdot \vec{v} = 0\), the vectors are perpendicular (orthogonal).

Vectors vs. Scalars

Vector Scalar
Has magnitude? ✓ Yes ✓ Yes
Has direction? ✓ Yes ✕ No
Notation \(\vec{v}\), \(\langle a, b \rangle\) \(k\), a single number
Examples Velocity, force, displacement Speed, mass, temperature
Graphed as Arrow Point on number line

Converting Between Forms

Magnitude/Direction → Components
$$a = \|\vec{v}\|\cos\theta$$ $$b = \|\vec{v}\|\sin\theta$$
Components → Magnitude/Direction
$$\|\vec{v}\| = \sqrt{a^2 + b^2}$$ $$\theta = \tan^{-1}\!\left(\frac{b}{a}\right)$$

How to Solve Vector Problems

1
Identify the given form: Is the vector given as components \(\langle a, b \rangle\) or as magnitude and direction \((\|\vec{v}\|, \theta)\)?
2
Convert if necessary: Use trigonometry to switch between component form and magnitude/direction form.
3
Perform the operation: Add, subtract, or scale the components. For dot product, multiply and sum.
4
Interpret the result: Find the resulting magnitude, direction, or check for perpendicularity as needed.
5
Verify: Sketch a quick diagram to confirm the answer makes geometric sense.

Example 1: Adding Vectors

Find \(\vec{u} + \vec{v}\) where \(\vec{u} = \langle 4, -1 \rangle\) and \(\vec{v} = \langle -2, 5 \rangle\).

1
Add horizontal components: \(4 + (-2) = 2\)
2
Add vertical components: \(-1 + 5 = 4\)
3
Result: \(\vec{u} + \vec{v} = \langle 2, 4 \rangle\)

Example 2: Magnitude and Direction

A vector has magnitude \(10\) and direction \(120^\circ\). Find its component form.

1
Horizontal: \(a = 10\cos(120^\circ) = 10 \cdot (-0.5) = -5\)
2
Vertical: \(b = 10\sin(120^\circ) = 10 \cdot \frac{\sqrt{3}}{2} \approx 8.66\)
3
Result: \(\vec{v} = \langle -5,\; 5\sqrt{3} \rangle \approx \langle -5,\; 8.66 \rangle\)

Example 3: Dot Product and Angle

Find the angle between \(\vec{u} = \langle 3, 4 \rangle\) and \(\vec{v} = \langle -4, 3 \rangle\).

1
Dot product: \(\vec{u} \cdot \vec{v} = (3)(-4) + (4)(3) = -12 + 12 = 0\)
2
Magnitudes: \(\|\vec{u}\| = 5\), \(\|\vec{v}\| = 5\)
3
Angle formula: \(\cos\theta = \frac{0}{5 \cdot 5} = 0\), so \(\theta = 90^\circ\)

Common Mistakes

✕ Adding Magnitudes
Adding magnitudes directly: \(\|\vec{u}+\vec{v}\| \neq \|\vec{u}\| + \|\vec{v}\|\). You must add components first, then find magnitude.
✕ Wrong Quadrant
Forgetting to adjust \(\theta = \tan^{-1}(b/a)\) for the correct quadrant. Always check the signs of both components.
✕ Dot Product Is a Vector
The dot product is a scalar, not a vector. Writing \(\vec{u} \cdot \vec{v} = \langle \ldots \rangle\) is incorrect.

Worked practice: Practice Problems — airplane and wind

Work through this original lesson problem, then reveal the solution and illustrations.

An airplane flies with a velocity of ⟨250, 100⟩ km/h relative to the air, and the wind has a velocity of ⟨−40, 30⟩ km/h. (a) Find the resultant ground velocity vector. (b) Calculate the ground speed (magnitude of the resultant). (c) Determine the direction angle of the airplane's ground path. (d) A second airplane must arrive at the same ground velocity. If this plane encounters the same wind, find the airspeed and the direction angle (heading) at which it should aim to achieve this resultant.

Show answer and explanation

(a) Resultant = ⟨250 + (−40), 100 + 30⟩ = ⟨210, 130⟩ km/h. [1 pt] (b) Ground speed = √(210² + 130²) = √(44100 + 16900) = √61000 ≈ 246.98 km/h. [1 pt] (c) θ = tan⁻¹(130/210) ≈ tan⁻¹(0.6190) ≈ 31.8°. Since both components are positive, the vector lies in Quadrant I and no adjustment is needed. [1 pt] (d) The second airplane's air velocity vector is ⟨s cos α, s sin α⟩ where s is its airspeed. For the ground velocity to equal ⟨210, 130⟩ with wind ⟨−40, 30⟩, we need: s cos α − 40 = 210 → s cos α = 250 s sin α + 30 = 130 → s sin α = 100 So the required airspeed is s = √(250² + 100²) = √(62500 + 10000) = √72500 ≈ 269.3 km/h. [1 pt] The heading angle is α = tan⁻¹(100/250) = tan⁻¹(0.4) ≈ 21.8°. Since both components are positive, the angle is in Quadrant I and no adjustment is needed. [1 pt]

Head-to-tail vector sum of air velocity (250,100) and wind (−40,30), giving ground velocity (210,130), magnitude about 247 and direction about 31.8° north of east.
Aircraft air velocity and wind add to ground velocity in one east–north frame; heading and ground-track direction differ.

Question 1 of 5

If \(\vec{u} = \langle 2, -3 \rangle\) and \(\vec{v} = \langle -1, 5 \rangle\), what is \(\vec{u} + \vec{v}\)?

Question 2 of 5

What is the magnitude of the vector \(\vec{v} = \langle 6, 8 \rangle\)?

Question 3 of 5

What is the dot product of \(\vec{u} = \langle 3, -2 \rangle\) and \(\vec{v} = \langle 4, 6 \rangle\)?

Question 4 of 5

A vector has magnitude 5 and direction \(60^\circ\). What is its component form?

Question 5 of 5

If \(\vec{v} = \langle -3, 4 \rangle\), what is the unit vector in the direction of \(\vec{v}\)?