Pre-CalculusIntermediate

What is a Vector?

A vector is a quantity that has both magnitude (size) and direction. Velocity, force, displacement, and acceleration are all vectors. Scalars like temperature or mass have only magnitude. Understanding vectors is essential for physics, engineering, computer graphics, and machine learning.

1 Vectors vs Scalars

A scalar has only a number , temperature is 72°F, mass is 5 kg, time is 3 hours. A vector has a number and a direction , velocity is 60 mph north, force is 10 N upward, displacement is 5 km east.

The same magnitude with a different direction is a completely different vector. Wind blowing north at 30 mph and wind blowing south at 30 mph have the same speed (scalar) but opposite velocities (vectors). This distinction is critical in physics.

Representing vectors

Vectors are drawn as arrows. The length of the arrow represents the magnitude; the direction the arrow points represents the direction. In print, vectors are often written in bold (v) or with an arrow (→v).

2 Vector Notation and Components

A 2D vector can be described by its components: how far it goes in the x-direction and y-direction. The vector from point A(1, 2) to point B(4, 6) has components (4−1, 6−2) = (3, 4).

Written as ⟨3, 4⟩ or [3, 4] or 3î + 4ĵ (where î and ĵ are unit vectors along x and y axes).

Finding Vector Components
A vector starts at (2, 1) and ends at (7, 5). Find its components.
1x-component: 7 − 2 = 5
2y-component: 5 − 1 = 4
3Vector = ⟨5, 4⟩
Answer: ⟨5, 4⟩

3 Vector Addition and Scalar Multiplication

Addition: add corresponding components. ⟨a, b⟩ + ⟨c, d⟩ = ⟨a+c, b+d⟩. Geometrically: place the second vector's tail at the first vector's head.

Scalar multiplication: multiply each component by the scalar. k⟨a, b⟩ = ⟨ka, kb⟩. This scales the magnitude by |k| and reverses direction if k is negative.

Vector Operations
u = ⟨3, −1⟩ and v = ⟨−2, 4⟩. Find u + v and 3u.
1u + v = ⟨3+(−2), −1+4⟩ = ⟨1, 3⟩
23u = ⟨3×3, 3×(−1)⟩ = ⟨9, −3⟩
Answer: u + v = ⟨1, 3⟩, 3u = ⟨9, −3⟩

4 Magnitude and Unit Vectors

The magnitude (length) of vector ⟨a, b⟩ is |v| = √(a² + b²) , the Pythagorean theorem applied to the components.

A unit vector has magnitude 1 and points in the same direction: û = v/|v|. Unit vectors describe pure direction without magnitude.

Magnitude and Unit Vector
Find the magnitude and unit vector of ⟨3, 4⟩.
1|v| = √(3² + 4²) = √(9+16) = √25 = 5
2Unit vector: ⟨3, 4⟩/5 = ⟨3/5, 4/5⟩ = ⟨0.6, 0.8⟩
3Check: √(0.6² + 0.8²) = √(0.36+0.64) = √1 = 1 ✓
Answer: |v| = 5, û = ⟨0.6, 0.8⟩

5 The Dot Product

The dot product of two vectors: u · v = u₁v₁ + u₂v₂. It produces a scalar, not a vector.

Geometric meaning: u · v = |u||v|cos θ, where θ is the angle between them. This means: if two vectors are perpendicular, their dot product is 0 (cos 90° = 0). If they point in the same direction, the dot product equals the product of their magnitudes.

Dot Product
Find ⟨2, 3⟩ · ⟨4, −1⟩
1Multiply corresponding components and add:
22×4 + 3×(−1) = 8 − 3 = 5
Answer: Dot product = 5
Are these vectors perpendicular?

⟨3, 4⟩ · ⟨4, −3⟩ = 12 − 12 = 0. Yes , dot product of zero means they are perpendicular (orthogonal). This is how you test for right angles between vectors.

6 Real-World Applications

Physics: force, velocity, and acceleration are vectors. Adding force vectors determines the net force on an object (Newton's laws). Projectile motion decomposes velocity into horizontal and vertical components , vector analysis.

Navigation: aircraft heading vectors account for wind vectors to determine actual ground track and speed. GPS systems compute position vectors and displacement vectors continuously.

Computer graphics: every object position, camera direction, and lighting calculation uses vectors. Normal vectors (perpendicular to surfaces) determine how light reflects. The dot product of the light direction and normal vector calculates how bright each pixel should be.

Machine learning: data points are vectors in high-dimensional space. Similarity between items is measured using cosine similarity , the dot product divided by the product of magnitudes. Recommendation systems work by finding vectors pointing in similar directions.

Practice Problems

Find the magnitude of ⟨5, 12⟩
√(25+144) = √169 = 13
Add vectors ⟨−3, 7⟩ + ⟨5, −2⟩
⟨−3+5, 7+(−2)⟩ = ⟨2, 5⟩
Are ⟨2, 6⟩ and ⟨3, −1⟩ perpendicular?
Dot product: 2×3 + 6×(−1) = 6 − 6 = 0. Yes, they are perpendicular.
Find the unit vector in the direction of ⟨0, 7⟩
Magnitude = 7. Unit vector = ⟨0, 7⟩/7 = ⟨0, 1⟩ , the upward unit vector ĵ.

Sources & Further Reading

The explanations on this page draw on the following established sources. We link to primary and secondary sources so you can verify claims and go deeper on any topic.