Scattering & Atmospheric Optics

Why is the sky blue? It is the question a curious child asks and a physics exam rewards, and the answer is not "because it reflects the sea" — it is a clean piece of wave optics you can put a number on. Sunlight is white, a mixture of all colours, and as it threads the atmosphere the air molecules scatter it in every direction. The crucial fact, discovered by Tyndall and made exact by Rayleigh, is that scattering is far stronger for short wavelengths than long ones — it grows as the inverse fourth power of the wavelength. Blue light, with its short wavelength, is scattered many times more than red, so the whole daytime sky glows with the scattered blue, while the direct beam from a low sun, stripped of its blue over a long slant path, arrives red. This article turns that story into physics. The scattered intensity obeys I∝1/λ4I \propto 1/\lambda^4, a law we quote (its electromagnetic derivation is university material) and use: the ratio of blue to red scattering is a fourth power of the wavelength ratio, so blue near 450 nm450\ \mathrm{nm} is scattered about (650/450)4≈4.35(650/450)^4 \approx 4.35 times as strongly as red near 650 nm650\ \mathrm{nm}. That single number explains the blue sky, and pushed further — violet against red — it explains why sunsets deepen to crimson. We also settle the honest follow-up question, why isn't the sky violet (its wavelength is even shorter), and separate scattering from its cousin atmospheric refraction, the bending of light by the air's density gradient that lifts the Sun into view before it has truly risen and makes the stars twinkle. By the end you will compute scattering ratios as fourth powers, explain blue skies, red sunsets, white clouds and hazy distances from one law, and know exactly which effects are scattering and which are refraction. A note on syllabus: this scattering and atmospheric-optics content is set by CBSE, ICSE, JEE-Main and NEET; the IGCSE 0625 syllabus has no blue-sky objective, and IB and A-Level carry none of it.

Key takeaways
  • Air molecules scatter sunlight, and Rayleigh scattering goes as I∝1/λ4I \propto 1/\lambda^4 — short (blue) wavelengths scatter far more than long (red).
  • The scattering ratio is a fourth power of the wavelength ratio: blue (450 nm450\ \mathrm{nm}) versus red (650 nm650\ \mathrm{nm}) is (650/450)4≈4.35(650/450)^4 \approx 4.35 — blue scattered about four times as much.
  • So the daytime sky is blue (scattered blue reaches you from all directions) and the low sun is red (its blue is scattered away over the long slant path).
  • Pushed to the extremes, violet (400 nm400\ \mathrm{nm}) versus red (700 nm700\ \mathrm{nm}) is (700/400)4≈9.38(700/400)^4 \approx 9.38 — nearly ninefold, which is why sunsets deepen to crimson.
  • The sky is not violet even though violet scatters more, because sunlight has less violet and the eye is far less sensitive to it — an honest correction to "shortest wins".
  • Clouds are white because their droplets are large: scattering by big particles (Mie) is wavelength-independent. Atmospheric refraction (not scattering) lifts the apparent Sun about two minutes early and makes stars twinkle.
  • Key idea: Rayleigh scattering ∝1/λ4\propto 1/\lambda^4 makes blue scatter about four times as strongly as red, giving a blue sky and a red low sun; large droplets scatter all colours alike (white clouds), and refraction — not scattering — bends the Sun and twinkles the stars.
The core insight

Air molecules scatter sunlight in proportion to 1/λ41/\lambda^4, so blue is scattered several times more strongly than red — filling the daytime sky with scattered blue and reddening the direct beam of a low sun over its long slant path — while large droplets scatter all wavelengths equally (white clouds) and the air's density gradient refracts light to lift the apparent Sun and twinkle the stars.

Where this lives today

The physics of scattering is everywhere once you know to look. A red warning light on a tower or a car's rear fog lamp is red partly because long wavelengths scatter least and so penetrate haze and fog best — the same reason distant hills look bluish and a low Sun looks red. Meteorologists and climate scientists measure the scattering of sunlight by aerosols and dust to gauge air pollution and volcanic haze, which redden sunsets worldwide after a big eruption. Optical engineers exploit and fight Rayleigh scattering in glass fibres, where it sets a floor on how far a light signal can travel before fading — the residual scattering by the glass's own molecules. Photographers use polarising filters to cut the scattered blue skylight and deepen a sky, because scattered light is partly polarised. Even the blue of a distant mountain range, the white of milk and clouds, the orange of a harvest Moon low on the horizon, and the pale ring around the Sun on a hazy day are all this one family of effects — small particles scattering blue, large ones scattering white, and the air bending the light on its way to your eye.

The physical picture

Sunlight reaching the top of the atmosphere is white — every visible colour together. As it passes through the air, it meets molecules of nitrogen and oxygen far smaller than a wavelength of light, and each one scatters a little of the light off in new directions, like a tiny antenna re-radiating what it receives. Most of the beam continues straight to your eye if you look at the Sun, but the light you see when you look away from the Sun — at the rest of the sky — is entirely this scattered light. The sky is bright, rather than the black of space, because the air scatters sunlight sideways into your eye from every direction. The decisive fact is that the scattering is enormously stronger for short wavelengths. Blue and violet light, at the short-wavelength end, are scattered many times more than red and orange. So the scattered light filling the sky is dominated by blue, and the sky glows blue. Meanwhile the direct beam loses its blue to this sideways scattering, and the loss matters most when the light travels a long way through air — at sunrise and sunset, when the Sun is low and its light skims a long slant path to reach you. By then so much blue and green have been scattered out that the direct beam is left red, which is why the low Sun and the clouds it lights turn orange and red. Blue sky and red sunset are two faces of the same law.

Figure
The Sun high overhead sends light on a short path through the air so that only a little blue is scattered and the sky overhead is blue, while the setting Sun sends light on a long slant path through much more air so that nearly all the blue and green are scattered away and the direct beam arrives red
blue sky (scattered blue) observer on the ground noon Sun short path: little blue lost setting Sun long slant path: blue scattered away → red blue sky and red sunset are the same 1/λ⁴ law, seen across and along the beam

Rayleigh scattering: the inverse-fourth-power law

For particles much smaller than a wavelength — which is exactly what air molecules are — the intensity of scattered light follows a law found by Lord Rayleigh:

Iscattered∝1λ4(1)I_{\text{scattered}} \propto \frac{1}{\lambda^4} \qquad (1)

where: λ\lambda is the wavelength of the light and IscatteredI_{\text{scattered}} the intensity scattered out of the beam. We quote this law — its full derivation from electromagnetism belongs to the university course and is not needed here — and use it. The steep fourth power is the whole story: halving the wavelength multiplies the scattering by 24=162^4 = 16. To compare two colours, take the ratio and the proportionality constant cancels:

IblueIred=(λredλblue)4(2)\frac{I_{\text{blue}}}{I_{\text{red}}} = \left(\frac{\lambda_{\text{red}}}{\lambda_{\text{blue}}}\right)^4 \qquad (2)

where: λblue\lambda_{\text{blue}} and λred\lambda_{\text{red}} are the two wavelengths — note the ratio is red over blue, and raised to the fourth power, because the shorter (blue) wavelength scatters more. For blue at 450 nm450\ \mathrm{nm} and red at 650 nm650\ \mathrm{nm}, this is (650/450)4=4.35(650/450)^4 = 4.35: blue is scattered about four and a third times as strongly as red. That single number is the quantitative blue sky.

Figure
A curve of scattered intensity against wavelength across the visible band from violet at four hundred nanometres to red at seven hundred: the curve is very high at the short-wavelength blue and violet end and falls steeply toward the red end following an inverse fourth-power law, with the blue-to-red ratio marked as about four point three five
wavelength λ (nm) → scattered intensity → violet 400 (scatters most) 400 450 blue 650 red I ∝ 1/λ⁴ blue : red = (650/450)⁴ ≈ 4.35

Why blue, and why the sunset is red

Two consequences follow at once from the fourth-power law. First, the blue sky: looking away from the Sun, you see scattered light, and since blue is scattered several times more than red, that scattered glow is blue. Second, the red sunset: looking toward a low Sun, you see the direct beam, which has lost its blue to sideways scattering over its long path through the air — and the longer the path, the more blue is stripped, leaving orange and then deep red. At noon the Sun's light crosses the atmosphere by the shortest route, loses little, and looks near-white; at sunset it skims a slant path many times longer, loses most of its short wavelengths, and looks red. The same physics reddens the rising and setting Moon and hazes distant hills into a bluish veil, because the air between you and a far mountain scatters its own blue toward you. Pushed to the visible extremes the effect is even stronger. Violet at 400 nm400\ \mathrm{nm} against red at 700 nm700\ \mathrm{nm} gives (700/400)4=9.38(700/400)^4 = 9.38 — nearly a ninefold difference. That steepness is why a sunset, which removes the shortest wavelengths most aggressively over a very long path, can deepen all the way to crimson: by then not just blue but green and yellow have been scattered away, leaving only the reds.

Why the sky is not violet

Here is the honest follow-up the fourth-power law seems to demand: if shorter wavelengths scatter more, and violet is shorter than blue, why is the sky blue and not violet? The law is not wrong; two other facts override it. First, sunlight itself contains less violet than blue — the Sun's output tapers toward the short-wavelength end, so there is simply less violet to scatter. Second, and more important, the human eye is far less sensitive to violet than to blue; the colour receptors respond weakly at the violet end. So although the sky does scatter violet even more strongly than blue, there is less of it and we barely see it, and the perceived colour settles on blue. The sky is blue not because blue scatters most, but because blue is the shortest wavelength that is both plentiful in sunlight and readily seen by the eye.

Atmospheric refraction: a different effect

Not everything the sky does is scattering. The air's density falls with height, so its refractive index falls too, and light passing through this gradient is gradually bent — this is atmospheric refraction, a matter of the refractive index, not of scattering. Its most familiar consequence is that the Sun and stars appear slightly higher than they really are: near the horizon the bending is enough to lift the Sun's image by about its own diameter, so we see the Sun for roughly two minutes before it has truly risen and for about two minutes after it has actually set. (This shift is an observed value, set by the atmosphere's structure, not something we derive here.) The same gradient, constantly shifting as pockets of warm and cool air drift across the line of sight, makes the point-like image of a star waver in brightness and position — the familiar twinkling of stars, which planets, being small discs rather than points, show far less. Distinguishing these refraction effects from scattering is a favourite exam point: the blue sky and red sunset are scattering; the early sunrise and the twinkling are refraction.

Why clouds are white

If small particles scatter blue most and make the sky blue, why are clouds — also made of scattered sunlight — a brilliant white? Because a cloud is made of water droplets far larger than a wavelength, not molecules far smaller. For particles comparable to or bigger than the wavelength, the scattering is described not by Rayleigh's law but by Mie scattering, which is very nearly wavelength-independent: big droplets scatter all colours about equally. So a cloud scatters red, green and blue alike, and the mixture that reaches your eye is white (grey when the cloud is thick enough to dim the light). The same is true of fog, mist and milk — all made of particles large compared with light's wavelength, all white for the same reason. The colour of scattered light is a size gauge: small scatterers give blue, large ones give white.

Derivation AThe blue-to-red scattering ratio, and why the sky is blue and the sunset red

The goal is to turn the quoted law I∝1/λ4I \propto 1/\lambda^4 into the locked number — blue at 450 nm450\ \mathrm{nm} is scattered (650/450)4=4.35(650/450)^4 = 4.35 times as strongly as red at 650 nm650\ \mathrm{nm} — and to argue the blue sky and red sunset from it. The scattering law itself is quoted (its electromagnetic derivation is university material); everything here is algebra with a fourth power.

Step 1. Write the law for each colour: Iblue∝1/λblue4I_{\text{blue}} \propto 1/\lambda_{\text{blue}}^4 and Ired∝1/λred4I_{\text{red}} \propto 1/\lambda_{\text{red}}^4, with the same proportionality constant (the same air, the same beam).

Step 2. Take the ratio so the constant cancels: IblueIred=1/λblue41/λred4=(λredλblue)4\dfrac{I_{\text{blue}}}{I_{\text{red}}} = \dfrac{1/\lambda_{\text{blue}}^4}{1/\lambda_{\text{red}}^4} = \left(\dfrac{\lambda_{\text{red}}}{\lambda_{\text{blue}}}\right)^4. The shorter wavelength ends up on top, so the ratio exceeds one — blue scatters more.

Step 3. Substitute λred=650 nm\lambda_{\text{red}} = 650\ \mathrm{nm}, λblue=450 nm\lambda_{\text{blue}} = 450\ \mathrm{nm}: (650450)4=(1.444)4=4.35\left(\dfrac{650}{450}\right)^4 = (1.444)^4 = 4.35. Blue is scattered about four and a third times as strongly as red — note it is a fourth power, so a wavelength ratio of only 1.441.44 becomes a scattering ratio of 4.354.35.

Step 4. Read off the two phenomena. Looking away from the Sun you see scattered light, dominated by the four-times-stronger blue — the blue sky. Looking toward a low Sun you see the direct beam, which has lost that blue over its long slant path, leaving red — the red sunset. And the deep-crimson extreme follows from pushing to violet against red: (700/400)4=9.38(700/400)^4 = 9.38, nearly ninefold, so a long enough path strips everything but the reds. A mid-band check, (680/480)4=4.03(680/480)^4 = 4.03, confirms the ratio is robust near four for typical blue and red wavelengths. Verified: (650/450)4=4.35(650/450)^4 = 4.35, (700/400)4=9.38(700/400)^4 = 9.38 and (680/480)4=4.03(680/480)^4 = 4.03 are recomputed in verify_hs2-atmospheric-optics.py.

Go deeper · Derivation B · 1 minWhy the sky is blue and not violet — the honest correction
Derivation BWhy the sky is blue and not violet — the honest correction

The goal is to explain why, although the 1/λ41/\lambda^4 law says violet (400 nm400\ \mathrm{nm}) scatters even more than blue (450 nm450\ \mathrm{nm}), the sky looks blue rather than violet. This is a qualitative but honest correction to the naive "shortest wavelength wins"; the numbers set up the puzzle and the resolution is about sunlight's spectrum and the eye.

Step 1. State the naive expectation from the law. By (2)(2), violet against blue is (450/400)4=1.60(450/400)^4 = 1.60, so violet is scattered about 1.61.6 times more than blue. Taken alone, the law predicts a violet sky.

Step 2. Correct for the source. The Sun does not emit equally across the spectrum; its output tapers toward the short-wavelength end, so there is noticeably less violet light arriving to be scattered than blue. Less violet in means less violet scattered out, even though each violet photon scatters more readily.

Step 3. Correct for the detector. The human eye's colour receptors are much less sensitive to violet than to blue. So even the violet that is scattered registers only weakly, while the scattered blue registers strongly.

Step 4. Combine. Multiply the strong per-photon scattering of violet by the smaller amount of violet in sunlight and the weaker eye response, and blue wins the perceived colour. The sky is blue because blue is the shortest wavelength that is simultaneously abundant in sunlight and efficiently seen — the fourth-power law sets the tendency, but the solar spectrum and the eye settle the colour. This is why "the sky is blue because blue scatters most" is only half the truth. Verified: the violet-to-blue ratio (450/400)4=1.60(450/400)^4 = 1.60 that sets up the puzzle is recomputed in verify_hs2-atmospheric-optics.py.

Limiting cases

CaseResultMeaning
short wavelength (blue/violet)large IscatteredI_{\text{scattered}}blue sky, scattered sideways to the eye
long wavelength (red)small IscatteredI_{\text{scattered}}red survives the long slant path — red sunset
very long slant path (low Sun)most short λ\lambda lostdeep crimson sunset, reddened Moon
particle size ≫λ\gg \lambda (droplets)wavelength-independent (Mie)white clouds, fog, mist
no atmosphere (Moon, space)no scatteringblack daytime sky, sharp shadows
density gradient in airrefraction, not scatteringearly sunrise, twinkling stars

Worked examples

Board level — the blue-to-red scattering ratio (CBSE and NEET pattern)

Blue light has a wavelength of about 450 nm450\ \mathrm{nm} and red light about 650 nm650\ \mathrm{nm}. Using Rayleigh's law, find how many times more strongly blue is scattered than red, and use it to explain the blue sky and the red sunset.

Step 1. Rayleigh's law is I∝1/λ4I \propto 1/\lambda^4, so the ratio of blue to red scattering is IblueIred=(λredλblue)4\dfrac{I_{\text{blue}}}{I_{\text{red}}} = \left(\dfrac{\lambda_{\text{red}}}{\lambda_{\text{blue}}}\right)^4 — red over blue, to the fourth power, because the shorter wavelength scatters more.

Step 2. Substitute: (650450)4=(1.444)4\left(\dfrac{650}{450}\right)^4 = (1.444)^4.

Step 3. Evaluate the fourth power: (1.444)2=2.086(1.444)^2 = 2.086, and (2.086)2=4.35(2.086)^2 = \boxed{4.35}. Blue is scattered about 4.354.35 times as strongly as red.

Step 4. Explain: because the air scatters blue about four times more than red, the light scattered sideways into your eye from the whole sky is dominated by blue — the blue sky. The direct beam from a low Sun, travelling a long slant path, has this blue scattered out of it, arriving depleted of blue and therefore red — the red sunset. One number, both phenomena.

Competitive level — the deep-red sunset and a mid-band check (JEE and NEET pattern)

Compare the scattering of violet (400 nm400\ \mathrm{nm}) with red (700 nm700\ \mathrm{nm}), and separately of 480 nm480\ \mathrm{nm} blue with 680 nm680\ \mathrm{nm} red. Explain what the first result says about deep-red sunsets.

Step 1. Violet against red: (700400)4=(1.75)4\left(\dfrac{700}{400}\right)^4 = (1.75)^4. Now (1.75)2=3.0625(1.75)^2 = 3.0625, and (3.0625)2=9.38(3.0625)^2 = \boxed{9.38} — violet is scattered nearly ninefold more than red.

Step 2. Interpret for sunsets: over the very long slant path at sunset, this steep ratio means the short wavelengths are stripped out almost completely — not just blue but green and yellow — leaving only the reds, which is why a sunset can deepen all the way to crimson rather than merely orange.

Step 3. The mid-band check: (680480)4=(1.4167)4\left(\dfrac{680}{480}\right)^4 = (1.4167)^4. Then (1.4167)2=2.007(1.4167)^2 = 2.007, and (2.007)2=4.03(2.007)^2 = \boxed{4.03} — close to the 4.354.35 of the standard blue–red pair, confirming that "blue scatters about four times red" is robust for typical wavelengths.

Step 4. The lesson is the sensitivity of a fourth power: modest changes in the chosen wavelengths (450 versus 480, 650 versus 680) barely move the ratio near four, but stretching to the visible extremes (400 versus 700) nearly doubles it to nine. The exponent, not the exact wavelengths, dominates. Timing note: under a minute each. The only skill is taking a fourth power cleanly — square the wavelength ratio, then square again. The trap is doing a first power (which would give a ratio near 1.41.4 instead of 4.354.35) or putting blue on top instead of red; keep the longer wavelength in the numerator so the ratio comes out greater than one.

Exam traps

"The sky reflects the sea." No — the sky is blue by molecular scattering of sunlight, blue much more than red; it is blue over deserts and mountains too. Reflection of the sea is not the cause.

Forgetting the fourth power. The scattering ratio is (λred/λblue)4(\lambda_{\text{red}}/\lambda_{\text{blue}})^4. A first power gives about 1.41.4; the correct fourth power gives 4.354.35. Square the ratio twice.

Putting blue on top. The shorter wavelength scatters more, so the ratio is red over blue (the longer over the shorter) to make it exceed one. Reversing it gives a fraction less than one.

"Clouds are white because they scatter blue." Clouds are white because their droplets are large, so all colours scatter equally (Mie) — the opposite regime from the molecular scattering that colours the clear sky.

Blaming scattering for twinkling and early sunrise. Those come from atmospheric refraction — the bending of light by the air's density gradient — not from scattering. Keep the two mechanisms separate.

Claiming the sky should be violet. Violet does scatter more, but sunlight has less violet and the eye sees it poorly, so blue is the perceived colour. State the correction.

Board scope. Scattering and atmospheric optics — the blue sky, red sunset, white clouds and atmospheric refraction — are set by CBSE, ICSE, JEE-Main and NEET, usually as one- or two-mark conceptual questions with the occasional 1/λ41/\lambda^4 ratio. JEE-Advanced tends to drop purely descriptive optics, and AP Physics 2 does not cover this material at all (it is outside the AP-2 optics scope). Importantly, the IGCSE 0625 syllabus has no scattering or blue-sky objective — its optics stops at dispersion by a prism — so an IGCSE candidate is not examined on this; IB SL/HL and A-Level 9702 likewise carry none of it. If you are sitting CBSE or NEET, this is reliable easy marks; for the others, read it for understanding.

Origins · 1 minJohn Tyndall and how this was discovered
JT
John Tyndall
1820–1893 · Ireland & London

Tyndall was an Irish physicist and a legendary public lecturer at London's Royal Institution, and he made the scattering of light visible on the laboratory bench. In experiments around 1869 he passed a beam of white light through tubes filled with fine suspensions and smokes, and showed that they scattered the short (blue) wavelengths far more than the long (red) ones — the near end of the tube glowing blue, the transmitted beam reddened, a miniature sky and sunset in a glass tube. This selective scattering by fine particles is still called the Tyndall effect, and it is the mechanism of the blue sky and the red sunset. Honest scope: the exact inverse-fourth-power law is Lord Rayleigh's (1871), derived from wave theory and rightly credited with the quantitative result, and scattering by larger particles is Gustav Mie's (1908); Tyndall is the experimentalist who first made scattering — and its colour — something you could see and demonstrate, opening the door to Rayleigh's mathematics.

History
1859
— John Tyndall begins systematic experiments on the scattering and absorption of radiation by gases and fine particles.
1869
— John Tyndall shows that fine particles scatter blue light far more than red, the mechanism of the blue sky.
1871
— Lord Rayleigh derives the inverse-fourth-power scattering law from wave theory.
1908
— Gustav Mie solves the scattering of light by larger particles, explaining the white of clouds and fog.
1922
— C. V. Raman shows the deep blue of the sea is its own molecular scattering, not reflected skylight.

Going further

Texts. NCERT Physics Class 12, Ch. 9 ("Ray Optics and Optical Instruments"), scattering of light, the blue sky and reddening at sunrise/sunset, and atmospheric refraction · H. C. Verma, Concepts of Physics Vol. 1, "Dispersion and Spectra" and the scattering discussion · D. C. Pandey / Cengage optics notes for the CBSE and NEET conceptual questions.

Provenance. Standard optics; the 1/λ41/\lambda^4 law is quoted (Rayleigh). Recompute: (650/450)4=4.35(650/450)^4 = 4.35; (700/400)4=9.38(700/400)^4 = 9.38; (680/480)4=4.03(680/480)^4 = 4.03; the setup ratio (450/400)4=1.60(450/400)^4 = 1.60 (violet vs blue); and the intermediate squares (1.444)2=2.086(1.444)^2 = 2.086, (1.75)2=3.0625(1.75)^2 = 3.0625. The two-minute apparent-sunrise shift is stated as an observed value, not derived.

Prerequisites. The Prism: Deviation, Dispersion and Dispersive Power — where the same wavelength-dependent behaviour of light is met as dispersion by glass. Leads to. The Human Eye and Its Defects, the next article in this chapter; and the university deep-dive below.

Go deeper (UG). The electromagnetic derivation of the 1/λ41/\lambda^4 law, the full Mie theory for larger particles, and the detailed geometry of the rainbow — the 42°42° radius, the secondary bow, the polarisation of scattered skylight — are developed in Rainbow, Glory and Scattering in the university mechanics-and-optics track. It is enrichment only; every result here follows from quoting I∝1/λ4I \propto 1/\lambda^4 and taking fourth-power ratios.

Why exactly is the sky blue and not some other colour?

Because air molecules scatter sunlight, and the scattering is far stronger for short wavelengths, following I∝1/λ4I \propto 1/\lambda^4. When you look away from the Sun, all the light you see has been scattered sideways into your eye, and since blue is scattered several times more than red — about 4.354.35 times, from (650/450)4(650/450)^4 — that scattered glow is dominated by blue, so the sky looks blue. It is nothing to do with reflecting the sea; the sky is just as blue over a desert. The one subtlety is that violet scatters even more than blue, yet the sky is not violet, because sunlight contains less violet and the eye is much less sensitive to it. So the perceived colour settles on blue: the shortest wavelength that is both plentiful and easily seen.

Why does the same physics give a blue sky but a red sunset?

Because you are looking at different light in the two cases. For the blue sky you look away from the Sun and see scattered light, which is dominated by the strongly scattered blue. For the sunset you look toward a low Sun and see the direct beam, which is what is left after scattering has removed the blue along the way. The longer the path through air, the more blue is scattered out, and at sunrise or sunset the Sun's light skims a very long slant path, so the direct beam is stripped of blue and green and arrives red. So one law, I∝1/λ4I \propto 1/\lambda^4, gives both: the scattered light is blue (the sky) and the transmitted light is red (the low Sun). At noon the path is short, little is lost, and the Sun looks near-white.

Why is the scattering a fourth power of the wavelength — why does that matter?

The fourth power is what makes the effect so dramatic. It comes from Rayleigh's wave-theory analysis of how a particle much smaller than a wavelength re-radiates light (a derivation left to the university course), and its consequence is that even a modest difference in wavelength produces a large difference in scattering. Blue at 450 nm450\ \mathrm{nm} and red at 650 nm650\ \mathrm{nm} differ in wavelength by only a factor of about 1.441.44, but raised to the fourth power that becomes 1.444≈4.351.44^4 \approx 4.35 — blue scattered more than four times as much. Had scattering gone only as 1/λ1/\lambda, the ratio would be a mere 1.441.44 and the sky would be a very pale blue-grey. The steep fourth power is precisely why the sky is a vivid blue and sunsets a deep red, and it is why forgetting the exponent gives a badly wrong answer.

What is the difference between Rayleigh scattering and Mie scattering?

They apply to different particle sizes and give different colours. Rayleigh scattering is for particles much smaller than the wavelength of light — like the nitrogen and oxygen molecules of the air — and it depends strongly on wavelength, I∝1/λ4I \propto 1/\lambda^4, scattering blue far more than red, which is why the clear sky is blue. Mie scattering is for particles comparable to or larger than the wavelength — like the water droplets in a cloud or fog — and it is very nearly independent of wavelength, scattering all colours about equally, which is why clouds, fog and mist are white or grey. So the colour of scattered light is a clue to the size of the scatterer: a blue haze means fine molecular-scale scattering, a white haze means large droplets. The transition between the two regimes is gradual as the particles grow.

Is atmospheric refraction the same thing as scattering?

No — they are two different effects, and mixing them up is a common exam error. Scattering is light being redirected in all directions by particles, and it explains the blue sky, the red sunset and the white clouds. Atmospheric refraction is light being bent as it passes through air whose density, and therefore refractive index, changes with height. Refraction lifts the apparent position of the Sun and stars, so we see the Sun for about two minutes before it truly rises and after it truly sets, and it makes starlight waver as the air churns — the twinkling of stars. Refraction is about the refractive index gradient; scattering is about particles redirecting light. When a question asks why the Sun appears flattened at the horizon or why stars twinkle, the answer is refraction, not scattering.

Why do stars twinkle but planets mostly do not?

Both are seen through the same turbulent air, but a star is effectively a point of light while a planet shows a tiny disc. As pockets of warm and cool air drift across the line of sight, the refractive index along the path keeps changing, bending the light slightly and randomly — this makes a point source flicker in brightness and dance in position, the twinkling we see in stars. A planet, being close enough to appear as a small disc rather than a point, is really a bundle of many such points side by side; their flickers are independent and average out, so the disc's overall light stays steady. That is the everyday test: a steady "star" low in the sky is usually a planet, while the true stars twinkle, especially near the horizon where the light travels the longest, most turbulent path.

Before this

Where this leads