I am studying the concept of a "gain medium" inside a laser cavity. The active atoms are taken to have the two levels $a$ and $b$, separated by energy $\hbar \omega$ and represented by a density matrix $\rho$. The atoms are stationary.
The equation of motion of the density matrix is
$$\dot{\rho} = -i[H, \rho] - \dfrac{1}{2}\left(\Gamma \rho + \rho \Gamma \right) + \lambda,$$
where
$$\rho = \begin{bmatrix} \rho_{aa} & \rho_{ab} \\ \rho_{ba} & \rho_{bb} \end{bmatrix}, \ \ \ \ \ H = \begin{bmatrix} W_{a} & V \\ V & W_{b} \end{bmatrix}, \\ \Gamma = \begin{bmatrix} \gamma_{a} & 0 \\ 0 & \gamma_{b} \end{bmatrix}, \ \ \ \ \ \lambda = \begin{bmatrix} \lambda_{a} & 0 \\ 0 & \lambda_{b} \end{bmatrix}$$
The perturbation Hamiltonian is $\hbar V$, and the unperturbed energies of the levels are $\hbar W_a$ and $\hbar W_b$. Furthermore, the two levels decay with damping constants $\gamma_a$ and $\gamma_b$, and are populated by pumping at rates $\lambda_a$ and $\lambda_b$.
Therefore, using the Fourier expansion of the electric field $E(z, t) = \sum\limits_n A_n(t) u_n(z)$, where $u_n(z) = \sin(k_n z)$ and $k_n = \dfrac{n \pi}{L}$, my notes claim that the electric dipole approximation for the perturbation becomes
$$V(t) = -A(t) \wp u(z) / \hbar$$
Note that we are now considering a single cavity mode, so we drop the subscript $n$.
[See this related question.]
We now write the time dependence of the electric field $A(t)$ in terms of the amplitude $E(t)$ and phase $\phi(t)$, which vary slowly in an optical period $2\pi/\nu$:
$$A(t) = E(t) \cos[\nu t + \phi(t)]$$
[See this related question.]
Now take
$$\delta(t) = E(t) e^{-i[\nu t + \phi(t)]}$$
to be the positive frequency part of the electric field.
[See this related question.]
So we can now write the off-diagonal terms in the density-matrix equation as
$$\dot{\rho}_{ab} = -(i\omega + \gamma)\rho_{ab} - i(\rho_{aa} - \rho_{bb})A(t) \wp u(z)/\hbar,$$
where $\gamma = \dfrac{1}{2} (\gamma_a + \gamma_b)$
[See this related question.]
The steady-state solution of this equation gives
$$\rho_{ab} = -\dfrac{1}{2} \dfrac{i(\rho_{aa} - \rho_{bb}) \delta(t) \wp u(z)}{\hbar[\gamma + i(\omega - \nu)]},$$
where it is assumed that the population inversion varies slowly compared with $\rho_{ab}$, and the "rotating-wave approximation" has been used.
How does one get the steady-state solution
$$\rho_{ab} = -\dfrac{1}{2} \dfrac{i(\rho_{aa} - \rho_{bb}) \delta(t) \wp u(z)}{\hbar[\gamma + i(\omega - \nu)]},$$
and how does the assumption that the population inversion varies slowly compared with $\rho_{ab}$, and the use of the "rotating-wave approximation," play a part in this?
EDIT
The furthest I can seem to go with this is as follows:
$$\begin{align} \dot{\rho}_{ab} = \dfrac{-\frac{1}{2} i (\rho_{aa} - \rho_{bb})(-i \nu) e^{-i \nu t} \wp u(z)}{\hbar [\gamma + i(\omega - \nu)]} = \dfrac{-(\rho_{aa} - \rho_{bb}) A(t) \wp u(z)}{\hbar [\gamma + i(\omega - \nu)]}, \end{align}$$
since $\cos(\nu t) = \dfrac{e^{i \nu t} + e^{-i \nu t}}{2} \ \Rightarrow 2\cos(\nu t) - e^{i \nu t} = e^{-i \nu t} = 2 A(t)$, since, for some reason, we seem to be assuming that $\delta(t) = E(t) e^{-i[\nu t + \phi(t)]} \approx e^{-i \nu t}$ and $A(t) = E(t) \cos[\nu t + \phi(t)] \approx \cos[\nu t]$, and, if I'm not mistaken, $e^{i \nu t}$ is the negative frequency part of the electric field, so we discard it (we only want the positive frequency part, as mentioned above).
The confusing thing is the presence of the $\rho_{ab}$ in
$$\dot{\rho}_{ab} = -(i\omega + \gamma)\rho_{ab} - i(\rho_{aa} - \rho_{bb})A(t) \wp u(z)/\hbar$$
I don't actually understand how this could be in $\dot{\rho}_{ab}$, since $\dot{\rho}_{ab}$ itself is obviously differentiated, meaning that $\rho_{ab}$ should have also been differentiated.
I'd appreciate an answer that takes the time to explain all of this, so that I can clearly understand what's going on here.