Back to Physical Sciences

Part 1: Prerequisites & Foundations

April 30, 2026 Wasil Zafar 18 min read

Build the essential mathematical toolkit and physics foundations you need before embarking on your journey through Einstein's revolutionary theories.

Table of Contents

  1. Mathematics Foundations
  2. Classical Mechanics
  3. Electromagnetism Basics
  4. Advanced Math Preview
  5. Practice Exercises
  6. Conclusion & Next Steps

Mathematics Foundations

Before we can explore how the universe behaves at extreme speeds and massive scales, we need a solid mathematical toolkit. Think of these mathematical tools as the language in which nature expresses its deepest secrets. Without this language, Einstein's elegant equations would be incomprehensible symbols rather than windows into reality.

Why Math Matters: Physics isn't just about ideas — it's about precise predictions. The mathematics of relativity allows us to predict time dilation to billionths of a second, predict the bending of light to fractions of an arcsecond, and navigate spacecraft across the solar system.

Algebra & Functions

At its core, relativity uses algebraic relationships to describe how physical quantities transform between observers. You'll need comfort with:

  • Variables and equations — solving for unknowns in multi-variable equations
  • Functions — understanding how one quantity depends on another: f(x) = x^2
  • Square roots and powers — especially \sqrt{1 - v^2/c^2}, the famous Lorentz factor
  • Proportional relationships — direct, inverse, and quadratic

The most important algebraic expression in relativity is the Lorentz factor:

$$\gamma = \frac{1}{\sqrt{1 - \frac{v^2}{c^2}}}$$

When v = 0, we get \gamma = 1 (no relativistic effects). As v \to c, \gamma \to \infty (extreme effects). This single expression encodes all of special relativity's bizarre predictions.

import numpy as np
import matplotlib.pyplot as plt

# Calculate Lorentz factor for various speeds
c = 3e8  # speed of light in m/s
velocities = np.linspace(0, 0.99*c, 1000)
gamma = 1 / np.sqrt(1 - (velocities/c)**2)

# Display key values
speeds = [0, 0.1*c, 0.5*c, 0.9*c, 0.99*c]
for v in speeds:
    g = 1 / np.sqrt(1 - (v/c)**2)
    print(f"v = {v/c:.2f}c → γ = {g:.4f}")

Trigonometry

Trigonometry enters relativity when we deal with angles, rotations, and — surprisingly — the geometry of spacetime itself. In special relativity, hyperbolic trigonometry plays a central role analogous to circular trigonometry in Euclidean geometry.

Key trigonometric concepts you'll need:

  • Sine, cosine, tangent — for analyzing components of vectors
  • Pythagorean theorem — foundation for the spacetime interval
  • Hyperbolic functions\cosh\phi, \sinh\phi describe "rotations" in spacetime
Analogy: Just as regular rotations use \cos\theta and \sin\theta to mix x and y coordinates, Lorentz boosts use \cosh\phi and \sinh\phi to mix space and time coordinates. The "angle" \phi is called the rapidity.

The hyperbolic identity that mirrors the Pythagorean theorem is:

$$\cosh^2\phi - \sinh^2\phi = 1$$

Compare with the familiar: \cos^2\theta + \sin^2\theta = 1. The minus sign is the signature of spacetime geometry!

Calculus Essentials

Calculus — the mathematics of change — is essential for understanding how quantities vary smoothly in relativity. You'll need both derivatives and integrals.

Derivatives: Rates of Change

A derivative tells us how fast something is changing. In physics, velocity is the derivative of position with respect to time:

$$v = \frac{dx}{dt}$$

And acceleration is the derivative of velocity:

$$a = \frac{dv}{dt} = \frac{d^2x}{dt^2}$$

Integrals: Accumulation

Integration is the reverse — accumulating small contributions. The work done by a varying force is:

$$W = \int_{x_1}^{x_2} F(x)\, dx$$

In general relativity, we'll compute the proper time along a curved path through spacetime using integration:

$$\tau = \int \sqrt{1 - \frac{v^2}{c^2}}\, dt$$
import numpy as np

# Example: Computing proper time for a journey
# A spacecraft accelerates to 0.8c and travels for 10 years (Earth time)
c = 1  # natural units where c = 1
v = 0.8  # 80% speed of light

# Time dilation: proper time experienced by traveler
earth_time = 10  # years
gamma = 1 / np.sqrt(1 - v**2)
proper_time = earth_time / gamma

print(f"Earth time elapsed: {earth_time} years")
print(f"Lorentz factor γ: {gamma:.4f}")
print(f"Traveler's proper time: {proper_time:.2f} years")
print(f"The traveler ages {earth_time - proper_time:.2f} years less!")

Vectors & Coordinate Systems

Vectors are quantities with both magnitude and direction — like velocity, force, and momentum. In relativity, we extend ordinary 3D vectors into 4-vectors that include time as a fourth component.

A position vector in 3D space:

$$\vec{r} = x\hat{i} + y\hat{j} + z\hat{k}$$

In special relativity, this becomes a 4-vector (event in spacetime):

$$x^\mu = (ct,\, x,\, y,\, z)$$

Key vector operations you'll need:

  • Dot product: \vec{A} \cdot \vec{B} = A_x B_x + A_y B_y + A_z B_z
  • Cross product: produces a vector perpendicular to both inputs
  • Magnitude: |\vec{A}| = \sqrt{A_x^2 + A_y^2 + A_z^2}
  • Coordinate transformations: converting between frames (Cartesian ↔ polar ↔ spherical)
From 3D Vectors to 4-Vectors
flowchart LR
    A["3D Position
(x, y, z)"] --> B["Add Time
Component"] B --> C["4-Vector
(ct, x, y, z)"] D["3D Velocity
(vx, vy, vz)"] --> E["Relativistic
Correction"] E --> F["4-Velocity
γ(c, vx, vy, vz)"] A --> G["Classical
Physics"] C --> H["Special
Relativity"]

Classical Mechanics (Newtonian Physics)

Before Einstein revolutionized physics in 1905, Isaac Newton's mechanics had reigned supreme for over 200 years. Understanding Newtonian physics is essential — not because it's wrong, but because relativity reduces to classical mechanics at low speeds. Newton's physics is the limiting case of Einstein's more complete theory.

Motion & Kinematics

Kinematics describes motion without worrying about its causes. The fundamental quantities are:

  • Position (x): where an object is
  • Velocity (v = dx/dt): how fast position changes
  • Acceleration (a = dv/dt): how fast velocity changes

For constant acceleration, we have the kinematic equations:

$$v = v_0 + at$$
$$x = x_0 + v_0 t + \frac{1}{2}at^2$$
$$v^2 = v_0^2 + 2a(x - x_0)$$
Thought Experiment

The Train and the Ball

Imagine you're on a train moving at 100 km/h. You throw a ball forward at 20 km/h relative to you. An observer on the platform sees the ball moving at 120 km/h — velocities simply add. This is Galilean velocity addition. It works perfectly at everyday speeds, but fails dramatically near the speed of light. We'll see why in Part 2.

Galilean Relativity Velocity Addition

Newton's Three Laws

Newton's laws form the bedrock of classical mechanics:

First Law (Inertia): An object at rest stays at rest, and an object in motion stays in uniform motion, unless acted upon by a net external force.

$$\text{If } \sum \vec{F} = 0, \text{ then } \vec{v} = \text{constant}$$

Second Law (F = ma): The acceleration of an object is proportional to the net force and inversely proportional to its mass.

$$\vec{F} = m\vec{a} = m\frac{d\vec{v}}{dt}$$

Third Law (Action-Reaction): For every action, there is an equal and opposite reaction.

$$\vec{F}_{12} = -\vec{F}_{21}$$
Relativity Alert: Newton's Second Law F = ma must be modified in relativity. The correct relativistic form is F = \frac{dp}{dt} where p = \gamma mv. At low speeds (v \ll c), this reduces to F = ma.

Energy & Momentum

Energy and momentum are conserved quantities — they cannot be created or destroyed, only transformed. These conservation laws survive into relativity (with modifications).

Kinetic Energy (classical):

$$KE = \frac{1}{2}mv^2$$

Momentum (classical):

$$\vec{p} = m\vec{v}$$

Work-Energy Theorem:

$$W = \Delta KE = \frac{1}{2}mv_f^2 - \frac{1}{2}mv_i^2$$

In relativity, these become:

$$E = \gamma mc^2 \quad \text{(total energy)}$$
$$\vec{p} = \gamma m\vec{v} \quad \text{(relativistic momentum)}$$

And the most famous equation in all of physics connects rest energy to mass:

$$E_0 = mc^2$$
import numpy as np

# Compare classical vs relativistic kinetic energy
c = 3e8  # m/s
m = 1.0  # kg (for simplicity)

speeds = [0.01, 0.1, 0.5, 0.8, 0.9, 0.99]  # fractions of c

print(f"{'Speed (v/c)':<12} {'Classical KE':<20} {'Relativistic KE':<20} {'% Error':<10}")
print("-" * 62)

for beta in speeds:
    v = beta * c
    # Classical: KE = 0.5 * m * v^2
    ke_classical = 0.5 * m * v**2
    # Relativistic: KE = (gamma - 1) * m * c^2
    gamma = 1 / np.sqrt(1 - beta**2)
    ke_relativistic = (gamma - 1) * m * c**2
    # Percent error of classical approximation
    error = abs(ke_classical - ke_relativistic) / ke_relativistic * 100
    print(f"{beta:<12.2f} {ke_classical:<20.3e} {ke_relativistic:<20.3e} {error:<10.1f}")

Reference Frames

A reference frame is a coordinate system attached to an observer. It's the vantage point from which measurements are made. This concept is absolutely central to relativity.

Inertial frames are reference frames moving at constant velocity (no acceleration). Newton's laws hold in their simplest form in inertial frames.

Galilean Transformation — converting coordinates between two inertial frames moving with relative velocity v along x:

$$x' = x - vt$$
$$t' = t$$

Notice that time is absolute in Newtonian physics — all observers agree on the time. This assumption will be shattered by Einstein.

Key Insight: The Galilean transformation assumes time is universal (t' = t). Einstein's great insight was recognizing that time is relative — different observers can disagree about the time between events. This leads to the Lorentz transformation (Part 3).

Electromagnetism Basics

It was electromagnetism — not mechanics — that forced physicists to confront the limitations of Newtonian physics. James Clerk Maxwell's equations, published in the 1860s, unified electricity and magnetism and revealed that light is an electromagnetic wave. But they also contained a deep puzzle that would lead Einstein to special relativity.

Light as an Electromagnetic Wave

Maxwell showed that oscillating electric and magnetic fields can propagate through space as a wave. These electromagnetic (EM) waves travel at a specific speed determined by two fundamental constants:

$$c = \frac{1}{\sqrt{\mu_0 \epsilon_0}} \approx 3 \times 10^8 \text{ m/s}$$

where \mu_0 is the permeability of free space and \epsilon_0 is the permittivity of free space.

The electromagnetic spectrum spans a vast range of wavelengths:

Electromagnetic Spectrum
flowchart LR
    A["Radio
λ > 1m"] --> B["Microwave
1mm–1m"] B --> C["Infrared
700nm–1mm"] C --> D["Visible
400–700nm"] D --> E["Ultraviolet
10–400nm"] E --> F["X-ray
0.01–10nm"] F --> G["Gamma
λ < 0.01nm"]

All electromagnetic waves — radio, visible light, X-rays, gamma rays — travel at exactly the same speed c in vacuum. This universality is a key feature.

The Speed of Light — A Universal Constant

Here's the puzzle that stumped 19th-century physicists: Maxwell's equations predict that light travels at speed c, but they don't specify relative to what. In Newtonian physics, wave speeds are always relative to a medium (sound travels at 343 m/s relative to air). So physicists assumed light traveled through a medium called the luminiferous aether.

But this creates a testable prediction: if Earth moves through the aether, we should measure different speeds of light in different directions — like swimming with vs. against a current. The Michelson-Morley experiment (1887) tested this and found... nothing. The speed of light was the same in all directions.

Historical Context

Maxwell's Revolutionary Equations

In 1865, James Clerk Maxwell published "A Dynamical Theory of the Electromagnetic Field" — four elegant equations that unified electricity, magnetism, and optics. The speed c emerged naturally from the equations, matching the measured speed of light. Maxwell wrote: "We can scarcely avoid the inference that light consists in the transverse undulations of the same medium which is the cause of electric and magnetic phenomena."

Maxwell 1865 Unification Speed of Light
import numpy as np

# Fundamental electromagnetic constants
epsilon_0 = 8.854e-12  # F/m (permittivity of free space)
mu_0 = 4 * np.pi * 1e-7  # H/m (permeability of free space)

# Speed of light from Maxwell's equations
c_calculated = 1 / np.sqrt(mu_0 * epsilon_0)
c_measured = 299792458  # m/s (exact, by definition since 1983)

print(f"Permittivity of free space (ε₀): {epsilon_0:.3e} F/m")
print(f"Permeability of free space (μ₀): {mu_0:.3e} H/m")
print(f"Speed of light (calculated): {c_calculated:.0f} m/s")
print(f"Speed of light (measured):   {c_measured} m/s")
print(f"Agreement: {abs(c_calculated - c_measured)/c_measured * 100:.6f}% difference")

Advanced Mathematics Preview

While Parts 1–3 of this series require only the mathematics above, the later parts (especially General Relativity in Part 5 and Mathematical Relativity in Part 8) use more advanced tools. Here's a brief preview so you know what's coming.

Linear Algebra

Linear algebra deals with vectors, matrices, and linear transformations. In relativity, the Lorentz transformation is naturally expressed as a matrix multiplication:

$$\begin{pmatrix} ct' \\ x' \end{pmatrix} = \begin{pmatrix} \gamma & -\beta\gamma \\ -\beta\gamma & \gamma \end{pmatrix} \begin{pmatrix} ct \\ x \end{pmatrix}$$

where \beta = v/c. This matrix acts on the spacetime coordinates, mixing space and time — the mathematical signature of relativity.

Tensors — The Language of General Relativity

Tensors generalize vectors and matrices to higher dimensions. They are essential because Einstein's field equations are tensor equations:

$$G_{\mu\nu} = \frac{8\pi G}{c^4} T_{\mu\nu}$$

Here, G_{\mu\nu} is the Einstein tensor (describes spacetime curvature) and T_{\mu\nu} is the stress-energy tensor (describes matter and energy distribution). Each Greek index runs from 0 to 3, so this single equation actually represents 10 independent equations!

Don't Worry: You don't need tensor calculus to understand the concepts of general relativity. We'll build intuition first (Parts 4–5) and save the full mathematical machinery for Part 8.

Practice Exercises

Test your understanding of the prerequisite concepts before moving on:

Exercise Set

Exercises: Mathematics & Classical Mechanics

1. Calculate the Lorentz factor \gamma for v = 0.6c. Then find the proper time if Earth time is 5 years.

2. A spaceship has mass 1000 kg and travels at 0.8c. Calculate its relativistic momentum and compare with the classical (Newtonian) value.

3. Using the Galilean transformation, if a ball moves at 30 m/s in frame S, and frame S' moves at 10 m/s relative to S, what speed does an observer in S' measure?

4. Calculate the speed of light from \epsilon_0 = 8.854 \times 10^{-12} F/m and \mu_0 = 4\pi \times 10^{-7} H/m.

5. If \cosh\phi = \gamma = 2, find \sinh\phi using the hyperbolic identity \cosh^2\phi - \sinh^2\phi = 1.

Lorentz Factor Momentum Galilean Transform
import numpy as np

# Solutions to exercises
print("=" * 50)
print("EXERCISE SOLUTIONS")
print("=" * 50)

# Exercise 1: Lorentz factor for v = 0.6c
v = 0.6  # in units of c
gamma = 1 / np.sqrt(1 - v**2)
proper_time = 5 / gamma
print(f"\n1. γ at v=0.6c: {gamma:.4f}")
print(f"   Proper time for 5 years Earth time: {proper_time:.2f} years")

# Exercise 2: Relativistic momentum
m = 1000  # kg
v_frac = 0.8
c = 3e8
v_ms = v_frac * c
gamma_2 = 1 / np.sqrt(1 - v_frac**2)
p_classical = m * v_ms
p_relativistic = gamma_2 * m * v_ms
print(f"\n2. Classical momentum: {p_classical:.3e} kg⋅m/s")
print(f"   Relativistic momentum: {p_relativistic:.3e} kg⋅m/s")
print(f"   Ratio (relativistic/classical): {gamma_2:.4f}")

# Exercise 3: Galilean transformation
v_ball = 30  # m/s in frame S
v_frame = 10  # m/s (S' relative to S)
v_prime = v_ball - v_frame
print(f"\n3. Ball speed in S': {v_prime} m/s")

# Exercise 4: Speed of light from constants
epsilon_0 = 8.854e-12
mu_0 = 4 * np.pi * 1e-7
c_calc = 1 / np.sqrt(mu_0 * epsilon_0)
print(f"\n4. Speed of light: {c_calc:.0f} m/s")

# Exercise 5: Hyperbolic identity
cosh_phi = 2
sinh_phi = np.sqrt(cosh_phi**2 - 1)
print(f"\n5. If cosh(φ) = 2, then sinh(φ) = {sinh_phi:.4f}")

Conclusion & Next Steps

In this foundational article, we've reviewed the essential mathematical and physical prerequisites for understanding relativity:

  • Mathematics: algebra, trigonometry (including hyperbolic functions), calculus (derivatives and integrals), and vectors
  • Classical Mechanics: kinematics, Newton's laws, energy, momentum, and reference frames
  • Electromagnetism: light as an EM wave, the speed of light as a universal constant, and the puzzle of the aether
  • Advanced Preview: linear algebra and tensors (needed for later parts)

With these tools in hand, you're ready to understand the crisis that shook classical physics to its core — and see why Einstein's radical new theory was not just revolutionary, but necessary.

Next in the Series

In Part 2: Crisis of Classical Physics, we'll explore the Michelson-Morley experiment, the failure of Galilean relativity near light speed, and the intellectual crisis that paved the way for Einstein's 1905 revolution.