Whenever a visible light with electric field E= t strikes the Oxygen or Nitrogen atom, the electron revolving around the nucleus gets accelarated with an accelaration a. There will be two forces acting on an electron orbiting the nucleus. Firstly, there is an external force =qE(Basic definition) . When this force acts on an electron, the electron starts to accelarate. At that time, there will be a restoring force =-K where K=(Constant defined by an atom).

Mathematically K can be defined as =

Applying Newton’s second law of motion to the accelarating charge(Oxygen or Nitrogen atom).

= + =ma where m=mass of an electron and a=accelaration.

*m=-K+

Divide both L.H.S and R.H.S by m.

= – + t

+ = t

The general solution of the differential equation is

=c1 + c2

For particular solution

Let’s use

=A cos t then becomes

= -A t

Substituting these values in the differential equation, we end up with

-A t +A cos t= t

A( – )=

Therefore =

But accelaration is where D= . But in frequency domain we know that

D=j so =-

For our analysis part, let’s take only particular integral.

a= =-

Accelaration=a= –

a= –

Using Larmor Formula, The total power radiated by an accelarating electron is proportional to

P and

so,

P

Which is nothing, but a famous Rayleigh scattering phenomenon. Where the radiated power scattered by an electron is directly proportional to fourth power of frequency or inversely proportional to fourth power of wavelength.

In the VIBGYOR, =1.5

Therefore blue has a higher probability to be scattered by an accelarating electron than red light, thus the sky is blue.

Here is the answer : http://physics.stackexchange.com/questions/28895/why-is-the-sky-not-purple