# Compton scattering

> A photon scatters off an electron: absorbed at one vertex and emitted at the next. A tikz-feynman example with its LaTeX source.

A tikz-feynman example in the TeXeR TikZ library: https://texer.org/library/tikz-feynman/compton-scattering

Package: [tikz-feynman](https://texer.org/library/tikz-feynman.md), on CTAN at https://ctan.org/pkg/tikz-feynman.

Tags: Compton, QED, photon

## Source

```latex
\usepackage[compat=1.1.0]{tikz-feynman}

\begin{tikzpicture}
  \begin{feynman}
    \vertex (a) at (0,0);
    \vertex (b) at (2.2,0);
    \vertex (i1) at (-1.6,-1.4) {$e^-$};
    \vertex (i2) at (-1.6,1.4) {$\gamma$};
    \vertex (f1) at (3.8,-1.4) {$e^-$};
    \vertex (f2) at (3.8,1.4) {$\gamma$};
    \diagram* {
      (i1) -- [fermion] (a) -- [fermion] (b) -- [fermion] (f1),
      (i2) -- [photon] (a),
      (b) -- [photon] (f2),
    };
  \end{feynman}
\end{tikzpicture}
```

## As a complete document

The same example in a document that compiles on its own with pdfLaTeX:

```latex
\documentclass[margin=3mm]{standalone}
\usepackage{tikz}
\usepackage{xcolor}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage[compat=1.1.0]{tikz-feynman}

\begin{document}

\begin{tikzpicture}
  \begin{feynman}
    \vertex (a) at (0,0);
    \vertex (b) at (2.2,0);
    \vertex (i1) at (-1.6,-1.4) {$e^-$};
    \vertex (i2) at (-1.6,1.4) {$\gamma$};
    \vertex (f1) at (3.8,-1.4) {$e^-$};
    \vertex (f2) at (3.8,1.4) {$\gamma$};
    \diagram* {
      (i1) -- [fermion] (a) -- [fermion] (b) -- [fermion] (f1),
      (i2) -- [photon] (a),
      (b) -- [photon] (f2),
    };
  \end{feynman}
\end{tikzpicture}
\end{document}
```
