Bending of Light by a Star

This Demonstration shows how a ray of light that grazes the surface of a star is deflected by stars of different masses. corresponds to the mass of the Sun. Since the actual deflection would be imperceptibly small for the range of masses treated here, the angle shown in the graphic is greatly exaggerated. The numerical value of the deflection angle is calculated separately from a series solution to the geodesic equation.


  • [Snapshot]
  • [Snapshot]
  • [Snapshot]


The most general form of the metric that describes a static, isotropic, four-dimensional spacetime is
where is time, , , are coordinates in a spherical coordinate system, and and are some functions of the radial coordinate .
A free falling particle in a gravitational field follows a trajectory in spacetime called a geodesic. This path is a solution to the differential equation
where for are coordinates in spacetime and is a parameter along the geodesic. Here, represents time while , , and are the spatial coordinates. The objects with , and , each taking values 0, 1, 2, and 3 are called Christoffel symbols; they can be explicitly calculated from the metric given above. Solving the geodesic equation in the static, isotropic gravitational field yields the "bending" of the path of a photon (a ray of light) in the gravitational field of a massive spherical object like a star.
The deflection of light by the Sun was a significant early experimental verification of the general theory of relativity. The deflection was first measured in 1919 and was found to be in agreement (within experimental bounds) with the theoretical prediction of 1.75". For further details see
S. Weinberg, Gravitation and Cosmology: Principles and Applications of the General Theory of Relativity, New York, NY: Wiley, 1972.
    • Share:

Embed Interactive Demonstration New!

Just copy and paste this snippet of JavaScript code into your website or blog to put the live Demonstration on your site. More details »

Files require Wolfram CDF Player or Mathematica.

Mathematica »
The #1 tool for creating Demonstrations
and anything technical.
Wolfram|Alpha »
Explore anything with the first
computational knowledge engine.
MathWorld »
The web's most extensive
mathematics resource.
Course Assistant Apps »
An app for every course—
right in the palm of your hand.
Wolfram Blog »
Read our views on math,
science, and technology.
Computable Document Format »
The format that makes Demonstrations
(and any information) easy to share and
interact with.
STEM Initiative »
Programs & resources for
educators, schools & students.
Computerbasedmath.org »
Join the initiative for modernizing
math education.
Step-by-Step Solutions »
Walk through homework problems one step at a time, with hints to help along the way.
Wolfram Problem Generator »
Unlimited random practice problems and answers with built-in step-by-step solutions. Practice online or make a printable study sheet.
Wolfram Language »
Knowledge-based programming for everyone.
Powered by Wolfram Mathematica © 2017 Wolfram Demonstrations Project & Contributors  |  Terms of Use  |  Privacy Policy  |  RSS Give us your feedback
Note: To run this Demonstration you need Mathematica 7+ or the free Mathematica Player 7EX
Download or upgrade to Mathematica Player 7EX
I already have Mathematica Player or Mathematica 7+