A mirage is not an optical illusion. It is a real phenomenon, and one can take photographs of it. The interpretation of the image, however, is up to the fantasy of the human mind.
The 'rest' state of the Earth's atmosphere is with a vertical gradient of about -1 degree Celsius per 100 metres height. (The value is negative because it gets colder when you go higher.) For an actual mirage to happen, the temperature gradient has to be much greater. According to MinnaertM. Minnaert; The Nature of Light and Colour in the Open Air; 1948; ISBN: 0486201961. the magnitude of the gradient should be at least 2°C per metre, and the mirage will not get strong until the magnitude reaches 4 or 5°C per metre. These conditions can occur when there is strong heating at ground level, for example when the sun is shining on sand or asphalt.
Light rays coming from a particular distant object all travel through nearly the same air layers and all are bent over about the same amount. Therefore rays coming from the top of the object will come less high than those from the bottom. The image usually is upside down, enhancing the illusion that the sky image seen in the distance is really a water or oil puddle acting as a mirror.
Inferior images are not stable. Hot air rises, and cooler air (being more dense) descends, so the layers will mix, giving rise to turbulence. The image will be disformed accordingly. It may be vibrating, it may be vertically extended (towering) or horizontally extended (stooping). If there are several temperature layers, several mirages may mix together, perhaps causing double images. In any case, mirages are usually not larger than about half a degree high (same apparent size as the sun and moon) and from objects only a few kilometres away.
Superior mirages are most common in polar regions, especially over large sheets of ice with an uniform low temperature. They also occur at more moderate latitudes, however, although in that case they are weaker and not so smooth. For example a distant shoreline may be made towering, looking higher (and thus perhaps closer) than it is in reality, but because of the turbulences there seem to be dancing spikes, towers and so forth. This type of mirage is also called the Fata Morgana or in Icelandic halgerndingar.
Superior images can be straight up or upside down, depending on the distance of the true object and the temperature gradient. Often the image appears as a distorted mixture of up and down parts.
If the Earth were flat, superior images would not be interesting. Light rays which bent down would soon hit the ground, and only close objects would be affected. Since the Earth is round, however, if the amount of bending down is about equal to the curvature of the Earth, light rays can travel large distances, perhaps from beyond the horizon. This was observed for the first time in 1596, when a ship under the command of Willem Barents looking for the Northeast passage got stuck in the ice at Novaya Zemlya and the crew had to face the polar winter there. They saw their midwinter night ending with the rise of a distorted sun about 2 weeks earlier than expected. It was not until the 20th century before Europeans understood the reason. That the real sun had still been under their horizon, but its light rays followed the curvature of the Earth. This effect is often called a Novaya Zemlya mirage. For every 100 km the light rays can travel parallel to the Earth's surface, the sun will appear 1° higher on the horizon. The inversion layer must have just the right temperature gradient over the whole distance to make this possible.
In the same way ships which are in reality so far away that they should not have been visible above the geometric horizon, may appear on the horizon, or even above the horizon as superior mirages. This explains stories about flying ships or coastal cities in the sky, as described by some polar explorers. These are examples of so called Arctic mirages or hillingar in Icelandic.
If the vertical temperature gradient is +11°C per 100 metres (reminder: positive means getting hotter when going up), horizontal light rays will just follow the curvature of the Earth, and the horizon will appear flat. If the gradient is less the rays are not bent enough, and get lost in space. That is the normal situation of a spherical, convex horizon. But if the gradient gets larger, say 18°C per 100 metres, the observer will see the horizon turned upwards, being concave, as if he were standing on the bottom of a saucer.
Fata Morgana | Espejismo | Mirage | Miraggio | מיראז' | 蜃気楼 | Miraż | Мираж | Фатаморгана | Hägring | 海市蜃楼