# What is happening inside a non-linear medium?

I am trying to understand second-harmonic generation as explained in this video.

Now we have 2 formulas in a non-linear medium:

$$\mathrm{P}_{\mathrm{L}} = \epsilon_0 \chi^{(1)} \mathrm{E}$$ $$\mathrm{P}_{\mathrm{NL}} = \epsilon_0 \chi^{(2)} \mathrm{E^2}$$

As far as I understand $$\mathrm{P}_{\mathrm{L}}$$ and $$\mathrm{P}_{\mathrm{NL}}$$ are the polarization of the medium which has been caused by the electric field E.

But second harmonic generation is based on the effect that after an electric field with frequency $$\omega$$ enters a non-linear medium the outcoming electric field will be a mixture of $$\omega$$ and $$2 \omega$$.

So what exactly is happening inside of the medium? Is it that the entering electric field causes 2 polarizations (linear and non-linear) and these 2 polarizations then "produce" two new electric fields which are the ones we observe leaving the medium?

Correct?

Nonlinear effects, ususally, appear when amplitude of a wave (or of oscillations) is large. Polarization in a medium means a re-distribution of charges there. Say, electrons are shifted from an equilbrium positions in an atoms (molecules, a crystal). Usually, such a shift depends linearly on a field amplitude $$E$$. Therefore, atoms behaves as linear oscillators under the action of the field. Then charges oscillates with the field frequency $$\omega$$, so one observes only this frequency. However, when the field amplitude is large, the charge displacement is also large, and oscillations of charges are anharmonic. In other words, charges form nonlinear oscillators excited by the field. It is well known that in nonlinear oscillators, an energy transfer between different frequencies is possible. The model described above is the well-know Lorentz model.
Another way to understand the SHG process is the following. At large intensities, there is a large number of photons. Then there is a possibility that two photons with frequency $$\omega$$, acting simultaneously, excite an atom to a state with energy $$E_1 = 2\hbar \omega$$. Return of the atom to a ground state releases a photon with frequency $$2\omega$$.