# Electron-electron scattering

> Two electrons exchange a photon (t-channel). A tikz-feynman example for LaTeX, rendered, with its complete source, ready to copy or to open in a TeXeR project.

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

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

Tags: scattering, QED, t-channel

## Source

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

\begin{tikzpicture}
  \begin{feynman}
    \vertex (a) at (0,1.2);
    \vertex (b) at (0,-1.2);
    \vertex (i1) at (-2,2) {$e^-$};
    \vertex (f1) at (2,2) {$e^-$};
    \vertex (i2) at (-2,-2) {$e^-$};
    \vertex (f2) at (2,-2) {$e^-$};
    \diagram* {
      (i1) -- [fermion] (a) -- [fermion] (f1),
      (i2) -- [fermion] (b) -- [fermion] (f2),
      (a) -- [photon, edge label=$\gamma$] (b),
    };
  \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,1.2);
    \vertex (b) at (0,-1.2);
    \vertex (i1) at (-2,2) {$e^-$};
    \vertex (f1) at (2,2) {$e^-$};
    \vertex (i2) at (-2,-2) {$e^-$};
    \vertex (f2) at (2,-2) {$e^-$};
    \diagram* {
      (i1) -- [fermion] (a) -- [fermion] (f1),
      (i2) -- [fermion] (b) -- [fermion] (f2),
      (a) -- [photon, edge label=$\gamma$] (b),
    };
  \end{feynman}
\end{tikzpicture}
\end{document}
```
