In science and engineering, we deal with two types of quantities: scalars (which have only magnitude) and vectors (which have both magnitude and direction). Understanding this distinction is crucial for physics, engineering, and computer graphics.
Scalars vs. Vectors
Scalars
A scalar is fully described by a single number (and its unit):
- Temperature: 25°C
- Mass: 70 kg
- Speed: 60 km/h
- Energy: 500 J
- Time: 3.5 seconds
Vectors
A vector needs both a magnitude and a direction:
- Velocity: 60 km/h north
- Force: 10 N at 30° above horizontal
- Displacement: 5 m east
- Acceleration: 9.81 m/s² downward
Vector Notation
Vectors can be represented in several ways:
Component Form
v = (vₓ, vᵧ) in 2D or (vₓ, vᵧ, v_z) in 3D
Example: A force of 10 N at 30° above horizontal:
- Fₓ = 10 cos(30°) = 8.66 N
- Fᵧ = 10 sin(30°) = 5.00 N
- F = (8.66, 5.00) N
Unit Vector Form
v = vₓî + vᵧĵ + v_zk̂
Where î, ĵ, k̂ are unit vectors along x, y, z axes.
Vector Operations
Addition
To add vectors, add their corresponding components:
A + B = (Aₓ + Bₓ, Aᵧ + Bᵧ)
Example: If A = (3, 4) and B = (1, −2): A + B = (3+1, 4+(−2)) = (4, 2)
Subtraction
A − B = (Aₓ − Bₓ, Aᵧ − Bᵧ)
Scalar Multiplication
Multiply each component by the scalar: kA = (kAₓ, kAᵧ)
- If k > 0: same direction, scaled magnitude
- If k < 0: opposite direction, scaled magnitude
Vector Magnitude
The magnitude (length) of a vector is:
|v| = √(vₓ² + vᵧ²) in 2D
|v| = √(vₓ² + vᵧ² + v_z²) in 3D
Example: |(3, 4)| = √(9 + 16) = √25 = 5
Dot Product (Scalar Product)
The dot product of two vectors produces a scalar:
A · B = AₓBₓ + AᵧBᵧ
Alternatively: A · B = |A| |B| cos(θ)
Properties
- If A · B = 0, the vectors are perpendicular (orthogonal)
- If A · B > 0, the angle between them is less than 90°
- If A · B < 0, the angle between them is greater than 90°
Applications
- Calculating work: W = F · d
- Finding angles between vectors
- Projecting one vector onto another
Cross Product (Vector Product)
The cross product of two vectors produces a vector perpendicular to both:
A × B = (AᵧB_z − A_zBᵧ, A_zBₓ − AₓB_z, AₓBᵧ − AᵧBₓ)
The magnitude: |A × B| = |A| |B| sin(θ)
Applications
- Calculating torque: τ = r × F
- Finding normal vectors to surfaces
- Calculating area of parallelograms
Unit Vectors
A unit vector has magnitude 1 and points in a specific direction:
û = v / |v|
Example: Find the unit vector in the direction of (3, 4):
- Magnitude = 5
- û = (3/5, 4/5) = (0.6, 0.8)
Real-World Applications
| Field | Vector Use |
|---|---|
| Navigation | Direction and distance |
| Physics | Forces, velocities, fields |
| Computer Graphics | 3D rendering, lighting |
| Robotics | Motion planning |
| Aerospace | Flight trajectories |
Practice vector calculations with our Vector Operations Tool — add, subtract, find dot products, cross products, and magnitudes instantly.