---
title: "A first computable cluster model with SZ Compton y and lensing shear"
description: "Set up coordinates and units, compute the SZ Compton y profile and a weak-lensing shear signal with its noise, and turn Y into a mass with a scaling relation."
canonical_url: "https://sandboxphysics.com/stories/cluster-mass-calibration/sz-pressure-and-lensing-shear/"
language: "en"
page_type: "story"
alternate_languages:
  zh-CN: "https://sandboxphysics.com/zh/stories/cluster-mass-calibration/sz-pressure-and-lensing-shear/"
last_modified: "2026-11-22"
---

[Weighing galaxy clusters with X-rays, SZ and lensing](https://sandboxphysics.com/stories/cluster-mass-calibration/)

# A first computable cluster model with SZ Compton y and lensing shear

Sandbox Physics · 2026-11-22

To compare X-ray, SZ and lensing masses, all three must be predicted from one cluster in one set of coordinates and units. Start from a total mass profile, put gas in it, find the pressure that holds the gas up, split off the non-thermal part, and then compute each observable: X-ray density and temperature, the SZ Compton parameter $y(R)$ and its integral $Y_{500}$, and the excess surface density $\Delta\Sigma(R)$ that lensing measures. This chapter builds that chain with numbers you can check by hand.

Before this chapter, read [how hot gas weighs a galaxy cluster](https://sandboxphysics.com/stories/cluster-mass-calibration/hydrostatic-mass-from-x-rays/). You need integrals in spherical coordinates and the idea of an angular-diameter distance.

## Coordinates and units

Put the cluster centre at the origin. Use $r$ for the three-dimensional radius, $R$ for the projected radius on the sky and $l$ for the distance along the line of sight, so $r^2=R^2+l^2$. The observed angle is $\theta=R/D_{\rm A}$. In a flat universe with $H_0=70\ {\rm km\,s^{-1}\,Mpc^{-1}}$ and $\Omega_{\rm m}=0.3$, a cluster at $z=0.2$ has $D_{\rm A}=681$ Mpc, so one arcminute spans 0.198 Mpc.

**Table 3.1** Units that keep the numbers near one.

| Quantity | Unit | Typical value near the cluster edge |
| --- | --- | --- |
| radius | Mpc | $R_{500}\approx1.3$ |
| mass | $M_\odot$ | $M_{500}\approx7\times10^{14}$ |
| electron density | ${\rm cm^{-3}}$ | $n_{\rm e}\approx10^{-4}$ |
| temperature | keV | $kT\approx4$ |
| electron pressure | ${\rm keV\,cm^{-3}}$ | $P_{\rm e}\approx5\times10^{-4}$ |
| surface density | $M_\odot\,{\rm pc^{-2}}$ | $\Delta\Sigma\approx100$ |

The SZ prefactor is $\sigma_{\rm T}/m_{\rm e}c^2=6.652\times10^{-25}/511=1.302\times10^{-27}\ {\rm cm^2\,keV^{-1}}$. Multiplying by a pressure in ${\rm keV\,cm^{-3}}$ and a length in cm gives the dimensionless $y$. A volume integral gives $Y$ in ${\rm cm^2}$; divide by $(3.086\times10^{24})^2$ for ${\rm Mpc^2}$.

## Step 1: a total mass profile

Use the Navarro-Frenk-White (NFW) profile, $\rho(r)=\rho_{\rm s}/[x(1+x)^2]$ with $x=r/r_{\rm s}$. Its enclosed mass is

$$
M(<r)=4\pi\rho_{\rm s}r_{\rm s}^3\left[\ln(1+x)-\frac{x}{1+x}\right].
$$

Two numbers fix it: $M_{500}$ and the concentration $c_{500}=R_{500}/r_{\rm s}$. For $M_{500}=7\times10^{14}\ M_\odot$ at $z=0.2$, $\rho_{\rm c}=1.66\times10^{11}\ M_\odot\,{\rm Mpc^{-3}}$ gives $R_{500}=1.264$ Mpc, and $c_{500}=3$ gives $r_{\rm s}=0.421$ Mpc.

## Step 2: gas and its pressure

Give the gas a density shape, for example the form Vikhlinin and colleagues fitted to Chandra clusters, and scale it so the gas mass inside $R_{500}$ is 13.1 percent of $M_{500}$. [Chandra sample of nearby relaxed galaxy clusters, Eq. 3](https://arxiv.org/abs/astro-ph/0507092v1) The 13.1 percent is the universal gas fraction Eckert and colleagues adopted from their clusters. [Non-thermal pressure support in X-COP galaxy clusters, Eq. 5](https://arxiv.org/abs/1805.00034v2)

Now find the total pressure from hydrostatic equilibrium, integrating inward from a radius far outside the cluster where the pressure is taken as zero:

$$
P_{\rm tot}(r)=\int_r^{r_{\rm max}}\frac{G M(<r')\,\rho_{\rm gas}(r')}{r'^2}\,\mathrm dr'.
$$

The Lab takes $r_{\rm max}=10R_{500}$. Split the result as $P_{\rm th}=(1-\alpha)P_{\rm tot}$. The electron pressure is a fixed fraction of $P_{\rm th}$, and the temperature is $kT=\mu m_{\rm p}P_{\rm th}/\rho_{\rm gas}$. In this model, with $\alpha=0.2$ at $R_{500}$, the gas at $R_{500}$ has $n_{\rm e}=1.34\times10^{-4}\ {\rm cm^{-3}}$, $kT=3.84$ keV and $P_{\rm e}=5.16\times10^{-4}\ {\rm keV\,cm^{-3}}$.

## Step 3: what each instrument sees

X-ray. The density the X-rays infer is $n_{\rm X}=\sqrt C\,n_{\rm e}$ for clumping factor $C$, and the measured temperature is $T_{\rm X}=s_TT$ for a calibration factor $s_T$. Feed both into the hydrostatic formula of the previous chapter.

SZ. The Compton parameter at projected radius $R$ is the electron pressure integrated through the cluster,

$$
y(R)=\frac{\sigma_{\rm T}}{m_{\rm e}c^2}\,2\int_R^{\infty}\frac{P_{\rm e}(r)\,r\,\mathrm dr}{\sqrt{r^2-R^2}}.
$$

The substitution $r=R\cosh u$ removes the square-root singularity at the lower limit. The total signal inside a sphere of radius $R_{500}$ is

$$
Y_{\rm sph}(R_{500})=\frac{\sigma_{\rm T}}{m_{\rm e}c^2}\int_0^{R_{500}}4\pi r^2P_{\rm e}(r)\,\mathrm dr .
$$

The model above gives $y=1.3\times10^{-4}$ at $R=0.05R_{500}$, $y=4.3\times10^{-6}$ at $R_{500}$, and $Y_{\rm sph}=6.95\times10^{-5}\ {\rm Mpc^2}$.

Lensing. For the NFW profile, $\Sigma(R)$ and $\bar\Sigma(<R)$ have closed forms. [Gravitational lensing by NFW halos, Eqs. 11-16](https://arxiv.org/abs/astro-ph/9908213v1) The model cluster has $\Delta\Sigma=132\ M_\odot\,{\rm pc^{-2}}$ at $R=1.1$ Mpc. A shear survey with $n_{\rm s}$ background galaxies per square arcminute and shape noise $\sigma_e=0.25$ measures $\Delta\Sigma$ in a ring of area $A$ with error

$$
\sigma_{\Delta\Sigma}=\frac{\Sigma_{\rm cr}\,\sigma_e}{\sqrt{n_{\rm s}A}}.
$$

The ring from 0.949 to 1.265 Mpc covers 56 square arcminutes. At 20 galaxies per square arcminute that is 1120 galaxies, and with $\Sigma_{\rm cr}=3250\ M_\odot\,{\rm pc^{-2}}$ the error is $24\ M_\odot\,{\rm pc^{-2}}$, a 5.5 sigma signal in one ring.

## From signal to mass: the self-similar Y-M relation

$Y_{\rm sph}$ is the thermal energy of the gas divided by a constant. If every cluster is a scaled copy of every other, $Y\propto M_{\rm gas}T$, the gas mass is a fixed fraction of $M$, and the virial temperature scales as $T\propto M/R\propto M^{2/3}E(z)^{2/3}$, where $E(z)=H(z)/H_0$. So

$$
E(z)^{-2/3}\,Y_{500}\propto M_{500}^{5/3}.
$$

Arnaud and colleagues fitted the REXCESS clusters and found a slope of 1.79 instead of 5/3, with normalisation $10^{-4.739}\ {\rm Mpc^2}$ at $3\times10^{14}\ M_\odot$. Their masses come from an X-ray mass proxy calibrated on hydrostatic masses of relaxed clusters. [The universal galaxy cluster pressure profile from REXCESS, Eq. 20](https://arxiv.org/abs/0910.1234v1) The Lab uses the 5/3 slope computed from its own model with $\alpha=0$ and $C=1$, so its SZ mass equals the true mass when the gas is fully thermal. With $\alpha=0.2$, $Y_{500}$ drops to 0.847 of that thermal reference and the inferred mass to $0.847^{3/5}=0.905$ of the truth.

## Lab tasks

1. In [the cluster mass Lab](https://sandboxphysics.com/labs/galaxy-cluster-mass-calibration/), raise the gas clumping from 1 to 2 and watch the SZ mass ratio. Explain from the formula for $y$ why it does not move.
2. Drop the lensing source galaxies from 20 to 5 per square arcminute. Predict by what factor the lensing error bar grows, then read it.
3. Switch to the light galaxy group preset. Compare the lensing error with the default cluster and explain the change using $\Delta\Sigma$ and $\sigma_{\Delta\Sigma}$.

## Exercises

1. Show that $\int_0^\infty 2\pi R\,y(R)\,\mathrm dR=(\sigma_{\rm T}/m_{\rm e}c^2)\int_0^\infty4\pi r^2P_{\rm e}\,\mathrm dr$ by exchanging the order of integration.
2. Using the values at $R_{500}$ above, estimate $y(R_{500})$ as $(\sigma_{\rm T}/m_{\rm e}c^2)P_{\rm e}L$ with an effective path $L=R_{500}$. Compare with the model value.
3. Derive $E(z)^{-2/3}Y\propto M^{5/3}$ and find by what factor $Y_{500}$ changes for a cluster of fixed $M_{500}$ moved from $z=0.2$ to $z=0.5$.
4. How many times more background galaxies are needed to halve $\sigma_{\Delta\Sigma}$?

Answers

1. Write $y(R)$ as an integral over $l$, so the left side is $\int\mathrm d^2R\int\mathrm dl\,P_{\rm e}$, an integral over all of space; that equals $\int4\pi r^2P_{\rm e}\,\mathrm dr$.
2. $1.302\times10^{-27}\times5.16\times10^{-4}\times1.264\times3.086\times10^{24}=2.6\times10^{-6}$. The model gives $4.3\times10^{-6}$; the true path through the gas is longer than $R_{500}$ because pressure continues beyond it.
3. $Y\propto M_{\rm gas}T\propto M\cdot M^{2/3}E^{2/3}$. With $E(0.2)=1.104$ and $E(0.5)=1.309$, $Y$ grows by $(1.309/1.104)^{2/3}=1.12$.
4. $\sigma_{\Delta\Sigma}\propto1/\sqrt{n_{\rm s}}$, so four times as many.

Next: [hydrostatic mass bias and cluster counts](https://sandboxphysics.com/stories/cluster-mass-calibration/mass-bias-and-cluster-counts/).

## Try it in the Lab

[Weighing a galaxy cluster three ways](https://sandboxphysics.com/labs/galaxy-cluster-mass-calibration/): Compare the lensing points with the true profile, then lower the number of lensing source galaxies.

## Sources

1. [Chandra sample of nearby relaxed galaxy clusters, Eq. 3](https://arxiv.org/abs/astro-ph/0507092v1)
2. [Non-thermal pressure support in X-COP galaxy clusters, Eq. 5](https://arxiv.org/abs/1805.00034v2)
3. [Gravitational lensing by NFW halos, Eqs. 11-16](https://arxiv.org/abs/astro-ph/9908213v1)
4. [The universal galaxy cluster pressure profile from REXCESS, Eq. 20](https://arxiv.org/abs/0910.1234v1)

## Keep reading

Weighing galaxy clusters with X-rays, SZ and lensing · Reading path

### From three scales to cluster counts

1. [Article **Why X-rays, the SZ effect and lensing weigh a galaxy cluster differently**](https://sandboxphysics.com/stories/cluster-mass-calibration/three-ways-to-weigh-a-cluster/)
2. [Article **How hot gas weighs a galaxy cluster in hydrostatic equilibrium**](https://sandboxphysics.com/stories/cluster-mass-calibration/hydrostatic-mass-from-x-rays/)
3. [You are here **A first computable cluster model with SZ Compton y and lensing shear**](https://sandboxphysics.com/stories/cluster-mass-calibration/sz-pressure-and-lensing-shear/)
4. [Article **How a hydrostatic mass bias shifts cosmology from cluster counts**](https://sandboxphysics.com/stories/cluster-mass-calibration/mass-bias-and-cluster-counts/)
5. [Article **Recompute X-COP hydrostatic masses and a toy SZ cluster survey**](https://sandboxphysics.com/stories/cluster-mass-calibration/recompute-xcop-hydrostatic-masses/)
6. [Article **How to read the Planck 2015 SZ cluster counts and the mass bias**](https://sandboxphysics.com/stories/cluster-mass-calibration/reading-the-planck-cluster-count-mass-bias/)
