General Concept
By shining high a intensity beam into a cloud of atoms we cause huge AC stark shifts. These stark shifts look like what I derived in Two Level System since I took the far detuned limit from the new eigenvalues after introducing the laser light. Then this stark shift looks like a Gaussian in the lower state which traps the atoms. Here is a diagram, note the energy sign is wrong, thanks Gemini

Formulas
Trap Depth
A Gaussian beam has intensity
where is the beam waist, is the total power of the beam and
where is the Rayleigh range of the beam given by
This is the place where the beam size is the beam waist . is the index of refraction, for air. Now we know from Two Level System the far detuned limit gives and AC stark shift of
An we know the rabi frequency is given by
Now we want the change in energy of the level from the non perturbed eigenvalue so lets focus on the second term
Now we can plug in the definition of the Rabbi frequency and we get
Now lets write this in a more telling way
Which is exactly the potential for the ODT (note typically you would write a minus sign in front of this). Now this isn’t particularly useful, we talk about intensity in the lab so lets change this to intensity. We know
so plugging this into the potential we get
Now using the equation for the intensity of a gaussian beam we have
But we actually only care about the deepest part of this which is when
It should be noted that the derivation from the far detuned AC stark shift isn’t actually necessary for this but I think its useful to see the connection.
Trap Frequencies
Here we want to Taylor expand around the bottom of the well and set the potential for a harmonic oscillator equal to the second order part of the approximation. So the full potential is given by
So Taylor expanding this gives