General Relativity

Einstein's Masterpiece: Gravity is the curvature of spacetime. Mass-energy tells spacetime how to curve, and spacetime tells mass-energy how to move.

Chapter 1: Manifolds and Topology

A manifold is the mathematical arena for General Relativityβ€”a space that looks locally like ℝⁿ but may have global curvature and topology. Spacetime itself is a 4-dimensional Lorentzian manifold.

What is a Manifold?

A differentiable manifold M is a topological space that:

1. Locally Euclidean

Every point has a neighborhood homeomorphic to an open set in ℝⁿ. This means locally, the manifold "looks flat"β€”like ordinary Euclidean space.

2. Hausdorff and Second Countable

Technical conditions ensuring the space is "well-behaved": distinct points can be separated, and the topology has a countable basis.

3. Smooth Structure

Coordinate charts overlap smoothly (C∞ transition functions), allowing calculus on the manifold.

Key Examples:

  • β€’ ℝⁿ (Euclidean space) β€” the simplest manifold
  • β€’ SΒ² (2-sphere) β€” curved but compact
  • β€’ TΒ² (2-torus) β€” has different topology than sphere
  • β€’ Spacetime M⁴ β€” our 4D universe!

Coordinate Charts and Atlases

A coordinate chart (U, Ο†) is an open set U βŠ‚ M with a homeomorphism Ο†: U β†’ ℝⁿ assigning coordinates to each point.

\( \phi: U \rightarrow \mathbb{R}^n, \quad p \mapsto (x^1(p), x^2(p), \ldots, x^n(p)) \)

An atlas is a collection of charts covering the entire manifold. For the 2-sphere, we need at least two charts (e.g., stereographic projections from north and south poles).

Transition Functions

Where charts overlap, the transition function \( \phi_\beta \circ \phi_\alpha^{-1} \) must be smooth (C∞). This is what makes M a differentiable manifold.

Tangent Spaces

At each point p ∈ M, the tangent space T_pM is the vector space of all tangent vectors at p. These are the "velocities" of curves passing through p.

Definition via Derivations

A tangent vector v at p is a linear map v: C∞(M) β†’ ℝ satisfying the Leibniz rule:

\( v(fg) = f(p)v(g) + g(p)v(f) \)

Coordinate Basis

In coordinates (x¹, ..., xⁿ), the tangent space has basis vectors:

\( \left\{ \frac{\partial}{\partial x^1}, \ldots, \frac{\partial}{\partial x^n} \right\} \)

Any tangent vector: \( v = v^\mu \frac{\partial}{\partial x^\mu} \) (Einstein summation)

Python Example: 2-Sphere Manifold

This Python code demonstrates coordinate charts, the metric tensor, and curvature calculations on the 2-sphereβ€”a simple curved manifold with interactive visualization.

2-Sphere Manifold Analysis

Python

Coordinate charts, metric tensor, and curvature on the 2-sphere

manifold_sphere.py128 lines

Click Run to execute the Python code

Code will be executed with Python 3 on the server

Fortran Example: Metric Calculations

This Fortran code computes metric components and Christoffel symbols for the 2-sphereβ€”essential calculations for understanding geodesic motion on curved manifolds.

2-Sphere Metric and Christoffel Symbols

Fortran

Compute metric determinant and connection coefficients

manifold_sphere.f9080 lines

Click Run to execute the Fortran code

Code will be compiled with gfortran and executed on the server

Topology and Global Structure

Topology captures the "global shape" of a manifoldβ€”properties unchanged by continuous deformations.

Compact Manifolds

Closed and bounded (like SΒ²). Every sequence has a convergent subsequence. The universe might be spatially compact!

Simply Connected

Every loop can be continuously shrunk to a point. SΒ² is simply connected; TΒ² (torus) is not.

Orientable

A consistent notion of "clockwise" exists globally. The MΓΆbius strip is non-orientable.

Euler Characteristic

Topological invariant: Ο‡ = V - E + F for polyhedra. For SΒ²: Ο‡ = 2. For TΒ²: Ο‡ = 0.