Dot Product Calculator

Calculate the scalar product of two vectors and find the angle between them

Vector Input

Dimension Mode

Vector A Components

Vector A: [4, 5, -3]

Magnitude |A|: 7.0711

Vector B Components

Vector B: [1, -2, -2]

Magnitude |B|: 3.0000

Calculation Results

0.000000
Dot Product (A·B)
Formula: a₁b₁ + a₂b₂ + a₃b₃
90.00°
Angle Between Vectors
1.5708 radians

Vector Relationship: Perpendicular (Orthogonal)

The vectors are perpendicular (orthogonal) to each other.

Step-by-Step Solution

Step 1: Identify the vectors
Vector a = [4, 5, -3]
Vector b = [1, -2, -2]
Step 2: Apply the dot product formula
a·b = a₁b₁ + a₂b₂ + a₃b₃
Step 3: Substitute the values
a·b = (4)(1) + (5)(-2) + (-3)(-2)
Step 4: Calculate each product
a·b = 4 + -10 + 6
Step 5: Sum the products
a·b = 0
Step 6: Calculate vector magnitudes
|a| = √(4² + 5² + -3²) = √(16 + 25 + 9) = 7.071068
|b| = √(1² + -2² + -2²) = √(1 + 4 + 4) = 3.000000
Step 7: Calculate the angle between vectors
cos(α) = (a·b) / (|a| × |b|) = 0 / (7.071068 × 3.000000)
cos(α) = 0 / 21.213203 = 0.000000
α = arccos(0.000000) = 90.00°

Example Calculation

Perpendicular Vectors Example

Problem: Find the dot product of vectors a = [1, 1] and b = [1, -1]

Vector a: [1, 1]

Vector b: [1, -1]

Solution

Step 1: Apply dot product formula: a·b = a₁b₁ + a₂b₂

Step 2: Substitute values: a·b = (1)(1) + (1)(-1)

Step 3: Calculate: a·b = 1 + (-1) = 0

Step 4: Since the dot product is 0, the vectors are perpendicular

Result: Dot Product = 0, Angle = 90°

Dot Product Formulas

Algebraic Form

2D: a·b = a₁b₁ + a₂b₂

3D: a·b = a₁b₁ + a₂b₂ + a₃b₃

Geometric Form

a·b = |a| x |b| x cos(α)

Where α is the angle between vectors

Angle Formula

cos(α) = (a·b) / (|a| x |b|)

α = arccos[(a·b) / (|a| x |b|)]

Quick Reference

Dot product = 0 → Vectors are perpendicular

Angle = 0° → Vectors are parallel (same direction)

Angle = 180° → Vectors are parallel (opposite direction)

Dot product > 0 → Acute angle (< 90°)

Dot product < 0 → Obtuse angle (> 90°)

Understanding the Dot Product

What is the Dot Product?

The dot product (also called scalar product) is a mathematical operation that takes two vectors and returns a single number (scalar). It measures how much one vector extends in the direction of another vector.

Geometric Interpretation

Geometrically, the dot product represents the product of the magnitudes of two vectors and the cosine of the angle between them. It can be thought of as the projection of one vector onto another, multiplied by the magnitude of the second vector.

Properties

  • Commutative: a·b = b·a
  • Distributive: a·(b + c) = a·b + a·c
  • Scalar multiplication: (ka)·b = k(a·b)
  • Self dot product: a·a = |a|²

Real-World Applications

  • Physics: Work = Force · Displacement
  • Computer Graphics: Lighting calculations
  • Machine Learning: Similarity measures
  • Signal Processing: Correlation analysis

Special Cases

Perpendicular vectors: When a·b = 0, the vectors are orthogonal (90° angle)

Parallel vectors: When |cos(α)| = 1, vectors are parallel or anti-parallel

Unit vectors: For unit vectors, a·b = cos(α) directly gives the cosine of the angle

Calculation Methods

Component Method

Most common approach using vector components:

  1. Multiply corresponding components
  2. Sum all the products
  3. The result is the dot product

Magnitude-Angle Method

Using magnitudes and angle between vectors:

  1. Calculate magnitude of each vector
  2. Determine angle between vectors
  3. Apply: a·b = |a| × |b| × cos(α)