NMR and MRI physics · Advanced

COSY: the 90-t1-90-acquire sequence and where cross-peaks come from

Written by SignalsLab

Early edition: these lessons are being reviewed.

Content

Summary

COSY is the simplest 2D NMR experiment: a 90° pulse, an evolution delay t1, a second 90° pulse, then acquisition during t2. The second pulse transfers coherence between J-coupled spins, so frequencies evolved in t1 appear at different frequencies in t2, producing off-diagonal cross-peaks that reveal scalar connectivity.

Intuition

Picture two coupled spins A and X. The first 90∘ pulse tips A magnetization into the transverse plane, where it precesses at its own frequency during t1 and is also modulated by J coupling, so the A doublet components drift apart in phase. Without coupling, the second 90∘ pulse would simply tip some magnetization back to z or leave it transverse, and A would be labeled with the A frequency in both dimensions, giving only diagonal peaks. With coupling, the antiphase component of A (the part with the A vector split into two opposite-pointing doublet lines, proportional to sin⁡(πJt1)) is converted by the second pulse into antiphase magnetization on X. That X coherence was labeled with A's frequency in t1 but now precesses at X's frequency in t2. This yields a cross-peak at (F1=νA, F2=νX). The geometry: in-phase A stays on A (diagonal), antiphase A moves to X (cross).

Key equations

S(t1,t2)∝cos⁡(ΩAt1)e−t1/T2cos⁡(πJt1)eiΩAt2
(1)

Diagonal-peak term: A frequency in both dimensions, in-phase component after pulse 2.

IAx→πJt12IAzIXzIAxcos⁡(πJt1)+2IAyIXzsin⁡(πJt1)
(2)

During t1 in-phase magnetization partly becomes antiphase because of J coupling.

2IAyIXz→(π/2)x−2IAzIXy
(3)

The second 90° pulse converts antiphase A coherence into antiphase X coherence: coherence transfer.

Scross∝sin⁡(ΩAt1)sin⁡(πJt1)sin⁡(πJt2)eiΩXt2
(4)

Cross-peak term: labeled by A in t1, X in t2, antiphase in both dimensions.

Derivation

  1. Start at equilibrium with Iz for each spin. A 90° pulse about x gives -Iy (take as Ix-like transverse magnetization for A).
  2. During t1, chemical shift rotates the vector at Omega_A: Ix -> Ix cos(Omega t1) + Iy sin(Omega t1).
  3. Ix evolves in-phase into antiphase: Ix→Ixcos⁡(πJt1)+2IyXzsin⁡(πJt1).
  4. Keep the antiphase term 2IyXz modulated by sin⁡(ΩAt1)sin⁡(πJt1).
  5. The second 90°x pulse rotates Iy->Iz and Xz->-Xy, so 2 Iy Xz becomes -2 Iz Xy: antiphase coherence now on X.
  6. During t2, Xy evolves at ΩX and the antiphase becomes observable in-phase signal with sin⁡(πJt2).
  7. Fourier transform in t1 and t2 gives a peak at (Omega_A, Omega_X), which is a cross-peak. The in-phase term remaining on A gives the diagonal peak at (Omega_A, Omega_A).

Worked example

Problem

In a COSY of ethyl acetate-like fragment CH3-CH2 (J = 7 Hz, CH3 at 1.2 ppm, CH2 at 4.1 ppm, 400 MHz), where do cross-peaks appear, and what t1 gives maximal antiphase transfer?

  1. Convert shifts: 1.2 ppm x 400 = 480 Hz; 4.1 ppm x 400 = 1640 Hz.
  2. Diagonal peaks lie at (480,480) and (1640,1640) Hz.
  3. Coherence transfer between the coupled CH3 and CH2 gives cross-peaks at (F1,F2) = (480,1640) and (1640,480) Hz, symmetric about the diagonal.
  4. Antiphase amplitude goes as sin⁡(πJt1), maximal when πJt1=π/2, so t1=1/(2J)=1/14 s=71 ms.
  5. In practice t1 is incremented from near zero and T2 decay limits it, so cross-peaks build up across the increments.

Answer Cross-peaks at (1.2, 4.1) and (4.1, 1.2) ppm; transfer is maximal near t1 = 71 ms, though it is sampled over the whole t1 series.

Common mistakes

  • Saying the second pulse creates coupling; it only converts existing antiphase coherence, which exists only because of J evolution in t1.
  • Expecting cross-peaks between uncoupled spins (cross-peaks appear for resolved J, usually 2-3 bonds).
  • Forgetting that cross-peaks are antiphase in both dimensions while diagonal peaks are in-phase (dispersive in a phase-corrected spectrum), so phasing is tricky.
  • Treating COSY as showing NOE or through-space proximity; it shows only scalar coupling.
  • Ignoring small J combined with broad lines: antiphase components cancel, so cross-peaks vanish.

Animation

Animation coming soon

The animated version of this lesson is being prepared for the web. In the Signals AI app, lessons are drawn step by step.

Code

scene.py(111 lines)
import sys
import numpy as np
from manim import *
from blocks import *
from mri_blocks import (PulseSequenceDiagram, BlochSphere2D, SignalPlot,
                        rf_pulse, free_precession)

# ---- timing (diagram units, t_max = 1) ----
T_MAX = 1.0
P1 = (0.05, 0.11)     # first 90x pulse
P2 = (0.40, 0.46)     # second 90x pulse
ADC = (0.50, 0.95)    # acquisition window, t2
T1_LEN = P2[0] - P1[1]

# ---- spin I parameters (same time units) ----
OMEGA_I = 4.0   # offset of spin I (Hz, rotating frame)
J_IS = 3.0      # scalar coupling I-S (Hz)
T2 = 2.0
N_STEPS = 8


def evolve_t1(n_steps=N_STEPS):
    """Return t1 values and Bloch vectors of spin I during the t1 period."""
    M = rf_pulse(np.array([0.0, 0.0, 1.0]), np.pi / 2, 0.0)
    ts = np.linspace(0, T1_LEN, n_steps + 1)
    states = [M.copy()]
    for k in range(n_steps):
        M = free_precession(M, ts[k + 1] - ts[k], np.inf, T2, OMEGA_I)
        states.append(M.copy())
    return ts, np.array(states)


def amplitudes(t1):
    """Return diagonal and cross-peak amplitudes after the second 90 pulse."""
    t1 = np.asarray(t1, dtype=float)
    diag = np.cos(np.pi * J_IS * t1) * np.cos(2 * np.pi * OMEGA_I * t1)
    cross = np.sin(np.pi * J_IS * t1) * np.sin(2 * np.pi * OMEGA_I * t1)
    return diag, cross


class Main(Scene):
    def construct(self):
        TitleCard(self, "COSY: 90 - t1 - 90 - acquire", "where cross-peaks come from")

        # --- timing diagram (upper part) ---
        seq = PulseSequenceDiagram(rows=("RF", "ADC"), t_max=T_MAX, width=11, height=1.8)
        seq.move_to([0, 1.9, 0])
        p1 = seq.add_rf(*P1, kind="hard", label="90x")
        p2 = seq.add_rf(*P2, kind="hard", label="90x")
        adc = seq.add_adc(*ADC)
        t1_lab = Text("t1 (incremented)", font_size=24, color=C_GOOD)
        t1_lab.move_to(seq._pt((P1[1] + P2[0]) / 2, "RF", 0.6))
        t2_lab = Text("t2 (acquire)", font_size=24, color=C_BAD)
        t2_lab.next_to(adc, UP, buff=0.1)
        cursor = seq.time_cursor()
        self.play(FadeIn(seq), run_time=0.8)
        self.play(Create(p1), Create(p2), FadeIn(adc), FadeIn(t1_lab), FadeIn(t2_lab), run_time=1.2)
        self.add(cursor)

        # --- simulation (lower part) ---
        ts, states = evolve_t1()
        sphere = BlochSphere2D(radius=1.0).move_to([-4.3, -1.3, 0])
        vec = sphere.vector([0, 0, 1])
        plot = SignalPlot(x_range=(0, 0.3, 0.1), y_range=(-1, 1, 0.5), x_label="t1",
                          y_label="amp", width=6, height=2.2).move_to([2.6, -1.3, 0])
        grid = np.linspace(0, T1_LEN, 200)
        d, c = amplitudes(grid)
        dcurve = plot.plot(grid, d, color=C_MAIN)
        ccurve = plot.plot(grid, c, color=C_ACCENT)
        leg = VGroup(Text("diagonal", font_size=24, color=C_MAIN),
                     Text("cross", font_size=24, color=C_ACCENT)).arrange(RIGHT, buff=0.4)
        leg.next_to(plot, UP, buff=0.05)
        self.play(FadeIn(sphere), FadeIn(vec), Create(plot), FadeIn(leg), run_time=1.0)
        StepCaption(self, "First 90x tips spin I into the transverse plane")

        # first pulse
        self.play(seq.cursor_to(P1[1]),
                  Transform(vec, sphere.vector(states[0])), run_time=0.8)
        StepCaption(self, "During t1, spin I precesses at its offset and J-couples to S")
        self.play(Create(dcurve), Create(ccurve), run_time=1.0)
        dot_d = plot.dot_at(0, amplitudes(0)[0][()], C_MAIN)
        dot_c = plot.dot_at(0, amplitudes(0)[1][()], C_ACCENT)
        self.add(dot_d, dot_c)
        for k in range(1, len(ts)):
            dk, ck = amplitudes(ts[k])
            self.play(seq.cursor_to(P1[1] + ts[k]),
                      Transform(vec, sphere.vector(states[k])),
                      dot_d.animate.move_to(plot.axes.c2p(ts[k], float(dk))),
                      dot_c.animate.move_to(plot.axes.c2p(ts[k], float(ck))),
                      run_time=0.5, rate_func=linear)

        # second pulse and acquisition
        StepCaption(self, "Second 90x converts antiphase I coherence into S signal")
        M_after = rf_pulse(states[-1], np.pi / 2, 0.0)
        self.play(seq.cursor_to(P2[1]), Transform(vec, sphere.vector(M_after)), run_time=0.8)
        self.play(seq.cursor_to(ADC[1]), run_time=1.5, rate_func=linear)
        StepCaption(self, "Cross-peak ~ sin(pi J t1): signal at S labelled with spin I's frequency")
        self.wait(1.5)


if __name__ == "__main__" and "--selftest" in sys.argv:
    ts, st = evolve_t1()
    assert np.allclose(st[0], [0, -1, 0])                  # 90x puts z onto -y
    assert abs(ts[-1] - T1_LEN) < 1e-12
    d0, c0 = amplitudes(0.0)
    assert abs(d0 - 1) < 1e-12 and abs(c0) < 1e-12        # no transfer at t1 = 0
    M = free_precession([1, 0, 0], 0.1, np.inf, np.inf, OMEGA_I)
    assert abs(np.linalg.norm(M) - 1) < 1e-12              # pure precession keeps length
    assert np.all(np.diff(np.linalg.norm(st[:, :2], axis=1)) < 0)  # T2 decay during t1
    assert np.allclose(rf_pulse([0, -1, 0], np.pi / 2), [0, 0, -1])
    print("selftest ok")

The Manim scene code that draws this lesson's animation in the Signals AI app (Python, Manim Community).

ccBYNC© 2026 SignalsLab. Lesson text shared as is under CC BY-NC 4.0.