Skip to content
MathAnvil
§ Vectors

Vectors

§ Vectors

Vectors

R1VG23 min read

A vector in two dimensions represents both magnitude (length) and direction, written as an ordered pair (x, y) where x and y are the horizontal and vertical components. Unlike a scalar quantity such as temperature or speed, a vector contains directional information that makes it essential for describing motion, forces, and position changes. The vector from point A(-3, 1) to point B(4, 6) is written as (7, 5), found by subtracting the starting coordinates from the ending coordinates.

§ 01

Why it matters

Vectors form the foundation for physics concepts like velocity, acceleration, and force, where both magnitude and direction matter. In computer graphics, vectors control object movement and rotation, with game engines processing thousands of 2D vector calculations per second. Navigation systems use vectors to represent displacement — a GPS might calculate that traveling 3 miles east and 4 miles north results in a displacement vector of (3, 4) with magnitude 5 miles. Engineering applications include structural analysis, where forces acting on bridges are represented as vectors. The dot product operation determines whether two forces are perpendicular, crucial for stability calculations. Advanced mathematics builds on 2D vectors to introduce 3D space, vector calculus, and linear transformations that appear in machine learning algorithms.

§ 02

How to solve vectors

Introduction to Vectors

  • A vector has both magnitude (length) and direction.
  • Write a 2D vector as (x, y) or as a column.
  • Add vectors component by component: (a, b) + (c, d) = (a+c, b+d).
  • Scalar multiplication scales both components: k(a, b) = (ka, kb).

Example: (3, 2) + (1, 4) = (4, 6). And 2·(3, 2) = (6, 4).

§ 03

Worked examples

Beginner§ 01

Write the vector from A(-3, 1) to B(4, 6) as a column vector.

Answer: AB⃗ = (7, 5)

  1. Subtract coordinates: B − A (4 − -3, 6 − 1) Each component of the vector is the difference of the corresponding coordinates.
  2. Compute AB⃗ = (7, 5) x-component: 4 − -3 = 7, y-component: 6 − 1 = 5.
Easy§ 02

Given a⃗ = (4, -2) and b⃗ = (7, 6), find a⃗ − b⃗.

Answer: a⃗ − b⃗ = (-3, -8)

  1. Add/subtract component-wise (4 − 7, -2 − 6) The difference is found by applying the operation to each pair of components.
  2. Compute (-3, -8) x: 4 − 7 = -3, y: -2 − 6 = -8.
Medium§ 03

Find the length of the vector v⃗ = (-1, 1).

Answer: |v⃗| = √2 ≈ 1.41

  1. Use the magnitude formula: |v⃗| = √(x² + y²) |v⃗| = √(-1² + 1²) The magnitude is found using the Pythagorean theorem.
  2. Compute the squares |v⃗| = √(1 + 1) = √2 -1² = 1, 1² = 1.
  3. Evaluate the square root |v⃗| = √2 ≈ 1.41 √2 = √2 ≈ 1.41.
§ 04

Common mistakes

  • A common error is writing the vector from A(2, 3) to B(5, 1) as (2, 3) instead of (3, -2), forgetting that vectors represent displacement, not position.
  • When adding vectors (4, -1) + (2, 5), some write (6, 4) but forget the negative sign, incorrectly getting (6, 6) instead of the correct (6, 4).
  • For magnitude calculations, some compute |(-3, 4)| = √(-3 + 4) = 1 instead of using the correct formula √((-3)² + 4²) = √25 = 5.
  • In scalar multiplication, 3 · (2, -4) sometimes becomes (6, -4) instead of (6, -12), with the scalar applied to only one component.
§ 05

Frequently asked questions

What is the difference between a vector and a point?
A point represents a fixed location with coordinates like (3, 5), while a vector represents displacement or movement. The vector (3, 5) means move 3 units right and 5 units up from any starting position. Points are positions; vectors are directions with magnitude.
How do you find the magnitude of a vector?
Use the Pythagorean theorem: |v| = √(x² + y²). For vector (-1, 1), the magnitude is √((-1)² + 1²) = √(1 + 1) = √2 ≈ 1.41. This gives the straight-line distance from the origin to the point (x, y).
Can vectors have negative components?
Yes, negative components indicate direction. In vector (-3, 2), the -3 means 3 units left (negative x-direction) and 2 means 2 units up (positive y-direction). Negative components are essential for representing movement in all four quadrants of the coordinate plane.
What happens when you multiply a vector by zero?
Multiplying any vector by zero produces the zero vector (0, 0), which has zero magnitude and no defined direction. For example, 0 · (5, -3) = (0, 0). The zero vector is the only vector with magnitude zero and represents no displacement.
How do you subtract vectors?
Subtract component by component: (a, b) - (c, d) = (a-c, b-d). For vectors (7, 4) - (3, 1), compute (7-3, 4-1) = (4, 3). Vector subtraction finds the displacement from the second vector to the first vector.
§ 06

See also

§ 06

Where to next?

Prerequisites
Next up
Share this article