I revisit the NMR theory and technical stuff. Doing a 90 degrees flip and measure the Free Induction Decay (FID) signal. The NMR theory is simple, under a magnetic field, the proton spin is precessing at the Larmor frequency, but the spin aligns with the field (alone the z-axis) and the change of the magnetic field on the x-y plane is very weak. To increase the change of the magnetic field, we can flip the spin 90 degrees, make it precesses on the x-y plane and maximize the change of the magnetic field. With the change of the magnetic field induct electric field and voltage on a coil (on the x-axis for example), an signal can be detected at the Larmor frequency. Since the spin will graduate align itself back to the z-axis and so the signal will decay. The technique to flip the spin is called Nuclear Magnetic Resonance. I made a very clumsy note on that many years ago in this pdf.

In order to flip the spin, we need to apply a rotating field with frequency \Omega, in the rotating frame created by the rotating field, an inducted field is created alone the negative z-axis as the world is rotating around (in an opposite direction), and also, a constant field points along the rotating x-axis. When the induced field in the rotating frame can cancel the external magnetic field, the over all effective magnetic field would be the one along the rotating x-axis. Since nuclear spin was on the z-axis, and since switch on of the rotating field, it feels a net magnetic field along the rotating x-axis and start to precess around it. If the rotating field switch off at the time that the spin precesses on the x-y plan, a 90 degree flip is done.

Mathematically, the Hamiltonian a spin under and external magnetic field is

\displaystyle H_0 = -\gamma \vec{S} \cdot \vec{B} = -\gamma B S_z = \Omega_I S_z

where \gamma = \frac{e g_p}{2 m_p} = g_p \frac{\mu_p}{ \hbar } = 42.577~\textrm{MHz}/\textrm{T} is the gyromagnetic ratio of proton, in which g_p is the g-factor of proton and \mu_p is the proton magneton. The Larmor frequency is \Omega_I = -\gamma B .

with a oscillating magnetic field (which is effectively combination of a right-hand and left-hand rotating field), the Hamiltonian is

\displaystyle H = \Omega_I S_z + 2k \cos(\Omega t) S_x

The factor k represent the strength of the rotating field. The factor of 2 will comes in handy later. In order to change to the rotating frame, suppose the Lab wavefunction is \phi, the rotating frame wavefunction is \phi_R = \exp(i\Omega t  S_z) \phi  , the rotating frame Hamiltonian must satisfy

\displaystyle i \frac{d}{dt} \phi_R = i \frac{d}{dt} \left( \exp(i\Omega t S_z) \phi \right) = - \Omega S_z \exp(i\Omega t S_z) \phi + \exp(i\Omega t S_z) \left( i \frac{d}{dt} \phi \right) \\ = - \Omega S_z \phi_R + \exp(i\Omega t S_z) H \exp(-i\Omega t S_z) \phi_R \\ = \left( - \Omega S_z + \exp(i\Omega t S_z) H \exp(-i\Omega t S_z) \right) \phi_R = H_R \phi_R

Thus,

\displaystyle H_R = ( \Omega_I - \Omega) S_z + 2k \cos(\Omega t) \exp(i\Omega t S_z) S_x\exp(-i\Omega t S_z) \\=(\Omega_I - \Omega) S_z + 2k \cos(\Omega t) ( \cos(\Omega t) S_x - \sin(\Omega t )S_y) \\=(\Omega_I - \Omega) S_z + k S_x + k \left( \cos(2 \Omega t) S_x - \sin(2\Omega t )S_y \right) \\= (\Omega_I - \Omega) S_z + k S_x

We can drop the last time dependence terms, because it oscillate at twice of the frequency of the rotating frame, that, in average, the contribution is averaged out. And the Hamiltonian is as expected as our early discussion. an induced field - \Omega S_z along the z-axis, and constant field along the x-axis.

The strength of the oscillating field k has a meaning of rotational frequency. If we apply the field so that T = \pi /4 /k and \Omega = \Omega_I, this will rotate the spin 90 degree and give a maximum reading from the NRM coil. The challenge is that, the actual value of k = -\gamma B_{osc} depends on the effective oscillating magnetic field strength B_{osc}, which depends on the power transfer from the source to the NMR coil, the impedance matching from the coil to the source, also the resonance frequency of the chamber. Some these factors are hard to measure and often, the 90 degree spin flip is achieved by trials and errors until the maximum FID is obtained.