I know that a non linear optical medium is a medium in which the optical response for example polarisation vector varies as \begin{equation} \vec{P}=\epsilon_0\chi^{(1)}\vec{E}+\epsilon_0\chi^{(2)}\vec{E}^2+....... \end{equation}
But I am not aware of reason behind this equation. Can anyone please give an intutive picture on the microscopic origin of non linear optical effect and non linear medium?
Or it is enough to have a comparison between the microscopic origin of linear and non-linear medium.