Principle
Objects with a very large mass direct electromagnetic waves in a different direction. Accordingly, the image of the background object is shifted, distorted and possibly multiplied.
A special manifestation is the microlensing effect. Here, the deflection is so slight that it is not registered as a spatial shift, but instead becomes noticeable as a temporary increase in brightness.
In any case, the effect is based on the curvature of space by mass-containing objects or energy described by Albert Einstein in his general theory of relativity as the effect of gravity on space-time.
This effect can be demonstrated during a total solar eclipse on stars that are very close to the viewing direction of the sun and are otherwise outshone by it: The position of these stars then appears slightly shifted away from the Sun. The corresponding observation by Arthur Eddington provided the first experimental confirmation of general relativity in 1919. Einstein thought it possible, but hardly probable, that multiple images of the same object could be perceived under suitable conditions. However, he only thought of stars as triggering this effect; in 1937 Fritz Zwicky investigated the effect that a galaxy could have as a gravitational lens. In 1963 Yu. G. Klimov, S. Liebes and Sjur Refsdal independently realized that then quasars are ideal light sources for this effect.
Strong gravitational lensing effect
To obtain a gravitational lens in the usual, i.e. astronomical sense, the extremely intense gravitational fields of astronomical objects such as black holes, galaxies or clusters of galaxies are normally required. In the case of these, it is possible that a light source lying behind the gravitational lens not only appears displaced, but that the observer sees several images. The first such "strong gravitational lens" was discovered in 1979: the "twin quasar" Q0957+561. A well-known example is the Einstein cross in the constellation Pegasus, discovered in 1985, which is a quadruple image of the same object. Under certain circumstances, the object appears behind the gravitational lens as a closed line in the form of an Einstein ring.
The first gravitational lensing consisting not of a single galaxy but of a cluster of galaxies (Abell 370) was independently identified as such in 1987 by Genevieve Soucail, Yannick Mellier and others in Toulouse and by Vahé Petrosian and Roger Lynds in the USA.
Weak gravitational lensing effect
In the case of weak distortions - due to a weak or distant gravitational field - the effects of gravitational lensing are not directly apparent because the actual shape of the objects behind the gravitational lens is not known. In this case, the determination of the gravitational field is nevertheless possible by statistical methods, by examining the shape and orientation of many of the galaxies present in the background. Here one assumes that the orientation of the galaxies in the background would be random without a gravitational lens. With gravitational lensing, background shear is obtained so that galaxies appear more often aligned along a ring around regions of strong gravitational field. From this, the mass distribution that causes the lensing effect can be determined.
Since this effect is small, a large number of galaxies must be studied for sufficient statistical significance. Furthermore, a number of possible systematic errors have to be considered. These include the intrinsic shape of galaxies, the point spread function of the camera used, imaging errors of the telescope, and possibly the air turbulence of the Earth's atmosphere, which can also lead to a distortion of the image.
Microlensing effect
Main article: Microlensing effect
Contrary to Einstein's assumption (see above), the effects that a single star exerts on the radiation of a background object can also be observed. Thus, a number of MACHOs have been detected because a single star has focused the light of a much fainter object behind it and thus amplified it (briefly). Extrasolar planets have also been detected with this effect.
The focal point of the Sun's lensing effect lies at a distance of about 82.5 billion kilometers, or about 550 astronomical units, and would yield a magnification by a factor of about 100 million.
In extreme cases, the gravity of a galaxy can produce extreme magnification. This made it possible, for example, to discover the most distant star, MACS J1149 Lensed Star 1, which is 9 billion light years away (as of 2018).