Vectors

Vector Operations: Addition, Dot Product & Cross Product

Master vector addition, scalar multiplication, dot product and cross product with clear geometric interpretations. Essential for physics, 3D geometry and linear algebra.

V
Vectora Team
STEM Education
13 min read
2026-04-10

Try the interactive simulation for this topic

Explore this concept with our interactive 3D simulation.
Launch Simulator

Why Study Vectors?

Vectors are quantities with both magnitude and direction. They are the mathematical language of forces in physics, directions in navigation, and coordinates in computer graphics. Mastering vector operations is essential for any STEM discipline.

Learning Goals: By the end of this guide, you should be able to:

  1. Add, subtract and scale vectors algebraically and geometrically.
  2. Compute the dot product and use it to find angles.
  3. Compute the cross product and use it to find areas and normals.
  4. Apply vector operations to solve geometry and physics problems.

Vector Basics

A vector in 2D or 3D is written as a⃗=(a1a2a3)\vec{a} = \begin{pmatrix} a_1 \\ a_2 \\ a_3 \end{pmatrix} or a⃗=a1i^+a2j^+a3k^\vec{a} = a_1\hat{i} + a_2\hat{j} + a_3\hat{k}.

Magnitude

∣a⃗∣=a12+a22+a32|\vec{a}| = \sqrt{a_1^2 + a_2^2 + a_3^2}

Unit Vector

a^=a⃗∣a⃗∣\hat{a} = \frac{\vec{a}}{|\vec{a}|}

Addition and Scalar Multiplication

Addition: a⃗+b⃗=(a1+b1a2+b2a3+b3)\vec{a} + \vec{b} = \begin{pmatrix} a_1 + b_1 \\ a_2 + b_2 \\ a_3 + b_3 \end{pmatrix}

Geometrically: place b⃗\vec{b} at the tip of a⃗\vec{a} (head-to-tail rule).

Scalar multiplication: ka⃗=(ka1ka2ka3)k\vec{a} = \begin{pmatrix} ka_1 \\ ka_2 \\ ka_3 \end{pmatrix}

  • k>1k > 1: stretches the vector
  • 0<k<10 < k < 1: shrinks the vector
  • k<0k < 0: reverses direction

Dot Product (Scalar Product)

a⃗⋅b⃗=a1b1+a2b2+a3b3=∣a⃗∣∣b⃗∣cos⁡θ\vec{a} \cdot \vec{b} = a_1 b_1 + a_2 b_2 + a_3 b_3 = |\vec{a}||\vec{b}|\cos\theta

Key Properties

PropertyValueMeaning
a⃗⋅b⃗>0\vec{a} \cdot \vec{b} > 0θ<90°\theta < 90°Acute angle
a⃗⋅b⃗=0\vec{a} \cdot \vec{b} = 0θ=90°\theta = 90°Perpendicular
a⃗⋅b⃗<0\vec{a} \cdot \vec{b} < 0θ>90°\theta > 90°Obtuse angle

Finding the Angle

cos⁡θ=a⃗⋅b⃗∣a⃗∣∣b⃗∣\cos\theta = \frac{\vec{a} \cdot \vec{b}}{|\vec{a}||\vec{b}|}

Cross Product (Vector Product)

The cross product is defined only in 3D:

a⃗×b⃗=∣i^j^k^a1a2a3b1b2b3∣=(a2b3−a3b2a3b1−a1b3a1b2−a2b1)\vec{a} \times \vec{b} = \begin{vmatrix} \hat{i} & \hat{j} & \hat{k} \\ a_1 & a_2 & a_3 \\ b_1 & b_2 & b_3 \end{vmatrix} = \begin{pmatrix} a_2 b_3 - a_3 b_2 \\ a_3 b_1 - a_1 b_3 \\ a_1 b_2 - a_2 b_1 \end{pmatrix}

Key Properties

  • Result is a vector perpendicular to both a⃗\vec{a} and b⃗\vec{b}.
  • Magnitude: ∣a⃗×b⃗∣=∣a⃗∣∣b⃗∣sin⁡θ|\vec{a} \times \vec{b}| = |\vec{a}||\vec{b}|\sin\theta = area of the parallelogram formed by a⃗\vec{a} and b⃗\vec{b}.
  • Direction: given by the right-hand rule.
  • Anti-commutative: a⃗×b⃗=−(b⃗×a⃗)\vec{a} \times \vec{b} = -(\vec{b} \times \vec{a})

Worked Examples

Example 1: Angle Between Vectors

Find the angle between a⃗=(123)\vec{a} = \begin{pmatrix} 1 \\ 2 \\ 3 \end{pmatrix} and b⃗=(4−12)\vec{b} = \begin{pmatrix} 4 \\ -1 \\ 2 \end{pmatrix}.

a⃗⋅b⃗=4−2+6=8\vec{a} \cdot \vec{b} = 4 - 2 + 6 = 8 ∣a⃗∣=14,∣b⃗∣=21|\vec{a}| = \sqrt{14}, \quad |\vec{b}| = \sqrt{21} cos⁡θ=81421=8294≈0.467\cos\theta = \frac{8}{\sqrt{14}\sqrt{21}} = \frac{8}{\sqrt{294}} \approx 0.467 θ≈62.2°\theta \approx 62.2°

Example 2: Area of a Triangle

Find the area of the triangle with vertices A(1,0,0)A(1,0,0), B(0,1,0)B(0,1,0), C(0,0,1)C(0,0,1).

AB⃗=(−110),AC⃗=(−101)\vec{AB} = \begin{pmatrix} -1 \\ 1 \\ 0 \end{pmatrix}, \quad \vec{AC} = \begin{pmatrix} -1 \\ 0 \\ 1 \end{pmatrix} AB⃗×AC⃗=(111)\vec{AB} \times \vec{AC} = \begin{pmatrix} 1 \\ 1 \\ 1 \end{pmatrix} Area=12∣AB⃗×AC⃗∣=32\text{Area} = \frac{1}{2}|\vec{AB} \times \vec{AC}| = \frac{\sqrt{3}}{2}

Common Mistakes

  1. Confusing dot product and cross product — Dot product gives a scalar; cross product gives a vector. Check which one the question asks for.
  2. Forgetting that cross product is anti-commutative — a⃗×b⃗≠b⃗×a⃗\vec{a} \times \vec{b} \neq \vec{b} \times \vec{a}. The order matters.
  3. Errors in the determinant expansion — Be careful with signs: the j^\hat{j} component has a negative sign in the cofactor expansion.

Exam Tips (A-Level / AP / IB)

  • To check perpendicularity, compute the dot product. If it's zero, the vectors are perpendicular.
  • The cross product is the fastest way to find a normal vector to a plane defined by two direction vectors.
  • For projection of a⃗\vec{a} onto b⃗\vec{b}: projb⃗a⃗=a⃗⋅b⃗∣b⃗∣2b⃗\text{proj}_{\vec{b}}\vec{a} = \frac{\vec{a} \cdot \vec{b}}{|\vec{b}|^2}\vec{b}.

Frequently Asked Questions

What is the difference between a scalar and a vector?

A scalar has only magnitude (e.g., temperature, mass). A vector has both magnitude and direction (e.g., velocity, force).

Does the cross product exist in 2D?

Not exactly. In 2D, the "cross product" of a⃗=(a1,a2)\vec{a} = (a_1, a_2) and b⃗=(b1,b2)\vec{b} = (b_1, b_2) gives a single scalar a1b2−a2b1a_1 b_2 - a_2 b_1, which equals the signed area of the parallelogram.


  • Spatial Geometry — Vectors provide the algebraic toolkit for 3D geometry.
  • Complex Numbers — Complex number multiplication has a vector rotation interpretation.
  • Trigonometric Graphs — Dot product formula involves cosine; cross product involves sine.

References & Further Reading

This article was created by the Vectora Editorial Team and is reviewed for alignment with AP, IB, and A-Level curricula. Content is based on standard academic sources in chemistry, physics, biology, and mathematics.

Published: 2026-04-10

For corrections or suggestions, contact support@vectora.one.